diff --git a/server/src/uds/core/util/config.py b/server/src/uds/core/util/config.py index 6c1ddd5f9..e1631df18 100644 --- a/server/src/uds/core/util/config.py +++ b/server/src/uds/core/util/config.py @@ -495,6 +495,9 @@ class GlobalConfig: ADMIN_TRUSTED_SOURCES: Config.Value = Config.section(ADMIN_SECTION).value( 'Trusted Hosts for Admin', '*', type=Config.TEXT_FIELD ) + ADMIN_ENABLE_USERSERVICES_VNC: Config.Value = Config.section(ADMIN_SECTION).value( + 'Enable VNC for user services', '0', type=Config.BOOLEAN_FIELD + ) _initDone = False diff --git a/server/src/uds/services/OpenStack/openstack/openstack_client.py b/server/src/uds/services/OpenStack/openstack/openstack_client.py index 79ce70d8e..4176bfe9c 100644 --- a/server/src/uds/services/OpenStack/openstack/openstack_client.py +++ b/server/src/uds/services/OpenStack/openstack/openstack_client.py @@ -189,7 +189,7 @@ class Client: # pylint: disable=too-many-public-methods self._project = None self._region = region self._timeout = 10 - self._volume = 'volumev2' if self._isLegacy else 'volumev3' + self._volume = '' if legacyVersion: self._authUrl = 'http{}://{}:{}/'.format('s' if useSSL else '', host, port) @@ -272,8 +272,16 @@ class Client: # pylint: disable=too-many-public-methods # Now, if endpoints are present (only if tenant was specified), store them if self._projectId is not None: self._catalog = token['catalog'] - + # Check for the presence of the endpoint for volumes + # Volume v2 api was deprecated in Pike release, and removed on Xena release + # Volume v3 api is available since Mitaka. Both are API compatible + if self._catalog: + if any(v['type'] == 'volumev3' for v in self._catalog): + self._volume = 'volumev3' + else: + self._volume = 'volumev2' + def ensureAuthenticated(self) -> None: if ( self._authenticated is False diff --git a/server/src/uds/static/admin/3rdpartylicenses.txt b/server/src/uds/static/admin/3rdpartylicenses.txt index 78e3adb47..647ec2cfb 100644 --- a/server/src/uds/static/admin/3rdpartylicenses.txt +++ b/server/src/uds/static/admin/3rdpartylicenses.txt @@ -23,6 +23,74 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2021 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/material +MIT +The MIT License + +Copyright (c) 2021 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/platform-browser +MIT + +@angular/router +MIT + @babel/runtime MIT MIT License @@ -313,6 +381,31 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI [1]: http://eligrey.com +ngx-echarts +MIT +MIT License + +Copyright (c) 2017 Xie, Ziyu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + regenerator-runtime MIT MIT License @@ -338,6 +431,252 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +resize-observer-polyfill +MIT +The MIT License (MIT) + +Copyright (c) 2016 Denis Rul + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + web-animations-js Apache-2.0 @@ -364,3 +703,36 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +zrender +BSD-3-Clause +BSD 3-Clause License + +Copyright (c) 2017, Baidu Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 8c587dfc4..29f394f0d 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},9737:function(t,e,n){"use strict";n.r(e),n.d(e,{Axis:function(){return Yx},ChartView:function(){return ig},ComponentModel:function(){return md},ComponentView:function(){return qp},List:function(){return hb},Model:function(){return sh},PRIORITY:function(){return gy},SeriesModel:function(){return Wp},color:function(){return o},connect:function(){return l_},dataTool:function(){return D_},dependencies:function(){return dy},disConnect:function(){return u_},disconnect:function(){return c_},dispose:function(){return h_},env:function(){return x},extendChartView:function(){return Kx},extendComponentModel:function(){return qx},extendComponentView:function(){return Xx},extendSeriesModel:function(){return Zx},format:function(){return f},getCoordinateSystemDimensions:function(){return x_},getInstanceByDom:function(){return d_},getInstanceById:function(){return f_},getMap:function(){return O_},graphic:function(){return d},helper:function(){return u},init:function(){return s_},innerDrawElementOnCanvas:function(){return ov},matrix:function(){return a},number:function(){return c},parseGeoJSON:function(){return Wv},parseGeoJson:function(){return Wv},registerAction:function(){return __},registerCoordinateSystem:function(){return b_},registerLayout:function(){return w_},registerLoading:function(){return M_},registerLocale:function(){return gh},registerMap:function(){return I_},registerPostInit:function(){return v_},registerPostUpdate:function(){return y_},registerPreprocessor:function(){return g_},registerProcessor:function(){return m_},registerTheme:function(){return p_},registerTransform:function(){return T_},registerVisual:function(){return k_},setCanvasCreator:function(){return A_},throttle:function(){return sg},time:function(){return h},use:function(){return R_},util:function(){return p},vector:function(){return r},version:function(){return hy},zrUtil:function(){return i},zrender:function(){return s}});var i={};n.r(i),n.d(i,{$override:function(){return E},HashMap:function(){return Ct},assert:function(){return _t},bind:function(){return J},clone:function(){return F},concatArray:function(){return Mt},createCanvas:function(){return j},createHashMap:function(){return St},createObject:function(){return At},curry:function(){return tt},defaults:function(){return H},each:function(){return q},eqNaN:function(){return ft},extend:function(){return B},filter:function(){return K},find:function(){return $},guid:function(){return L},hasOwn:function(){return It},indexOf:function(){return G},inherits:function(){return U},isArray:function(){return et},isArrayLike:function(){return Y},isBuiltInObject:function(){return st},isDom:function(){return ut},isFunction:function(){return nt},isGradientObject:function(){return ct},isImagePatternObject:function(){return ht},isNumber:function(){return ot},isObject:function(){return at},isPrimitive:function(){return kt},isRegExp:function(){return dt},isString:function(){return it},isStringSafe:function(){return rt},isTypedArray:function(){return lt},keys:function(){return Q},logError:function(){return N},map:function(){return X},merge:function(){return z},mergeAll:function(){return V},mixin:function(){return W},noop:function(){return Ot},normalizeCssArray:function(){return yt},reduce:function(){return Z},retrieve:function(){return pt},retrieve2:function(){return gt},retrieve3:function(){return mt},setAsPrimitive:function(){return wt},slice:function(){return vt},trim:function(){return bt}});var r={};n.r(r),n.d(r,{add:function(){return Nt},applyTransform:function(){return te},clone:function(){return Rt},copy:function(){return Et},create:function(){return Pt},dist:function(){return Zt},distSquare:function(){return $t},distance:function(){return Xt},distanceSquare:function(){return Kt},div:function(){return Ut},dot:function(){return Wt},len:function(){return Vt},lenSquare:function(){return Ht},length:function(){return Bt},lengthSquare:function(){return jt},lerp:function(){return Jt},max:function(){return ne},min:function(){return ee},mul:function(){return Gt},negate:function(){return Qt},normalize:function(){return qt},scale:function(){return Yt},scaleAndAdd:function(){return Ft},set:function(){return Lt},sub:function(){return zt}});var o={};n.r(o),n.d(o,{fastLerp:function(){return fn},fastMapToColor:function(){return pn},lerp:function(){return gn},lift:function(){return hn},lum:function(){return bn},mapToColor:function(){return mn},modifyAlpha:function(){return yn},modifyHSL:function(){return vn},parse:function(){return un},random:function(){return xn},stringify:function(){return _n},toHex:function(){return dn}});var a={};n.r(a),n.d(a,{clone:function(){return di},copy:function(){return ai},create:function(){return ri},identity:function(){return oi},invert:function(){return hi},mul:function(){return si},rotate:function(){return ui},scale:function(){return ci},translate:function(){return li}});var s={};n.r(s),n.d(s,{dispose:function(){return ar},disposeAll:function(){return sr},getInstance:function(){return lr},init:function(){return or},registerPainter:function(){return ur},version:function(){return cr}});var l={};n.r(l),n.d(l,{Arc:function(){return ju},BezierCurve:function(){return Vu},BoundingRect:function(){return Di},Circle:function(){return eu},CompoundPath:function(){return Gu},Ellipse:function(){return ru},Group:function(){return tr},Image:function(){return _s},IncrementalDisplayable:function(){return Ju},Line:function(){return Ru},LinearGradient:function(){return Wu},OrientedBoundingRect:function(){return $u},Path:function(){return ds},Point:function(){return wi},Polygon:function(){return Au},Polyline:function(){return Tu},RadialGradient:function(){return Yu},Rect:function(){return As},Ring:function(){return wu},Sector:function(){return _u},Text:function(){return zs},applyTransform:function(){return kc},clipPointsByRect:function(){return Ac},clipRectByRect:function(){return Ic},createIcon:function(){return Oc},extendPath:function(){return rc},extendShape:function(){return ic},getShapeClass:function(){return ac},getTransform:function(){return wc},groupTransition:function(){return Mc},initProps:function(){return vc},isElementRemoved:function(){return xc},lineLineIntersect:function(){return Dc},linePolygonIntersect:function(){return Tc},makeImage:function(){return lc},makePath:function(){return sc},mergePath:function(){return cc},registerShape:function(){return oc},removeElement:function(){return yc},removeElementWithFadeOut:function(){return bc},resizePath:function(){return hc},setTooltipConfig:function(){return Ec},subPixelOptimize:function(){return pc},subPixelOptimizeLine:function(){return dc},subPixelOptimizeRect:function(){return fc},transformDirection:function(){return Cc},updateProps:function(){return mc}});var u={};n.r(u),n.d(u,{createDimensions:function(){return fb},createList:function(){return Dx},createScale:function(){return Ex},createSymbol:function(){return jm},createTextStyle:function(){return Lx},dataStack:function(){return Px},enableHoverEmphasis:function(){return Ml},getECData:function(){return Vs},getLayoutRect:function(){return ld},mixinAxisModelCommonMethods:function(){return Rx}});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:function(){return br},asc:function(){return pr},getPercentWithPrecision:function(){return yr},getPixelPrecision:function(){return vr},getPrecision:function(){return gr},getPrecisionSafe:function(){return mr},isNumeric:function(){return Dr},isRadianAroundZero:function(){return wr},linearMap:function(){return hr},nice:function(){return Ar},numericToNumber:function(){return Tr},parseDate:function(){return Cr},quantile:function(){return Ir},quantity:function(){return Sr},quantityExponent:function(){return Mr},reformIntervals:function(){return Or},remRadian:function(){return xr},round:function(){return fr}});var h={};n.r(h),n.d(h,{format:function(){return Sh},parse:function(){return Cr}});var d={};n.r(d),n.d(d,{Arc:function(){return ju},BezierCurve:function(){return Vu},BoundingRect:function(){return Di},Circle:function(){return eu},CompoundPath:function(){return Gu},Ellipse:function(){return ru},Group:function(){return tr},Image:function(){return _s},IncrementalDisplayable:function(){return Ju},Line:function(){return Ru},LinearGradient:function(){return Wu},Polygon:function(){return Au},Polyline:function(){return Tu},RadialGradient:function(){return Yu},Rect:function(){return As},Ring:function(){return wu},Sector:function(){return _u},Text:function(){return zs},clipPointsByRect:function(){return Ac},clipRectByRect:function(){return Ic},createIcon:function(){return Oc},extendPath:function(){return rc},extendShape:function(){return ic},getShapeClass:function(){return ac},getTransform:function(){return wc},initProps:function(){return vc},makeImage:function(){return lc},makePath:function(){return sc},mergePath:function(){return cc},registerShape:function(){return oc},resizePath:function(){return hc},updateProps:function(){return mc}});var f={};n.r(f),n.d(f,{addCommas:function(){return jh},capitalFirst:function(){return td},encodeHTML:function(){return qh},formatTime:function(){return Jh},formatTpl:function(){return $h},getTextRect:function(){return Nx},getTooltipMarker:function(){return Qh},normalizeCssArray:function(){return Uh},toCamelCase:function(){return Gh},truncateText:function(){return ko}});var p={};n.r(p),n.d(p,{bind:function(){return J},clone:function(){return F},curry:function(){return tt},defaults:function(){return H},each:function(){return q},extend:function(){return B},filter:function(){return K},indexOf:function(){return G},inherits:function(){return U},isArray:function(){return et},isFunction:function(){return nt},isObject:function(){return at},isString:function(){return it},map:function(){return X},merge:function(){return z},reduce:function(){return Z}});var g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function m(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var v=function(){return(v=Object.assign||function(t){for(var e,n=1,i=arguments.length;n18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,b);var x=b,w={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},k={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},C=Object.prototype.toString,S=Array.prototype,M=S.forEach,A=S.filter,I=S.slice,O=S.map,T=(function(){}).constructor,D=T?T.prototype:null,P={};function E(t,e){P[t]=e}var R=2311;function L(){return R++}function N(){for(var t=[],e=0;e>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function he(t){return"CANVAS"===t.nodeName.toUpperCase()}var de="undefined"!=typeof window&&!!window.addEventListener,fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,pe=[];function ge(t,e,n,i){return n=n||{},i||!x.canvasSupported?me(t,e,n):x.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):me(t,e,n),n}function me(t,e,n){if(x.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(he(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ce(pe,t,i,r))return n.zrX=pe[0],void(n.zrY=pe[1])}n.zrX=n.zrY=0}function ve(t){return t||window.event}function ye(t,e,n){if(null!=(e=ve(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ge(t,r,e,n)}else{ge(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&fe.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function _e(t,e,n,i){de?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}var be=de?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function xe(t){return 2===t.which||3===t.which}var we=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ke(r)/ke(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},Se="silent";function Me(){be(this.event)}var Ae=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Dt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(oe),Ie=function(t,e){this.x=t,this.y=e},Oe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Te=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new Ie(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new Ae,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new re(o),o}return Dt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(q(Oe,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Pe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Ie(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ie(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Me}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Ie(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=De(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Se)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new we);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Ie;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(oe);function De(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}i=i.__hostTarget||i.parent}return!r||Se}return!1}function Pe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Te.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Pe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Ee=Te;function Re(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function Le(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ne(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Fe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ze(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)Le(t,n,i,n+(o=Re(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Fe(t[c],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(h=Ne(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===i){v=!0;break}}if(t[h--]=a[c--],1==--s){v=!0;break}if(0!=(m=s-Ne(t[u],a,0,s,s-1,e))){for(s-=m,f=1+(h-=m),d=1+(c-=m),l=0;l=7||m>=7);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Re(t,n,i,e))s&&(l=s),Le(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Ve=!1;function Be(){Ve||(Ve=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function He(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var je=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=He}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Be(),u.z=0),isNaN(u.z2)&&(Be(),u.z2=0),isNaN(u.zlevel)&&(Be(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ge="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ue={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ue.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ue.bounceIn(2*t):.5*Ue.bounceOut(2*t-1)+.5}},We=Ue,Ye=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?We[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){this._startTime=t-(t-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),qe=function(t){this.value=t},Xe=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new qe(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ze=function(){function t(t){this._list=new Xe,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new qe(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Ke={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function $e(t){return(t=Math.round(t))<0?0:t>255?255:t}function Qe(t){return t<0?0:t>1?1:t}function Je(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?$e(parseFloat(e)/100*255):$e(parseInt(e,10))}function tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Qe(parseFloat(e)/100):Qe(parseFloat(e))}function en(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function nn(t,e,n){return t+(e-t)*n}function rn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function on(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var an=new Ze(20),sn=null;function ln(t,e){sn&&on(sn,e),sn=an.put(t,sn||e.slice())}function un(t,e){if(t){e=e||[];var n=an.get(t);if(n)return on(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Ke)return on(e,Ke[i]),ln(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(rn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),ln(t,e),e):void rn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(rn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),ln(t,e),e):void rn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?rn(e,+u[0],+u[1],+u[2],1):rn(e,0,0,0,1);c=tn(u.pop());case"rgb":return 3!==u.length?void rn(e,0,0,0,1):(rn(e,Je(u[0]),Je(u[1]),Je(u[2]),c),ln(t,e),e);case"hsla":return 4!==u.length?void rn(e,0,0,0,1):(u[3]=tn(u[3]),cn(u,e),ln(t,e),e);case"hsl":return 3!==u.length?void rn(e,0,0,0,1):(cn(u,e),ln(t,e),e);default:return}}rn(e,0,0,0,1)}}function cn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=tn(t[1]),r=tn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return rn(e=e||[],$e(255*en(a,o,n+1/3)),$e(255*en(a,o,n)),$e(255*en(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function hn(t,e){var n=un(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return _n(n,4===n.length?"rgba":"rgb")}}function dn(t){var e=un(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=$e(nn(a[0],s[0],l)),n[1]=$e(nn(a[1],s[1],l)),n[2]=$e(nn(a[2],s[2],l)),n[3]=Qe(nn(a[3],s[3],l)),n}}var pn=fn;function gn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=un(e[r]),s=un(e[o]),l=i-r,u=_n([$e(nn(a[0],s[0],l)),$e(nn(a[1],s[1],l)),$e(nn(a[2],s[2],l)),Qe(nn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var mn=gn;function vn(t,e,n,i){var r=un(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=tn(n)),null!=i&&(r[2]=tn(i)),_n(cn(r),"rgba")}function yn(t,e){var n=un(t);if(n&&null!=e)return n[3]=Qe(e),_n(n,"rgba")}function _n(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function bn(t,e){var n=un(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function xn(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var wn=Array.prototype.slice;function kn(t,e,n){return(e-t)*n+t}function Cn(t,e,n,i){for(var r=e.length,o=0;oa)i.length=a;else for(var s=o;s=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(Y(e)){var r=function(t){return Y(t&&t[0])?2:1}(e);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof e[0]||2===r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r&&In(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=un(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);this._isAllValueEqual&&i>0&&(o=n[i-1],(this.isValueColor&&!In(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1))}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,r=e[i-1],o=0;o0&&o!==i-1&&An(e[o].value,r.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;o=0&&!(o[n].percent<=e);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;ne);n++);n=Math.min(n-1,a-2)}var c=o[n+1],h=o[n];if(h&&c){this._lastFrame=n,this._lastFramePercent=e;var d=c.percent-h.percent;if(0!==d){var f=(e-h.percent)/d,p=i?this._additiveValue:u?Ln:t[s];if((l>0||u)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=o[n][r],m=o[0===n?n:n-1][r],v=o[n>a-2?a-1:n+1][r],y=o[n>a-3?a-1:n+2][r];if(l>0)1===l?Tn(p,m,g,v,y,f,f*f,f*f*f):function(t,e,n,i,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;c0?1===l?Cn(p,h[r],c[r],f):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a.5?e:t}(h[r],c[r],f),i?this._additiveValue=_:t[s]=_);i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(un(t[n],Ln),Sn(Ln,Ln,i,1),t[n]=Pn(Ln)):t[n]=t[n]+i:1===e?Sn(t[n],t[n],i,1):2===e&&Mn(t[n],t[n],i,1)},t}(),Fn=function(){function t(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?N("Can' use additive animation on looped animation."):this._additiveAnimators=n}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,Q(e))},t.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,r=0;r0)){this._started=1;for(var n=this,i=[],r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(r.getAdditiveTrack())}}}},t}(),zn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n.onframe=e.onframe||function(){},n}return Dt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;){var r=i.next;i.step(e,n)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Ge(function e(){t._running&&(Ge(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Fn(t,e.loop);return this.addAnimator(n),n},e}(oe),Vn=x.domSupported,Bn=(Rn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:En=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:X(En,function(t){var e=t.replace("mouse","pointer");return Rn.hasOwnProperty(e)?e:t})}),Hn=["mousemove","mouseup"],jn=["pointermove","pointerup"],Gn=!1;function Un(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Wn(t){t&&(t.zrByTouch=!0)}function Yn(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var qn=function(t,e){this.stopPropagation=Ot,this.stopImmediatePropagation=Ot,this.preventDefault=Ot,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Xn={mousedown:function(t){t=ye(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ye(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ye(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Yn(this,(t=ye(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Gn=!0,t=ye(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Gn||(t=ye(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Wn(t=ye(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Xn.mousemove.call(this,t),Xn.mousedown.call(this,t)},touchmove:function(t){Wn(t=ye(this.dom,t)),this.handler.processGesture(t,"change"),Xn.mousemove.call(this,t)},touchend:function(t){Wn(t=ye(this.dom,t)),this.handler.processGesture(t,"end"),Xn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Xn.click.call(this,t)},pointerdown:function(t){Xn.mousedown.call(this,t)},pointermove:function(t){Un(t)||Xn.mousemove.call(this,t)},pointerup:function(t){Xn.mouseup.call(this,t)},pointerout:function(t){Un(t)||Xn.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],function(t){Xn[t]=function(e){e=ye(this.dom,e),this.trigger(t,e)}});var Zn={pointermove:function(t){Un(t)||Zn.mousemove.call(this,t)},pointerup:function(t){Zn.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Kn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,_e(t.domTarget,e,n,i)}function $n(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=o,i=r[o],de?e.removeEventListener(n,i,t.listenerOpts[o]):e.detachEvent("on"+n,i));t.mounted={}}var Qn=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Jn=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Qn(e,Xn),Vn&&(a._globalHandlerScope=new Qn(document,Zn)),i=a,o=(r=a._localHandlerScope).domHandlers,x.pointerEventsSupported?q(Bn.pointer,function(t){Kn(r,t,function(e){o[t].call(i,e)})}):(x.touchEventsSupported&&q(Bn.touch,function(t){Kn(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),q(Bn.mouse,function(t){Kn(r,t,function(e){e=ve(e),r.touching||o[t].call(i,e)})})),a}return Dt(e,t),e.prototype.dispose=function(){$n(this._localHandlerScope),Vn&&$n(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Vn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Kn(e,n,function(i){i=ve(i),Yn(t,i.target)||(i=function(t,e){return ye(t.dom,new qn(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}x.pointerEventsSupported?q(jn,n):x.touchEventsSupported||q(Hn,n)}(this,e):$n(e)}},e}(oe),ti=1;"undefined"!=typeof window&&(ti=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ei=ti,ni="#333",ii="#ccc";function ri(){return[1,0,0,1,0,0]}function oi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ai(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function si(t,e,n){var i=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],a=e[0]*n[4]+e[2]*n[5]+e[4],s=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=e[0]*n[0]+e[2]*n[1],t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t}function li(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ui(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function ci(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function hi(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(t[0]=a*(l=1/l),t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function di(t){var e=[1,0,0,1,0,0];return ai(e,t),e}var fi=oi;function pi(t){return t>5e-5||t<-5e-5}var gi,mi,vi=[],yi=[],_i=[1,0,0,1,0,0],bi=Math.abs,xi=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return pi(this.rotation)||pi(this.x)||pi(this.y)||pi(this.scaleX-1)||pi(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||[1,0,0,1,0,0],n?this.getLocalTransform(i):fi(i),e&&(n?si(i,t.transform,i):ai(i,t.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&fi(i)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(vi);var n=vi[0]<0?-1:1,i=vi[1]<0?-1:1,r=((vi[0]-n)*e+n)/vi[0]||0,o=((vi[1]-i)*e+i)/vi[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],hi(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(si(yi,t.invTransform,e),e=yi);var n=this.originX,i=this.originY;(n||i)&&(_i[4]=n,_i[5]=i,si(yi,e,_i),yi[4]-=n,yi[5]-=i,e=yi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&te(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&te(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&bi(t[0]-1)>1e-10&&bi(t[3]-1)>1e-10?Math.sqrt(bi(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*r-u*i*o,e[5]=-i*o-c*n*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=c*r,e[2]=u*o,a&&ui(e,e,a),e[4]+=n+s,e[5]+=i+l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),wi=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ki=Math.min,Ci=Math.max,Si=new wi,Mi=new wi,Ai=new wi,Ii=new wi,Oi=new wi,Ti=new wi,Di=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ki(t.x,this.x),n=ki(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Ci(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Ci(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return li(r,r,[-e.x,-e.y]),ci(r,r,[n,i]),li(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(op&&(p=_,wi.set(Ti,gp&&(p=b,wi.set(Ti,0,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[5];return e.x=n.x*r+i[4],e.y=n.y*o+a,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Si.x=Ai.x=n.x,Si.y=Ii.y=n.y,Mi.x=Ii.x=n.x+n.width,Mi.y=Ai.y=n.y+n.height,Si.transform(i),Ii.transform(i),Mi.transform(i),Ai.transform(i),e.x=ki(Si.x,Mi.x,Ai.x,Ii.x),e.y=ki(Si.y,Mi.y,Ai.y,Ii.y);var s=Ci(Si.x,Mi.x,Ai.x,Ii.x),l=Ci(Si.y,Mi.y,Ai.y,Ii.y);e.width=s-e.x,e.height=l-e.y}else e!==n&&t.copy(e,n)},t}(),Pi={},Ei="12px sans-serif";function Ri(t,e){var n=Pi[e=e||Ei];n||(n=Pi[e]=new Ze(500));var i=n.get(t);return null==i&&(i=function(t,e){return gi||(gi=j().getContext("2d")),mi!==e&&(mi=gi.font=e||Ei),gi.measureText(t)}(t,e).width,n.put(t,i)),i}function Li(t,e,n,i){var r=Ri(t,e),o=Vi(e),a=Fi(0,r,n),s=zi(0,o,i);return new Di(a,s,r,o)}function Ni(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Li(r[0],e,n,i);for(var o=new Di(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function Hi(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Bi(i[0],n.width),u+=Bi(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var ji="__zr_normal__",Gi=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Ui={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Wi={},Yi=new Di(0,0,0,0),qi=function(){function t(t){this.id=L(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.attachedTransform,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.x=e.x,r.y=e.y,r.originX=e.originX,r.originY=e.originY,r.rotation=e.rotation,r.scaleX=e.scaleX,r.scaleY=e.scaleY,null!=n.position){var u=Yi;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wi,n,u):Hi(Wi,n,u),r.x=Wi.x,r.y=Wi.y,o=Wi.align,a=Wi.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=Bi(c[0],u.width),d=Bi(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(v=n.insideStroke,null!=(m=n.insideFill)&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(v=n.outsideStroke,null!=(m=n.outsideFill)&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ii:ni},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&un(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,_n(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(at(t))for(var n=Q(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ji,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===ji;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(G(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}N("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=G(i,t),o=G(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o8)&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function Xi(t,e,n,i,r){var o=[];$i(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d0||r.force&&!a.length){for(var y=t.animators,_=[],b=0;b=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=G(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(t){},t.prototype.removeHover=function(t){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function dr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function fr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function pr(t){return t.sort(function(t,e){return t-e}),t}function gr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return mr(t)}function mr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(".");return Math.max(0,(o<0?0:r-1-o)-i)}function vr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function yr(t,e,n){if(!t[e])return 0;var i=Z(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=X(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=X(o,function(t){return Math.floor(t)}),l=Z(s,function(t,e){return t+e},0),u=X(o,function(t,e){return t-s[e]});lc&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/r}function _r(t,e){var n=Math.max(gr(t),gr(e)),i=t+e;return n>20?i:fr(i,n)}var br=9007199254740991;function xr(t){var e=2*Math.PI;return(t%e+e)%e}function wr(t){return t>-1e-4&&t<1e-4}var kr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Cr(t){if(t instanceof Date)return t;if("string"==typeof t){var e=kr.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Sr(t){return Math.pow(10,Mr(t))}function Mr(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Ar(t,e){var n=Mr(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Ir(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Or(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i=0||r&&G(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var go=po([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return go(this,t,e)},t}(),vo=new Ze(50);function yo(t){if("string"==typeof t){var e=vo.get(t);return e&&e.image}return t}function _o(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=vo.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!xo(e=o.image)&&o.pending.push(a):((e=new Image).onload=e.onerror=bo,vo.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function bo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ri(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function So(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Ri(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Mo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Ri(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function Mo(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&p+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=p}else{var g=Eo(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m=33&&e<=255}(t)||!!Do[t]}function Eo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Ro="__zr_style_"+Math.round(10*Math.random()),Lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},No={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Lo[Ro]=!0;var Fo=["z","z2","invisible"],zo=["invisible"],Vo=function(t){function e(e){return t.call(this,e)||this}var n;return Dt(e,t),e.prototype._init=function(e){for(var n=Q(e),i=0;i-1e-8&&t<1e-8}function Qo(t){return t>1e-8||t<-1e-8}function Jo(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ta(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ea(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if($o(c)&&$o(h))$o(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[f++]=C);else{var p=h*h-4*c*d;if($o(p)){var g=h/c,m=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=Uo(p),y=c*s+1.5*a*(-h+v),_=c*s+1.5*a*(-h-v);(C=(-s-((y=y<0?-Go(-y,qo):Go(y,qo))+(_=_<0?-Go(-_,qo):Go(_,qo))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var b=(2*c*s-3*a*h)/(2*Uo(c*c*c)),x=Math.acos(b)/3,w=Uo(c),k=Math.cos(x),C=(-s-2*w*k)/(3*a),S=(m=(-s+w*(k+Yo*Math.sin(x)))/(3*a),(-s+w*(k-Yo*Math.sin(x)))/(3*a));C>=0&&C<=1&&(o[f++]=C),m>=0&&m<=1&&(o[f++]=m),S>=0&&S<=1&&(o[f++]=S)}}return f}function na(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if($o(a))Qo(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if($o(u))r[0]=-o/(2*a);else if(u>0){var c,h=Uo(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function ia(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ra(t,e,n,i,r,o,a,s,l,u,c){var h,d,f,p,g,m=.005,v=1/0;Xo[0]=l,Xo[1]=u;for(var y=0;y<1;y+=.05)Zo[0]=Jo(t,n,r,a,y),Zo[1]=Jo(e,i,o,s,y),(p=$t(Xo,Zo))=0&&p=0&&m1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(va[0]=ga(r)*n+t,va[1]=pa(r)*i+e,ya[0]=ga(o)*n+t,ya[1]=pa(o)*i+e,u(s,va,ya),c(l,va,ya),(r%=ma)<0&&(r+=ma),(o%=ma)<0&&(o+=ma),r>o&&!a?o+=ma:rr&&(_a[0]=ga(f)*n+t,_a[1]=pa(f)*i+e,u(s,_a,s),c(l,_a,l))}var Aa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ia=[],Oa=[],Ta=[],Da=[],Pa=[],Ea=[],Ra=Math.min,La=Math.max,Na=Math.cos,Fa=Math.sin,za=Math.sqrt,Va=Math.abs,Ba=Math.PI,Ha=2*Ba,ja="undefined"!=typeof Float32Array,Ga=[];function Ua(t){return Math.round(t/Ba*1e8)/1e8%2*Ba}function Wa(t,e){var n=Ua(t[0]);n<0&&(n+=Ha);var i=t[1];i+=n-t[0],!e&&i-n>=Ha?i=n+Ha:e&&n-i>=Ha?i=n-Ha:!e&&n>i?i=n+(Ha-Ua(n-i)):e&&n0&&(this._ux=Va(n/ei/t)||0,this._uy=Va(n/ei/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Aa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Va(t-this._xi),i=Va(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Aa.L,t,e),this._ctx&&r&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this.addData(Aa.C,t,e,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(Aa.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){return Ga[0]=i,Ga[1]=r,Wa(Ga,o),this.addData(Aa.A,t,e,n,n,i=Ga[0],(r=Ga[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Na(r)*n+t,this._yi=Fa(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Aa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Aa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e0&&f<=t||c<0&&f>=t||0===c&&(h>0&&p<=e||h<0&&p>=e);)f+=c*(n=o[i=this._dashIdx]),p+=h*n,this._dashIdx=(i+1)%g,c>0&&fl||h>0&&pu||a[i%2?"moveTo":"lineTo"](c>=0?Ra(f,t):La(f,t),h>=0?Ra(p,e):La(p,e));this._dashOffset=-za((c=f-t)*c+(h=p-e)*h)},t.prototype._dashedBezierTo=function(t,e,n,i,r,o){var a,s,l,u,c,h=this._ctx,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._xi,m=this._yi,v=0,y=this._dashIdx,_=p.length,b=0;for(f<0&&(f=d+f),f%=d,a=0;a<1;a+=.1)s=Jo(g,t,n,r,a+.1)-Jo(g,t,n,r,a),l=Jo(m,e,i,o,a+.1)-Jo(m,e,i,o,a),v+=za(s*s+l*l);for(;y<_&&!((b+=p[y])>f);y++);for(a=(b-f)/v;a<=1;)u=Jo(g,t,n,r,a),c=Jo(m,e,i,o,a),y%2?h.moveTo(u,c):h.lineTo(u,c),a+=p[y]/v,y=(y+1)%_;y%2!=0&&h.lineTo(r,o),this._dashOffset=-za((s=r-u)*s+(l=o-c)*l)},t.prototype._dashedQuadraticTo=function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,this._dashedBezierTo(t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,n,i,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ja&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ta[0]=Ta[1]=Pa[0]=Pa[1]=Number.MAX_VALUE,Da[0]=Da[1]=Ea[0]=Ea[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||Va(m)>i||h===e-1)&&(p=Math.sqrt(O*O+m*m),r=g,o=_);break;case Aa.C:var v=t[h++],y=t[h++],_=(g=t[h++],t[h++]),b=t[h++],x=t[h++];p=oa(r,o,v,y,g,_,b,x,10),r=b,o=x;break;case Aa.Q:p=ha(r,o,v=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Aa.A:var w=t[h++],k=t[h++],C=t[h++],S=t[h++],M=t[h++],A=t[h++],I=A+M;h+=1,h++,f&&(a=Na(M)*C+w,s=Fa(M)*S+k),p=La(C,S)*Ra(Ha,Math.abs(A)),r=Na(I)*C+w,o=Fa(I)*S+k;break;case Aa.R:a=r=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case Aa.Z:var O=a-r;m=s-o,p=Math.sqrt(O*O+m*m),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,m=e<1,v=0,y=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var b=0;b0&&(t.lineTo(c,h),_=0),n=r=d[b++],i=o=d[b++],t.moveTo(r,o);break;case Aa.L:a=d[b++],s=d[b++];var k=Va(a-r),C=Va(s-o);if(k>f||C>p){if(m){if(v+(q=l[y++])>u){t.lineTo(r*(1-(X=(u-v)/q))+a*X,o*(1-X)+s*X);break t}v+=q}t.lineTo(a,s),r=a,o=s,_=0}else{var S=k*k+C*C;S>_&&(c=a,h=s,_=S)}break;case Aa.C:var M=d[b++],A=d[b++],I=d[b++],O=d[b++],T=d[b++],D=d[b++];if(m){if(v+(q=l[y++])>u){ia(r,M,I,T,X=(u-v)/q,Ia),ia(o,A,O,D,X,Oa),t.bezierCurveTo(Ia[1],Oa[1],Ia[2],Oa[2],Ia[3],Oa[3]);break t}v+=q}t.bezierCurveTo(M,A,I,O,T,D),r=T,o=D;break;case Aa.Q:if(M=d[b++],A=d[b++],I=d[b++],O=d[b++],m){if(v+(q=l[y++])>u){ua(r,M,I,X=(u-v)/q,Ia),ua(o,A,O,X,Oa),t.quadraticCurveTo(Ia[1],Oa[1],Ia[2],Oa[2]);break t}v+=q}t.quadraticCurveTo(M,A,I,O),r=I,o=O;break;case Aa.A:var P=d[b++],E=d[b++],R=d[b++],L=d[b++],N=d[b++],F=d[b++],z=d[b++],V=!d[b++],B=R>L?R:L,H=Va(R-L)>.001,j=N+F,G=!1;if(m&&(v+(q=l[y++])>u&&(j=N+F*(u-v)/q,G=!0),v+=q),H&&t.ellipse?t.ellipse(P,E,R,L,z,N,j,V):t.arc(P,E,B,N,j,V),G)break t;w&&(n=Na(N)*R+P,i=Fa(N)*L+E),r=Na(j)*R+P,o=Fa(j)*L+E;break;case Aa.R:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var U=d[b++],W=d[b++];if(m){if(v+(q=l[y++])>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+Ra(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+Ra(Y,W)),(Y-=W)>0&&t.lineTo(a+La(U-Y,0),s+W),(Y-=U)>0&&t.lineTo(a,s+La(W-Y,0));break t}v+=q}t.rect(a,s,U,W);break;case Aa.Z:if(_>0&&(t.lineTo(c,h),_=0),m){var q;if(v+(q=l[y++])>u){var X;t.lineTo(r*(1-(X=(u-v)/q))+n*X,o*(1-X)+i*X);break t}v+=q}t.closePath(),r=n,o=i}}},t.CMD=Aa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function qa(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||at+l&&o>n+l||oe+h&&c>i+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>r+h&&u>a+h||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=Qa);var d=Math.atan2(l,s);return d<0&&(d+=Qa),d>=i&&d<=r||d+Qa>=i&&d+Qa<=r}function ts(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var es=Ya.CMD,ns=2*Math.PI,is=[-1,-1,-1],rs=[-1,-1];function os(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(c=rs[0],rs[0]=rs[1],rs[1]=c),p=Jo(e,i,o,s,rs[0]),f>1&&(g=Jo(e,i,o,s,rs[1]))),d+=2===f?ve&&s>i&&s>o||s=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if($o(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Uo(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,is);if(0===l)return 0;var u=la(e,i,o);if(u>=0&&u<=1){for(var c=0,h=aa(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);is[0]=-l,is[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ns-1e-4){i=0,r=ns;var c=o?1:-1;return a>=is[0]+t&&a<=is[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ns,r+=ns);for(var d=0,f=0;f<2;f++){var p=is[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=ns+g),(g>=i&&g<=r||g+ns>=i&&g+ns<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ls(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,f=0,p=0;p1&&(n||(u+=ts(c,h,d,f,i,r))),m&&(d=c=s[p],f=h=s[p+1]),g){case es.M:c=d=s[p++],h=f=s[p++];break;case es.L:if(n){if(qa(c,h,s[p],s[p+1],e,i,r))return!0}else u+=ts(c,h,s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.C:if(n){if(Xa(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,i,r))return!0}else u+=os(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.Q:if(n){if(Za(c,h,s[p++],s[p++],s[p],s[p+1],e,i,r))return!0}else u+=as(c,h,s[p++],s[p++],s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.A:var v=s[p++],y=s[p++],_=s[p++],b=s[p++],x=s[p++],w=s[p++];p+=1;var k=!!(1-s[p++]);o=Math.cos(x)*_+v,a=Math.sin(x)*b+y,m?(d=o,f=a):u+=ts(c,h,o,a,i,r);var C=(i-v)*b/_+v;if(n){if(Ja(v,y,b,x,x+w,k,e,C,r))return!0}else u+=ss(v,y,b,x,x+w,k,C,r);c=Math.cos(x+w)*_+v,h=Math.sin(x+w)*b+y;break;case es.R:if(d=c=s[p++],f=h=s[p++],o=d+s[p++],a=f+s[p++],n){if(qa(d,f,o,f,e,i,r)||qa(o,f,o,a,e,i,r)||qa(o,a,d,a,e,i,r)||qa(d,a,d,f,e,i,r))return!0}else u+=ts(o,f,o,a,i,r),u+=ts(d,a,d,f,i,r);break;case es.Z:if(n){if(qa(c,h,d,f,e,i,r))return!0}else u+=ts(c,h,d,f,i,r);c=d,h=f}}return n||Math.abs(h-f)<1e-4||(u+=ts(c,h,d,f,i,r)||0),0!==u}var us=H({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Lo),cs={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},No.style)},hs=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],ds=function(t){function e(e){return t.call(this,e)||this}var n;return Dt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?ni:e>.2?"#eee":ii}if(t)return ii}return ni},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(it(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==bn(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.createPathProxy=function(){this.path=new Ya(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(i.contain(t=n[0],e=n[1])){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ls(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ls(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return At(us,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=B({},i.shape),B(s,n.shape)):(s=B({},r?this.shape:i.shape),B(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=B({},this.shape);for(var u={},c=Q(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return At(fs,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Ni(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(jo);ps.prototype.type="tspan";var gs=ps,ms=H({x:0,y:0},Lo),vs={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},No.style)},ys=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.createStyle=function(t){return At(ms,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Di(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(jo);ys.prototype.type="image";var _s=ys,bs=Math.round;function xs(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(bs(2*i)===bs(2*r)&&(t.x1=t.x2=ks(i,s,!0)),bs(2*o)===bs(2*a)&&(t.y1=t.y2=ks(o,s,!0)),t):t}}function ws(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ks(i,s,!0),t.y=ks(r,s,!0),t.width=Math.max(ks(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ks(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ks(t,e,n){if(!e)return t;var i=bs(2*t);return(i+bs(e))%2==0?i/2:(i+(n?1:-1))/2}var Cs=function(){this.x=0,this.y=0,this.width=0,this.height=0},Ss={},Ms=function(t){function e(e){return t.call(this,e)||this}return Dt(e,t),e.prototype.getDefaultShape=function(){return new Cs},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ws(Ss,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ds);Ms.prototype.type="rect";var As=Ms,Is={fill:"#000"},Os={style:H({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},No.style)},Ts=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Is,n.attr(e),n}return Dt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&u){var f=Math.floor(d/l);n=n.slice(0,f)}var p=d,g=c;if(r&&(p+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var m=Co(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,S=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=i.calculatedLineHeight,A=0;Al&&To(n,t.substring(l,u),e,s),To(n,i[2],e,s,i[1]),l=wo.lastIndex}lo){x>0?(y.tokens=y.tokens.slice(0,x),m(y,b,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var A=w.width,I=null==A||"auto"===A;if("string"==typeof A&&"%"===A.charAt(A.length-1))P.percentWidth=A,c.push(P),P.contentWidth=Ri(P.text,S);else{if(I){var O=w.backgroundColor,T=O&&O.image;T&&xo(T=yo(T))&&(P.width=Math.max(P.width,T.width*M/T.height))}var D=p&&null!=r?r-b:null;null!=D&&D=0&&"right"===(S=v[C]).align;)this._placeToken(S,t,_,d,k,"right",p),b-=S.width,k-=S.width,C--;for(w+=(n-(w-h)-(f-k)-b)/2;x<=C;)this._placeToken(S=v[x],t,_,d,w+S.width/2,"center",p),w+=S.width,x++;d+=_}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fs(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Ls(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(gs),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,m=0,v=Rs("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,p.fill)),y=Rs("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!g?null:(m=2,p.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||Ei,f.opacity=mt(s.opacity,e.opacity,1),y&&(f.lineWidth=mt(s.lineWidth,e.lineWidth,m),f.lineDash=gt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=y),v&&(f.fill=v);var b=t.contentWidth,x=t.contentHeight;d.setBoundingRect(new Di(Fi(f.x,b,f.textAlign),zi(f.y,x,f.textBaseline),b,x))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,g=this;if(f||c&&h){(a=this._getOrCreateChild(As)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=gt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(_s)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=gt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=mt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&bt(e)||t.textFont||t.font},e}(jo),Ds={left:!0,right:1,center:1},Ps={top:1,bottom:1,middle:1};function Es(t){if(t){t.font=Ts.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ds[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ps[n]?n:"top",t.padding&&(t.padding=yt(t.padding))}}function Rs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ls(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ns(t){var e=t.text;return null!=e&&(e+=""),e}function Fs(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var zs=Ts,Vs=qr(),Bs=1,Hs={},js=qr(),Gs=["emphasis","blur","select"],Us=["normal","emphasis","blur","select"],Ws="highlight",Ys="downplay",qs="select",Xs="unselect",Zs="toggleSelect";function Ks(t){return null!=t&&"none"!==t}var $s=new Ze(100);function Qs(t){if("string"!=typeof t)return t;var e=$s.get(t);return e||(e=hn(t,-.1),$s.put(t,e)),e}function Js(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function tl(t){Js(t,"emphasis",2)}function el(t){2===t.hoverState&&Js(t,"normal",0)}function nl(t){Js(t,"blur",1)}function il(t){1===t.hoverState&&Js(t,"normal",0)}function rl(t){t.selected=!0}function ol(t){t.selected=!1}function al(t,e,n){e(t,n)}function sl(t,e,n){al(t,e,n),t.isGroup&&t.traverse(function(t){al(t,e,n)})}function ll(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ul(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&G(n,"select")>=0,o=!1;if(t instanceof ds){var a=js(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Ks(s)||Ks(l)){var u=(i=i||{}).style||{};!Ks(u.fill)&&Ks(s)?(o=!0,i=B({},i),(u=B({},u)).fill=Qs(s)):!Ks(u.stroke)&&Ks(l)&&(o||(i=B({},i),u=B({},u)),u.stroke=Qs(l)),i.style=u}}if(i&&null==i.z2){o||(i=B({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=G(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Ml(t,e,n){Dl(t,!0),sl(t,cl),Al(t,e,n)}function Al(t,e,n){var i=Vs(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Il=["emphasis","blur","select"],Ol={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Tl(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=Vl(p),s*=Vl(p));var g=(r===o?-1:1)*Vl((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Hl(h)*m-Bl(h)*v,_=(e+i)/2+Bl(h)*m+Hl(h)*v,b=Wl([1,0],[(d-m)/a,(f-v)/s]),x=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],k=Wl(x,w);if(Ul(x,w)<=-1&&(k=jl),Ul(x,w)>=1&&(k=0),k<0){var C=Math.round(k/jl*1e6)/1e6;k=2*jl+C%2*jl}c.addData(u,y,_,a,s,b,k,h,o)}var ql=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.applyTransform=function(t){},e}(ds);function Kl(t){return null!=t.setData}function $l(t,e){var n=function(t){var e=new Ya;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Ya.CMD,l=t.match(ql);if(!l)return e;for(var u=0;uT*T+D*D&&(C=M,S=A),{cx:C,cy:S,x01:-c,y01:-h,x11:C*(r/x-1),y11:S*(r/x-1)}}var vu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},yu=function(t){function e(e){return t.call(this,e)||this}return Dt(e,t),e.prototype.getDefaultShape=function(){return new vu},e.prototype.buildPath=function(t,e){!function(t,e){var n=fu(e.r,0),i=fu(e.r0||0,0),r=n>0;if(r||i>0){if(r||(n=i,i=0),i>n){var o=n;n=i,i=o}var a,s=!!e.clockwise,l=e.startAngle,u=e.endAngle;if(l===u)a=0;else{var c=[l,u];Wa(c,!s),a=hu(c[0]-c[1])}var h=e.cx,d=e.cy,f=e.cornerRadius||0,p=e.innerCornerRadius||0;if(n>gu)if(a>au-gu)t.moveTo(h+n*lu(l),d+n*su(l)),t.arc(h,d,n,l,u,!s),i>gu&&(t.moveTo(h+i*lu(u),d+i*su(u)),t.arc(h,d,i,u,l,s));else{var g=hu(n-i)/2,m=pu(g,f),v=pu(g,p),y=v,_=m,b=n*lu(l),x=n*su(l),w=i*lu(u),k=i*su(u),C=void 0,S=void 0,M=void 0,A=void 0;if((m>gu||v>gu)&&(C=n*lu(u),S=n*su(u),M=i*lu(l),A=i*su(l),agu)if(_>gu){var L=mu(M,A,b,x,n,_,s),N=mu(C,S,w,k,n,_,s);t.moveTo(h+L.cx+L.x01,d+L.cy+L.y01),_gu&&a>gu?y>gu?(L=mu(w,k,C,S,i,-y,s),N=mu(b,x,M,A,i,-y,s),t.lineTo(h+L.cx+L.x01,d+L.cy+L.y01),y=2){if(i&&"spline"!==i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;dn-2?n-1:l+1],f=t[l>n-3?n-1:l+2]);var p=u*u,g=u*p;i.push([ku(c[0],h[0],d[0],f[0],u,p,g),ku(c[1],h[1],d[1],f[1],u,p,g)])}return i}(r,n)),t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;sXu[1]){if(a=!1,r)return a;var u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)>i.len()&&wi.scale(i,l,u0?l?e.animateFrom(n,{duration:p,delay:m||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:p,delay:m||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function mc(t,e,n,i,r,o){gc("update",t,e,n,i,r,o)}function vc(t,e,n,i,r,o){gc("init",t,e,n,i,r,o)}function yc(t,e,n,i,r,o){xc(t)||gc("remove",t,e,n,i,r,o)}function _c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),yc(t,{style:{opacity:0}},e,n,i)}function bc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||_c(t,e,n,i)}):_c(t,e,n,i)}function xc(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Sc(t){return!t.isGroup}function Mc(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Sc(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Sc(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),mc(t,i,n,Vs(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=B({},t.shape)),e}}function Ac(t,e){return X(t,function(t){var n=t[0];n=tc(n,e.x),n=ec(n,e.x+e.width);var i=t[1];return i=tc(i,e.y),[n,i=ec(i,e.y+e.height)]})}function Ic(t,e){var n=tc(t.x,e.x),i=ec(t.x+t.width,e.x+e.width),r=tc(t.y,e.y),o=ec(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Oc(t,e,n){var i=B({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),H(r,n),new _s(i)):sc(t.replace("path://",""),i,n,"center")}function Tc(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var p=t-r,g=e-o,m=Pc(p,g,u,c)/f;if(m<0||m>1)return!1;var v=Pc(p,g,h,d)/f;return!(v<0||v>1)}function Pc(t,e,n,i){return t*i-n*e}function Ec(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=it(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&q(Q(l),function(t){It(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Vs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:H({content:i,formatterParams:s},r)}}oc("circle",eu),oc("ellipse",ru),oc("sector",_u),oc("ring",wu),oc("polygon",Au),oc("polyline",Tu),oc("rect",As),oc("line",Ru),oc("bezierCurve",Vu),oc("arc",ju);var Rc={};function Lc(t,e){for(var n=0;n-1?hh:"EN";function gh(t,e){t=t.toUpperCase(),fh[t]=new sh(e),dh[t]=e}gh("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),gh(hh,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var mh=36e5,vh=864e5,yh=31536e6,_h={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},bh={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+_h.hour,minute:"{yyyy}-{MM}-{dd} "+_h.minute,second:"{yyyy}-{MM}-{dd} "+_h.second,millisecond:_h.none},xh=["year","month","day","hour","minute","second","millisecond"],wh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function kh(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ch(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Sh(t,e,n,i){var r=Cr(t),o=r[Ih(n)](),a=r[Oh(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Th(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Dh(n)](),h=(c-1)%12+1,d=r[Ph(n)](),f=r[Eh(n)](),p=r[Rh(n)](),g=(i instanceof sh?i:function(t){return fh[t]}(i||ph)||fh.EN).getModel("time"),m=g.get("month"),v=g.get("monthAbbr"),y=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,kh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,kh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,kh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,kh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,kh(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,kh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,kh(p,3)).replace(/{S}/g,p+"")}function Mh(t,e){var n=Cr(t),i=n[Oh(e)]()+1,r=n[Th(e)](),o=n[Dh(e)](),a=n[Ph(e)](),s=n[Eh(e)](),l=0===n[Rh(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Ah(t,e,n){var i="number"==typeof t?Cr(t):t;switch(e=e||Mh(t,n)){case"year":return i[Ih(n)]();case"half-year":return i[Oh(n)]()>=6?1:0;case"quarter":return Math.floor((i[Oh(n)]()+1)/4);case"month":return i[Oh(n)]();case"day":return i[Th(n)]();case"half-day":return i[Dh(n)]()/24;case"hour":return i[Dh(n)]();case"minute":return i[Ph(n)]();case"second":return i[Eh(n)]();case"millisecond":return i[Rh(n)]()}}function Ih(t){return t?"getUTCFullYear":"getFullYear"}function Oh(t){return t?"getUTCMonth":"getMonth"}function Th(t){return t?"getUTCDate":"getDate"}function Dh(t){return t?"getUTCHours":"getHours"}function Ph(t){return t?"getUTCMinutes":"getMinutes"}function Eh(t){return t?"getUTCSeconds":"getSeconds"}function Rh(t){return t?"getUTCSeconds":"getSeconds"}function Lh(t){return t?"setUTCFullYear":"setFullYear"}function Nh(t){return t?"setUTCMonth":"setMonth"}function Fh(t){return t?"setUTCDate":"setDate"}function zh(t){return t?"setUTCHours":"setHours"}function Vh(t){return t?"setUTCMinutes":"setMinutes"}function Bh(t){return t?"setUTCSeconds":"setSeconds"}function Hh(t){return t?"setUTCSeconds":"setSeconds"}function jh(t){if(!Dr(t))return it(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Uh=yt,Wh=/([&<>"'])/g,Yh={"&":"&","<":"<",">":">",'"':""","'":"'"};function qh(t){return null==t?"":(t+"").replace(Wh,function(t,e){return Yh[e]})}function Xh(t,e,n){function i(t){return t&&bt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Cr(t):t;if(!isNaN(+s))return Sh(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return rt(t)?i(t):ot(t)&&r(t)?t+"":"-";var l=Tr(t);return r(l)?jh(l):rt(t)?i(t):"-"}var Zh=["a","b","c","d","e","f","g"],Kh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $h(t,e,n){et(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Jh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Cr(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return t.replace("MM",kh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",kh(s,2)).replace("d",s).replace("hh",kh(l,2)).replace("h",l).replace("mm",kh(u,2)).replace("m",u).replace("ss",kh(c,2)).replace("s",c).replace("SSS",kh(h,3))}function td(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ed(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function nd(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var id=q,rd=["left","right","top","bottom","width","height"],od=[["width","left","right"],["height","top","bottom"]];function ad(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);(h=a+m)>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}var sd=ad;function ld(t,e,n){n=Uh(n||0);var i=e.width,r=e.height,o=dr(t.left,i),a=dr(t.top,r),s=dr(t.right,i),l=dr(t.bottom,r),u=dr(t.width,i),c=dr(t.height,r),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new Di(o+n[3],a+n[0],u,c);return p.margin=n,p}function ud(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new Di(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}var c=ld(H({width:l.width,height:l.height},e),n,i),h=o?c.x-l.x:0,d=a?c.y-l.y:0;"raw"===s?(t.x=h,t.y=d):(t.x+=h,t.y+=d),t.markRedraw()}}function cd(t){var e=t.layoutMode||t.constructor.layoutMode;return at(e)?e:e?{type:e}:null}function hd(t,e,n){var i=n&&n.ignoreSize;!et(i)&&(i=[i,i]);var r=a(od[0],0),o=a(od[1],1);function a(n,r){var o={},a=0,u={},c=0;if(id(n,function(e){u[e]=t[e]}),id(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h=0;a--)o=z(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Jr(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(sh);lo(gd,sh),fo(gd),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=oo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=oo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(gd),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=function(t){var e={},i=[];return q(t,function(r){var o,a,s=n(e,r),l=function(t,e){var n=[];return q(t,function(t){G(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(a=[],q(gd.getClassesByMainType(o=r),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=X(a,function(t){return oo(t).main}),"dataset"!==o&&G(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&i.push(r),q(l,function(t){G(s.predecessor,t)<0&&s.predecessor.push(t);var i=n(e,t);G(i.successor,t)<0&&i.successor.push(r)})}),{graph:e,noEntryList:i}}(e),a=o.graph,s=o.noEntryList,l={};for(q(t,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),q(c.successor,h?f:d)}q(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}(gd);var md=gd,vd="";"undefined"!=typeof navigator&&(vd=navigator.platform||"");var yd="rgba(0, 0, 0, 0.2)",_d={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},bd=St(["tooltip","label","itemName","itemId","seriesName"]),xd="original",wd="arrayRows",kd="objectRows",Cd="keyedColumns",Sd="typedArray",Md="unknown",Ad="column",Id="row",Od=qr();function Td(t,e,n){var i={},r=Pd(e);if(!r||!t)return i;var o,a,s=[],l=[],u=Od(e.ecModel).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;q(t=t.slice(),function(e,n){var r=at(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]});var h=u.get(c)||u.set(c,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new sh(i),this._locale=new sh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=qd(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,qd(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Fd(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&q(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=St(),s=e&&e.replaceMergeMainTypeMap;Od(this).datasetMap=St(),q(t,function(t,e){null!=t&&(md.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?F(t):z(n[e],t,!0))}),s&&s.each(function(t,e){md.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),md.topologicalTravel(o,md.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=zd.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Nr(t[e])),a=i.get(e),l=Br(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){q(t,function(t){var i=t.newOption;at(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,md),n[e]=null,i.set(e,null),r.set(e,0);var u=[],c=[],h=0;q(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o=md.getClass(e,t.keyInfo.subType,!("series"===e));if(!o)return;if(i&&i.constructor===o)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var a=B({componentIndex:n},t.keyInfo);B(i=new o(r,this,this,a),a),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(u.push(i.option),c.push(i),h++):(u.push(void 0),c.push(void 0))},this),n[e]=u,i.set(e,c),r.set(e,h),"series"===e&&Ld(this)},this),this._seriesIndices||Ld(this)},e.prototype.getOption=function(){var t=F(this.option);return q(t,function(e,n){if(md.hasClass(n)){for(var i=Nr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Wr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){return this.getLocaleModel().get(t)},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}var ef=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(q(Nr(t.series),function(t){t&&t.data&<(t.data)&&wt(t.data)}),q(Nr(t.dataset),function(t){t&&t.source&<(t.source)&&wt(t.source)})),t=F(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){q(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&et(u)&&q(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),d(r),q(l,function(t){return d(t)}),q(o,function(t){return d(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],F(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=F(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!r.length&&!o)return s;for(var l=0,u=r.length;l=0;p--){var g=t[p];if(a||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d=_r(d,m),f=m;break}}}return i[0]=d,i[1]=f,i});o.hostModel.setData(s),e.data=s})}var kf,Cf,Sf,Mf,Af,If=function(t){this.data=t.data||(t.sourceFormat===Cd?{}:[]),this.sourceFormat=t.sourceFormat||Md,this.seriesLayoutBy=t.seriesLayoutBy||Ad,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption};function Of(t){return t instanceof If}function Tf(t,e,n,i){n=n||Ef(t);var r=e.seriesLayoutBy,o=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Rf(r),startIndex:a,dimensionsDetectedCount:o};if(e===wd){var s=t;"auto"===i||null==i?Lf(function(t){null!=t&&"-"!==t&&(it(t)?null==a&&(a=1):a=0)},n,s,10):a=ot(i)?i:i?1:0,r||1!==a||(r=[],Lf(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Id?s.length:s[0]?s[0].length:null}else if(e===kd)r||(r=function(t){for(var e,n=0;nu&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},op=function(){function t(t,e){"number"!=typeof e&&tp(""),this._opFn=rp[t],this._rvalFloat=Tr(e)}return t.prototype.evaluate=function(t){return this._opFn("number"==typeof t?t:Tr(t),this._rvalFloat)},t}(),ap=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,r="number"===n?t:Tr(t),o="number"===i?e:Tr(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?t:0),u&&(o=l?e:0)}return ro?-this._resultLT:0},t}(),sp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Tr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Tr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function lp(t,e){return"eq"===t||"ne"===t?new sp("eq"===t,e):It(rp,t)?new op(t,e):null}var up=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ep(t,e)},t}();function cp(t){return mp(t.sourceFormat)||tp(""),t.data}function hp(t){var e=t.sourceFormat,n=t.data;if(mp(e)||tp(""),e===wd){for(var i=[],r=0,o=n.length;r9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(_p(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=lt(a=o.get("data",!0))?Sd:xd,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null;t=[Tf(a,{seriesLayoutBy:gt(c.seriesLayoutBy,h?h.seriesLayoutBy:null),sourceHeader:gt(c.sourceHeader,h?h.sourceHeader:null),dimensions:gt(c.dimensions,h?h.dimensions:null)},s,o.get("encode",!0))]}else{var d=n;if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[Tf(d.get("source",!0),this._getSourceMetaRawOption(),null,null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&bp("");var o,a=[],s=[];return q(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||bp(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e,n){var i=Nr(t),r=i.length;r||tp("");for(var o=0,a=r;o1||e>0&&!t.noHeader,i=0;q(t.blocks,function(t){Sp(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=Ip(e),a=function(t,e,n,i){var r=[],o=e.blocks||[];_t(!o||et(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(It(s,a)){var l=new ap(s[a],null);o.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===a&&o.reverse()}var u=Ip(e);if(q(o,function(e,n){var o=Sp(e).build(t,e,n>0?u.html:0,i);null!=o&&r.push(o)}),r.length)return"richText"===t.renderMode?r.join(u.richText):Op(r.join(""),n)}(t,e,r?n:o.html,i);if(r)return a;var s=Xh(e.header,"ordinal",t.useUTC),l=xp(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Tp(t,s,l)+o.richText+a:Op('
'+qh(s)+"
"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":Xh(l,"ordinal",c),f=e.valueType,p=a?[]:et(u)?X(u,function(t,e){return Xh(t,et(f)?f[e]:f,c)}):[Xh(u,et(f)?f[0]:f,c)],g=!s||!o,m=!s&&o,v=xp(i,r),y=v.nameStyle,_=v.valueStyle;return"richText"===r?(s?"":h)+(o?"":Tp(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r];return n&&o.push({padding:[0,0,0,i?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,p,g,m,_)):Op((s?"":h)+(o?"":function(t,e,n){return''+qh(t)+""}(d,!s,y))+(a?"":function(t,e,n,i){return''+X(t,function(t){return qh(t)}).join("  ")+""}(p,g,m,_)),n)}}}};function Ap(t,e,n,i,r,o){if(t){var a=Sp(t);return a.planLayout(t),a.build({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,o)}}function Ip(t){var e=t.__gapLevelBetweenSubBlocks;return{html:wp[e],richText:kp[e]}}function Op(t,e){return'
'+t+'
'}function Tp(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Dp(t,e){return ed(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Pp(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Ep=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Pr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Qh({color:e,type:t,renderMode:n,markerId:i});return it(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?q(e,function(t){return B(n,t)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Rp(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=et(h),f=Dp(o,a);if(c>1||d&&!c){var p=function(t,e,n,i,r){var o=e.getData(),a=Z(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Cp("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?q(i,function(t){c(qf(o,n,t),t)}):q(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=qf(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var m=Ur(o),v=m&&o.name||"",y=l.getName(a),_=s?v:y;return Cp("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[Cp("nameValue",{markerType:"item",markerColor:f,name:_,noName:!bt(_),value:e,valueType:n})].concat(i||[])})}var Lp=qr();function Np(t,e){return t.getName(e)||t.getId(e)}var Fp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return m(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=$f({count:Vp,reset:Bp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Lp(this).sourceManager=new vp(this)).prepareSource();var i=this.getInitialData(t,n);jp(i,this),this.dataTask.context.data=i,Lp(this).dataBeforeProcessed=i,zp(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=cd(this),i=n?dd(t):{},r=this.subType;md.hasClass(r)&&(r+="Series"),z(t,e.getTheme().get(this.subType)),z(t,this.getDefaultOption()),Fr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&hd(t,i,n)},e.prototype.mergeOption=function(t,e){t=z(this.option,t,!0),this.fillDataTextStyle(t.data);var n=cd(this);n&&hd(this.option,t,n);var i=Lp(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);jp(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Lp(this).dataBeforeProcessed=r,zp(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!lt(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Hd.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),r=0;r=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[Np(this.getData(e),t)]||!1},e.prototype._innerSelect=function(t,e){var n,i,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s0&&this._innerSelect(t,e)}},e.registerClass=function(t){return md.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(md);function zp(t){var e=t.name;Ur(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return q(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Vp(t){return t.model.getRawData().count()}function Bp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hp}function Hp(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jp(t,e){q(y(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(Gp,e))})}function Gp(t,e){var n=Up(t);return n&&n.setOutputEnd((e||this).count()),e}function Up(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}W(Fp,Zf),W(Fp,Hd),lo(Fp,md);var Wp=Fp,Yp=function(){function t(){this.group=new tr,this.uid=uh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.blurSeries=function(t,e){},t}();ao(Yp),fo(Yp);var qp=Yp;function Xp(){var t=qr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Zp=qr(),Kp=Xp(),$p=function(){function t(){this.group=new tr,this.uid=uh("viewChart"),this.renderTask=$f({plan:tg,reset:eg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){Jp(t.getData(),i,"emphasis")},t.prototype.downplay=function(t,e,n,i){Jp(t.getData(),i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.markUpdateMethod=function(t,e){Zp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Qp(t,e,n){t&&("emphasis"===e?fl:pl)(t,n)}function Jp(t,e,n){var i=Yr(t,e),r=e&&null!=e.highlightKey?function(t){var e=Hs[t];return null==e&&Bs<=32&&(e=Hs[t]=Bs++),e}(e.highlightKey):null;null!=i?q(Nr(i),function(e){Qp(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Qp(t,n,r)})}function tg(t){return Kp(t.model)}function eg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Zp(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),ng[l]}ao($p),fo($p);var ng={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ig=$p,rg="\0__throttleOriginMethod",og="\0__throttleRate",ag="\0__throttleType";function sg(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function lg(t,e,n,i){var r=t[e];if(r){var o=r[rg]||r;if(r[og]!==n||r[ag]!==i){if(null==n||!i)return t[e]=o;(r=t[e]=sg(o,n,"debounce"===i))[rg]=o,r[ag]=i,r[og]=n}return r}}var ug=qr(),cg={itemStyle:po(ih,!0),lineStyle:po(th,!0)},hg={lineStyle:"stroke",itemStyle:"fill"};function dg(t,e){return t.visualStyleMapper||cg[e]||(console.warn("Unkown style type '"+e+"'."),cg.itemStyle)}function fg(t,e){return t.visualDrawType||hg[e]||(console.warn("Unkown style type '"+e+"'."),"fill")}var pg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dg(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=fg(t,i),l=o[s],u=nt(l)?l:null;if(!o[s]||u||"auto"===o.fill||"auto"===o.stroke){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||"function"==typeof o.fill?c:o.fill,o.stroke="auto"===o.stroke||"function"==typeof o.stroke?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=B({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},gg=new sh,mg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=dg(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){gg.option=n[i];var a=r(gg);B(t.ensureUniqueItemVisual(e,"style"),a),gg.option.decal&&(t.setItemVisual(e,"decal",gg.option.decal),gg.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},vg={performRawSeries:!0,overallReset:function(t){var e=St();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||e.set(t.type,n={}),ug(t).scope=n}}),t.eachSeries(function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=ug(e).scope,a=fg(e,e.visualStyleAccessPath||"itemStyle");r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var s=i[t];if(r.getItemVisual(s,"colorFromPalette")){var l=r.ensureUniqueItemVisual(s,"style"),u=n.getName(t)||t+"",c=n.count();l[a]=e.getColorFromPalette(u,o,c)}})}})}},yg=Math.PI,_g=function(){function t(t,e,n,i){this._stageTaskMap=St(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=St();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;q(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});_t(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}q(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=St(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||$f({plan:Cg,reset:Sg,count:Ig}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||$f({reset:bg});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=St(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,$f({reset:xg,onDirty:kg})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}_t(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,q(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=this._pipelineMap.get(t.uid);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return nt(t)&&(t={overallReset:t,seriesType:Og(t)}),t.uid=uh("stageHandler"),e&&(t.visualType=e),t},t}();function bg(t){t.overallReset(t.ecModel,t.api,t.payload)}function xg(t){return t.overallProgress&&wg}function wg(){this.agent.dirty(),this.getDownstream().dirty()}function kg(){this.agent&&this.agent.dirty()}function Cg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Sg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Nr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?X(e,function(t,e){return Ag(e)}):Mg}var Mg=Ag(0);function Ag(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ug={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var i=t.get("symbol"),r=t.get("symbolSize"),o=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=t.get("symbolOffset"),l=nt(i),u=nt(r),c=nt(a),h=nt(s),d=l||u||c||h,f=!l&&i?i:t.defaultSymbol;if(n.setVisual({legendIcon:t.legendIcon||f,symbol:f,symbolSize:u?null:r,symbolKeepAspect:o,symbolRotate:c?null:a,symbolOffset:h?null:s}),!e.isSeriesFiltered(t))return{dataEach:d?function(e,n){var o=t.getRawValue(n),d=t.getDataParams(n);l&&e.setItemVisual(n,"symbol",i(o,d)),u&&e.setItemVisual(n,"symbolSize",r(o,d)),c&&e.setItemVisual(n,"symbolRotate",a(o,d)),h&&e.setItemVisual(n,"symbolOffset",s(o,d))}:null}}}};function Wg(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Yg(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function qg(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}var Xg=2*Math.PI,Zg=Ya.CMD,Kg=["top","right","bottom","left"];function $g(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Qg(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%Xg<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=$a(r),r=$a(d)}else i=$a(i),r=$a(r);i>r&&(r+=Xg);var f=Math.atan2(s,a);if(f<0&&(f+=Xg),f>=i&&f<=r||f+Xg>=i&&f+Xg<=r)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*Math.sin(r)+e,y=(p-a)*(p-a)+(g-s)*(g-s),_=(m-a)*(m-a)+(v-s)*(v-s);return y<_?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(_))}function Jg(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),f=(l*(c/=d)+u*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1));var p=a[0]=t+(f*=d)*c,g=a[1]=e+f*h;return Math.sqrt((p-r)*(p-r)+(g-o)*(g-o))}function tm(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var em=[];function nm(t,e,n){var i=tm(e.x,e.y,e.width,e.height,t.x,t.y,em);return n.set(em[0],em[1]),i}function im(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,f=0;f0){e=e/180*Math.PI,rm.fromArray(t[0]),om.fromArray(t[1]),am.fromArray(t[2]),wi.sub(sm,rm,om),wi.sub(lm,am,om);var n=sm.len(),i=lm.len();if(!(n<.001||i<.001)){sm.scale(1/n),lm.scale(1/i);var r=sm.dot(lm);if(Math.cos(e)1&&wi.copy(hm,am),hm.toArray(t[1])}}}}function fm(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,rm.fromArray(t[0]),om.fromArray(t[1]),am.fromArray(t[2]),wi.sub(sm,om,rm),wi.sub(lm,am,om);var i=sm.len(),r=lm.len();if(!(i<.001||r<.001)&&(sm.scale(1/i),lm.scale(1/r),sm.dot(e)=a)wi.copy(hm,am);else{hm.scaleAndAdd(lm,o/Math.tan(Math.PI/2-s));var l=am.x!==om.x?(hm.x-om.x)/(am.x-om.x):(hm.y-om.y)/(am.y-om.y);if(isNaN(l))return;l<0?wi.copy(hm,om):l>1&&wi.copy(hm,am)}hm.toArray(t[1])}}}function pm(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function gm(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Zt(i[0],i[1]),o=Zt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Jt([],i[1],i[0],a/r),l=Jt([],i[1],i[2],a/o),u=Jt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var m,v,y=t[0],_=t[a-1];return b(),m<0&&k(-m,.8),v<0&&k(v,.8),b(),x(m,v,1),x(v,m,-1),b(),m<0&&C(-m),v<0&&C(v),u}function b(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&k(-r*n,1)}else k(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--)w(-o[l-1]*h,l,a)}}function C(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function _m(t,e,n,i){return ym(t,"y","height",e,n,i)}function bm(t){if(t){for(var e=[],n=0;n=0&&n.attr(f.oldLayoutSelect),G(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),mc(n,s,e,a)}else if(n.attr(s),!Yc(n).valueAnimation){var c=gt(n.style.opacity,1);n.style.opacity=0,vc(n,{style:{opacity:c}},e,a)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};Mm(h,s,Am),Mm(h,n.states.select,Am)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};Mm(d,s,Am),Mm(d,n.states.emphasis,Am)}Xc(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){var f=Sm(i),p={points:i.shape.points};(r=f.oldLayout)?(i.attr({shape:r}),mc(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,vc(i,{style:{strokePercent:1}},e)),f.oldLayout=p}},t}();function Om(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}q([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,i,r){e=B({},e),r.dispatchAction(B(e,{type:t[1],seriesIndex:n(i,e)}))})})}function Tm(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=r.selected,a=0;a0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:ot(t)?[t]:et(t)?t:null):null}var Ym=new Ya(!0);function qm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Xm(t){var e=t.fill;return null!=e&&"none"!==e}function Zm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Km(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function $m(t,e,n){var i=_o(e.image,e.__image,n);if(xo(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}var Qm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Jm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){o||(iv(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Lo.opacity:a}(i||e.blend!==n.blend)&&(o||(iv(t,r),o=!0),t.globalCompositeOperation=e.blend||Lo.blend);for(var s=0;s0&&Wm(n.lineDash,n.lineWidth),w=n.lineDashOffset,k=!!t.setLineDash,C=e.getGlobalScale();if(u.setScale(C[0],C[1],e.segmentIgnoreThreshold),x){var S=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;S&&1!==S&&(x=X(x,function(t){return t/S}),w/=S)}var M=!0;(l||4&e.__dirty||x&&!k&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),M=!1),u.reset(),x&&!k&&(u.setLineDash(x),u.setLineDashOffset(w)),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),M&&u.rebuildPath(t,s?a:1),x&&k&&(t.setLineDash(x),t.lineDashOffset=w),i||(n.strokeFirst?(r&&Km(t,n),o&&Zm(t,n)):(o&&Zm(t,n),r&&Km(t,n))),x&&k&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof gs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),ev(t,e,u,l,n),function(t,e,n){var i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Ei,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var r=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&Wm(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=X(o,function(t){return t/s}),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}n.strokeFirst?(qm(n)&&t.strokeText(i,n.x,n.y),Xm(n)&&t.fillText(i,n.x,n.y)):(Xm(n)&&t.fillText(i,n.x,n.y),qm(n)&&t.strokeText(i,n.x,n.y)),r&&t.setLineDash([])}}(t,e,f)):e instanceof _s?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){tv(t,rv(e,r.inHover),n&&rv(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=_o(n.image,e.__image,e,e.onload);if(i&&xo(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight)t.drawImage(i,u=n.sx||0,c=n.sy||0,n.sWidth,n.sHeight,r,o,a,s);else if(n.sx&&n.sy){var u,c;t.drawImage(i,u=n.sx,c=n.sy,a-u,s-c,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e instanceof Ju&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=Lv(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new tr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new As({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=sv[s];if(u&&It(sv,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=xv[s];if(d&&It(xv,s)){var f=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=f)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new gs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(sv={g:function(t,e){var n=new tr;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new As;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new eu;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ru;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ru;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Sv(i));var r=new Au({shape:{points:n||[]},silent:!0});return Cv(e,r),Mv(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Sv(i));var r=new Tu({shape:{points:n||[]},silent:!0});return Cv(e,r),Mv(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new _s;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new tr;return Cv(e,a),Mv(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new tr;return Cv(e,a),Mv(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Ql(t.getAttribute("d")||"");return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xv={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Wu(e,n,i,r);return wv(t,o),kv(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Yu(e,n,i);return wv(t,r),kv(t,r),r}};function wv(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function kv(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};Rv(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Cv(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),H(e.__inheritedStyle,t.__inheritedStyle))}function Sv(t){for(var e=Tv(t),n=[],i=0;i0;o-=2){var a=i[o-1],s=Tv(i[o]);switch(r=r||[1,0,0,1,0,0],a){case"translate":li(r,r,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":ci(r,r,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":ui(r,r,-parseFloat(s[0])*Pv);break;case"skewX":si(r,[1,0,Math.tan(parseFloat(s[0])*Pv),1,0,0],r);break;case"skewY":si(r,[1,Math.tan(parseFloat(s[0])*Pv),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(s[0]),r[1]=parseFloat(s[1]),r[2]=parseFloat(s[2]),r[3]=parseFloat(s[3]),r[4]=parseFloat(s[4]),r[5]=parseFloat(s[5])}}e.setLocalTransform(r)}}(t,e),Rv(t,a,s),i||function(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Wv(t,e){return X(K((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var i=e.features,r=0;r0}),function(t){var n,i=t.properties,r=t.geometry,o=[];"Polygon"===r.type&&o.push({type:"polygon",exterior:(n=r.coordinates)[0],interiors:n.slice(1)}),"MultiPolygon"===r.type&&q(n=r.coordinates,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new Bv(i[e||"name"],o,i.cp);return a.properties=i,a})}for(var Yv=[126,25],qv="\u5357\u6d77\u8bf8\u5c9b",Xv=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Zv=0;Zv0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.setOption=function(t,e,n){if(this._disposed);else{var i,r,o;if(ly(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ef(this._api),s=this._theme,l=this._model=new Xd;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Ky),Vy(this,o),n?(this.__optionUpdated={silent:i},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(xy(this),Cy.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this.__flagInMainProcess=!1,Iy.call(this,i),Oy.call(this,i))}},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||cy&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(x.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.getSvgDataURL=function(){if(x.svgSupported){var t=this._zr;return q(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=this._model,n=[],i=this;ay((t=t||{}).excludeComponents,function(t){e.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ay(n,function(t){t.group.ignore=!1}),r}},e.prototype.getConnectedDataURL=function(t){if(this._disposed);else if(x.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(i_[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();q(n_,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(F(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}});var d=(l*=h)-(a*=h),f=(u*=h)-(s*=h),p=j(),g=or(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var m="";return ay(c,function(t){m+=''+t.dom+""}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new As({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),ay(c,function(t){var e=new _s({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,e){return Sy(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Sy(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return q(Zr(this._model,t),function(t,i){i.indexOf("Models")>=0&&q(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n},e.prototype.getVisual=function(t,e){var n=Zr(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Wg(i,r,e):Yg(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;ay(Yy,function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&Dm(o,function(t){var e=Vs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=B({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),ay(Xy,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),ay(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this,e=this._api,this._messageCenter.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Tm("map","selectchanged",t,i,n),Tm("pie","selectchanged",t,i,n)):"select"===n.fromAction?(Tm("map","selected",t,i,n),Tm("pie","selected",t,i,n)):"unselect"===n.fromAction&&(Tm("map","unselected",t,i,n),Tm("pie","unselected",t,i,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed);else{this._disposed=!0,to(this.getDom(),a_,"");var t=this._api,e=this._model;ay(this._componentsViews,function(n){n.dispose(e,t)}),ay(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete n_[this.id]}},e.prototype.resize=function(t){if(this._disposed);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__optionUpdated&&(null==i&&(i=this.__optionUpdated.silent),n=!0,this.__optionUpdated=!1),this.__flagInMainProcess=!0,n&&xy(this),Cy.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)}),this.__flagInMainProcess=!1,Iy.call(this,i),Oy.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed);else if(ly(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),e_[t]){var n=e_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=B({},t);return e.type=Xy[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed);else if(ly(e)||(e={silent:!!e}),qy[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;Ay.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&x.browser.weChat&&this._throttledZrFlush(),Iy.call(this,n),Oy.call(this,n)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse(function(e){if(e.states&&e.states.emphasis){if(xc(e))return;if(e instanceof ds&&function(t){var e=js(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}xy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),wy(t,!0),wy(t,!1),e.plan()},wy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!x.node&&!x.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,n)},Ny=function(t,e){ay(Qy,function(n){n(t,e)})},By=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Hy=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse(function(e){xc(e)||t(e)}),e.__needsUpdateStatus=!1)},Fy=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return m(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){fl(e,n),By(t)},n.prototype.leaveEmphasis=function(e,n){pl(e,n),By(t)},n.prototype.enterBlur=function(e){gl(e),By(t)},n.prototype.leaveBlur=function(e){ml(e),By(t)},n.prototype.enterSelect=function(e){vl(e),By(t)},n.prototype.leaveSelect=function(e){yl(e),By(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Kd))(t)},zy=function(t){function e(t,e){for(var n=0;n=0)){C_.push(n);var o=Rg.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function M_(t,e){e_[t]=e}function A_(t){E("createCanvas",t)}function I_(t,e,n){!function(t,e,n){if(e.svg){var i=new Gv(t,e.svg);ny.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e,i=new ty(t,r,n),ny.set(t,i)}}(t,e,n)}function O_(t){return function(t){var e=ny.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()}(t)}var T_=function(t){var e=(t=F(t)).type;e||tp("");var n=e.split(":");2!==n.length&&tp("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,pp.set(e,t)};k_(fy,pg),k_(py,mg),k_(py,vg),k_(fy,Ug),k_(py,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}:null}}}),k_(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=hv(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=hv(r,e))}})}),g_(xf),m_(900,function(t){var e=St();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(wf)}),M_("default",function(t,e){H(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new tr,i=new As({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new zs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new As({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new ju({shape:{startAngle:-yg/2,endAngle:-yg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*yg/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*yg/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),__({type:Ws,event:Ws,update:Ws},Ot),__({type:Ys,event:Ys,update:Ys},Ot),__({type:qs,event:qs,update:qs},Ot),__({type:Xs,event:Xs,update:Xs},Ot),__({type:Zs,event:Zs,update:Zs},Ot),p_("light",Ng),p_("dark",jg);var D_={},P_=[],E_={registerPreprocessor:g_,registerProcessor:m_,registerPostInit:v_,registerPostUpdate:y_,registerAction:__,registerCoordinateSystem:b_,registerLayout:w_,registerVisual:k_,registerTransform:T_,registerLoading:M_,registerMap:I_,PRIORITY:gy,ComponentModel:md,ComponentView:qp,SeriesModel:Wp,ChartView:ig,registerComponentModel:function(t){md.registerClass(t)},registerComponentView:function(t){qp.registerClass(t)},registerSeriesModel:function(t){Wp.registerClass(t)},registerChartView:function(t){ig.registerClass(t)},registerSubTypeDefaulter:function(t,e){md.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ur(t,e)}};function R_(t){et(t)?q(t,function(t){R_(t)}):G(P_,t)>=0||(P_.push(t),nt(t)&&(t={install:t}),t.install(E_))}function L_(t){return null==t?0:t.length||1}function N_(t){return t}var F_=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||N_,this._newKeyGetter=i||N_,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._new,e={},n={},i=[],r=[];this._initIndexMap(this._old,e,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o1&&1===c)this._updateManyToOne&&this._updateManyToOne(l,s),n[a]=null;else if(1===u&&c>1)this._updateOneToMany&&this._updateOneToMany(l,s),n[a]=null;else if(1===u&&1===c)this._update&&this._update(l,s),n[a]=null;else if(u>1)for(var h=0;h1)for(var a=0;av[1]&&(v[1]=m)}e&&(this._nameList[d]=e[f],this._dontMakeIdFromName||X_(this,d))}this._rawCount=this._count=s,this._extent={},H_(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var i=this._rawData,r=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=i.getSource().sourceFormat===xd,d=0;dx[1]&&(x[1]=b)}if(h&&!i.pure&&g){var w=g.name;null==l[m]&&null!=w&&(l[m]=Gr(w,null));var k=g.id;null==u[m]&&null!=k&&(u[m]=Gr(k,null))}this._dontMakeIdFromName||X_(this,m)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},H_(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=this._count;if((r=e.constructor)===Array){t=new r(n);for(var i=0;i=0&&e=0&&e=0&&ea&&(a=l)}return this._extent[t]=i=[o,a],i},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){nb(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=h&&S<=d||isNaN(S))&&(s[l++]=g),g++;p=!0}else if(2===o){m=f[c[0]];var y=f[c[1]],_=t[i[1]][0],b=t[i[1]][1];for(v=0;v=h&&S<=d||isNaN(S))&&(x>=_&&x<=b||isNaN(x))&&(s[l++]=g),g++}p=!0}}if(!p)if(1===o)for(v=0;v=h&&S<=d||isNaN(S))&&(s[l++]=w)}else for(v=0;vt[M][1])&&(k=!1)}k&&(s[l++]=this.getRawIndex(v))}return lb[1]&&(b[1]=_)}}}return a},t.prototype.downSample=function(t,e,n,i){for(var r=K_(this,[t]),o=r._storage,a=[],s=eb(1/e),l=o[t],u=this.count(),c=r._rawExtent[t],h=new(j_(this))(u),d=0,f=0;fu-f&&(a.length=s=u-f);for(var p=0;pc[1]&&(c[1]=m),h[d++]=v}return r._count=d,r._indices=h,r.getRawIndex=W_,r},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=K_(this,[]),a=o._storage[t],s=this.count(),l=new(j_(this))(s),u=0,c=eb(1/e),h=this.getRawIndex(0);l[u++]=h;for(var d=1;dn&&(n=i,r=k)}l[u++]=r,h=r}return l[u++]=this.getRawIndex(s-1),o._count=u,o._indices=l,o.getRawIndex=W_,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new sh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new F_(t?t.getIndices():[],this.getIndices(),function(e){return Y_(t,e)},function(t){return Y_(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},nb(t)?B(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(et(r=this.getVisual(e))?r=r.slice():nb(r)&&(r=B({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,nb(e)?B(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(nb(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var i=Vs(e);i.dataIndex=t,i.dataType=this.dataType,i.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(Q_,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){q(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){if(e||(e=new t(ib(this.dimensions,this.getDimensionInfo,this),this.hostModel)),e._storage=this._storage,e._storageArr=this._storageArr,J_(e,this),this._indices){var n=this._indices.constructor;if(n===Array){var i=this._indices.length;e._indices=new n(i);for(var r=0;r65535?ab:lb},G_=function(t,e,n,i){var r=ob[e.type],o=e.name;if(i){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new r(n),u=0;u=0?this._indices[t]:-1},Y_=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=q_(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n="e\0\0"+e),n},Z_=function(t){return et(t)||(t=null!=t?[t]:[]),t},K_=function(e,n){var i=e.dimensions,r=new t(ib(i,e.getDimensionInfo,e),e.hostModel);J_(r,e);for(var o,a,s=r._storage={},l=e._storage,u=r._storageArr=[],c=0;c=0?(s[h]=(a=void 0,(a=(o=l[h]).constructor)===Array?o.slice():new a(o)),r._rawExtent[h]=$_(),r._extent[h]=null):s[h]=l[h],u.push(s[h]))}return r},$_=function(){return[1/0,-1/0]},Q_=function(t){var e=Vs(t),n=Vs(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},J_=function(t,e){q(ub.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,q(cb,function(n){t[n]=F(e[n])}),t._calculationInfo=B({},e._calculationInfo)},X_=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=q_(t,r,t._nameOrdinalMeta,e)),null==s&&null!=o&&(i[e]=s=q_(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}();function db(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function fb(t,e){return function(t,e,n){Of(e)||(e=Df(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=St(),o=St(),a=[],s=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return q(e,function(t){var e;at(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),l=0;le[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();fo(xb);var wb=xb;function kb(t){return at(t)&&null!=t.value?t.value:t+""}var Cb=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&X(i,kb);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(this.categories[e=this.categories.length]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=St(this.categories))},t}(),Sb=fr;function Mb(t){return gr(t)+2}function Ab(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ib(t,e){return t>=e[0]&&t<=e[1]}function Ob(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Tb(t,e){return t*(e[1]-e[0])+e[0]}var Db=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Cb({})),et(i)&&(i=new Cb({categories:X(i,function(t){return at(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return m(e,t),e.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Ib(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Ob(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Tb(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(wb);wb.registerClass(Db);var Pb=Db,Eb=fr,Rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return m(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ib(t,this._extent)},e.prototype.normalize=function(t){return Ob(t,this._extent)},e.prototype.scale=function(t){return Tb(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Mb(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:Eb(s+e,r)}:{value:n[1]}),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&ui&&(o=r.interval=i);var a=r.intervalPrecision=Mb(o);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ab(t,0,e),Ab(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Sb(Math.ceil(t[0]/o)*o,a),Sb(Math.floor(t[1]/o)*o,a)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Eb(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Eb(Math.ceil(e[1]/i)*i))},e.type="interval",e}(wb);wb.registerClass(Rb);var Lb=Rb,Nb="__ec_stack_",Fb="undefined"!=typeof Float32Array?Float32Array:Array;function zb(t){return t.get("stack")||Nb+t.seriesIndex}function Vb(t){return t.dim+t.index}function Bb(t,e){var n=[];return e.eachSeriesByType(t,function(t){Yb(t)&&!qb(t)&&n.push(t)}),n}function Hb(t){var e=function(t){var e={};q(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.mapDimension(n.dim),a=0,s=i.count();a0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return q(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=e[r.dim+"_"+r.index],s=Math.abs(o[1]-o[0]),l=r.scale.getExtent(),u=Math.abs(l[1]-l[0]);i=a?s/u*a:s}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var h=dr(t.get("barWidth"),i),d=dr(t.get("barMaxWidth"),i),f=dr(t.get("barMinWidth")||1,i),p=t.get("barGap"),g=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:h,barMaxWidth:d,barMinWidth:f,barGap:p,barCategoryGap:g,axisKey:Vb(r),stackId:zb(t)})}),jb(n)}function jb(t){var e={};q(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return q(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Q(i).length;o=Math.max(35-4*a,15)+"%"}var s=dr(o,r),l=dr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),q(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;q(i,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;q(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)})}),n}function Gb(t,e,n){if(t&&e){var i=t[Vb(e)];return null!=i&&null!=n?i[zb(n)]:i}}function Ub(t,e){var n=Bb(t,e),i=Hb(n),r={};q(n,function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=zb(t),s=i[Vb(o)][a],l=s.offset,u=s.width,c=n.getOtherAxis(o),h=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(c.dim),f=e.mapDimension(o.dim),p=yb(e,d),g=c.isHorizontal(),m=Xb(0,c),v=0,y=e.count();v=0?"p":"n",w=m;p&&(r[a][b]||(r[a][b]={p:m,n:m}),w=r[a][b][x]);var k,C=void 0,S=void 0,M=void 0,A=void 0;g?(C=w,S=(k=n.dataToPoint([_,b]))[1]+l,M=k[0]-m,A=u,Math.abs(M).5||(c=.5),{progress:function(t,e){for(var r,h=t.count,d=new Fb(2*h),f=new Fb(2*h),p=new Fb(h),g=[],m=[],v=0,y=0;null!=(r=t.next());)m[u]=e.get(a,r),m[1-u]=e.get(s,r),g=n.dataToPoint(m,null),f[v]=l?i.x+i.width:g[0],d[v++]=g[0],f[v]=l?g[1]:i.y+i.height,d[v++]=g[1],p[y++]=r;e.setLayout({largePoints:d,largeDataIndices:p,largeBackgroundPoints:f,barWidth:c,valueAxisStart:Xb(0,o),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}}}};function Yb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function qb(t){return t.pipelineContext&&t.pipelineContext.large}function Xb(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var Zb=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return m(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Sh(t.value,bh[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ch(this._minLevelUnit))]||bh.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(t.value,e,{level:t.level});else{var a=B({},_h);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(et(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return Sh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){var e=this._extent,n=[];if(!this._interval)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r,o=wh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&v<=i[1]&&h++)}var y=(i[1]-i[0])/e;if(h>1.5*y&&d>y/1.5)break;if(u.push(g),h>y||t===o[f])break}c=[]}}var _=K(X(u,function(t){return K(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],x=_.length-1;for(f=0;f<_.length;++f)for(var w=_[f],k=0;kn&&(this._approxInterval=n);var r=Kb.length,o=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Qb(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Jb(t){return(t/=mh)>12?12:t>6?6:t>3.5?4:t>2?2:1}function tx(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ex(t){return Ar(t,!0)}function nx(t,e,n){var i=new Date(t);switch(Ch(e)){case"year":case"month":i[Nh(n)](0);case"day":i[Fh(n)](1);case"hour":i[zh(n)](0);case"minute":i[Vh(n)](0);case"second":i[Bh(n)](0),i[Hh(n)](0)}return i.getTime()}wb.registerClass(Zb);var ix=Zb,rx=wb.prototype,ox=Lb.prototype,ax=fr,sx=Math.floor,lx=Math.ceil,ux=Math.pow,cx=Math.log,hx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Lb,e._interval=0,e}return m(e,t),e.prototype.getTicks=function(t){var e=this._extent,n=this._originalScale.getExtent();return X(ox.getTicks.call(this,t),function(t){var i=t.value,r=fr(ux(this.base,i));return r=i===e[0]&&this._fixMin?fx(r,n[0]):r,{value:r=i===e[1]&&this._fixMax?fx(r,n[1]):r}},this)},e.prototype.setExtent=function(t,e){var n=this.base;t=cx(t)/cx(n),e=cx(e)/cx(n),ox.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=rx.getExtent.call(this);e[0]=ux(t,e[0]),e[1]=ux(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=fx(e[0],n[0])),this._fixMax&&(e[1]=fx(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=cx(t[0])/cx(e),t[1]=cx(t[1])/cx(e),rx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Sr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[fr(lx(e[0]/i)*i),fr(sx(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.niceExtent=function(t){ox.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ib(t=cx(t)/cx(this.base),this._extent)},e.prototype.normalize=function(t){return Ob(t=cx(t)/cx(this.base),this._extent)},e.prototype.scale=function(t){return t=Tb(t,this._extent),ux(this.base,t)},e.type="log",e}(wb),dx=hx.prototype;function fx(t,e){return ax(t,gr(e))}dx.getMinorTicks=ox.getMinorTicks,dx.getLabel=ox.getLabel,wb.registerClass(hx);var px=hx,gx=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]s&&(a=NaN,s=NaN);var c=ft(a)||ft(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[vx[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mx[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mx={min:"_determinedMin",max:"_determinedMax"},vx={min:"_dataMin",max:"_dataMax"};function yx(t,e,n){var i=t.rawExtentInfo;return i||(i=new gx(t,e,n),t.rawExtentInfo=i,i)}function _x(t,e){return null==e?null:ft(e)?NaN:t.parse(e)}function bx(t,e){var n=t.type,i=yx(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Bb("bar",a),l=!1;if(q(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Hb(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=Gb(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;q(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;q(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function xx(t,e){var n=bx(t,e),i=n.extent,r=e.get("splitNumber");t instanceof px&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function kx(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new ix({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(wb.getClass(e)||Lb)}}function Cx(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):"string"==typeof i?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):"function"==typeof i?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(Sx(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Sx(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Mx(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Di(t.x,t.y,o,a)}function Ax(t){var e=t.get("interval");return null==e?"auto":e}function Ix(t){return"category"===t.type&&0===Ax(t.getLabelModel())}function Ox(t,e){var n={};return q(t.mapDimensionsAll(e),function(e){n[_b(t,e)]=!0}),Q(n)}var Tx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function Dx(t){return bb(t.getSource(),t)}var Px={isDimensionStacked:yb,enableDataStack:vb,getStackedDimension:_b};function Ex(t,e){var n=e;e instanceof sh||(n=new sh(e));var i=kx(n);return i.setExtent(t[0],t[1]),xx(i,n),i}function Rx(t){W(t,Tx)}function Lx(t,e){return Vc(t,null,null,"normal"!==(e=e||{}).state)}function Nx(t,e,n,i,r,o,a,s){return new zs({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Fx=qr();function zx(t,e){var n,i,r=Vx(t,"labels"),o=Ax(e);return Bx(r,o)||(nt(o)?n=Gx(t,o):(i="auto"===o?function(t){var e=Fx(t).autoInterval;return null!=e?e:Fx(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=jx(t,i)),Hx(r,o,{labels:n,labelCategoryInterval:i}))}function Vx(t,e){return Fx(t)[e]||(Fx(t)[e]=[])}function Bx(t,e){for(var n=0;n1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Ix(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&p-l!==o[1]&&g(o[1]),s}function Gx(t,e,n){var i=t.scale,r=Cx(t),o=[];return q(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var Ux=[0,1];function Wx(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Yx=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return vr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Wx(n=n.slice(),i.count()),hr(t,Ux,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Wx(n=n.slice(),i.count());var r=hr(t,n,Ux,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=X(function(t,e){return"category"===t.type?function(t,e){var n,i,r=Vx(t,"ticks"),o=Ax(e),a=Bx(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),nt(o))n=Gx(t,o,!0);else if("auto"===o){var s=zx(t,t.getLabelModel());i=s.labelCategoryInterval,n=X(s.labels,function(t){return t.tickValue})}else n=jx(t,i=o,!0);return Hx(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:X(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a=t.getExtent();if(1===r)e[0].coord=a[0],o=e[1]={coord:a[0]};else{var s=(e[r-1].coord-e[0].coord)/(e[r-1].tickValue-e[0].tickValue);q(e,function(t){t.coord-=s/2});var l=t.scale.getExtent();e.push(o={coord:e[r-1].coord+s*(1+l[1]-e[r-1].tickValue)})}var u=a[0]>a[1];c(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&c(a[0],e[0].coord)&&e.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:e.pop()),i&&c(o.coord,a[1])&&e.push({coord:a[1]})}function c(t,e){return t=fr(t),e=fr(e),u?t>e:t0&&t<100||(t=5),X(this.scale.getMinorTicks(t),function(t){return X(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return(t=this,"category"===t.type?function(t){var e=t.getLabelModel(),n=zx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Cx(t);return{labels:X(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)).labels;var t},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=Cx(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g=Ni(n({value:l}),e.font,"center","top");p=1.3*g.height,d=Math.max(d,1.3*g.width,7),f=Math.max(f,p,7)}var m=d/c,v=f/h;isNaN(m)&&(m=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(m,v))),_=Fx(t.model),b=t.getExtent(),x=_.lastAutoInterval,w=_.lastTickCount;return null!=x&&null!=w&&Math.abs(x-y)<=1&&Math.abs(w-a)<=1&&x>y&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?y=x:(_.lastTickCount=a,_.lastAutoInterval=y,_.axisExtent0=b[0],_.axisExtent1=b[1]),y}(this)},t}();function qx(t){var e=md.extend(t);return md.registerClass(e),e}function Xx(t){var e=qp.extend(t);return qp.registerClass(e),e}function Zx(t){var e=Wp.extend(t);return Wp.registerClass(e),e}function Kx(t){var e=ig.extend(t);return ig.registerClass(e),e}function $x(){return!1}function Qx(t,e,n){var i=j(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var Jx=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||ei,"string"==typeof e?r=Qx(e,n,i):at(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(r.onselectstart=$x,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=i,o}return Dt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Qx("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Di(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new Di(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}n.prevElClipPaths&&d.restore()};if(f)if(0===f.length)s=c.__endIndex;else for(var b=h.dpr,x=0;x0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else N("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?nw:0),this._needsManuallyCompositing),u.__builtin__||N("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.__drawIndex=u.incremental?-1:r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,q(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?z(n[t],e,!0):n[t]=e;for(var i=0;i-1e-4}function _w(t,e){e&&bw(t,"transform","matrix("+mw(e[0])+","+mw(e[1])+","+mw(e[2])+","+mw(e[3])+","+vw(e[4])+","+vw(e[5])+")")}function bw(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function xw(t,e,n){var i=null==e.opacity?1:e.opacity;if(n instanceof _s)t.style.opacity=i+"";else{if(function(t){var e=t.fill;return null!=e&&e!==uw}(e)){var r=e.fill;bw(t,"fill",r="transparent"===r?uw:r),bw(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*i:i)+"")}else bw(t,"fill",uw);if(function(t){var e=t.stroke;return null!=e&&e!==uw}(e)){var o=e.stroke;bw(t,"stroke",o="transparent"===o?uw:o);var a=e.lineWidth,s=e.strokeNoScale?n.getLineScale():1;bw(t,"stroke-width",(s?a/s:0)+""),bw(t,"paint-order",e.strokeFirst?"stroke":"fill"),bw(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*i:i)+"");var l=e.lineDash&&a>0&&Wm(e.lineDash,a);if(l){var u=e.lineDashOffset;s&&1!==s&&(l=X(l,function(t){return t/s}),u&&(u=cw(u/=s))),bw(t,"stroke-dasharray",l.join(",")),bw(t,"stroke-dashoffset",(u||0)+"")}else bw(t,"stroke-dasharray","");e.lineCap&&bw(t,"stroke-linecap",e.lineCap),e.lineJoin&&bw(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&bw(t,"stroke-miterlimit",e.miterLimit+"")}else bw(t,"stroke",uw)}}var ww=function(){function t(){}return t.prototype.reset=function(){this._d=[],this._str=""},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=0===this._d.length,u=a-o,c=!s,h=Math.abs(u),d=yw(h-pw)||(c?u>=pw:-u>=pw),f=u>0?u%pw:u%pw+pw,p=!1;p=!!d||!yw(h)&&f>=fw==!!c;var g=vw(t+n*dw(o)),m=vw(e+i*hw(o));d&&(u=c?pw-1e-4:1e-4-pw,p=!0,l&&this._d.push("M",g,m));var v=vw(t+n*dw(o+u)),y=vw(e+i*hw(o+u));if(isNaN(g)||isNaN(m)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(gw)||isNaN(v)||isNaN(y))return"";this._d.push("A",vw(n),vw(i),cw(r*gw),+p,+c,v,y)},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e)},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){this._d.push(t);for(var u=1;u=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return n[0]},t.prototype.doUpdate=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},t.prototype.add=function(t){return null},t.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},t.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},t.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return q(this._tagNames,function(n){for(var i=t.getElementsByTagName(n),r=0;r-1){var s=un(a)[3],l=dn(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[i].color);e.appendChild(o)}t.__dom=e},e.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom),(n=e.style.stroke)&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom)}},e}(Aw);function Pw(t){return t&&(!!t.image||!!t.svgElement)}var Ew=new Em,Rw=function(t){function e(e,n){return t.call(this,e,n,["pattern"],"__pattern_in_use__")||this}return Dt(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;q(["fill","stroke"],function(i){var r=e.style[i];if(Pw(r)){var o=n.getDefs(!0),a=Ew.get(r);a?o.contains(a)||n.addDom(a):a=n.add(r),n.markUsed(e);var s=a.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}})}},e.prototype.add=function(t){if(Pw(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},e.prototype.update=function(t){if(Pw(t)){var e=this;this.doUpdate(t,function(){var n=Ew.get(t);e.updateDom(t,n)})}},e.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var i=void 0,r=e.getElementsByTagName("image");if(r.length){if(!t.image)return void e.removeChild(r[0]);i=r[0]}else t.image&&(i=this.createElement("image"));if(i){var o=void 0,a=t.image;if("string"==typeof a?o=a:a instanceof HTMLImageElement?o=a.src:a instanceof HTMLCanvasElement&&(o=a.toDataURL()),o){i.setAttribute("href",o),i.setAttribute("x","0"),i.setAttribute("y","0");var s=_o(o,i,{dirty:function(){}},function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")});s&&s.width&&s.height&&(e.setAttribute("width",s.width+""),e.setAttribute("height",s.height+"")),e.appendChild(i)}}}var l=(t.rotation||0)/Math.PI*180;e.setAttribute("patternTransform","translate("+(t.x||0)+", "+(t.y||0)+") rotate("+l+") scale("+(t.scaleX||1)+", "+(t.scaleY||1)+")"),Ew.set(t,e)},e.prototype.markUsed=function(e){e.style&&(Pw(e.style.fill)&&t.prototype.markDomUsed.call(this,Ew.get(e.style.fill)),Pw(e.style.stroke)&&t.prototype.markDomUsed.call(this,Ew.get(e.style.stroke)))},e}(Aw);function Lw(t){var e=t.__clipPaths;return e&&e.length>0}var Nw=function(t){function e(e,n){var i=t.call(this,e,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Dt(e,t),e.prototype.markAllUnused=function(){for(var e in t.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[e]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,e){if(Lw(t)){var n=t.__clipPaths,i=this._keyDuplicateCount,r=function(t){var e=[];if(t)for(var n=0;n0){var n=this.getDefs(!0),i=e[0],r=void 0,o=void 0;i._dom?(o=i._dom.getAttribute("id"),n.contains(r=i._dom)||n.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",o),n.appendChild(r),i._dom=r),this.getSvgProxy(i).brush(i);var a=this.getSvgElement(i);r.innerHTML="",r.appendChild(a),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(e){var n=this;e.__clipPaths&&q(e.__clipPaths,function(e){e._dom&&t.prototype.markDomUsed.call(n,e._dom)})},e.prototype.removeUnused=function(){t.prototype.removeUnused.call(this);var e={};for(var n in this._refGroups){var i=this._refGroups[n];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):e[n]=i}this._refGroups=e},e}(Aw),Fw=function(t){function e(e,n){var i=t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Dt(e,t),e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){(t=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var e=this.createElement("feDropShadow");t.appendChild(e),this.addDom(t)}return t},e.prototype.update=function(t,e){if((r=e.style)&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)){var n=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),i=e._shadowDom=this._shadowDomMap[n];i||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(t,e,i)}else this.remove(t,e);var r},e.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,e,n){var i=n.children[0],r=e.style,o=e.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var l=r.shadowOffsetY||0,u=r.shadowBlur,c=r.shadowColor;i.setAttribute("dx",(r.shadowOffsetX||0)/a+""),i.setAttribute("dy",l/s+""),i.setAttribute("flood-color",c),i.setAttribute("stdDeviation",u/2/a+" "+u/2/s),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),e._shadowDom=n;var h=n.getAttribute("id");t.style.filter="url(#"+h+")"}},e.prototype.removeUnused=function(){if(this.getDefs(!1)){var t=this._shadowDomPool;for(var e in this._shadowDomMap)t.push(this._shadowDomMap[e]);this._shadowDomMap={}}},e}(Aw);function zw(t){return parseInt(t,10)}function Vw(t){return t instanceof ds?kw:t instanceof _s?Cw:t instanceof gs?Mw:kw}function Bw(t,e){return e&&t&&e.parentNode!==t}function Hw(t,e,n){if(Bw(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function jw(t,e){if(Bw(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function Gw(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function Uw(t){return t.__svgEl}function Ww(t){return function(){N('In SVG mode painter not support method "'+t+'"')}}var Yw=function(){function t(t,e,n,i){this.type="svg",this.refreshHover=Ww("refreshHover"),this.pathToImage=Ww("pathToImage"),this.configLayer=Ww("configLayer"),this.root=t,this.storage=e,this._opts=n=B({},n||{});var r=ow("svg");r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=ow("g");r.appendChild(o);var a=ow("g");r.appendChild(a),this._gradientManager=new Dw(i,a),this._patternManager=new Rw(i,a),this._clipPathManager=new Nw(i,a),this._shadowManager=new Fw(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]}return t.prototype.getType=function(){return"svg"},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.getSvgRoot=function(){return this._svgRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},t.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=ow("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},t.prototype.createSVGElement=function(t){return ow(t)},t.prototype.paintOne=function(t){var e=Vw(t);return e&&e.brush(t),Uw(t)},t.prototype._paintList=function(t){var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,r=this._shadowManager;e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),r.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=t.length,l=[],u=0;u=i&&l+1>=r){for(var u=[],c=0;c=i&&h+1>=r)return lw(l.components);s[a]=l}else s[a]=void 0}var p;o++}for(;o<=a;){var d=h();if(d)return d}}(a,l,undefined);for(u=0;u\n\r<"))},t}(),qw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new tr,n=jm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=jm(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},e}(Wp);function Xw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=qf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=X(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return yb(e,h[0])&&(d=!0,h[0]=f),yb(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ik(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var rk="undefined"!=typeof Float32Array,ok=rk?Float32Array:Array;function ak(t){return et(t)?rk?new Float32Array(t):t:new ok(t)}var sk=Math.min,lk=Math.max;function uk(t,e){return isNaN(t)||isNaN(e)}function ck(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,g=n,m=0;m=r||g<0)break;if(uk(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var _=v-u,b=y-c;if(_*_+b*b<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],k=e[2*x+1],C=m+1;if(l)for(;uk(w,k)&&C=i||uk(w,k))f=v,p=y;else{M=w-u,A=k-c;var T=v-u,D=w-v,P=y-c,E=k-y,R=void 0,L=void 0;"x"===s?(R=Math.abs(T),L=Math.abs(D),f=v-R*a,p=y,I=v+R*a,O=y):"y"===s?(R=Math.abs(P),L=Math.abs(E),f=v,p=y-R*a,I=v,O=y+R*a):(R=Math.sqrt(T*T+P*P),f=v-M*a*(1-(S=(L=Math.sqrt(D*D+E*E))/(L+R))),p=y-A*a*(1-S),O=y+A*a*S,I=sk(I=v+M*a*S,lk(w,v)),O=sk(O,lk(k,y)),I=lk(I,sk(w,v)),p=y-(A=(O=lk(O,sk(k,y)))-y)*R/L,f=sk(f=v-(M=I-v)*R/L,lk(u,v)),p=sk(p,lk(c,y)),I=v+(M=v-(f=lk(f,sk(u,v))))*L/R,O=y+(A=y-(p=lk(p,sk(c,y))))*L/R)}t.bezierCurveTo(h,d,f,p,v,y),h=I,d=O}else t.lineTo(v,y)}u=v,c=y,g+=o}return m}var hk=function(){this.smooth=0,this.smoothConstraint=!0},dk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hk},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&uk(n[2*r-2],n[2*r-1]);r--);for(;i=0){var m=a?(c-i)*g+i:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var v=a?ea(n,u,h,f,t,s):ea(i,c,d,p,t,s);if(v>0)for(var y=0;y=0)return m=a?Jo(i,c,d,p,_):Jo(n,u,h,f,_),a?[t,m]:[m,t]}n=f,i=p}}},e}(ds),fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(hk),pk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return m(e,t),e.prototype.getDefaultShape=function(){return new fk},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&uk(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return q(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),x||d.remove(),o.add(g);var C,S=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(C=r.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var M=function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=t.getDimensionInfo(t.dimensions[n[o].dimension]);if("x"===(i=a&&a.coordDim)||"y"===i){r=n[o];break}}if(r){var s=e.getAxis(i),l=X(r.stops,function(t){return{offset:0,coord:s.toGlobalCoord(s.dataToCoord(t.value,!0)),color:t.color}}),u=l.length,c=r.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,d=l[u-1].coord+10,f=d-h;if(f<.001)return"transparent";q(l,function(t){t.offset=(t.coord-h)/f}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var p=new Wu(0,0,0,0,l,!0);return p[i]=h,p[i+"2"]=d,p}}}(a,r)||a.getVisual("style")[a.getVisual("drawType")];f&&h.type===r.type&&S===this._step?(v&&!p?p=this._newPolygon(u,b):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ed(M)),g.setClipPath(Sk(this,r,!1,t)),x&&d.updateData(a,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),_k(this._stackedOnPoints,b)&&_k(this._points,u)||(m?this._doUpdateAnimation(a,b,r,n,S,y):(S&&(u=kk(u,r,S),b&&(b=kk(b,r,S))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))):(x&&d.updateData(a,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,C),S&&(u=kk(u,r,S),b&&(b=kk(b,r,S))),f=this._newPolyline(u),v&&(p=this._newPolygon(u,b)),c||this._initOrUpdateEndLabel(t,r,ed(M)),g.setClipPath(Sk(this,r,!0,t)));var A=t.get(["emphasis","focus"]),I=t.get(["emphasis","blurScope"]);f.useStyle(H(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Tl(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1),Vs(f).seriesIndex=t.seriesIndex,Ml(f,A,I);var O=wk(t.get("smooth")),T=t.get("smoothMonotone"),D=t.get("connectNulls");if(f.setShape({smooth:O,smoothMonotone:T,connectNulls:D}),p){var P=a.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(H(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(E=wk(P.get("smooth"))),p.setShape({smooth:O,stackedOnSmooth:E,smoothMonotone:T,connectNulls:D}),Tl(p,t,"areaStyle"),Vs(p).seriesIndex=t.seriesIndex,Ml(p,A,I)}var R=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=S,this._valueOrigin=y},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Yr(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");(s=new $w(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ig.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Yr(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else ig.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;ll(this._polyline,t),e&&ll(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new dk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new pk({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=void 0,d=void 0,f=void 0;if(n)if(r){var p=n,g=e.pointToCoord([t.x,t.y]);i?(h=p.startAngle,d=p.endAngle,f=-g[1]/180*Math.PI):(h=p.r0,d=p.r,f=g[0])}else i?(h=n.x,d=n.x+n.width,f=t.x):(h=n.y+n.height,d=n.y,f=t.y);var m=d===h?0:(f-h)/(d-h);a&&(m=1-m);var v="function"==typeof u?u(o):l*m+c,y=s.getSymbolPath(),_=y.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:v}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:v}),y.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(i.get("show")){var r=t.getData(),o=this._polyline,a=this._endLabel;a||((a=this._endLabel=new zs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=function(t){for(var e,n=t.length/2;n>0&&(e=t[2*n-1],isNaN(t[2*n-2])||isNaN(e));n--);return n-1}(r.getLayout("points"));s>=0&&(Fc(o,zc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?Zw(r,n):Xw(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(m?-1:1),b=(g?0:-f)*(m?-1:1),x=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,x),k=w.range,C=k[1]-k[0],S=void 0;if(C>=1){if(C>1&&!h){var M=Ck(u,k[0]);s.attr({x:M[0]+_,y:M[1]+b}),r&&(S=c.getRawValue(k[0]))}else{(M=l.getPointOn(y,x))&&s.attr({x:M[0]+_,y:M[1]+b});var A=c.getRawValue(k[0]),I=c.getRawValue(k[1]);r&&(S=no(n,d,A,I,w.t))}i.lastFrameIndex=k[0]}else{var O=1===t||i.lastFrameIndex>0?k[0]:0;M=Ck(u,O),r&&(S=c.getRawValue(O)),s.attr({x:M[0]+_,y:M[1]+b})}r&&Yc(s).setLabelText(S)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=nk(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_3e3||s&&xk(h,f)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=c;var p={shape:{points:d}};u.current!==c&&(p.shape.__points=u.next),a.stopAnimation(),mc(a,p,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),mc(s,{shape:{stackedOnPoints:f}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],m=u.status,v=0;ve&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;"string"==typeof r?f=Ik[r]:"function"==typeof r&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,Ok))}}}}}var Dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Wp);Wp.registerClass(Dk);var Pk=Dk,Ek=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(){return bb(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ch(Pk.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Pk),Rk=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Lk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Rk},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),t.arc(n,i,o,l,u,!c),t.moveTo(f*o+n,p*o+i),t.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(n,i,r,u,l,c),t.moveTo(h*r+n,p*r+i)),t.closePath()},e}(ds),Nk=[0,0],Fk=Math.max,zk=Math.min,Vk=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return m(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,f=function(t,e){var n=t.getArea&&t.getArea();if(yk(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],_=this._backgroundEls,b=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(t){var e=Gk[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?_u:As)({shape:Zk(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),i=Gk[l.type](a,e,n);if(g&&w(e),a.hasValue(e)){var s=!1;d&&(s=Bk[l.type](f,i));var m=Hk[l.type](t,a,e,i,r,c,u.model,!1,p);Uk(m,a,e,n,i,t,r,"polar"===l.type),b?m.attr({shape:i}):h?jk(h,c,m,i,e,r,!1,!1):vc(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),k=Gk[l.type](a,e,i);if(g){var C=void 0;0===_.length?C=w(n):((C=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",v),y[e]=C);var S=Gk[l.type](a,e);mc(C,{shape:Zk(r,S,l)},c,e)}var M=s.getItemGraphicEl(n);if(!a.hasValue(e))return o.remove(M),void(M=null);var A=!1;d&&(A=Bk[l.type](f,k))&&o.remove(M),M||(M=Hk[l.type](t,a,e,k,r,c,u.model,!!M,p)),x||Uk(M,a,e,i,k,t,r,"polar"===l.type),b?M.attr({shape:k}):h?jk(h,c,M,k,e,r,!0,x):mc(M,{shape:k},t,e,null),a.setItemGraphicEl(e,M),M.ignore=A,o.add(M)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&bc(n,t,e)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new tr);k.removeAll();for(var C=0;Co)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r,animation:{duration:0}})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){bc(e,t,Vs(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ig),Bk={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Fk(e.x,t.x),s=zk(e.x+e.width,r),l=Fk(e.y,t.y),u=zk(e.y+e.height,o),c=sr?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=zk(e.r,t.r),o=Fk(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},Hk={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new As({shape:B({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=new(!r&&l?Lk:_u)({shape:H({clockwise:i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function Uk(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");if(u&&t.attr("cursor",u),!s){var c=a?r.height>0?"bottom":"top":r.width>0?"left":"right",h=zc(i);Fc(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:Xw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c}),qc(t.getTextContent(),h,o.getRawValue(n),function(t){return Zw(e,t)})}var d=i.getModel(["emphasis"]);Ml(t,d.get("focus"),d.get("blurScope")),Tl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",q(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var Wk=function(){},Yk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Wk},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=h&&m<=d&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return a[f]}return-1}(this,t.offsetX,t.offsetY);Vs(this).dataIndex=e>=0?e:null},30,!1);function Zk(t,e,n){if(yk(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:e.r0,r:t?r.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var Kk=Vk,$k=2*Math.PI,Qk=Math.PI/180;function Jk(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n),o=t.get("center"),a=t.get("radius");et(a)||(a=[0,a]),et(o)||(o=[o,o]);var s=dr(r.width,n.getWidth()),l=dr(r.height,n.getHeight()),u=Math.min(s,l),c=dr(o[0],s)+r.x,h=dr(o[1],l)+r.y,d=dr(a[0],u/2),f=dr(a[1],u/2),p=-t.get("startAngle")*Qk,g=t.get("minAngle")*Qk,m=0;e.each(i,function(t){!isNaN(t)&&m++});var v=e.getSum(i),y=Math.PI/(v||m)*2,_=t.get("clockwise"),b=t.get("roseType"),x=t.get("stillShowZeroSum"),w=e.getDataExtent(i);w[0]=0;var k=$k,C=0,S=p,M=_?1:-1;if(e.setLayout({viewRect:r,r:f}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:h,r0:d,r:b?NaN:f});else{(i="area"!==b?0===v&&x?y:t*y:$k/m)n?a:o,c=Math.abs(l.label.y-n);if(c>u.maxY){var h=l.label.x-e-l.len2*r,f=i+l.len,p=Math.abs(h)0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":T>0?"left":"right"}var V=m.get("rotate");if(P="number"==typeof V?V*(Math.PI/180):V?T<0?-O+Math.PI:-O:0,o=!!P,d.x=S,d.y=M,d.rotation=P,d.setStyle({verticalAlign:"middle"}),E){d.setStyle({align:I});var B=d.states.select;B&&(B.x+=d.x,B.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var j=(d.style.margin||0)+2.1;H.y-=j/2,H.height+=j,r.push({label:d,labelLine:p,position:v,len:k,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new wi(T,D),linePoints:A,textAlign:I,labelDistance:y,labelAlignTo:_,edgeDistance:b,bleedMargin:x,rect:H})}s.setTextConfig({inside:E})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d=n.r0}},e.type="pie",e}(ig);function sC(t,e,n){e=et(e)&&{coordDimensions:e}||B({},e);var i=t.getSource(),r=fb(i,e),o=new hb(r,t);return o.initData(i,n),o}var lC=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),uC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.useColorPaletteOnData=!0,e}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lC(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sC(this,{coordDimensions:["value"],encodeDefaulter:tt(Dd,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),function(t){r.push(t)}),i.percent=yr(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Wp),cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},e}(Wp),hC=function(){},dC=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new hC},e.prototype.buildPath=function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,o=r.shape,a=t.getContext?t.getContext():t;if(a&&i[0]<4)this._ctx=a;else{this._ctx=null;for(var s=0;s=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e}(ds),fC=function(){function t(){this.group=new tr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t,e){this.group.removeAll();var n=new dC({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},t.prototype.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("points");this.group.eachChild(function(t){null!=t.startIndex&&(e=new Float32Array(e.buffer,4*t.startIndex*2,2*(t.endIndex-t.startIndex))),t.setShape("points",e)})}},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new Ju({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new dC,this._incremental.addDisplayable(i,!0)):((i=new dC({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,!!this._incremental,n)},t.prototype._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=jm(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;if(l&&t.setColor(l),!n){var u=Vs(t);u.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){u.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(u.dataIndex=n+(t.startIndex||0))})}},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),pC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=Ak("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new fC:new ek,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ig),gC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(md),mC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$r).models[0]},e.type="cartesian2dAxis",e}(md);W(mC,Tx);var vC={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},yC=z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vC),_C=z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},vC),bC={category:yC,value:_C,time:z({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_C),log:H({scale:!0,logBase:10},_C)},xC={value:1,category:1,time:1,log:1};function wC(t,e,n,i){q(xC,function(r,o){var a=z(z({},bC[o],!0),i,!0),s=function(t){function n(){for(var n=[],i=0;ie[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Yx);function OC(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),pt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function TC(t){return"cartesian2d"===t.get("coordinateSystem")}function DC(t){var e={xAxisModel:null,yAxisModel:null};return q(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,$r).models[0];e[i]=o}),e}function PC(t,e){return t.getCoordSysModel()===e}function EC(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)RC(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&RC(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function RC(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var LC=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=SC,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),q(n.x,function(t){xx(t.scale,t.model)}),q(n.y,function(t){xx(t.scale,t.model)});var i={};q(n.x,function(t){EC(n,"y",t,i)}),q(n.y,function(t){EC(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=ld(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){q(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)})}s(),r&&(q(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.scale;if(t.model.get(["axisLabel","show"])&&!e.isBlank()){var n,i,r=e.getExtent();i=e instanceof Pb?e.count():(n=e.getTicks()).length;var o,a=t.getLabelModel(),s=Cx(t),l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u0?"top":"bottom",i="center"):wr(o-NC)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),zC={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(te(s,s,a),te(l,l,a));var u=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ru({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]),d=e.get(["axisLine","symbolSize"]),f=e.get(["axisLine","symbolOffset"])||0;if("number"==typeof f&&(f=[f,f]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var p=d[0],g=d[1];q([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==h[i]&&null!=h[i]){var r=jm(h[i],-p/2,-g/2,p,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=jC(r.getTicksCoords(),e.transform,l,H(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;ch[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,HC(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*NC/180),HC(s)?o=FC.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=function(t,e,n,i){var r,o,a=xr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return wr(a-NC/2)?(o=l?"bottom":"top",r="center"):wr(a-1.5*NC)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*NC&&a>NC/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,p||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=pt(t.nameTruncateMaxWidth,m.maxWidth,a),_=new zs({x:f[0],y:f[1],rotation:o.rotation,silent:FC.isLabelSilent(e),style:Vc(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ec({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var b=FC.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,Vs(_).eventData=b}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function VC(t){t&&(t.ignore=!0)}function BC(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=oi([]);return ui(r,r,-t.rotation),n.applyTransform(si([],r,t.getLocalTransform())),i.applyTransform(si([],r,e.getLocalTransform())),n.intersect(i)}}function HC(t){return"middle"===t||"center"===t}function jC(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function WC(t){var e=YC(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=qC(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=H({color:h.color},a));var f=z(F(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(s||(f.name=""),"string"==typeof l){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(f.name=l(f.name,f));var g=new sh(f,null,this.ecModel);return W(g,Tx.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:z({lineStyle:{color:"#bbb"}},gS.axisLine),axisLabel:mS(gS.axisLabel,!1),axisTick:mS(gS.axisTick,!1),splitLine:mS(gS.splitLine,!0),splitArea:mS(gS.splitArea,!0),indicator:[]},e}(md),yS=["axisLine","axisTickLabel","axisName"],_S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;q(X(e.getIndicatorAxes(),function(t){return new GC(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){q(yS,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=et(c)?c:[c],f=et(h)?h:[h],p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,_=0;_n[0]&&isFinite(h)&&isFinite(n[0]))}else a.getTicks().length-1>r&&(u=o(u)),h=fr((c=Math.ceil(n[1]/u)*u)-u*r),a.setExtent(h,c),a.setInterval(u)})},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();function wS(t){t.registerCoordinateSystem("radar",xS),t.registerComponentModel(vS),t.registerComponentView(_S),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var kS="\0_ec_interaction_mutex";function CS(t,e){return!!SS(t)[e]}function SS(t){return t[kS]||(t[kS]={})}function MS(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(be(i.event),AS(t,e,n,i,r))}function AS(t,e,n,i,r){r.isAvailableBehavior=J(IS,null,n,i),t.trigger(e,r)}function IS(t,e,n){var i=n[t];return!t||i&&(!it(i)||e.event[i+"Key"])}__({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var OS=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=J(n._mousedownHandler,n),r=J(n._mousemoveHandler,n),o=J(n._mouseupHandler,n),a=J(n._mousewheelHandler,n),s=J(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=H(F(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return m(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(xe(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&IS("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!CS(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&be(t.event),AS(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){xe(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=IS("zoomOnMouseWheel",t,this._opt),n=IS("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;MS(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);MS(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){CS(this._zr,"globalPan")||MS(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(oe);function TS(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function DS(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0;a=Math.max(Math.min(o.max||1/0,a),s)}var l=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var PS={axisPointer:1,tooltip:1,brush:1};function ES(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!PS.hasOwnProperty(i.mainType)&&r&&r.model!==n}var RS=["rect","circle","line","ellipse","polygon","polyline","path"],LS=St(RS),NS=St(RS.concat(["g"])),FS=St(RS.concat(["g"])),zS=qr();function VS(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function BS(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=VS(r),u=VS(o),c=VS(s),h=VS(a),d=t.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=hv(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,cl(e)}function HS(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Fc(e,zc(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=e.getTextContent();if(p&&(zS(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function jS(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Vs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function GS(t,e,n,i,r){t.data||Ec({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function US(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ml(e,a,o.get("blurScope")),t.isGeo&&function(t,e,n){var i=Vs(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}var WS=function(){function t(t){var e=new tr;this.uid=uh("ec_map_draw"),this._controller=new OS(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new tr),e.add(this._svgGroup=new tr)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):mc(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=St(),n=St(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=function(t){return[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]};i.removeAll(),q(t.geo.regions,function(r){var l=r.name,u=e.get(l),c=n.get(l)||{},h=c.dataIdx,d=c.regionModel;u||(u=e.set(l,new tr),i.add(u),h=a?a.indexOfName(l):null,d=t.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:d}));var f=new Gu({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(f),q(r.geometries,function(t){if("polygon"===t.type){for(var e=[],n=0;n-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Wp);function XS(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),q(e,function(t,e){for(var n,i,r,o=(n=X(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},q(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,c=0;c1?(s.width=a,s.height=a/f):(s.height=a,s.width=a*f),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var g=t.getBoxLayoutParams();g.aspect=f,s=ld(g,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var rM=new(function(){function t(){this.dimensions=nM.prototype.dimensions}return t.prototype.create=function(t,e){var n=[];t.eachComponent("geo",function(t,i){var r=t.get("map"),o=new nM(r+i,r,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=iM,o.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var i={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}}),q(i,function(t,i){var r=X(t,function(t){return t.get("nameMap")}),o=new nM(i,i,{nameMap:V(r),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});o.zoomLimit=pt.apply(null,X(t,function(t){return t.get("scaleLimit")})),n.push(o),o.resize=iM,o.resize(t[0],e),q(t,function(t){t.coordinateSystem=o,function(t,e){q(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}(o,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=St(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,i+=o.hierNode.shift+(r+=o.hierNode.change)}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=fM(s),o=pM(o),s&&o;){r=fM(r),a=pM(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(mM(gM(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!fM(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!pM(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function cM(t){t.setLayout({x:t.hierNode.prelim+t.parentNode.hierNode.modifier},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function hM(t){return arguments.length?t:vM}function dM(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function fM(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function pM(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function gM(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function mM(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function vM(t,e){return t.parentNode===e.parentNode?1:2}var yM=function(){this.parentPoint=[],this.childPoints=[]},_M=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yM},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=dr(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;dy.x)||(b-=Math.PI);var k=x?"left":"right",C=s.getModel("label"),S=C.get("rotate"),M=S*(Math.PI/180),A=m.getTextContent();A&&(m.setTextConfig({position:C.get("position")||k,rotation:null==S?-b:M,origin:"center"}),A.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),O="ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():null;O&&(Vs(n).focus=O),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Vu({shape:kM(c,h,d,r,r)})),mc(g,{shape:kM(c,h,d,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;ye&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),LM=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n=0){var i=n.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function FM(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function zM(t,e){return G(FM(t),e)>=0}function VM(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var BM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return m(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new sh(t.leaves||{},this,this.ecModel),i=LM.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var r=i.getNodeByDataIndex(e);return r&&r.children.length&&r.isExpand||(t.parentModel=n),t})}),r=0;i.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return Cp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=VM(i,this),n},e.type="series.tree",e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Wp);function HM(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function jM(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=hM(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=hM());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),HM(l,function(t){var e=dM(m=(t.getLayout().x+f)*p,v=(t.depth-1)*g);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+f),p=r/(h.depth-1||1),HM(l,function(t){v=(t.getLayout().x+f)*g,t.setLayout({x:m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),HM(l,function(t){m=(t.getLayout().x+f)*p,t.setLayout({x:m,y:v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g},!0)}))}}}(t,e)})}function GM(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();B(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var UM=function(){},WM=["treemapZoomToNode","treemapRender","treemapMove"];function YM(t){var e=t.getData(),n={};e.tree.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=jd(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}function qM(t){var e=0;q(t.children,function(t){qM(t);var n=t.value;et(n)&&(n=n[0]),e+=n});var n=t.value;et(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),et(t.value)?t.value[0]=n:t.value=n}var XM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};qM(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new sh({itemStyle:r},this,e),a=X((i=t.levels=function(t,e){var n,i,r=Nr(e.get("color")),o=Nr(e.get(["aria","decal","decals"]));if(r){q(t=t||[],function(t){var e=new sh(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e))||[],function(t){return new sh(t,o,e)},this),s=LM.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=s.getNodeByDataIndex(e);return t.parentModel=(n?a[n.depth]:null)||o,t})});return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return Cp("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=VM(i,this),n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=St(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){YM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Wp);function ZM(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function KM(t,e,n){Vs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&VM(n,e)}}var $M=function(){function t(t){this.group=new tr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),ud(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Gr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o,a,s,l,u,c,h,d,f,p=0,g=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),v=(u=(a=e.box).height,c=dr((o=e.pos).left,l=a.width),h=dr(o.top,u),d=dr(o.right,l),f=dr(o.bottom,u),(isNaN(c)||isNaN(parseFloat(o.left)))&&(c=0),(isNaN(d)||isNaN(parseFloat(o.right)))&&(d=l),(isNaN(h)||isNaN(parseFloat(o.top)))&&(h=0),(isNaN(f)||isNaN(parseFloat(o.bottom)))&&(f=u),s=Uh(s||0),{width:Math.max(d-c-s[1]-s[3],0),height:Math.max(f-h-s[0]-s[2],0)}),y=e.totalWidth,_=e.renderList,b=_.length-1;b>=0;b--){var x=_[b],w=x.node,k=x.width,C=x.text;y>v.width&&(y-=k-g,k=g,C=null);var S=new Au({shape:{points:ZM(p,0,k,m,b===_.length-1,0===b)},style:H(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zs({style:{text:C,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:tt(r,w)});S.disableLabelAnimation=!0,this.group.add(S),KM(S,t,w),p+=k+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),QM=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Di(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];li(s,s,[-(e-=a.x),-(n-=a.y)]),ci(s,s,[t.scale,t.scale]),li(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&nd(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new $M(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(zM(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(ig),sA=q,lA=at,uA=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=F(e);this.type=i,this.mappingMethod=n,this._normalizeData=_A[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(cA(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,q(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(sA(e,function(t,e){n[t]=e}),!et(i)){var r=[];at(i)?sA(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=yA(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):cA(r,!0):(_t("linear"!==n||r.dataExtent),cA(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return J(this._normalizeData,this)},t.listVisualTypes=function(){return Q(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){at(t)?q(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=et(e)?[]:at(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&sA(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(et(t))t=t.slice();else{if(!lA(t))return[];var e=[];sA(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new xA(h);return wA(d).drColorMappingBy=c,d}}}(0,r,o,0,u,f);q(f,function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=B({},e);if(r){var s=r.type,l="color"===s&&wA(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,p,i);CA(t,o,n,i)}})}else s=SA(u),c.fill=s}}function SA(t){var e=MA(t,"color");if(e){var n=MA(t,"colorAlpha"),i=MA(t,"colorSaturation");return i&&(e=vn(e,null,null,i)),n&&(e=yn(e,n)),e}}function MA(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function AA(t,e){var n=t.get(e);return et(n)&&n.length?{name:e,range:n}:null}var IA=Math.max,OA=Math.min,TA=pt,DA=q,PA=["itemStyle","borderWidth"],EA=["itemStyle","gapWidth"],RA=["upperLabel","show"],LA=["upperLabel","height"],NA={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=ld(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=dr(TA(s.width,l[0]),r),c=dr(TA(s.height,l[1]),o),h=i&&i.type,d=NM(i,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),g=FM(p);if("treemapMove"!==h){var m="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,h=o.children,d=0,f=h.length;dbr&&(u=br),a=o}ua[1]&&(a[1]=e)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?IA(u*i/l,l/(u*r)):1/0}function VA(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;hi&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var x=-Math.atan2(v[1],v[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*p+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*b+l[0],i.y=l[1]+w,h=v[0]<0?"right":"left",i.originX=-p*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*b+u[0],i.y=u[1]+w,h=v[0]>=0?"right":"left",i.originX=p*b,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function k(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(tr);function kI(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:zc(e)}}function CI(t){return isNaN(t[0])||isNaN(t[1])}function SI(t){return!CI(t[0])&&!CI(t[1])}var MI=function(){function t(t){this.group=new tr,this._LineCtor=t||wI}return t.prototype.isPersistent=function(){return!0},t.prototype.updateData=function(t){var e=this,n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=kI(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}function RI(t,e){var n=[],i=ua,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Rt(l[0]),Rt(l[1])],l[2]&&l.__original.push(Rt(l[2])));var h=l.__original;if(null!=l[2]){if(Et(r[0],h[0]),Et(r[1],h[2]),Et(r[2],h[1]),u&&"none"!==u){var d=iI(t.node1),f=EI(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(d=iI(t.node2),f=EI(r,h[1],d*e),i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]),Et(l[0],r[0]),Et(l[1],r[2]),Et(l[2],r[1])}else Et(o[0],h[0]),Et(o[1],h[1]),zt(a,o[1],o[0]),qt(a,a),u&&"none"!==u&&(d=iI(t.node1),Ft(o[0],o[0],a,d*e)),c&&"none"!==c&&(d=iI(t.node2),Ft(o[1],o[1],a,-d*e)),Et(l[0],o[0]),Et(l[1],o[1])})}function LI(t){return"view"===t.type}var NI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){var n=new ek,i=new MI,r=this.group;this._controller=new OS(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(LI(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):mc(s,l,t)}RI(t.getGraph(),nI(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode(function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))}).on("dragend",function(){h&&h.setUnfixed(e)}),n.setDraggable(o&&!!h),"adjacency"===r.get(["emphasis","focus"])&&(Vs(n).focus=t.getAdjacentDataIndices())}),u.graph.eachEdge(function(t){var e=t.getGraphicEl();"adjacency"===t.getModel().get(["emphasis","focus"])&&(Vs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl(function(t,e){var n=u.getItemModel(e).get(["label","rotate"])||0,i=t.getSymbolPath();if(f){var r=u.getItemLayout(e),o=Math.atan2(r[1]-g,r[0]-p);o<0&&(o=2*Math.PI+o);var a=r[0]=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof VI||(e=this._nodesMap[FI(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}W(VI,HI("hostGraph","data")),W(BI,HI("hostGraph","edgeData"));var jI=zI;function GI(t,e,n,i,r){for(var o=new jI(i),a=0;a "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=bb(t,n);else{var g=Qd.get(p),m=g&&g.dimensions||[];G(m,"value")<0&&m.concat(["value"]);var v=fb(t,{coordDimensions:m});(f=new hb(v,n)).initData(t)}var y=new hb(["value"],n);return y.initData(l,s),r&&r(f,y),EM({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var UI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new lC(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Fr(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){qA(n=this)&&(n.__curvenessList=[],n.__edgeMap={},XA(n));var a=GI(r,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=sh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})});return q(a.edges,function(t){!function(t,e,n,i){if(qA(n)){var r=ZA(t,e,n),o=n.__edgeMap,a=o[KA(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Cp("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Rp({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=X(this.option.categories||[],function(t){return null!=t.value?t:B({value:0},t)}),e=new hb(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wp),WI={type:"graphRoam",event:"graphRoam",update:"none"},YI=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},qI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return m(e,t),e.prototype.getDefaultShape=function(){return new YI},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(ds);function XI(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var ZI=2*Math.PI,KI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:dr(n[0],e.getWidth()),cy:dr(n[1],e.getHeight()),r:dr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){for(var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?Lk:_u,h=u.get("show"),d=u.getModel("lineStyle"),f=d.get("width"),p=(l-s)%ZI||l===s?(l-s)%ZI:ZI,g=s,m=0;h&&m=t&&(0===e?0:i[e-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(y.get("show")&&T!==b){P=(P=y.get("distance"))?P+l:l;for(var L=0;L<=x;L++){u=Math.cos(C),c=Math.sin(C);var N=new Ru({shape:{x1:u*(p-P)+d,y1:c*(p-P)+f,x2:u*(p-k-P)+d,y2:c*(p-k-P)+f},silent:!0,style:I});"auto"===I.stroke&&N.setStyle({stroke:i((T+L/x)/b)}),h.add(N),C+=M}C-=M}else C+=S}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],f=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),m=t.getData(),v=m.mapDimension("value"),y=+t.get("min"),_=+t.get("max"),b=[y,_],x=[o,a];function w(e,n){var i,o=m.getItemModel(e).getModel("pointer"),a=dr(o.get("width"),r.r),s=dr(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=dr(u[0],r.r),h=dr(u[1],r.r),d=o.get("keepAspect");return(i=l?jm(l,c-a/2,h-s,a,s,null,d):new qI({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function k(t,e){var n=p.get("roundCap")?Lk:_u,i=p.get("overlap"),a=i?p.get("width"):l/m.count(),u=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:i?r.r-a:r.r-(t+1)*a,r:i?r.r:r.r-t*a}});return i&&(u.z2=_-m.get(v,t)%_),u}(g||f)&&(m.diff(c).add(function(e){if(f){var n=w(e,o);vc(n,{rotation:-(hr(m.get(v,e),b,x,!0)+Math.PI/2)},t),u.add(n),m.setItemGraphicEl(e,n)}if(g){var i=k(e,o),r=p.get("clip");vc(i,{shape:{endAngle:hr(m.get(v,e),b,x,r)}},t),u.add(i),d[e]=i}}).update(function(e,n){if(f){var i=c.getItemGraphicEl(n),r=i?i.rotation:o,a=w(e,r);a.rotation=r,mc(a,{rotation:-(hr(m.get(v,e),b,x,!0)+Math.PI/2)},t),u.add(a),m.setItemGraphicEl(e,a)}if(g){var s=h[n],l=k(e,s?s.shape.endAngle:o),y=p.get("clip");mc(l,{shape:{endAngle:hr(m.get(v,e),b,x,y)}},t),u.add(l),d[e]=l}}).execute(),m.each(function(t){var e=m.getItemModel(t),n=e.getModel("emphasis");if(f){var r=m.getItemGraphicEl(t),o=m.getItemVisual(t,"style"),a=o.fill;if(r instanceof _s){var s=r.style;r.useStyle(B({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else r.useStyle(o),"pointer"!==r.type&&r.setColor(a);r.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===r.style.fill&&r.setStyle("fill",i(hr(m.get(v,t),b,[0,1],!0))),r.z2EmphasisLift=0,Tl(r,e),Ml(r,n.get("focus"),n.get("blurScope"))}if(g){var l=d[t];l.useStyle(m.getItemVisual(t,"style")),l.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Tl(l,e),Ml(l,n.get("focus"),n.get("blurScope"))}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=jm(r,e.cx-i/2+dr(o[0],e.r),e.cy-i/2+dr(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new tr,h=[],d=[],f=t.isAnimationEnabled();a.diff(this._data).add(function(t){h[t]=new zs({silent:!0}),d[t]=new zs({silent:!0})}).update(function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),p=new tr,g=i(hr(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),y=r.cx+dr(v[0],r.r),_=r.cy+dr(v[1],r.r);(A=h[e]).attr({style:Vc(m,{x:y,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:g})}),p.add(A)}var b=n.getModel("detail");if(b.get("show")){var x=b.get("offsetCenter"),w=r.cx+dr(x[0],r.r),k=r.cy+dr(x[1],r.r),C=dr(b.get("width"),r.r),S=dr(b.get("height"),r.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:g,A=d[e],I=b.get("formatter");A.attr({style:Vc(b,{x:w,y:k,text:XI(o,I),width:isNaN(C)?null:C,height:isNaN(S)?null:S,align:"center",verticalAlign:"middle"},{inheritColor:M})}),qc(A,{normal:b},o,function(t){return XI(t,I)}),f&&Xc(A,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return XI(a?a.interpolatedValue:o,I)}}),p.add(A)}c.add(p)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(ig),$I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return sC(this,["value"])},e.type="series.gauge",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Wp),QI=["itemStyle","opacity"],JI=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Tu,a=new zs;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return m(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(QI);l=null==l?1:l,i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,vc(i,{style:{opacity:l}},r,e)):mc(i,{style:{opacity:l},shape:{points:a.points}},r,e),Tl(i,o),this._updateLabel(t,e),Ml(this,s.get("focus"),s.get("blurScope"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;Fc(r,zc(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new wi(c[0][0],c[0][1]):null},mc(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),mm(n,vm(a),{stroke:u})},e}(Au),tO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new JI(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){bc(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ig),eO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lC(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return sC(this,{coordDimensions:["value"],encodeDefaulter:tt(Dd,this)})},e.prototype._defaultLabelLine=function(t){Fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wp);function nO(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&gO(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function gO(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var mO=fO,vO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&z(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];q(K(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(md),yO=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Yx);function _O(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=xO(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=xO(s,[0,a]),r=o=xO(s,[r,o]),i=0}e[0]=xO(e[0],n),e[1]=xO(e[1],n);var l=bO(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=xO(e[i],h),u=bO(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function bO(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function xO(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var wO=q,kO=Math.min,CO=Math.max,SO=Math.floor,MO=Math.ceil,AO=fr,IO=Math.PI;function OO(t,e){return kO(CO(t,e[0]),e[1])}function TO(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function DO(t,e){var n,i,r=e.axisExpandWidth,o=e.axisCollapseWidth,a=e.winInnerIndices,s=o,l=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();wO(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),xx(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=OO(e.get("axisExpandWidth"),l),h=OO(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=OO(f[1]-f[0],l),f[1]=f[0]+t):(t=OO(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||SO(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-h);p<3&&(p=0);var g=[SO(AO(f[0]/c,1))+1,MO(AO(f[1]/c,1))-1];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:p/c*f[0]}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),wO(n,function(e,n){var o=(i.axisExpandable?DO:TO)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s=[a[r].x+t.x,a[r].y+t.y],l={horizontal:IO/2,vertical:0}[r],u=[1,0,0,1,0,0];ui(u,u,l),li(u,u,s),this._axesLayout[e]={position:s,rotation:l,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];q(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?_O(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[CO(0,o[1]*s/d-d/2)])[1]=kO(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}(),EO={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new PO(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",$r).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},RO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return m(e,t),e.prototype.getAreaSelectStyle=function(){return po([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=F(t);if(e)for(var n=e.length-1;n>=0;n--)pr(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&JO(t);var l=F(s);l.brushType=mT(l.brushType,a),l.panelId=a===NO?null:a.panelId,o=t._creatingCover=WO(t,l),t._covers.push(o)}if(o){var u=_T[mT(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(dT(t,o,t._track)),i&&(YO(t,o),u.updateCommon(t,o)),qO(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&$O(t,e,n)&&JO(t)&&(r={isEnd:i,removeOnClick:!0});return r}function mT(t,e){return"auto"===t?e.defaultBrushType:t}var vT={mousedown:function(t){if(this._dragging)yT(this,t);else if(!t.target||!t.target.draggable){fT(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=$O(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=$O(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new sh(r[a],this,e));if(i&&n)return GI(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=n.levelModels[i.depth];r&&(t.parentModel=r)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=n.levelModels[i.depth];r&&(t.parentModel=r)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return Cp("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return Cp("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Wp);function LT(t,e){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){q(t,function(t){var e=WT(t.outEdges,UT),n=WT(t.inEdges,UT),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)})}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),g.setLayout("vertical"===o?{dy:n}:{dx:n},!0);for(var y=0;yh-1?f:h-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)zT(s,l*=.99,a),FT(s,r,n,i,a),YT(s,l,a),FT(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";q(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),q(t,function(t){var e=0,n=0;q(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),q(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==K(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function NT(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function FT(t,e,n,i,r){var o="vertical"===r?"x":"y";q(t,function(t){var a,s,l;t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d0&&(a=s.getLayout()[o]+l,s.setLayout("vertical"===r?{x:a}:{y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,s.setLayout("vertical"===r?{x:a}:{y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,s.setLayout("vertical"===r?{x:a}:{y:a},!0)),u=s.getLayout()[o]})}function zT(t,e,n){q(t.slice().reverse(),function(t){q(t,function(t){if(t.outEdges.length){var i=WT(t.outEdges,VT,n)/WT(t.outEdges,UT);if(isNaN(i)){var r=t.outEdges.length;i=r?WT(t.outEdges,BT,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-GT(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-GT(t,n))*e;t.setLayout({y:a},!0)}}})})}function VT(t,e){return GT(t.node2,e)*t.getValue()}function BT(t,e){return GT(t.node2,e)}function HT(t,e){return GT(t.node1,e)*t.getValue()}function jT(t,e){return GT(t.node1,e)}function GT(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function UT(t){return t.getValue()}function WT(t,e,n){for(var i=0,r=t.length,o=-1;++oi&&(i=e)}),q(e,function(e){var r=new xA({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))})}})}var XT=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];q(g,function(t,e){var n;et(t)?(n=t.slice(),t.unshift(e)):et(t.value)?(n=t.value.slice(),t.value.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:V_(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:V_(p),dimsDef:v.slice()}];return sC(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:tt(Td,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),ZT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return m(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Wp);W(ZT,XT,!0);var KT=ZT,$T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=tD(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?eD(s,n,i,t):n=tD(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(ig),QT=function(){},JT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QT},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig)&&i.push([v,_])}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},lD=["color","borderColor"],uD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&fD(s,a))return;var l=dD(a,0,!0);vc(l,{shape:{points:a.ends}},t,n),pD(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&fD(s,c)?i.remove(u):(u?mc(u,{shape:{points:c.ends}},t,a):u=dD(c),pD(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),yD(t,this.group);var e=t.get("clip",!0)?vk(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=dD(i.getItemLayout(n));pD(o,i,n,r),o.incremental=!0,this.group.add(o)}},e.prototype._incrementalRenderLarge=function(t,e){yD(e,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ig),cD=function(){},hD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new cD},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(ds);function dD(t,e,n){var i=t.ends;return new hD({shape:{points:n?gD(i,t):i},z2:100})}function fD(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(lD);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var bD=uD,xD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return m(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Wp);W(xD,XT,!0);var wD=xD;function kD(t){t&&et(t.series)&&q(t.series,function(t){at(t)&&"k"===t.type&&(t.type="candlestick")})}var CD=["itemStyle","borderColor"],SD=["itemStyle","borderColor0"],MD=["itemStyle","color"],AD=["itemStyle","color0"],ID={seriesType:"candlestick",plan:Xp(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?MD:AD)}function i(t,e){return e.get(t>0?CD:SD)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,B(e.ensureUniqueItemVisual(r,"style"),s)}}}}},OD="undefined"!=typeof Float32Array?Float32Array:Array;function TD(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}var DD={seriesType:"candlestick",plan:Xp(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=dr(gt(t.get("barMaxWidth"),r),r),a=dr(gt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?dr(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.mapDimension(r[0]),a=n.mapDimensionsAll(r[1]),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==o||a.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,r,a=new OD(4*t.count),h=0,d=[],f=[];null!=(r=t.next());){var p=n.get(o,r),g=n.get(s,r),m=n.get(l,r),v=n.get(u,r),y=n.get(c,r);isNaN(p)||isNaN(v)||isNaN(y)?(a[h++]=NaN,h+=3):(a[h++]=TD(n,r,g,m,l),d[0]=p,d[1]=v,i=e.dataToPoint(d,null,f),a[h++]=i?i[0]:NaN,a[h++]=i?i[1]:NaN,d[1]=y,i=e.dataToPoint(d,null,f),a[h++]=i?i[1]:NaN)}n.setLayout("largePoints",a)}:function(t,n){for(var r;null!=(r=t.next());){var a=n.get(o,r),h=n.get(s,r),d=n.get(l,r),f=n.get(u,r),p=n.get(c,r),g=Math.min(h,d),m=Math.max(h,d),v=w(g,a),y=w(m,a),_=w(f,a),b=w(p,a),x=[];k(x,y,0),k(x,v,1),x.push(S(b),S(y),S(_),S(v)),n.setItemLayout(r,{sign:TD(n,r,h,d,l),initBaseline:h>d?y[1]:v[1],ends:x,brushRect:C(f,p,a)})}function w(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function k(t,e,n){var r=e.slice(),o=e.slice();r[0]=pc(r[0]+i/2,1,!1),o[0]=pc(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function C(t,e,n){var r=w(t,n),o=w(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function S(t){return t[0]=pc(t[0],1),t}}}}};function PD(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var ED=function(t){function e(e,n){var i=t.call(this)||this,r=new $w(e,n),o=new tr;return i.add(r),i.add(o),i.updateData(e,n),i}return m(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=jm(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}PD(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r0&&(a=this._getLineLength(i)/l*1e3),(a!==this._period||s!==this._loop)&&(i.stopAnimation(),a>0)){var c=void 0;c="function"==typeof u?u(n):u,i.__t>0&&(c=-a*i.__t),i.__t=0;var h=i.animate("",s).when(a,{__t:1}).delay(c).during(function(){r._updateSymbolPosition(i)});s||h.done(function(){r.remove(i)}),h.start()}this._period=a,this._loop=s}},e.prototype._getLineLength=function(t){return Zt(t.__p1,t.__cp1)+Zt(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=aa,l=sa;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1],t.rotation=-Math.atan2(u[1]-l[1],u[0]-l[0])-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(ND),VD=function(){this.polyline=!1,this.curveness=0,this.segs=[]},BD=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VD},e.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0?t.quadraticCurveTo((s+u)/2-(l-c)*i,(l+c)/2-(u-s)*i,u,c):t.lineTo(u,c)}},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],h=1;h0){if(Za(u,c,(u+d)/2-(c-f)*r,(c+f)/2-(d-u)*r,d,f,o,t,e))return a}else if(qa(u,c,d,f,o,t,e))return a;a++}return-1},e}(ds),HD=function(){function t(){this.group=new tr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t){this.group.removeAll();var e=new BD({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new Ju({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e){var n=new BD;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");if(r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null),!n){var o=Vs(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){o.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(o.dataIndex=n+t.__startIndex)})}},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),jD={seriesType:"lines",plan:Xp(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Wp);function XD(t){return t instanceof Array||(t=[t,t]),t}var ZD={seriesType:"lines",reset:function(t){var e=XD(t.get("symbol")),n=XD(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=XD(n.getShallow("symbol",!0)),r=XD(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}},KD=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=j();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f0){var S=o(v)?s:l;v>0&&(v=v*k+w),_[b++]=S[C],_[b++]=S[C+1],_[b++]=S[C+2],_[b++]=S[C+3]*v*256}else b+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=j()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function $D(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var QD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):$D(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&($D(r)?this.render(e,n,i):this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem;if(yk(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,f=t.getData(),p=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=zc(t),y=t.get(["emphasis","focus"]),_=t.get(["emphasis","blurScope"]),b=yk(u,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],x=n;xs[1]||Sl[1])continue;var M=u.dataToPoint([C,S]);w=new As({shape:{x:Math.floor(Math.round(M[0])-o/2),y:Math.floor(Math.round(M[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:k})}else{if(isNaN(f.get(b[1],x)))continue;w=new As({z2:1,shape:u.dataToRect([f.get(b[0],x)]).contentShape,style:k})}var A=f.getItemModel(x);if(f.hasItemOption){var I=A.getModel("emphasis");p=I.getModel("itemStyle").getItemStyle(),g=A.getModel(["blur","itemStyle"]).getItemStyle(),m=A.getModel(["select","itemStyle"]).getItemStyle(),y=I.get("focus"),_=I.get("blurScope"),v=zc(A)}var O=t.getRawValue(x),T="-";O&&null!=O[2]&&(T=O[2]+""),Fc(w,v,{labelFetcher:t,labelDataIndex:x,defaultOpacity:k.opacity,defaultText:T}),w.ensureState("emphasis").style=p,w.ensureState("blur").style=g,w.ensureState("select").style=m,Ml(w,y,_),w.incremental=r,r&&(w.states.emphasis.hoverLayer=!0),d.add(w),f.setItemGraphicEl(x,w)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new KD;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),p=d-c,g=f-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r}),y=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=X(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,h),function(t,e,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=t.getItemVisual(e,"symbolSize");(c=et(p)?p.slice():null==p?["100%","100%"]:[p,p])[d.index]=dr(c[d.index],f),c[h.index]=dr(c[h.index],i?f:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,r){var o=t.get(tP)||0;o&&(nP.attr({scaleX:e[0],scaleY:e[1],rotation:n}),nP.updateTransform(),o/=nP.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,h.symbolScale,l,i,h);var d=h.symbolSize,f=n.get("symbolOffset");return et(f)&&(f=[dr(f[0],d[0]),dr(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=pt(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=dr(y,e[f.index]),x=Math.max(g+2*b,0),w=_?0:2*b,k=Dr(i),C=k?i:_P((v+w)/x);x=g+2*(b=(v-C*g)/2/(_?C:C-1)),w=_?0:2*b,k||"fixed"===i||(C=u?_P((Math.abs(u)+w)/x):0),m=C*x-w,h.repeatTimes=C,h.symbolMargin=b}var S=p*(m/2),M=h.pathPosition=[];M[d.index]=n[d.wh]/2,M[f.index]="start"===a?S:"end"===a?l-S:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var I=h.barRectShape=B({},n);I[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(M[f.index]+S)),I[d.wh]=n[d.wh];var O=h.clipShape={};O[d.xy]=-n[d.xy],O[d.wh]=c.ecSize[d.wh],O[f.xy]=0,O[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function rP(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function oP(t){var e=t.symbolPatternSize,n=jm(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function aP(t,e,n,i){var r=t.__pictorialBundle,o=n.pathPosition,a=e.valueDim,s=n.repeatTimes||0,l=0,u=n.symbolSize[e.valueDim.index]+n.valueLineWidth+2*n.symbolMargin;for(mP(t,function(t){t.__pictorialAnimationIndex=l,t.__pictorialRepeatTimes=s,l0:i<0)&&(r=s-1-t),e[a.index]=u*(r-s/2+.5)+o[a.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function sP(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?vP(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=oP(n),r.add(o),vP(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function lP(t,e,n){var i=B({},e.barRectShape),r=t.__pictorialBarRect;r?vP(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new As({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function uP(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=B({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(r)mc(r,{shape:o},s,u);else{o[a.wh]=0,r=new As({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[a.wh]=n.clipShape[a.wh],l[i?"updateProps":"initProps"](r,{shape:c},s,u)}}}function cP(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=hP,n.isAnimationEnabled=dP,n}function hP(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function dP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fP(t,e,n,i){var r=new tr,o=new tr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?aP(r,e,n):sP(r,0,n),lP(r,n,i),uP(r,e,n,i),r.__pictorialShapeStr=gP(t,n),r.__pictorialSymbolMeta=n,r}function pP(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];mP(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),q(o,function(t){yc(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function gP(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function mP(t,e,n){q(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function vP(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&l[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function yP(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");mP(t,function(t){if(t instanceof _s){var e=t.style;t.useStyle(B({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var f=e.valueDim.posDesc[+(n.boundingLength>0)];Fc(t.__pictorialBarRect,zc(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Xw(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Ml(t,c,h)}function _P(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var bP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:eP[+s],categoryDim:eP[1-+s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=cP(r,t),n=iP(r,t,e,u),o=fP(r,u,n);r.setItemGraphicEl(t,o),i.add(o),yP(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=cP(r,t),s=iP(r,t,a,u),l=gP(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){mc(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},n.animationModel,n.dataIndex),n.symbolRepeat?aP(t,e,n,!0):sP(t,0,n,!0),lP(t,n,!0),uP(t,e,n,!0)}(n,u,s):n=fP(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),yP(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&pP(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){pP(i,Vs(e).dataIndex,t,e)}):n.removeAll()},e.type="pictorialBar",e}(ig),xP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return m(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ch(Pk.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Pk),wP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new F_(this._layersSeries||[],a,c,c),d=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],f=[],p=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,f=o[0].indices.length,p=0;pMath.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(v=r.r0+x,a>Math.PI/2&&(w="right")):"right"===w&&(v=r.r-x,a>Math.PI/2&&(w="left")):(v=(r.r+r.r0)/2,w="center"),f.style.align=w,f.style.verticalAlign=p(o,"verticalAlign")||"middle",f.x=v*s+r.cx,f.y=v*l+r.cy;var k=p(o,"rotate"),C=0;"radial"===k?(C=-a)<-Math.PI/2&&(C+=Math.PI):"tangential"===k?(C=Math.PI/2-a)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):"number"==typeof k&&(C=k*Math.PI/180),f.rotation=C}),c.dirtyStyle()},e}(_u),AP="sunburstRootToNode",IP="sunburstHighlight",OP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode(function(t){c.push(t)}),function(i,r){function s(t){return t.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(c=r)&&c.piece&&(l.remove(c.piece),c.piece=null);else if(i){var s=new MP(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var c}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new F_(r,i,s,s).add(c).update(c).remove(tt(c,null)).execute()}(c,this._oldChildren||[]),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new MP(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",function(t){r._rootToNode(o.parentNode)})):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&nd(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AP,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(ig);function TP(t){var e=0;q(t.children,function(t){TP(t);var n=t.value;et(n)&&(n=n[0]),e+=n});var n=t.value;et(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),et(t.value)?t.value[0]=n:t.value=n}var DP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};TP(n);var i=X(t.levels||[],function(t){return new sh(t,this,e)},this),r=LM.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=VM(i,this),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){YM(this)},e.type="series.sunburst",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},e}(Wp),PP=Math.PI/180;function EP(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");et(i)||(i=[0,i]),et(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=dr(e[0],r),l=dr(e[1],o),u=dr(i[0],a/2),c=dr(i[1],a/2),h=-t.get("startAngle")*PP,d=t.get("minAngle")*PP,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&RP(p,m);var v=0;q(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),_=Math.PI/(y||v)*2,b=p.depth>0,x=(c-u)/(p.height-(b?-1:1)||1),w=t.get("clockwise"),k=t.get("stillShowZeroSum"),C=w?1:-1;if(b){var S=2*Math.PI;f.setLayout({angle:S,startAngle:h,endAngle:h+S,clockwise:w,cx:s,cy:l,r0:u,r:u+x})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&k?_:r*_;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&"string"==typeof o&&(o=hn(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),B(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}function NP(t,e){return e=e||[0,0],X(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function FP(t,e){return e=e||[0,0],X([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function zP(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function VP(t,e){return e=e||[0,0],X(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function BP(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||It(t,"text")))}function HP(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},It(a,"text")&&(o.text=a.text),It(a,"rich")&&(o.rich=a.rich),It(a,"textFill")&&(o.fill=a.textFill),It(a,"textStroke")&&(o.stroke=a.textStroke),r={type:"text",style:o,silent:!0},i={};var s=It(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),It(a,"textPosition")&&(i.position=a.textPosition),It(a,"textOffset")&&(i.offset=a.textOffset),It(a,"textRotation")&&(i.rotation=a.textRotation),It(a,"textDistance")&&(i.distance=a.textDistance)}return jP(o,t),q(o.rich,function(t){jP(t,t)}),{textConfig:i,textContent:r}}function jP(t,e){e&&(e.font=e.textFont||e.font,It(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),It(e,"textAlign")&&(t.align=e.textAlign),It(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),It(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),It(e,"textWidth")&&(t.width=e.textWidth),It(e,"textHeight")&&(t.height=e.textHeight),It(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),It(e,"textPadding")&&(t.padding=e.textPadding),It(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),It(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),It(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),It(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),It(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),It(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),It(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function GP(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";UP(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,q(e.rich,function(t){UP(t,t)}),i}function UP(t,e){e&&(It(e,"fill")&&(t.textFill=e.fill),It(e,"stroke")&&(t.textStroke=e.fill),It(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),It(e,"font")&&(t.font=e.font),It(e,"fontStyle")&&(t.fontStyle=e.fontStyle),It(e,"fontWeight")&&(t.fontWeight=e.fontWeight),It(e,"fontSize")&&(t.fontSize=e.fontSize),It(e,"fontFamily")&&(t.fontFamily=e.fontFamily),It(e,"align")&&(t.textAlign=e.align),It(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),It(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),It(e,"width")&&(t.textWidth=e.width),It(e,"height")&&(t.textHeight=e.height),It(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),It(e,"padding")&&(t.textPadding=e.padding),It(e,"borderColor")&&(t.textBorderColor=e.borderColor),It(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),It(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),It(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),It(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),It(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),It(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),It(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),It(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),It(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),It(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var WP=Ya.CMD,YP=2*Math.PI,qP=["x","y"],XP=["width","height"],ZP=[];function KP(t,e){return Math.abs(t-e)<1e-5}function $P(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,i,r){KP(t,i)&&KP(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nC:A2&&l.push(e),l}function QP(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=nh.width?1:0,r=XP[i],o=qP[i],a=h[r]/e,s=h[o],l=0;li[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:J(VP,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}},TE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=mE(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},e}(Wp),DE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this._data,o=t.getData(),a=this.group,s=$E(t,o,e,n);r||a.removeAll();var l=t.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new dR(t,l),c=l?"multiple":"oneToOne";new F_(r?r.getIndices():[],o.getIndices(),PE(r,c,l&&l.from),PE(o,c,l&&l.to),null,c).add(function(e){JE(n,null,e,s(e,i),t,a,o,null)}).remove(function(e){lR(r.getItemGraphicEl(e),t,a)}).update(function(e,l){u.reset("oneToOne");var c=r.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(hR(c,a),c=null),JE(n,c,e,s(e,i),t,a,o,u),u.applyMorphing()}).updateManyToOne(function(e,l){u.reset("manyToOne");for(var c=0;c=0){!s&&(s=r[t]={});var f=Q(l);for(h=0;h=0){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!a&&(a=r.style={});var p=Q(i);for(c=0;c=d;f--)lR(e.childAt(f),r,e)}}(t,e,n,i,r,s),l>=0?o.replaceAt(e,l):o.add(e),e}function eR(t,e){var n,i=mE(t),r=e.type,o=e.shape,a=e.style;return null!=r&&r!==i.customGraphicType||"path"===r&&(n=o)&&(It(n,"pathData")||It(n,"d"))&&uR(o)!==i.customPathData||"image"===r&&It(a,"image")&&a.image!==i.customImagePath}function nR(t,e,n){var i=e?iR(t,e):t,r=e?rR(t,i,_E):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?iR(s,e):s:null;if(r&&(n.isLegacy||BP(r,o,!!a,!!l))){n.isLegacy=!0;var u=HP(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}!e&&l&&!l.type&&(l.type="text");var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function iR(t,e){return e?t?t[e]:null:t}function rR(t,e,n){var i=e&&e.style;return null==i&&n===_E&&t&&(i=t.styleEmphasis),i}function oR(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function aR(t,e){var n=this.context;tR(n.api,null!=e?n.oldChildren[e]:null,n.dataIndex,null!=t?n.newChildren[t]:null,n.seriesModel,n.group,0,n.morphPreparation)}function sR(t){var e=this.context;lR(e.oldChildren[t],e.seriesModel,e.group)}function lR(t,e,n){if(t){var i=mE(t).leaveToProps;i?mc(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t)}}function uR(t){return t&&(t.pathData||t.d)}function cR(t){return t&&t instanceof ds}function hR(t,e){t&&e.remove(t)}var dR=function(){function t(t,e){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=t,this._transOpt=e}return t.prototype.hasFrom=function(){return!!this._fromList.length},t.prototype.findAndAddFrom=function(t){if(t&&(mE(t).canMorph&&this._fromList.push(t),t.isGroup))for(var e=t.childrenRef(),n=0;n=n?null:o,i+1>=e?n-o:r);else if("oneToMany"===t)for(var a=Math.max(1,Math.floor(e/n)),s=0,l=0;s=e?e-s:a,l>=n?null:l)},t.prototype._oneToOneForSingleTo=function(t,e){var n,i=this._toList[t],r=this._toElOptionList[t],o=this._toDataIndices[t],a=this._allPropsFinalList[t],s=this._fromList[e],l=this._getOrCreateMorphConfig(o),u=l.duration;if(s&&sE(s)){if(LE(i,a,r.style),u){var c=lE([s],i,l,fR);this._processResultIndividuals(c,t,null)}}else{var h=u&&s&&(s!==i||aE(n=s)||sE(n))?s:null,d={};FE("shape",i,h,r,d,!1),FE("extra",i,h,r,d,!1),VE(i,h,r,d,!1),BE(i,h,r,r.style,d,!1),LE(i,a,r.style),h&&iE(h,i,l),NE(i,o,r,this._seriesModel,d,!1)}},t.prototype._manyToOneForSingleTo=function(t,e,n){var i=this._toList[t];LE(i,this._allPropsFinalList[t],this._toElOptionList[t].style);var r=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(r.duration&&null!=e){for(var o=[],a=e;aa)return!0;if(o){var s=YC(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=pR(t).pointerEl=new l[r.type](gR(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=pR(t).labelEl=new zs(gR(e.label));t.add(r),_R(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=pR(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=pR(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),_R(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Oc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){be(t.event)},onmousedown:mR(this._onHandleDragMove,this,0,0),drift:mR(this._onHandleDragMove,this),ondragend:mR(this._onHandleDragEnd,this)}),i.add(r)),xR(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");et(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,lg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){vR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bR(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(bR(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bR(i)),pR(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function kR(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function CR(t,e,n,i,r){var o=SR(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Uh(a.get("padding")||0),l=a.getFont(),u=Ni(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Vc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function SR(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Sx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};q(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndexInside);i&&s.seriesData.push(i)}),it(a)?o=a.replace("{value}",o):nt(a)&&(o=a(s))}return o}function MR(t,e,n){var i=[1,0,0,1,0,0];return ui(i,i,n.rotation),li(i,i,n.position),kc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function AR(t,e,n,i,r,o){var a=GC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),CR(e,i,r,o,{position:MR(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function IR(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function OR(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function TR(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var DR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=PR(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=kR(i),h=ER[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}AR(e,t,OC(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=OC(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=MR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=PR(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(wR);function PR(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var ER={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:IR([e,n[0]],[e,n[1]],RR(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth());return{type:"Rect",shape:OR([e-i/2,n[0]],[i,n[1]-n[0]],RR(t))}}};function RR(t){return"x"===t.dim?0:1}var LR=DR,NR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(md),FR=qr(),zR=q;function VR(t,e,n){if(!x.node){var i=e.getZr();FR(i).records||(FR(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);zR(FR(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}FR(t).initialized||(FR(t).initialized=!0,n("click",tt(HR,"click")),n("mousemove",tt(HR,"mousemove")),n("globalout",BR))}(i,e),(FR(i).records[t]||(FR(i).records[t]={})).handler=n}}function BR(t,e,n){t.handler("leave",null,n)}function HR(t,e,n,i){e.handler(t,n,i)}function jR(t,e){if(!x.node){var n=e.getZr();(FR(n).records||{})[t]&&(FR(n).records[t]=null)}}var GR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";VR("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){jR("axisPointer",e)},e.prototype.dispose=function(t,e){jR("axisPointer",e)},e.type="axisPointer",e}(qp);function UR(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Yr(o,t);if(null==a||a<0||et(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h="x"===c||"radius"===c?1:0,d=o.mapDimension(u.dim),f=[];f[h]=o.get(d,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(X(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),i=[p.x+p.width/2,p.y+p.height/2]}return{point:i,el:s}}var WR=qr();function YR(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||J(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){$R(r)&&(r=UR({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=$R(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||$R(r),d={},f={},p={list:[],map:{}},g={showPointer:tt(XR,f),showTooltip:tt(ZR,p)};q(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);q(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&qR(t,a,g,!1,d)}})});var m={};return q(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&q(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,KR(e),KR(t)))),m[t.key]=o}})}),q(m,function(t,e){qR(c[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];q(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,d),function(t,e,n,i){if(!$R(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=WR(i)[r]||{},a=WR(i)[r]={};q(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&q(n.seriesDataIndices,function(t){a[t.seriesIndex+" | "+t.dataIndex]=t})});var s=[],l=[];q(o,function(t,e){!a[e]&&l.push(t)}),q(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function qR(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return q(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p=0&&s<0)&&(a=p,s=f,r=u,o.length=0),q(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&B(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function XR(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ZR(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=XC(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function KR(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function $R(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function QR(t){KC.registerAxisPointerClass("CartesianAxisPointer",LR),t.registerComponentModel(NR),t.registerComponentView(GR),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!et(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];q(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=XC(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(q(n.getAxes(),tt(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&q(d.baseAxes,tt(f,!h||"cross",c)),h&&q(d.otherAxes,tt(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||qC(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=F(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&H(l,c.textStyle)}}return t.model.getModel("axisPointer",new sh(s,n,i))}(c,u,r,e,i,s):h).get("snap"),p=XC(c.model),g=s||f||"category"===c.type,m=t.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:qC(h),seriesModels:[],linkGroup:null};l[p]=m,t.seriesInvolved=t.seriesInvolved||g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;rm?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));CR(t,n,i,r,d)},e}(wR),tL={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:IR(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:TR(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:TR(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},eL=JR,nL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(md),iL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$r).models[0]},e.type="polarAxis",e}(md);W(iL,Tx);var rL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="angleAxis",e}(iL),oL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="radiusAxis",e}(iL),aL=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Yx);aL.prototype.dataToRadius=Yx.prototype.dataToCoord,aL.prototype.radiusToData=Yx.prototype.coordToData;var sL=aL,lL=qr(),uL=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Ni(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=lL(t.model),d=h.lastAutoInterval,f=h.lastTickCount;return null!=d&&null!=f&&Math.abs(d-c)<=1&&Math.abs(f-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},e}(Yx);uL.prototype.dataToAngle=Yx.prototype.dataToCoord,uL.prototype.angleToData=Yx.prototype.coordToData;var cL=uL;function hL(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var dL=function(){function t(t){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new sL,this._angleAxis=new cL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return hL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return hL(e)===this?this.pointToData(n):null},t}();function fL(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();q(Ox(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),q(Ox(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),xx(i.scale,i.model),xx(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function pL(t,e){if(t.type=e.get("type"),t.scale=kx(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var gL={dimensions:dL.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new dL(i+"");r.update=fL;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");pL(o,s),pL(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=dr(i[0],r),t.cy=dr(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:et(l)||(l=[0,l]);var u=[dr(l[0],s),dr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",$r).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},mL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vL(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function yL(t){return t.getRadiusAxis().inverse?0:1}function _L(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var bL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=X(n.getViewLabels(),function(t){t=F(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});_L(s),_L(o),q(mL,function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||xL[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(KC),xL={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=yL(n),u=l?0:1;(a=0===o[u]?new eu({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new wu({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[yL(n)],u=X(i,function(t){return new Ru({shape:vL(n,[l,l+s],t.coord)})});t.add(cc(u,{style:H(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[yL(n)],c=[],h=0;hp?"left":"right",v=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];at(y)&&y.textStyle&&(a=new sh(y.textStyle,l,l.ecModel))}var _=new zs({silent:GC.isLabelSilent(e),style:Vc(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(_),c){var b=GC.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,Vs(_).eventData=b}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c=0?"p":"n",M=b;y&&(i[s][C]||(i[s][C]={p:b,n:b}),M=i[s][C][S]);var A=void 0,I=void 0,O=void 0,T=void 0;if("radius"===h.dim){var D=h.dataToCoord(k)-b,P=o.dataToCoord(C);Math.abs(D)=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return GL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return GL(e)===this?this.pointToData(n):null},t}(),WL={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new UL(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",$r).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:UL.prototype.dimensions},YL=["x","y"],qL=["width","height"],XL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=$L(a,1-KL(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=kR(i),h=ZL[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}AR(e,t,RL(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=RL(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=MR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=KL(r),s=$L(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=$L(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(wR),ZL={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:IR([e,n[0]],[e,n[1]],KL(t))}},shadow:function(t,e,n){var i=t.getBandWidth();return{type:"Rect",shape:OR([e-i/2,n[0]],[i,n[1]-n[0]],KL(t))}}};function KL(t){return t.isHorizontal()?0:1}function $L(t,e){var n=t.getRect();return[n[YL[e]],n[YL[e]]+n[qL[e]]]}var QL=XL,JL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="single",e}(qp);function tN(t,e){var n,i=t.cellSize;1===(n=et(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=X([0,1],function(t){return function(t,e){return null!=t[od[e][0]]||null!=t[od[e][1]]&&null!=t[od[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});hd(t,e,{type:"box",ignoreSize:r})}var eN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n,i){var r=dd(e);t.prototype.init.apply(this,arguments),tN(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),tN(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(md),nN={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},iN={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new As({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Tu({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?(n=t,q(e,function(t,e){n=n.replace("{"+e+"}",t)}),n):"function"==typeof t?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p=this._formatterLabel(f,{start:e.start.y,end:e.end.y,nameMap:d}),g=new zs({z2:30,style:Vc(r,{text:p})});g.attr(this._yearTextPositionControl(g,h[a],n,a,o)),i.add(g)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];it(r)&&(r=nN[r.toUpperCase()]||[]);var u="start"===a?0:1,c="horizontal"===e?0:1;o="start"===a?-o:o;for(var h="center"===s,d=0;d=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/oN)-Math.floor(n[0].time/oN)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}(),lN=qr(),uN={path:null,compoundPath:null,group:tr,image:_s,text:zs},cN=function(t){var e=t.graphic;et(e)?t.graphic=e[0]&&e[0].elements?[t.graphic[0]]:[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])},hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return m(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Br(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];q(a,function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=B({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(z(r,i,!0),hd(r,i,{ignoreSize:!0}),fd(n,r)):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[gN(e,["left","right"]),gN(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))},this);for(var l=r.length-1;l>=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},e.prototype._flatten=function(t,e,n){q(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(md),dN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._elMap=St()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;q(e,function(e){var r=Gr(e.id,null),o=null!=r?n.get(r):null,a=Gr(e.parentId,null),s=null!=a?n.get(a):i,l=e.type,u=e.style;"text"===l&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=e.textContent,h=e.textConfig;if(u&&BP(u,l,!!h,!!c)){var d=HP(u,l,!0);!h&&d.textConfig&&(h=e.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var f=function(t){return t=B({},t),q(["id","parentId","$action","hv","bounding","textContent"].concat(rd),function(e){delete t[e]}),t}(e),p=e.$action||"merge";"merge"===p?o?o.attr(f):fN(r,s,f,n):"replace"===p?(pN(o,n),fN(r,s,f,n)):"remove"===p&&pN(o,n);var g=n.get(r);if(g&&c)if("merge"===p){var m=g.getTextContent();m?m.attr(c):g.setTextContent(new zs(c))}else"replace"===p&&g.setTextContent(new zs(c));if(g){var v=lN(g);v.__ecGraphicWidthOption=e.width,v.__ecGraphicHeightOption=e.height,function(t,e,n){var i=Vs(t).eventData;t.silent||t.ignore||i||(i=Vs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}(g,t,e),Ec({el:g,componentModel:t,itemName:g.name,itemTooltipOption:e.tooltip})}})}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=0;s=0;s--){var h,d,f,p;(f=null!=(d=Gr((h=n[s]).id,null))?r.get(d):null)&&(c=lN(p=f.parent),ud(f,h,p===i?{width:o,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:h.hv,boundingMode:h.bounding}))}},e.prototype._clear=function(){var t=this._elMap;t.each(function(e){pN(e,t)}),this._elMap=St()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(qp);function fN(t,e,n,i){var r=n.type,o=new(It(uN,r)?uN[r]:ac(r))(n);e.add(o),i.set(t,o),lN(o).__ecGraphicId=t}function pN(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){pN(t,e)}),e.removeKey(lN(t).__ecGraphicId),n.remove(t))}function gN(t,e){var n;return q(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var mN=["x","y","radius","angle","single"],vN=["cartesian2d","polar","singleAxis"];function yN(t){return t+"Axis"}function _N(t){var e=t.ecModel,n={infoList:[],infoMap:St()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(yN(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(n.infoList.push(s={model:o,axisModels:[]}),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var bN=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function xN(t){var e={};return q(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var wN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return m(e,t),e.prototype.init=function(t,e,n){var i=xN(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=xN(t);z(this.option,t,!0),z(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=St();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return q(mN,function(n){var i=this.getReferringComponents(yN(n),Qr);if(i.specified){e=!0;var r=new bN;q(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(e,n){var r=e[0];if(r){var o=new bN;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",$r).models[0];a&&q(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",$r).models[0]&&o.add(t.componentIndex)})}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&q(mN,function(e){if(i){var r=n.findComponents({mainType:yN(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new bN;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(yN(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){q(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(yN(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;q(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=yN(this._dimName),i=e.getReferringComponents(n,$r).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return F(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];MN(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(hr(c,o,n))):(e=!0,c=hr(h=null==h?n[u]:i.parse(h),n,o)),s[u]=h,a[u]=c}),AN(s),AN(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";_O(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=hr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];MN(n,function(t){!function(t,e,n){e&&q(Ox(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}(i,t.getData(),e)});var r=t.getAxisModel(),o=yx(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&MN(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);i.length&&("weakFilter"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(r=!0)}return a&&n&&r}):MN(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),MN(i,function(t){e.setApproximateExtent(o,t)}))})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;MN(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=hr(n[0]+o,n,[0,100],!0):null!=r&&(o=hr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=vr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}(),ON={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(yN(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new IN(e,i,o,t),n.push(r.__dzAxisProxy))});var i=St();return q(n,function(t){q(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},TN=!1;function DN(t){TN||(TN=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,ON),function(t){t.registerAction("dataZoom",function(t,e){q(function(t,e){var n,i=St(),r=[],o=St();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function PN(t){t.registerComponentModel(kN),t.registerComponentView(SN),DN(t)}var EN=function(){},RN={};function LN(t,e){RN[t]=e}function NN(t){return RN[t]}var FN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;q(this.option.feature,function(t,n){var i=NN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),z(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(md);function zN(t,e){var n=Uh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new As({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var VN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a=t.get("feature")||{},s=this._features||(this._features={}),l=[];q(a,function(t,e){l.push(e)}),new F_(this._featureNames||[],l).add(u).update(u).remove(tt(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ld(i,o,r);sd(e.get("orient"),t,e.get("itemGap"),a.width,a.height),ud(t,i,o,r)}(r,t,n),r.add(zN(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.states.emphasis;if(l&&!nt(l)&&e){var u=l.style||(l.style={}),c=Ni(e,zs.makeFont(u)),h=t.x+r.x,d=!1;t.y+r.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var f=d?-5-c.height:o+8;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}})}function u(u,c){var h,d=l[u],f=l[c],p=a[d],g=new sh(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(p.title=i.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))h={onclick:g.option.onclick,featureName:d};else{var m=NN(d);if(!m)return;h=new m}s[d]=h}else if(!(h=s[f]))return;h.uid=uh("toolbox-feature"),h.model=g,h.ecModel=e,h.api=n;var v=h instanceof EN;d||!f?!g.get("show")||v&&h.unusable?v&&h.remove&&h.remove(e,n):(function(i,a,s){var l,u,c=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),d=a instanceof EN&&a.getIcons?a.getIcons():i.get("icon"),f=i.get("title")||{};"string"==typeof d?(l={})[s]=d:l=d,"string"==typeof f?(u={})[s]=f:u=f;var p=i.iconPaths={};q(l,function(s,l){var d=Oc(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle()),d.ensureState("emphasis").style=h.getItemStyle();var f=new zs({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(f),Ec({el:d,componentModel:t,itemName:l,formatterParamsExtra:{title:u[l]}}),d.__title=u[l],d.on("mouseover",function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),f.ignore=!t.get("showTitle"),fl(this)}).on("mouseout",function(){"emphasis"!==i.get(["iconStatus",l])&&pl(this),f.hide()}),("emphasis"===i.get(["iconStatus",l])?fl:pl)(d),r.add(d),d.on("click",J(a.onclick,a,e,n,l)),p[l]=d})}(g,h,d),g.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?fl:pl)(i[t])},h instanceof EN&&h.render&&h.render(g,e,n,i)):v&&h.dispose&&h.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){q(this._features,function(t){t instanceof EN&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){q(this._features,function(n){n instanceof EN&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){q(this._features,function(n){n instanceof EN&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(qp),BN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||!x.browser.newEdge&&(x.browser.ie||x.browser.edge))if(window.navigator.msSaveOrOpenBlob||r){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=r?decodeURIComponent(s[1]):s[1];l&&(u=window.atob(u));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=u.length,d=new Uint8Array(h);h--;)d[h]=u.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var p=document.createElement("iframe");document.body.appendChild(p);var g=p.contentWindow,m=g.document;m.open("image/svg+xml","replace"),m.write(u),m.close(),g.focus(),m.execCommand("SaveAs",!0,c),document.body.removeChild(p)}}else{var v=n.get("lang"),y='',_=window.open();_.document.write(y),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])}},e}(EN);BN.prototype.unusable=!x.canvasSupported;var HN=BN,jN="__ec_magicType_stack__",GN=[["line","bar"],["stack"]],UN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return q(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(WN[n]){var o,a={series:[]};q(GN,function(t){G(t,n)>=0&&q(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var e=WN[n](t.subType,t.id,t,i);e&&(H(e,t.option),a.series.push(e));var r=t.coordinateSystem;if(r&&"cartesian2d"===r.type&&("line"===n||"bar"===n)){var o=r.getAxesByScale("ordinal")[0];if(o){var s=o.dim+"Axis",l=t.getReferringComponents(s,$r).models[0].componentIndex;a[s]=a[s]||[];for(var u=0;u<=l;u++)a[s][l]=a[s][l]||{};a[s][l].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=z({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(EN),WN={line:function(t,e,n,i){if("bar"===t)return z({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return z({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===jN;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),z({id:e,stack:r?"":jN},i.get(["option","stack"])||{},!0)}};__({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var YN=UN,qN=new Array(60).join("-"),XN="\t";function ZN(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var KN=new RegExp("[\t]+","g"),$N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:K([(n=r.seriesGroupByCategoryAxis,i=[],q(n,function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(X(t.series,function(t){return t.name})),a=[n.model.getCategories()];q(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(XN)],l=0;l=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=X(ZN(e.shift()).split(KN),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=dF[t.brushType](0,n,e);t.__rangeOffset={offset:pF[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){q(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&q(i.coordSyses,function(i){var r=dF[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){q(t,function(t){var n,i,r,o,a=this.findTargetInfo(t,e);if(t.range=t.range||[],a&&!0!==a){t.panelId=a.panelId;var s=dF[t.brushType](0,a.coordSys,t.coordRange),l=t.__rangeOffset;t.range=l?pF[t.brushType](s.values,l.offset,(n=l.xyMinMax,i=mF(s.xyMinMax),r=mF(n),o=[i[0]/r[0],i[1]/r[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):s.values}},this)},t.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:wT(i),isTargetByCursor:CT(i,t,n.coordSysModel),getLinearBrushOtherExtent:kT(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&G(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=lF(e,t),r=0;rt[1]&&t.reverse(),t}function lF(t,e){return Zr(t,e,{includeMainTypes:oF})}var uF={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=St(),a={},s={};(n||i||r)&&(q(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),q(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),q(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=[];q(t.coordinateSystem.getCartesians(),function(t,e){(G(n,t.getAxis("x").model)>=0||G(i,t.getAxis("y").model)>=0)&&r.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:hF.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){q(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:hF.geo})})}},cF=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],hF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(wc(t)),e}},dF={lineX:tt(fF,0),lineY:tt(fF,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[sF([r[0],o[0]]),sF([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:X(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function fF(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=sF(X([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var pF={lineX:tt(gF,0),lineY:tt(gF,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return X(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function gF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function mF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var vF,yF=aF,_F=q,bF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new xT(n.getZr()),this._brushController.on("brush",J(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new yF(wF(t),e,{include:["grid"]}).makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return nF(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){xF[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new yF(wF(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=nF(t);tF(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=_O(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];_F(t,function(t,n){e.push(F(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(EN),xF={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(t){var e=nF(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return tF(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function wF(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}vF=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Zr(t,wF(i));return _F(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),_F(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+e+o};a[n]=o,r.push(a)}},_t(null==zd.get("dataZoom")&&vF),zd.set("dataZoom",vF);var kF=bF,CF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(md);function SF(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function MF(t){if(x.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(o+="top:50%",a+="translateY(-50%) rotate("+("left"===r?-225:-45)+"deg)"):(o+="left:50%",a+="translateX(-50%) rotate("+("top"===r?225:45)+"deg)");var s=e+" solid 1px;";return'
'}(n.get("backgroundColor"),i,r)),it(t))o.innerHTML=t;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var a=0;a=0;o--){var a=t[o];a&&(a instanceof sh&&(a=a.get("tooltip",!0)),it(a)&&(a={formatter:a}),a&&(i=new sh(a,i,r)))}return i}function WF(t,e){return t.dispatchAction||J(e.dispatchAction,e)}function YF(t){return"center"===t||"middle"===t}var qF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){if(!x.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode="auto"===(n=r)?x.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new VF(e):new LF(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!x.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");VR("itemTooltip",this._api,BF(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!x.node){var r=WF(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=Kr(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Jr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=Vs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=GF;l.x=i.x,l.y=i.y,l.update(),Vs(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=UR(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(WF(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===UF([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,Dm(n,function(t){return null!=Vs(t).dataIndex?(r=t,!0):null!=Vs(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=J(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=[e.offsetX,e.offsetY],r=UF([e.tooltipOption],this._tooltipModel),o=this._renderMode,a=[],s=Cp("section",{blocks:[],noHeader:!0}),l=[],u=new Ep;HF(t,function(t){HF(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=SR(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=Cp("section",{header:r,noHeader:!bt(r),sortBlocks:!0,blocks:[]});s.blocks.push(c),q(t.seriesDataIndices,function(s){var h=n.getSeriesByIndex(s.seriesIndex),d=s.dataIndexInside,f=h.getDataParams(d);f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Sx(e.axis,{value:i}),f.axisValueLabel=r,f.marker=u.makeTooltipMarker("item",ed(f.color),o);var p=Kf(h.formatTooltip(d,!0,null));p.markupFragment&&c.blocks.push(p.markupFragment),p.markupText&&l.push(p.markupText),a.push(f)})}})}),s.blocks.reverse(),l.reverse();var c=e.position,h=r.get("order"),d=Ap(s,u,o,h,n.get("useUTC"),r.get("textStyle"));d&&l.unshift(d);var f=l.join("richText"===o?"\n\n":"
");this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(r,c,i[0],i[1],this._tooltipContent,a):this._showTooltipContent(r,f,a,Math.random()+"",i[0],i[1],c,null,u)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Vs(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=UF([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),m=new Ep;g.marker=m.makeTooltipMarker("item",ed(g.color),h);var v=Kf(s.formatTooltip(l,!1,u)),y=f.get("order"),_=v.markupFragment?Ap(v.markupFragment,m,h,y,i.get("useUTC"),f.get("textStyle")):v.markupText,b="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,_,g,b,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Vs(e),r=i.tooltipConfig.option||{};it(r)&&(r={content:r,formatter:r});var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=UF(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Ep;this._showOrMove(l,function(){var n=F(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c&&it(c)){var f=t.ecModel.get("useUTC"),p=et(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Sh(p.axisValue,h,f)),h=$h(h,n,!0)}else if(nt(c)){var g=BF(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||et(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:et(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),nt(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),et(e))n=jF(e[0],s),i=jF(e[1],l);else if(at(e)){var f=e;f.width=u[0],f.height=u[1];var p=ld(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(it(e)&&a){var g=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-10;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+10;break;case"left":o=e.x-i-10-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+10+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=YF(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=YF(h)?u[1]/2:"bottom"===h?u[1]:0),SF(t)&&(g=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&HF(e,function(e,i){var r=e.dataByAxis||[],o=(t[i]||{}).dataByAxis||[];(n=n&&r.length===o.length)&&HF(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n=n&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&HF(r,function(t,e){var i=a[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){x.node||(this._tooltipContent.dispose(),jR("itemTooltip",e))},e.type="tooltip",e}(qp),XF=["rect","polygon","keep","clear"];function ZF(t,e){var n=Nr(t?t.brush:[]);if(n.length){var i=[];q(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;et(r)&&(r=r[0]),r||(t.toolbox=[r={feature:{}}]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};q(t,function(t){e[t]=1}),t.length=0,q(e,function(e,n){t.push(n)})}(s),e&&!s.length&&s.push.apply(s,XF)}}var KF=q;function $F(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function QF(t,e,n){var i={};return KF(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);KF(t[e],function(t,i){if(xA.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new xA(r),"opacity"===i&&((r=F(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new xA(r))}})}),i}function JF(t,e,n){var i;q(n,function(t){e.hasOwnProperty(t)&&$F(e[t])&&(i=!0)}),i&&q(n,function(n){e.hasOwnProperty(n)&&$F(e[n])?t[n]=F(e[n]):delete t[n]})}var tz={lineX:ez(0),lineY:ez(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Fv(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(Fv(i,r,o)||Fv(i,r+a,o)||Fv(i,r,o+s)||Fv(i,r+a,o+s)||Di.create(t).contain(l[0],l[1])||Tc(r,o,r+a,o,i)||Tc(r,o,r,o+s,i)||Tc(r+a,o,r+a,o+s,i)||Tc(r,o+s,r+a,o+s,i))||void 0}}};function ez(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e)return nz(e[t],i.range)},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&cz(e)}};function cz(t){return new Di(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,(this._brushController=new xT(e.getZr())).on("brush",J(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){oz(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:F(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:F(n),$from:e})},e.type="brush",e}(qp);function dz(t,e){return z({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new sh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var fz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return m(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&JF(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=X(t,function(t){return dz(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=dz(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(md),pz=["rect","polygon","lineX","lineY","keep","clear"],gz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,q(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return q(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:pz.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocale(["toolbox","brush","title"])}},e}(EN),mz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return m(e,t),e.type="title",e.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(md),vz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=gt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new zs({style:Vc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new zs({style:Vc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){nd(d,"_"+t.get("target"))}),f&&h.on("click",function(){nd(f,"_"+t.get("subtarget"))}),Vs(l).eventData=Vs(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=ld(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=v.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var x=new As({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(x)}},e.type="title",e}(qp),yz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],q(n,function(e,n){var i,o=Gr(Vr(e),"");at(e)?(i=F(e)).value=n:i=n,t.push(i),r.push(o)})):t=n,(this._data=new hb([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(md),_z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline.slider",e.defaultOption=ch(yz.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(yz);W(_z,Zf.prototype);var bz=_z,xz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline",e}(qp),wz=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Yx),kz=Math.PI,Cz=qr();function Sz(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=jm(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=z({rectHover:!0,z2:100},i,!0);var l=t.get("symbolSize");l=l instanceof Array?l.slice():[+l,+l],i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=t.get("symbolOffset");u&&(i.x=i.x||0,i.y=i.y||0,i.x+=dr(u[0],l[0]),i.y+=dr(u[1],l[1]));var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function Mz(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var Az=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return Cp("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:kz/2},d="vertical"===s?l.height:l.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*kz/180;var _=f.get("position",!0),b=p&&f.get("showPlayBtn",!0),x=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),k=0,C=d;"left"===_||"bottom"===_?(b&&(i=[0,0],k+=v),x&&(r=[k,0],k+=v),w&&(o=[C-g,0],C-=v)):(b&&(i=[C-g,0],C-=v),x&&(r=[0,0],k+=v),w&&(o=[C-g,0],C-=v));var S=[k,C];return t.get("inverse")&&S.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:S,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;li(o,o,[-a,-s]),ui(o,o,-kz/2),li(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==p||it(p)?(v(h,u,l,1,f="+"===p?0:1),v(d,c,l,1,1-f)):(v(h,u,l,1,f=p>=0?0:1),d[1]=h[1]+p),n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pb({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new ix({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Lb}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new wz("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new tr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Ru({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Ru({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:H({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],q(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:J(r._changeTimeline,r,t.value)},d=Sz(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Ml(d);var f=Vs(d);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],q(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new zs({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:J(r._changeTimeline,r,a),silent:!1,style:Vc(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Vc(u),d.ensureState("progress").style=Vc(c),e.add(d),Ml(d),Cz(d).dataIndex=a,r._tickLabels.push(d)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=Bi(gt(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,o=Oc(t.get(["controlStyle",e]),i||{},new Di(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Ml(h)}}c(t.nextBtnPosition,"next",J(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",J(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",J(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=Sz(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=J(s._handlePointerDrag,s),t.ondragend=J(s._handlePointerDragend,s),Mz(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Mz(t,s._progressLine,o,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=pr(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var zz={min:tt(Fz,"min"),max:tt(Fz,"max"),average:tt(Fz,"average"),median:tt(Fz,"median")};function Vz(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!et(e.coord)&&i){var r=i.dimensions,o=Bz(e,n,i,t);if((e=F(e)).type&&zz[e.type]&&o.baseAxis&&o.valueAxis){var a=G(r,o.baseAxis.dim),s=G(r,o.valueAxis.dim),l=zz[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)zz[u[c]]&&(u[c]=Gz(n,n.mapDimension(r[c]),u[c]));e.coord=u}}return e}function Bz(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&"number"==typeof l&&(l=+l.toFixed(Math.min(p,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[Vz(t,r[0]),Vz(t,r[1]),B({},r[2])];return g[2].type=g[2].type||null,z(g[2],g[0]),z(g[2],g[1]),g};function $z(t){return!isNaN(t)&&!isFinite(t)}function Qz(t,e,n,i){var r=1-t,o=i.dimensions[t];return $z(e[r])&&$z(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function Jz(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(Qz(1,n,i,t)||Qz(0,n,i,t)))return!0}return Hz(t,e[0])&&Hz(t,e[1])}function tV(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=dr(s.get("x"),r.getWidth()),u=dr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=t.get((d=a.dimensions)[0],e),h=t.get(d[1],e);o=a.dataToPoint([c,h])}if(yk(a,"cartesian2d")){var d,f=a.getAxis("x"),p=a.getAxis("y");$z(t.get((d=a.dimensions)[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):$z(t.get(d[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var eV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Lz.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=Zz(e).from,o=Zz(e).to;r.each(function(e){tV(r,e,!0,t,n),tV(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new MI);this.group.add(l.group);var u=function(t,e,n){var i;i=t?X(t&&t.dimensions,function(t){return H({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new hb(i,n),o=new hb(i,n),a=new hb([],n),s=X(n.get("data"),tt(Kz,e,t,n));t&&(s=K(s,tt(Jz,t)));var l=t?jz:function(t){return t.value};return r.initData(X(s,function(t){return t[0]}),null,l),o.initData(X(s,function(t){return t[1]}),null,l),a.initData(X(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=u.from,h=u.to,d=u.line;Zz(e).from=c,Zz(e).to=h,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);tV(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Yg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:gt(o.get("symbolOffset"),m[r?0:1]),symbolRotate:gt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:gt(o.get("symbolSize"),p[r?0:1]),symbol:gt(o.get("symbol",!0),f[r?0:1]),style:s})}et(f)||(f=[f,f]),et(p)||(p=[p,p]),et(g)||(g=[g,g]),et(m)||(m=[m,m]),u.from.each(function(t){v(c,t,!0),v(h,t,!1)}),d.each(function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){Vs(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Wz),nV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Lz),iV=qr(),rV=function(t,e,n,i){var r=Vz(t,i[0]),o=Vz(t,i[1]),a=r.coord,s=o.coord;a[0]=pt(a[0],-1/0),a[1]=pt(a[1],-1/0),s[0]=pt(s[0],1/0),s[1]=pt(s[1],1/0);var l=V([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function oV(t){return!isNaN(t)&&!isFinite(t)}function aV(t,e,n,i){var r=1-t;return oV(e[r])&&oV(n[r])}function sV(t,e){var n=e.coord[0],i=e.coord[1];return!!(yk(t,"cartesian2d")&&n&&i&&(aV(1,n,i)||aV(0,n,i)))||Hz(t,{coord:n,x:e.x0,y:e.y0})||Hz(t,{coord:i,x:e.x1,y:e.y1})}function lV(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=dr(s.get(n[0]),r.getWidth()),u=dr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var c=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if(yk(a,"cartesian2d")){var h=a.getAxis("x"),d=a.getAxis("y"),f=t.get(n[0],e),p=t.get(n[1],e);oV(f)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):oV(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var uV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],cV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Lz.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=X(uV,function(r){return lV(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new tr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;t?(i=X(t&&t.dimensions,function(t){var n=e.getData();return H({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new hb(X(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new hb(i=[{name:"value",type:"float"}],n);var o=X(n.get("data"),tt(rV,e,t,n));return t&&(o=K(o,tt(sV,t))),r.initData(o,null,t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value}),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){var n=X(uV,function(n){return lV(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];pr(h),pr(d),u.setItemLayout(e,{points:n,allClipped:!!(l[0]>h[1]||l[1]d[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(md),dV=tt,fV=q,pV=tr;function gV(t,e,n,i){yV(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),vV(t,e,n,i)}function mV(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i0?2:0:u[h]=g}var d=e.getModel("lineStyle"),f=th.concat([["inactiveColor"],["inactiveWidth"]]),p={};for(c=0;c0?2:0:p[h]=g}if("auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!a){var m=e.get("inactiveBorderWidth"),v=u[t.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth="auto"===m?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=n.get("inactiveColor"),p.lineWidth=n.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",i,r.getModel("lineStyle"),a,s,f,m),b=new pV,x=i.getModel("textStyle");if("function"!=typeof t.getLegendIcon||y&&"inherit"!==y){var w="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;b.add(((d=jm(h=(c={itemWidth:p,itemHeight:g,icon:l,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle}).icon||"roundRect",0,0,c.itemWidth,c.itemHeight,c.itemStyle.fill)).setStyle(c.itemStyle),d.rotation=(c.iconRotate||0)*Math.PI/180,d.setOrigin([c.itemWidth/2,c.itemHeight/2]),h.indexOf("empty")>-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),d))}else b.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:l,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle}));var k="left"===o?p+5:-5,C=o,S=r.get("formatter"),M=e;"string"==typeof S&&S?M=S.replace("{name}",null!=e?e:""):"function"==typeof S&&(M=S(e));var A=i.get("inactiveColor");b.add(new zs({style:Vc(x,{text:M,x:k,y:g/2,fill:m?x.getTextColor():A,align:C,verticalAlign:"middle"})}));var I=new As({shape:b.getBoundingRect(),invisible:!0}),O=i.getModel("tooltip");return O.get("show")&&Ec({el:I,componentModel:r,itemName:e,itemTooltipOption:O.option}),b.add(I),b.eachChild(function(t){t.silent=!0}),I.silent=!u,this.getContentGroup().add(b),Ml(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();sd(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){sd("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(qp);function bV(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[r],p=[-h.x,-h.y];e||(p[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=gt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:g[i]+=d[r]+v),m[1-i]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[r]=f?n[r]:h[r],y[o]=Math.max(h[o],d[o]),y[a]=Math.min(0,d[a]+m[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-v,0),_[o]=y[o],u.setClipPath(new As({shape:_})),u.__rectSize=_[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return null!=b.pageIndex&&mc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},f?t:null),this._updatePageInfoView(t,b),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;q(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",t.get(r?"pageIconColor":"pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",it(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=MV[r],a=AV[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&_(m,v.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(_V);function OV(t){R_(wV),t.registerComponentModel(CV),t.registerComponentView(IV),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}var TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.inside",e.defaultOption=ch(wN.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(wN),DV=qr();function PV(t,e,n){DV(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function EV(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function RV(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function LV(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var NV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return m(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),PV(i,e,{pan:J(FV.pan,this),zoom:J(FV.zoom,this),scrollMove:J(FV.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=DV(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return _O(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:zV(function(t,e,n,i,r,o){var a=VV[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:zV(function(t,e,n,i,r,o){return VV[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function zV(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return _O(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var VV={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},BV=NV;function HV(t){DN(t),t.registerComponentModel(TV),t.registerComponentView(BV),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=DV(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=St());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){q(_N(t).infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:tt(LV,e),dispatchAction:tt(RV,t),dataZoomInfoMap:null,controller:null},i=n.controller=new OS(t.getZr());return q(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=St())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each(function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),lg(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else EV(i,t)})})}(t)}var jV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ch(wN.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(wN),GV=As,UV="horizontal",WV="vertical",YV=["line","bar","candlestick","scatter"],qV={easing:"cubicOut",duration:100};function XV(t){return"vertical"===t?"ns-resize":"ew-resize"}var ZV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return m(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),lg(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){var t;(t=this._dispatchZoomAction)&&t[rg]&&(this._dispatchZoomAction=t[rg]);var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new tr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===UV?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=dd(t.option);q(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=ld(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===WV&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==UV||r?n===UV&&r?{scaleY:a?1:-1,scaleX:-1}:n!==WV||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new GV({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new GV({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:J(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[[e[0],0],[0,0]],c=[],h=e[0]/(i.count()-1),d=0,f=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(f>0&&e%f)d+=h;else{var n=null==t||isNaN(t)||""===t,i=n?0:hr(t,o,l,!0);n&&!s&&e?(u.push([u[u.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(u.push([d,0]),c.push([d,0])),u.push([d,i]),c.push([d,i]),d+=h,s=n}});for(var p=this.dataZoomModel,g=0;g<3;g++){var m=v(1===g);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}function v(t){var e=p.getModel(t?"selectedDataBackground":"dataBackground"),n=new tr,i=new Au({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Tu({shape:{points:c},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){q(t.getAxisProxy(r,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&G(YV,t.get("type"))<0)){var a,s=i.getComponent(yN(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new GV({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new GV({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(e){var o=a.get("handleIcon");!Vm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=jm(o,-1,0,2,2,null,!0);s.attr({cursor:XV(this._orient),draggable:!0,drift:J(this._onDragMove,this,e),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=dr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Ml(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new zs({silent:!0,invisible:!0,style:Vc(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))},this);var h=c;if(u){var d=dr(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new As({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,g=e.moveHandleIcon=jm(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new As({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),r.add(f),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:XV(this._orient),drift:J(this._onDragMove,this,"all"),ondragstart:J(this._showDataInfo,this,!0),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[hr(t[0],[0,100],e,!0),hr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];_O(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?hr(o.minSpan,a,r,!0):null,null!=o.maxSpan?hr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=pr([hr(i[0],r,a,!0),hr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=pr(n.slice()),r=this._size;q([0,1],function(t){var i=this._handleHeight;e.handles[t].attr({scaleX:i/2,scaleY:i/2,x:n[t]+(t?-1:1),y:r[1]/2-i/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=this._updateInterval("all",n[0]-(i[0]+i[1])/2);this._updateView(),r&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){this._brushStart=new wi(t.offsetX,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=pr([hr(n.x,i,r,!0),hr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(be(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=n.brushRect;i||(i=n.brushRect=new GV({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var r=this._brushStart,o=this._displayables.sliderGroup,a=o.transformCoordToLocal(t,e),s=o.transformCoordToLocal(r.x,r.y),l=this._size;a[0]=Math.max(Math.min(l[0],a[0]),0),i.setShape({x:s[0],y:0,width:a[0]-s[0],height:l[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?qV:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=_N(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(CN);function KV(t){t.registerComponentModel(jV),t.registerComponentView(ZV),DN(t)}var $V={get:function(t,e,n){var i=F((QV[t]||{})[e]);return n&&et(i)?i[i.length-1]:i}},QV={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JV=$V,tB=xA.mapVisual,eB=xA.eachVisual,nB=et,iB=q,rB=pr,oB=hr,aB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;x.canvasSupported||(n.realtime=!1),!e&&JF(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=J(t,this),this.controllerVisuals=QF(this.option.controller,e,t),this.targetVisuals=QF(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Nr(t),e},e.prototype.eachTargetSeries=function(t,e){q(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],et(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return it(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):nt(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=rB([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimension=function(t){var e=this.option.dimension;if(null!=e||t.dimensions.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});z(i,n),z(r,n);var o=this.isCategory();function a(n){nB(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},iB(i,function(t,e){if(xA.isValidType(e)){var n=JV.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,i,"inRange","outOfRange"),(function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";iB(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&F(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&F(n)||(o?s[0]:[s[0],s[0]])),l.symbol=tB(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var c=-1/0;eB(u,function(t){t>c&&(c=t)}),l.symbolSize=tB(u,function(t){return oB(t,[0,c],[0,s[0]],!0)})}},this)}).call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(md),sB=[20,140];function lB(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&re[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=pr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=lB(0,0,this.getExtent()),n=lB(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new tr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();gB([0,1],function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=pB(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=kc(n.handleLabelPoints[l],wc(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=pB(t,o,s,!0),f=a[0]-h/2,p={x:u.x,y:u.y};u.y=d,u.x=f;var g=kc(l.indicatorLabelPoint,wc(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:f,y:d,style:{fill:c}},b={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};u.x=p.x,u.y=p.y,u.animateTo(_,x),m.animateTo(b,x)}else u.attr(_),m.attr(b);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var k=0;ki[1]&&(l[1]=1/0),e&&(l[0]===-1/0?this._showIndicator(s,l[1],"< ",o):l[1]===1/0?this._showIndicator(s,l[0],"> ",o):this._showIndicator(s,s,"\u2248 ",o));var u=this._hoverLinkDataIndices,c=[];(e||_B(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var h=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(wB,kB),q(CB,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(AB))}function DB(t){t.registerComponentModel(uB),t.registerComponentView(xB),TB(t)}var PB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],EB[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=F(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=X(this._pieceList,function(t){return t=F(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=xA.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}q(e.pieces,function(t){q(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),q(n,function(t,n){var i=!1;q(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),!i&&q(this.stateList,function(t){(e[t]||(e[t]={}))[n]=JV.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,q(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;q(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=F(t)},e.prototype.getValueState=function(t){var e=xA.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){xA.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return q(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=ch(aB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(aB),EB={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","\u2265"][e[0]]])},this)}};function RB(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var LB=PB,NB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=pt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),q(l.viewPieceList,function(i){var l=i.piece,u=new tr;u.onclick=J(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new zs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),sd(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:fB(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return dB(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new tr,a=this.visualMapModel.textStyleModel;o.add(new zs({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=X(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(jm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=F(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,q(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(cB);function FB(t){t.registerComponentModel(LB),t.registerComponentView(NB),TB(t)}var zB={label:{enabled:!0},decal:{show:!1}},VB=qr(),BB={};function HB(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=F(zB);z(i.label,t.getLocaleModel().get("aria"),!1),z(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=St();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||e.set(t.type,n={}),VB(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e))if("function"!=typeof e.enableAriaDecal){var n=e.getData();if(e.useColorPaletteOnData){var i=e.getRawData(),r={},o=VB(e).scope;n.each(function(t){var e=n.getRawIndex(t);r[e]=t});var a=i.count();i.each(function(t){var s=r[t],l=i.getName(t)||t+"",c=jd(e.ecModel,l,o,a),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",u(h,c))})}else{var s=jd(e.ecModel,e.name,BB,t.getSeriesCount()),l=n.getVisual("decal");n.setVisual("decal",u(l,s))}}else e.enableAriaDecal();function u(t,e){var n=t?B(B({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=H(o.option,i),o.get("enabled")){var a=e.getZr().dom;if(o.get("description"))a.setAttribute("aria-label",o.get("description"));else{var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=d?r(o.get(["general","withTitle"]),{title:d}):o.get(["general","withoutTitle"]);var f=[];s+=r(o.get(l>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:l}),t.eachSeries(function(e,n){if(n1?["series","multiple",a]:["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,t.getLocaleModel().get(["series","typeNames"])[_]||"\u81ea\u5b9a\u4e49\u56fe")});var s=e.getData();s.count()>u?i+=r(o.get(["data","partialData"]),{displayCnt:u}):i+=o.get(["data","allData"]);for(var c=[],d=0;d":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},UB=function(){function t(t){null==(this._condVal=it(t)?new RegExp(t):dt(t)?t:null)&&tp("")}return t.prototype.evaluate=function(t){var e=typeof t;return"string"===e?this._condVal.test(t):"number"===e&&this._condVal.test(t+"")},t}(),WB=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),YB=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=200&&e.status<=299}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=e.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=e.URL||e.webkitURL,l=document.createElement("a");l.download=o=o||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin!==location.origin?i(l.href)?n(t,o,a):r(l,l.target="_blank"):r(l)):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,o){if(e=e||t.name||"download","string"==typeof t)if(i(t))n(t,e,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){r(a)})}else 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([String.fromCharCode(65279),t],{type:t.type}):t}(t,o),e)}:function(t,i,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return n(t,i,r);var s="application/octet-stream"===t.type,l=/constructor/i.test(e.HTMLElement)||e.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var h=e.URL||e.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});e.saveAs=a.saveAs=a,t.exports=a},5579:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=Object.create((e&&e.prototype instanceof m?e:m).prototype),o=new I(i||[]);return r._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?p:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}(t,n,o),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(D){return{type:"throw",arg:D}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function y(){}var _={};_[o]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==n&&i.call(x,o)&&(_=x);var w=y.prototype=m.prototype=Object.create(_);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function C(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):e.resolve(h).then(function(t){u.value=t,a(u)},function(t){return n("throw",t,a,s)})}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(o,o):o()}}function S(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function O(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(n){Function("r","regeneratorRuntime = r")(e)}},6262:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function o(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||m(t,e)||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.")}()}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e,n){return(x=c()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&l(r,n.prototype),r}).apply(null,arguments)}function w(t){var e="function"==typeof Map?new Map:void 0;return(w=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return x(t,arguments,i(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)})(t)}var k=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function C(t){return null!==t&&"object"==typeof t}function S(t){return"function"==typeof t}var M=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),A=function(){var t=function(){function t(e){s(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return a(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(st(function(n,i){return it(t(n,i)).pipe(q(function(t,r){return e(n,t,i,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new lt(t,n))})}var lt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;s(this,t),this.project=e,this.concurrent=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return s(this,n),(r=e.call(this,t)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return a(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ot);function ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return st(F,t)}function ht(t,e){return e?nt(t,e):new V(K(t))}function dt(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof o&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof V?i[0]:ct(t)(ht(i,e))}function ft(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(e){s(this,t),this.connectable=e}return a(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new gt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),gt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).connectable=i,r}return a(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(R),mt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return a(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new A).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed&&(this._connection=null,t=A.EMPTY)),t}},{key:"refCount",value:function(){return ft()(this)}}]),n}(V),vt=function(){var t=mt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),yt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).connectable=i,r}return a(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(G);function _t(){return new U}function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function xt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function kt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var Ct=bt({__forward_ref__:bt});function St(t){return t.__forward_ref__=St,t.toString=function(){return wt(this())},t}function Mt(t){return At(t)?t():t}function At(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===St}var It=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,function(t,e){var n=t?"NG0".concat(t,": "):"";return"".concat(n).concat(e)}(t,i))).code=t,r}return n}(w(Error));function Ot(t){return"string"==typeof t?t:null==t?"":String(t)}function Tt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ot(t)}function Dt(t,e){var n=e?" in ".concat(e):"";throw new It("201","No provider for ".concat(Tt(t)," found").concat(n))}function Pt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Et(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rt(t){return Lt(t,zt)||Lt(t,Bt)}function Lt(t,e){return t.hasOwnProperty(e)?t[e]:null}function Nt(t){return t&&(t.hasOwnProperty(Vt)||t.hasOwnProperty(Ht))?t[Vt]:null}var Ft,zt=bt({"\u0275prov":bt}),Vt=bt({"\u0275inj":bt}),Bt=bt({ngInjectableDef:bt}),Ht=bt({ngInjectorDef:bt}),jt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function Gt(){return Ft}function Ut(t){var e=Ft;return Ft=t,e}function Wt(t,e,n){var i=Rt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&jt.Optional?null:void 0!==e?e:void Dt(wt(t),"Injector")}function Yt(t){return{toString:t}.toString()}var qt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Zt="undefined"!=typeof globalThis&&globalThis,Kt="undefined"!=typeof window&&window,$t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qt="undefined"!=typeof global&&global,Jt=Zt||Qt||Kt||$t,te={},ee=[],ne=bt({"\u0275cmp":bt}),ie=bt({"\u0275dir":bt}),re=bt({"\u0275pipe":bt}),oe=bt({"\u0275mod":bt}),ae=bt({"\u0275loc":bt}),se=bt({"\u0275fac":bt}),le=bt({__NG_ELEMENT_ID__:bt}),ue=0;function ce(t){return Yt(function(){var e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===qt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ee,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Xt.Emulated,id:"c",styles:t.styles||ee,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=ue++,n.inputs=ge(t.inputs,e),n.outputs=ge(t.outputs),r&&r.forEach(function(t){return t(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(he)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(de)}:null,n})}function he(t){return ye(t)||function(t){return t[ie]||null}(t)}function de(t){return function(t){return t[re]||null}(t)}var fe={};function pe(t){return Yt(function(){var e={type:t.type,bootstrap:t.bootstrap||ee,declarations:t.declarations||ee,imports:t.imports||ee,exports:t.exports||ee,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(fe[t.id]=t.type),e})}function ge(t,e){if(null==t)return te;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var me=ce;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ye(t){return t[ne]||null}function _e(t,e){var n=t[oe]||null;if(!n&&!0===e)throw new Error("Type ".concat(wt(t)," does not have '\u0275mod' property."));return n}var be=20,xe=10;function we(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Ce(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function Me(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function Ie(t,e){return t.hasOwnProperty(se)?t[se]:null}var Oe=function(){function t(e,n,i){s(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return a(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Te(){return De}function De(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ee),Pe}function Pe(){var t=Re(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===te)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Ee(t,e,n,i){var r=Re(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:te,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Oe(l&&l.currentValue,e,a===te),t[i]=e}function Re(t){return t.__ngSimpleChanges__||null}Te.ngInherit=!0;var Le="http://www.w3.org/2000/svg",Ne=void 0;function Fe(){return void 0!==Ne?Ne:"undefined"!=typeof document?document:void 0}function ze(t){return!!t.listen}var Ve={createRenderer:function(t,e){return Fe()}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function He(t,e){return Be(e[t])}function je(t,e){return Be(e[t.index])}function Ge(t,e){return t.data[e]}function Ue(t,e){return t[e]}function We(t,e){var n=e[t];return we(n)?n:n[0]}function Ye(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function Xe(t,e){return null==e?null:t[e]}function Ze(t){t[18]=0}function Ke(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var $e={lFrame:wn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Qe(){return $e.bindingsEnabled}function Je(){return $e.lFrame.lView}function tn(){return $e.lFrame.tView}function en(t){return $e.lFrame.contextLView=t,t[8]}function nn(){for(var t=rn();null!==t&&64===t.type;)t=t.parent;return t}function rn(){return $e.lFrame.currentTNode}function on(t,e){var n=$e.lFrame;n.currentTNode=t,n.isParent=e}function an(){return $e.lFrame.isParent}function sn(){$e.lFrame.isParent=!1}function ln(){return $e.isInCheckNoChangesMode}function un(t){$e.isInCheckNoChangesMode=t}function cn(){var t=$e.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function hn(){return $e.lFrame.bindingIndex}function dn(){return $e.lFrame.bindingIndex++}function fn(t){var e=$e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function pn(t){$e.lFrame.currentDirectiveIndex=t}function gn(t){var e=$e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function mn(){return $e.lFrame.currentQueryIndex}function vn(t){$e.lFrame.currentQueryIndex=t}function yn(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function _n(t,e,n){if(n&jt.SkipSelf){for(var i=e,r=t;!(null!==(i=i.parent)||n&jt.Host||null===(i=yn(r))||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}var o=$e.lFrame=xn();return o.currentTNode=e,o.lView=t,!0}function bn(t){var e=xn(),n=t[1];$e.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function xn(){var t=$e.lFrame,e=null===t?null:t.child;return null===e?wn(t):e}function wn(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function kn(){var t=$e.lFrame;return $e.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Cn=kn;function Sn(){var t=kn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Mn(t){return($e.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,$e.lFrame.contextLView))[8]}function An(){return $e.lFrame.selectedIndex}function In(t){$e.lFrame.selectedIndex=t}function On(){var t=$e.lFrame;return Ge(t.tView,t.selectedIndex)}function Tn(){$e.lFrame.currentNamespace=Le}function Dn(){$e.lFrame.currentNamespace=null}function Pn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var zn=-1,Vn=function t(e,n,i){s(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bn(t,e,n){for(var i=ze(t),r=0;re){a=o-1;break}}}for(;o>16,i=e;n>0;)i=i[15],n--;return i}var Xn=!0;function Zn(t){var e=Xn;return Xn=t,e}var Kn=0;function $n(t,e){var n=Jn(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Qn(i.data,t),Qn(e,null),Qn(i.blueprint,null));var r=ti(t,e),o=t.injectorIndex;if(Wn(r))for(var a=Yn(r),s=qn(r,e),l=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|l[a+u];return e[o+8]=r,o}function Qn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ti(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,i=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return zn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return zn}function ei(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(le)&&(i=n[le]),null==i&&(i=n[le]=Kn++);var r=255&i;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:jt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=ci(n);if("function"==typeof o){if(!_n(e,t,i))return i&jt.Host?ni(r,n,i):ii(e,n,i,r);try{var a=o(i);if(null!=a||i&jt.Optional)return a;Dt(n)}finally{Cn()}}else if("number"==typeof o){var s=null,l=Jn(t,e),u=zn,c=i&jt.Host?e[16][6]:null;for((-1===l||i&jt.SkipSelf)&&((u=-1===l?ti(t,e):e[l+8])!==zn&&di(i,!1)?(s=e[1],l=Yn(u),e=qn(u,e)):l=-1);-1!==l;){var h=e[1];if(hi(o,l,h.data)){var d=si(l,e,n,s,i,c);if(d!==oi)return d}(u=e[l+8])!==zn&&di(i,e[1].data[l+8]===c)&&hi(o,l,e)?(s=h,l=Yn(u),e=qn(u,e)):l=-1}}}return ii(e,n,i,r)}var oi={};function ai(){return new fi(nn(),Je())}function si(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],l=li(s,a,n,null==i?Se(s)&&Xn:i!=a&&0!=(3&s.type),r&jt.Host&&o===s);return null!==l?ui(e,a,l,s):oi}function li(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,l=t.directiveStart,u=o>>20,c=r?s+u:t.directiveEnd,h=i?s:s+u;h=l&&d.type===n)return h}if(r){var f=a[l];if(f&&Ae(f)&&f.type===n)return l}return null}function ui(t,e,n,i){var r=t[n],o=e.data;if(r instanceof Vn){var a=r;a.resolving&&function(t,e){throw new It("200","Circular dependency in DI detected for ".concat(t).concat(""))}(Tt(o[n]));var s=Zn(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?Ut(a.injectImpl):null;_n(t,i,jt.Default);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=De(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&Ut(l),Zn(s),a.resolving=!1,Cn()}}return r}function ci(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(le)?t[le]:void 0;return"number"==typeof e?e>=0?255&e:ai:e}function hi(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function Si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Mi(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function Ii(t,e){var n=Oi(t,e);if(n>=0)return t[1|n]}function Oi(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var Ti={},Di=/\n/gm,Pi="__source",Ei=bt({provide:String,useValue:bt}),Ri=void 0;function Li(t){var e=Ri;return Ri=t,e}function Ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.Default;if(void 0===Ri)throw new Error("inject() must be called from an injection context");return null===Ri?Wt(t,void 0,e):Ri.get(t,e&jt.Optional?null:void 0,e)}function Fi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.Default;return(Gt()||Ni)(Mt(t),e)}var zi=Fi;function Vi(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=wt(e);if(Array.isArray(e))r=e.map(wt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):wt(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Di,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var ji,Gi,Ui=Bi(yi("Inject",function(t){return{token:t}}),-1),Wi=Bi(yi("Optional"),8),Yi=Bi(yi("SkipSelf"),4);function qi(t){var e;return(null===(e=function(){if(void 0===ji&&(ji=null,Jt.trustedTypes))try{ji=Jt.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}function Xi(t){var e;return(null===(e=function(){if(void 0===Gi&&(Gi=null,Jt.trustedTypes))try{Gi=Jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return Gi}())||void 0===e?void 0:e.createHTML(t))||t}var Zi=function(){function t(e){s(this,t),this.changingThisBreaksApplicationSecurity=e}return a(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),Ki=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Zi),$i=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Zi),Qi=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Zi),Ji=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Zi),tr=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Zi);function er(t){return t instanceof Zi?t.changingThisBreaksApplicationSecurity:t}function nr(t,e){var n=ir(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function ir(t){return t instanceof Zi&&t.getTypeName()||null}var rr=function(){function t(e){s(this,t),this.inertDocumentHelper=e}return a(t,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(qi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),t}(),or=function(){function t(e){if(s(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return a(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=qi(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=qi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();mr.hasOwnProperty(e)&&!dr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Cr(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),wr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kr=/([^\#-~ |!])/g;function Cr(t){return t.replace(/&/g,"&").replace(wr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(kr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Sr(t,e){var n=null;try{hr=hr||function(t){var e=new or(t);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(t){return!1}}()?new rr(e):e}(t);var i=e?String(e):"";n=hr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==o);return qi((new xr).sanitizeChildren(Mr(n)||n))}finally{if(n)for(var a=Mr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Mr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ar=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Ir(t){var e=Tr();return e?Xi(e.sanitize(Ar.HTML,t)||""):nr(t,"HTML")?Xi(er(t)):Sr(Fe(),Ot(t))}function Or(t){var e=Tr();return e?e.sanitize(Ar.URL,t)||"":nr(t,"URL")?er(t):lr(Ot(t))}function Tr(){var t=Je();return t&&t[12]}function Dr(t,e){t.__ngContext__=e}function Pr(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Er(t){return t.ngDebugContext}function Rr(t){return t.ngOriginalError}function Lr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(t[i-1][4]=r[4]);var a=Si(t,xe+e);po(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Jr(t,e){if(!(256&e[2])){var n=e[11];ze(n)&&n.destroyNode&&po(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return to(t[1],t);for(;e;){var n=null;if(we(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)we(e)&&to(e[1],e),e=e[3];null===e&&(e=t),we(e)&&to(e[1],e),n=e&&e[4]}e=n}}(e)}}function to(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==_o(d,u,0)||2&i&&u!==h){if(So(i))return!1;a=!0}}}}else{if(!a&&!So(i)&&!So(l))return!1;if(a&&So(l))continue;a=!1,i=l|1&i}}return So(i)||a}function So(t){return 0==(1&t)}function Mo(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||So(a)||(e+=Oo(o,r),r=""),i=a,o=o||!So(i);n++}return""!==r&&(e+=Oo(o,r)),e}var Do={};function Po(t){Eo(tn(),Je(),An()+t,ln())}function Eo(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&En(e,r,n)}else{var o=t.preOrderHooks;null!==o&&Rn(e,o,0,n)}In(n)}function Ro(t,e){return t<<17|e<<2}function Lo(t){return t>>17&32767}function No(t){return 2|t}function Fo(t){return(131068&t)>>2}function zo(t,e){return-131069&t|e<<2}function Vo(t){return 1|t}function Bo(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;ibe&&Eo(t,e,be,ln()),n(i,r)}finally{In(o)}}function Xo(t,e,n){if(Ce(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:je,i=e.localNames;if(null!==i)for(var r=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function ra(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function oa(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function aa(t,e,n){if(n){if(e.exportAs)for(var i=0;i0&&pa(n)}}function pa(t){for(var e=Wr(t);null!==e;e=Yr(e))for(var n=xe;n0&&pa(i)}var o=t[1].components;if(null!==o)for(var a=0;a0&&pa(s)}}function ga(t,e){var n=We(e,t),i=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Ti;if(e===Ti){var n=new Error("NullInjectorError: No provider for ".concat(wt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),Da=new _i("Set Injector scope."),Pa={},Ea={},Ra=void 0;function La(){return void 0===Ra&&(Ra=new Ta),Ra}function Na(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Fa(t,n,e||La(),i)}var Fa=function(){function t(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ki(n,function(t){return r.processProvider(t,e,n)}),ki([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(Oa,Ba(void 0,this));var l=this.records.get(Da);this.scope=null!=l?l.value:null,this.source=o||("object"==typeof e?null:wt(e))}return a(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ti,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt.Default;this.assertNotDestroyed();var i=Li(this);try{if(!(n&jt.SkipSelf)){var r=this.records.get(t);if(void 0===r){var o=Ga(t)&&Rt(t);r=o&&this.injectableDefInScope(o)?Ba(za(t),Pa):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var a=n&jt.Self?La():this.parent;return a.get(t,e=n&jt.Optional&&e===Ti?null:e)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(wt(t)),i)throw l;return Hi(l,t,"R3InjectorError",this.source)}throw l}finally{Li(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(wt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=Mt(t)))return!1;var r=Nt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Nt(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{ki(r.imports,function(t){i.processInjectorType(t,e,n)&&(void 0===l&&(l=[]),l.push(t))})}finally{}if(void 0!==l)for(var u=function(t){var e=l[t],n=e.ngModule,r=e.providers;ki(r,function(t){return i.processProvider(t,n,r||ee)})},c=0;c0){var n=Mi(e,"?");throw new Error("Can't resolve all parameters for ".concat(wt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[zt]||t[Bt]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Va(t,e,n){var i,r=void 0;if(ja(t)){var o=Mt(t);return Ie(o)||za(o)}if(Ha(t))r=function(){return Mt(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,b(Vi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Fi(Mt(t.useExisting))};else{var a=Mt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ie(a)||za(a);r=function(){return x(a,b(Vi(t.deps)))}}return r}function Ba(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Ha(t){return null!==t&&"object"==typeof t&&Ei in t}function ja(t){return"function"==typeof t}function Ga(t){return"function"==typeof t||"object"==typeof t&&t instanceof _i}var Ua=function(t,e,n){return function(t){var e=Na(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return e._resolveInjectorDefTypes(),e}({name:n},e,t,n)},Wa=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Ua(t,e,""):Ua(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Ti,t.NULL=new Ta,t.\u0275prov=Pt({token:t,providedIn:"any",factory:function(){return Fi(Oa)}}),t.__NG_ELEMENT_ID__=-1,t}();function Ya(t,e){Pn(Pr(t)[1],nn())}function qa(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ae(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=Xa(t.inputs),o.declaredInputs=Xa(t.declaredInputs),o.outputs=Xa(t.outputs);var a=r.hostBindings;a&&$a(t,a);var s=r.viewQuery,l=r.contentQueries;if(s&&Za(t,s),l&&Ka(t,l),xt(t.inputs,r.inputs),xt(t.declaredInputs,r.declaredInputs),xt(t.outputs,r.outputs),Ae(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Gn(r.hostAttrs,n=Gn(n,r.hostAttrs))}}(i)}function Xa(t){return t===te?{}:t===ee?[]:t}function Za(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Ka(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function $a(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Qa=null;function Ja(){if(!Qa){var t=Jt.Symbol;if(t&&t.iterator)Qa=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:jt.Default,n=Je();if(null===n)return Fi(t,e);var i=nn();return ri(i,n,Mt(t),e)}function hs(t,e,n){var i=Je();return rs(i,dn(),e)&&ea(tn(),On(),i,t,e,i[11],n,!1),hs}function ds(t,e,n,i,r){var o=r?"class":"style";Ma(t,n,e.inputs[o],o,i)}function fs(t,e,n,i){var r=Je(),o=tn(),a=be+t,s=r[11],l=r[a]=Kr(s,e,$e.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,i,r,o,a){var s=e.consts,l=jo(e,t,2,r,Xe(s,o));return na(e,n,l,Xe(s,a)),null!==l.attrs&&Ia(l,l.attrs,!1),null!==l.mergedAttrs&&Ia(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(a,o,r,0,e,n,i):o.data[a];on(u,!0);var c=u.mergedAttrs;null!==c&&Bn(s,l,c);var h=u.classes;null!==h&&yo(s,l,h);var d=u.styles;null!==d&&vo(s,l,d),64!=(64&u.flags)&&lo(o,r,l,u),0===$e.lFrame.elementDepthCount&&Dr(l,r),$e.lFrame.elementDepthCount++,Me(u)&&(Zo(o,r,u),Xo(o,u,r)),null!==i&&Ko(r,u)}function ps(){var t=nn();an()?sn():on(t=t.parent,!1);var e=t;$e.lFrame.elementDepthCount--;var n=tn();n.firstCreatePass&&(Pn(n,t),Ce(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&ds(n,e,Je(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&ds(n,e,Je(),e.stylesWithoutHost,!1)}function gs(t,e,n,i){fs(t,e,n,i),ps()}function ms(t,e,n){var i=Je(),r=tn(),o=t+be,a=r.firstCreatePass?function(t,e,n,i,r){var o=e.consts,a=Xe(o,i),s=jo(e,t,8,"ng-container",a);return null!==a&&Ia(s,a,!0),na(e,n,s,Xe(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,i,e,n):r.data[o];on(a,!0);var s=i[o]=i[11].createComment("");lo(r,i,s,a),Dr(s,i),Me(a)&&(Zo(r,i,a),Xo(r,a,i)),null!=n&&Ko(i,a)}function vs(){var t=nn(),e=tn();an()?sn():on(t=t.parent,!1),e.firstCreatePass&&(Pn(e,t),Ce(t)&&e.queries.elementEnd(t))}function ys(t,e,n){ms(t,e,n),vs()}function _s(){return Je()}function bs(t){return!!t&&"function"==typeof t.then}function xs(t){return!!t&&"function"==typeof t.subscribe}var ws=xs;function ks(t,e,n,i){var r=Je(),o=tn(),a=nn();return Ss(o,r,r[11],a,t,e,!!n,i),ks}function Cs(t,e){var n=nn(),i=Je(),r=tn();return Ss(r,i,Ca(gn(r.data),n,i),n,t,e,!1),Cs}function Ss(t,e,n,i,r,o,a,s){var l=Me(i),u=t.firstCreatePass&&ka(t),c=wa(e),h=!0;if(3&i.type||s){var d=je(i,e),f=s?s(d):d,p=c.length,g=s?function(t){return s(Be(t[i.index]))}:i.index;if(ze(n)){var m=null;if(!s&&l&&(m=function(t,e,n,i){var r=t.cleanup;if(null!=r)for(var o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=As(i,e,0,o,!1);var v=n.listen(f,r,o);c.push(o,v),u&&u.push(r,g,p,p+1)}}else o=As(i,e,0,o,!0),f.addEventListener(r,o,a),c.push(o),u&&u.push(r,g,p,a)}else o=As(i,e,0,o,!1);var y,_=i.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var x=0;x0&&void 0!==arguments[0]?arguments[0]:1;return Mn(t)}function Os(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Je(),r=tn(),o=jo(r,be+t,16,null,n||null);null===o.projection&&(o.projection=e),sn(),64!=(64&o.flags)&&go(r,i,o)}function Ps(t,e,n){return Es(t,"",e,"",n),Ps}function Es(t,e,n,i,r){var o=Je(),a=ss(o,e,n,i);return a!==Do&&ea(tn(),On(),o,t,a,o[11],r,!1),Es}function Rs(t,e,n,i,r){for(var o=t[n+1],a=null===e,s=i?Lo(o):Fo(o),l=!1;0!==s&&(!1===l||a);){var u=t[s+1];Ls(t[s],e)&&(l=!0,t[s+1]=i?Vo(u):No(u)),s=i?Lo(u):Fo(u)}l&&(t[n+1]=i?No(o):Vo(o))}function Ls(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Oi(t,e)>=0}var Ns={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fs(t){return t.substring(Ns.key,Ns.keyEnd)}function zs(t,e){var n=Ns.textEnd;return n===e?-1:(e=Ns.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ns.key=e,n),Vs(t,e,n))}function Vs(t,e,n){for(;e=0;n=zs(e,n))Ai(t,Fs(e),!0)}function Gs(t,e,n,i){var r=Je(),o=tn(),a=fn(2);o.firstUpdatePass&&Ws(o,t,a,i),e!==Do&&rs(r,a,e)&&Xs(o,o.data[An()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(er(t)))),t}(e,n),i,a)}function Us(t,e){return e>=t.expandoStartIndex}function Ws(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[An()],a=Us(t,n);$s(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=gn(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=qs(n=Ys(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=Ys(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Fo(i))return t[Lo(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Lo(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=qs(s=Ys(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0):u=n,r)if(0!==l){var h=Lo(t[s+1]);t[i+1]=Ro(h,s),0!==h&&(t[h+1]=zo(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Ro(s,0),0!==s&&(t[s+1]=zo(t[s+1],i)),s=i;else t[i+1]=Ro(l,0),0===s?s=i:t[l+1]=zo(t[l+1],i),l=i;c&&(t[i+1]=No(t[i+1])),Rs(t,u,i,!0),Rs(t,u,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Oi(o,e)>=0&&(n[i+1]=Vo(n[i+1]))}(e,u,t,i,o),a=Ro(s,l),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function Ys(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=t[r],u=Array.isArray(l),c=u?l[1]:l,h=null===c,d=n[r+1];d===Do&&(d=h?ee:void 0);var f=h?Ii(d,i):c===i?d:void 0;if(u&&!Ks(f)&&(f=Ii(l,i)),Ks(f)&&(s=f,a))return s;var p=t[r+1];r=a?Lo(p):Fo(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(s=Ii(g,i))}return s}function Ks(t){return void 0!==t}function $s(t,e){return 0!=(t.flags&(e?16:32))}function Qs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Je(),i=tn(),r=t+be,o=i.firstCreatePass?jo(i,r,1,e,null):i.data[r],a=n[r]=Zr(n[11],e);lo(i,n,a,o),on(o,!1)}function Js(t){return tl("",t,""),Js}function tl(t,e,n){var i=Je(),r=ss(i,t,e,n);return r!==Do&&Aa(i,An(),r),tl}function el(t,e,n,i,r){var o=Je(),a=function(t,e,n,i,r,o){var a=os(t,hn(),n,r);return fn(2),a?e+Ot(n)+i+Ot(r)+o:Do}(o,t,e,n,i,r);return a!==Do&&Aa(o,An(),a),el}function nl(t,e,n){var i=Je();return rs(i,dn(),e)&&ea(tn(),On(),i,t,e,i[11],n,!0),nl}function il(t,e,n){var i=Je();if(rs(i,dn(),e)){var r=tn(),o=On();ea(r,o,i,t,e,Ca(gn(r.data),o,i),n,!0)}return il}var rl=void 0,ol=["en",[["a","p"],["AM","PM"],rl],[["AM","PM"],rl,rl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],rl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],rl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",rl,"{1} 'at' {0}",rl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],al={};function sl(t){return t in al||(al[t]=Jt.ng&&Jt.ng.common&&Jt.ng.common.locales&&Jt.ng.common.locales[t]),al[t]}var ll=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({}),ul="en-US";function cl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function hl(t,e,n){var i=tn();if(i.firstCreatePass){var r=Ae(t);dl(n,i.data,i.blueprint,r,!0),dl(e,i.data,i.blueprint,r,!1)}}function dl(t,e,n,i,r){if(t=Mt(t),Array.isArray(t))for(var o=0;o>20;if(ja(t)||!t.multi){var p=new Vn(u,r,cs),g=gl(l,e,r?h:h+f,d);-1===g?(ei($n(c,s),a,l),fl(a,t,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var m=gl(l,e,h+f,d),v=gl(l,e,h,h+f),y=v>=0&&n[v];if(r&&!y||!r&&!(m>=0&&n[m])){ei($n(c,s),a,l);var _=function(t,e,n,i,r){var o=new Vn(t,n,cs);return o.multi=[],o.index=e,o.componentProviders=0,pl(o,r,i&&!n),o}(r?vl:ml,n.length,r,i,u);!r&&y&&(n[v].providerFactory=_),fl(a,t,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else fl(a,t,m>-1?m:v,pl(n[r?v:m],u,!r&&i));!r&&i&&y&&n[v].componentProviders++}}}function fl(t,e,n,i){var r=ja(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function pl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function gl(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return hl(n,i?i(t):t,e)}}}var bl=function t(){s(this,t)},xl=function t(){s(this,t)},wl=function(){function t(){s(this,t)}return a(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(wt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),kl=function(){var t=function t(){s(this,t)};return t.NULL=new wl,t}();function Cl(){}function Sl(t,e){return new Al(je(t,e))}var Ml=function(){return Sl(nn(),Je())},Al=function(){var t=function t(e){s(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Ml,t}();function Il(t){return t instanceof Al?t.nativeElement:t}var Ol=function t(){s(this,t)},Tl=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=function(){return Dl()},t}(),Dl=function(){var t=Je(),e=We(nn().index,t);return function(t){return t[11]}(we(e)?e:t)},Pl=function(){var t=function t(){s(this,t)};return t.\u0275prov=Pt({token:t,providedIn:"root",factory:function(){return null}}),t}(),El=function t(e){s(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Rl=new El("12.1.0"),Ll=function(){function t(){s(this,t)}return a(t,[{key:"supports",value:function(t){return es(t)}},{key:"create",value:function(t){return new Fl(t)}}]),t}(),Nl=function(t,e){return e},Fl=function(){function t(e){s(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Nl}return a(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=e[n.index];if(null!==o&&i.push(Be(o)),ke(o))for(var a=xe;a-1&&(Qr(t,n),Si(e,n))}this._attachedToViewContainer=!1}Jr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Jo(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){va(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ya(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){un(!0);try{ya(t,e,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,po(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),$l=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t))._view=t,i}return a(n,[{key:"detectChanges",value:function(){_a(this._view)}},{key:"checkNoChanges",value:function(){!function(t){un(!0);try{_a(t)}finally{un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Kl),Ql=function(t){return function(t,e,n){if(Se(t)&&!n){var i=We(t.index,e);return new Kl(i,i)}return 47&t.type?new Kl(e[16],e):null}(nn(),Je(),16==(16&t))},Jl=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=Ql,t}(),tu=[new jl],eu=new Yl([new Ll]),nu=new Xl(tu),iu=function(){return au(nn(),Je())},ru=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=iu,t}(),ou=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=i,o.elementRef=r,o}return a(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Ho(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Uo(e,n,t),new Kl(n)}}]),n}(ru);function au(t,e){return 4&t.type?new ou(e,t,Sl(t,e)):null}var su=function t(){s(this,t)},lu=function t(){s(this,t)},uu=function(){return pu(nn(),Je())},cu=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=uu,t}(),hu=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=i,o._hostLView=r,o}return a(n,[{key:"element",get:function(){return Sl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=ti(this._hostTNode,this._hostLView);if(Wn(t)){var e=qn(t,this._hostLView),n=Yn(t);return new fi(e[1].data[n+8],e)}return new fi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=du(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-xe}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(su,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(ke(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new hu(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,i){var r=xe+i,o=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(cu);function du(t){return t[8]}function fu(t){return t[8]||(t[8]=[])}function pu(t,e){var n,i=e[t.index];if(ke(i))n=i;else{var r;if(8&t.type)r=Be(i);else{var o=e[11];r=o.createComment("");var a=je(t,e);no(o,oo(o,a),r,function(t,e){return ze(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=da(i,e,r,t),ma(e,n)}return new hu(n,t,e)}var gu={},mu=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).ngModule=t,i}return a(n,[{key:"resolveComponentFactory",value:function(t){var e=ye(t);return new _u(e,this.ngModule)}}]),n}(kl);function vu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var yu=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Fr}}),_u=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).componentDef=t,r.ngModule=i,r.componentType=t.type,r.selector=t.selectors.map(To).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!i,r}return a(n,[{key:"inputs",get:function(){return vu(this.componentDef.inputs)}},{key:"outputs",get:function(){return vu(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,i){var r,o,a=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var o=t.get(n,gu,r);return o!==gu||i===gu?o:e.get(n,i,r)}}}(t,i.injector):t,s=a.get(Ol,Ve),l=a.get(Pl,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(ze(t))return t.selectRootElement(e,n===Xt.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Kr(s.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?Le:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Fr,clean:xa,playerHandler:null,flags:0},p=Qo(0,null,null,1,0,null,null,null,null,null),g=Ho(null,p,f,d,null,null,s,u,l,a);bn(g);try{var m=function(t,e,n,i,r,o){var a=n[1];n[20]=t;var s=jo(a,20,2,"#host",null),l=s.mergedAttrs=e.hostAttrs;null!==l&&(Ia(s,l,!0),null!==t&&(Bn(r,t,l),null!==s.classes&&yo(r,t,s.classes),null!==s.styles&&vo(r,t,s.styles)));var u=i.createRenderer(t,e),c=Ho(n,$o(e),null,e.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ei($n(s,n),a,e.type),oa(a,s),sa(s,n.length,1)),ma(n,c),n[20]=c}(h,this.componentDef,g,s,u);if(h)if(n)Bn(u,h,["ng-version",Rl.full]);else{var v=function(t){for(var e=[],n=[],i=1,r=2;i0&&yo(u,h,_.join(" "))}if(o=Ge(p,be),void 0!==e)for(var b=o.projection=[],x=0;x1&&void 0!==arguments[1]?arguments[1]:Wa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt.Default;return t===Wa||t===su||t===Oa?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(su),ku=function(t){u(n,t);var e=p(n);function n(t){var i,r,o;return s(this,n),(i=e.call(this)).moduleType=t,null!==_e(t)&&(r=t,o=new Set,function t(e){var n=_e(e,!0),i=n.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(wt(e)," vs ").concat(wt(e.name)))}(i,xu.get(i),e),xu.set(i,e));var r,a=v(Hr(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return a(n,[{key:"create",value:function(t){return new wu(this.moduleType,t)}}]),n}(lu);function Cu(t,e,n){var i=cn()+t,r=Je();return r[i]===Do?is(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Su(t,e,n,i){return Iu(Je(),cn(),t,e,n,i)}function Mu(t,e,n,i,r){return Ou(Je(),cn(),t,e,n,i,r)}function Au(t,e){var n=t[e];return n===Do?void 0:n}function Iu(t,e,n,i,r,o){var a=e+n;return rs(t,a,r)?is(t,a+1,o?i.call(o,r):i(r)):Au(t,a+1)}function Ou(t,e,n,i,r,o,a){var s=e+n;return os(t,s,r,o)?is(t,s+2,a?i.call(a,r,o):i(r,o)):Au(t,s+2)}function Tu(t,e){var n,i=tn(),r=t+be;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new It("302","The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Ie(n.type)),a=Ut(cs);try{var s=Zn(!1),l=o();return Zn(s),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(i,Je(),r,l),l}finally{Ut(a)}}function Du(t,e,n){var i=t+be,r=Je(),o=Ue(r,i);return Ru(r,Eu(r,i)?Iu(r,cn(),e,o.transform,n,o):o.transform(n))}function Pu(t,e,n,i){var r=t+be,o=Je(),a=Ue(o,r);return Ru(o,Eu(o,r)?Ou(o,cn(),e,a.transform,n,i,a):a.transform(n,i))}function Eu(t,e){return t[1].data[e].pure}function Ru(t,e){return ts.isWrapped(e)&&(e=ts.unwrap(e),t[hn()]=Do),e}function Lu(t){return function(e){setTimeout(t,void 0,e)}}var Nu=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s(this,n),(t=e.call(this)).__isAsync=i,t}return a(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,o){var a,s,l,u=t,c=e||function(){return null},h=o;if(t&&"object"==typeof t){var d=t;u=null===(a=d.next)||void 0===a?void 0:a.bind(d),c=null===(s=d.error)||void 0===s?void 0:s.bind(d),h=null===(l=d.complete)||void 0===l?void 0:l.bind(d)}this.__isAsync&&(c=Lu(c),u&&(u=Lu(u)),h&&(h=Lu(h)));var f=r(i(n.prototype),"subscribe",this).call(this,{next:u,error:c,complete:h});return t instanceof A&&t.add(f),f}}]),n}(U);function Fu(){return this._results[Ja()]()}var zu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ja(),i=t.prototype;i[n]||(i[n]=Fu)}return a(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Nu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var i=wi(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this.queries=e}return a(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;s(this,t),this.predicate=e,this.flags=n,this.read=i},ju=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this.queries=e}return a(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;s(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return a(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var u=o[s+1],c=e[-l],h=xe;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==r}),t(i._didWork,i.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Pc=function(){var t=function(){function t(){s(this,t),this._applications=new Map,Ec.addToWindow(this)}return a(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ec.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Ec=new(function(){function t(){s(this,t)}return a(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Rc=!0,Lc=!1;function Nc(){return Lc=!0,Rc}var Fc=function(t,e,n){var i=new ku(n);return Promise.resolve(i)},zc=new _i("AllowMultipleToken"),Vc=function t(e,n){s(this,t),this.name=e,this.token=n};function Bc(t){if(Oc&&!Oc.destroyed&&!Oc.injector.get(zc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=t.get(Uc);var e=t.get(sc,null);return e&&e.forEach(function(t){return t()}),Oc}function Hc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new _i(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Gc();if(!o||o.injector.get(zc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:Da,useValue:"platform"});Bc(Wa.create({providers:a,name:i}))}return jc(r)}}function jc(t){var e=Gc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Gc(){return Oc&&!Oc.destroyed?Oc:null}var Uc=function(){var t=function(){function t(e){s(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return a(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,o=(i={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===(n=e?e.ngZone:void 0)?new Tc:("zone.js"===n?void 0:n)||new kc({enableLongStackTrace:Nc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:kc,useValue:o}];return o.run(function(){var e=Wa.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Nr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){i.handleError(t)}});n.onDestroy(function(){qc(r._modules,n),t.unsubscribe()})}),function(t,e,i){try{var o=((a=n.injector.get(ic)).runInitializers(),a.donePromise.then(function(){return cl(n.injector.get(hc,ul)||ul),r._moduleDoBootstrap(n),n}));return bs(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Wc({},n);return Fc(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,i)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Yc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(wt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Wa))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Wc(t,e){return Array.isArray(e)?e.reduce(Wc,t):Object.assign(Object.assign({},t),e)}var Yc=function(){var t=function(){function t(e,n,i,r,o){var a=this;s(this,t),this._zone=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var l=new V(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new V(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){kc.assertNotInAngularZone(),wc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){kc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=dt(l,u.pipe(function(t){return ft()((e=_t,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,vt);return i.source=t,i.subjectFactory=n,i})(t));var e}))}return a(t,[{key:"bootstrap",value:function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof xl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(su),o=n.create(Wa.NULL,[],e||n.selector,r),a=o.location.nativeElement,s=o.injector.get(Dc,null),l=s&&o.injector.get(Pc);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),qc(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=v(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;qc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(uc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc),Fi(Wa),Fi(Nr),Fi(kl),Fi(ic))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function qc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Xc=function t(){s(this,t)},Zc=function t(){s(this,t)},Kc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},$c=function(){var t=function(){function t(e,n){s(this,t),this._compiler=e,this._config=n||Kc}return a(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=y(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(t){return t[o]}).then(function(t){return Qc(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=y(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return Qc(t,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(bc),Fi(Zc,8))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Qc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Jc=Hc(null,"core",[{provide:lc,useValue:"unknown"},{provide:Uc,deps:[Wa]},{provide:Pc,deps:[]},{provide:cc,deps:[]}]),th=[{provide:Yc,useClass:Yc,deps:[kc,Wa,Nr,kl,ic]},{provide:yu,deps:[kc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ic,useClass:ic,deps:[[new Wi,nc]]},{provide:bc,useClass:bc,deps:[]},oc,{provide:Yl,useFactory:function(){return eu},deps:[]},{provide:Xl,useFactory:function(){return nu},deps:[]},{provide:hc,useFactory:function(t){return cl(t=t||"undefined"!=typeof $localize&&$localize.locale||ul),t},deps:[[new Ui(hc),new Wi,new Yi]]},{provide:dc,useValue:"USD"}],eh=function(){var t=function t(e){s(this,t)};return t.\u0275fac=function(e){return new(e||t)(Fi(Yc))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:th}),t}(),nh=null;function ih(){return nh}var rh=function t(){s(this,t)},oh=new _i("DocumentToken"),ah=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:sh,token:t,providedIn:"platform"}),t}();function sh(){return Fi(uh)}var lh=new _i("Location Initialized"),uh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._doc=t,i._init(),i}return a(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return ih().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=ih().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=ih().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),n}(ah);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:hh,token:t,providedIn:"platform"}),t}();function ch(){return!!window.history.pushState}function hh(){return new uh(Fi(oh))}function dh(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function fh(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ph(t){return t&&"?"!==t[0]?"?"+t:t}var gh=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:mh,token:t,providedIn:"root"}),t}();function mh(t){var e=Fi(oh).location;return new yh(Fi(ah),e&&e.origin||"")}var vh=new _i("appBaseHref"),yh=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;if(s(this,n),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return dh(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(gh);return t.\u0275fac=function(e){return new(e||t)(Fi(ah),Fi(vh,8))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),_h=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=dh(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(gh);return t.\u0275fac=function(e){return new(e||t)(Fi(ah),Fi(vh,8))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),bh=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._subject=new Nu,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=fh(wh(r)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})})}return a(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+ph(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(gh),Fi(ah))},t.normalizeQueryParams=ph,t.joinWithSlash=dh,t.stripTrailingSlash=fh,t.\u0275prov=Pt({factory:xh,token:t,providedIn:"root"}),t}();function xh(){return new bh(Fi(gh),Fi(ah))}function wh(t){return t.replace(/\/index.html$/,"")}var kh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Ch=function t(){s(this,t)},Sh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).locale=t,i}return a(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=sl(e);if(n)return n;var i=e.split("-")[0];if(n=sl(i))return n;if("en"===i)return ol;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[ll.PluralCase]}(e||this.locale)(t)){case kh.Zero:return"zero";case kh.One:return"one";case kh.Two:return"two";case kh.Few:return"few";case kh.Many:return"many";default:return"other"}}}]),n}(Ch);return t.\u0275fac=function(e){return new(e||t)(Fi(hc))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Mh(t,e){e=encodeURIComponent(e);var n,i=v(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=y(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var Ah=function(){var t=function(){function t(e,n,i,r){s(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return a(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(es(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(wt(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Yl),cs(Xl),cs(Al),cs(Tl))},t.\u0275dir=me({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Ih=function(){function t(e,n,i,r){s(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return a(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Oh=function(){var t=function(){function t(e,n,i){s(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return a(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Ih(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new Th(t,o);n.push(a)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var l=new Th(t,s);n.push(l)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:Wh;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(function(t){e.keyValues.push(Gh(t.key,t.currentValue))}),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Xl,16))},t.\u0275pipe=ve({name:"keyvalue",type:t,pure:!1}),t}();function Wh(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Jt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Jt.getAllAngularRootElements=function(){return t.getAllRootElements()},Jt.frameworkStabilizers||(Jt.frameworkStabilizers=[]),Jt.frameworkStabilizers.push(function(t){var e=Jt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Ec=e}}]),t}(),id=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),rd=new _i("EventManagerPlugins"),od=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=i}),this._plugins=e.slice().reverse()}return a(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Cd.hasOwnProperty(e)&&(e=Cd[e]))}return kd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),wd.forEach(function(i){i!=n&&(0,Sd[i])(t)&&(e+=i+".")}),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(ad);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Ad=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return Fi(Od)},token:t,providedIn:"root"}),t}();function Id(t){return new Od(t.get(oh))}var Od=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._doc=t,i}return a(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Ar.NONE:return e;case Ar.HTML:return nr(e,"HTML")?er(e):Sr(this._doc,String(e)).toString();case Ar.STYLE:return nr(e,"Style")?er(e):e;case Ar.SCRIPT:if(nr(e,"Script"))return er(e);throw new Error("unsafe value used in a script context");case Ar.URL:return ir(e),nr(e,"URL")?er(e):lr(String(e));case Ar.RESOURCE_URL:if(nr(e,"ResourceURL"))return er(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Ki(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new $i(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Qi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Ji(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new tr(t)}}]),n}(Ad);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return Id(Fi(Oa))},token:t,providedIn:"root"}),t}(),Td=Hc(Jc,"browser",[{provide:lc,useValue:"browser"},{provide:sc,useValue:function(){Qh.makeCurrent(),nd.init()},multi:!0},{provide:oh,useFactory:function(){return function(t){Ne=t}(document),document},deps:[]}]),Dd=[[],{provide:Da,useValue:"root"},{provide:Nr,useFactory:function(){return new Nr},deps:[]},{provide:rd,useClass:xd,multi:!0,deps:[oh,kc,lc]},{provide:rd,useClass:Md,multi:!0,deps:[oh]},[],{provide:vd,useClass:vd,deps:[od,ld,rc]},{provide:Ol,useExisting:vd},{provide:sd,useExisting:ld},{provide:ld,useClass:ld,deps:[oh]},{provide:Dc,useClass:Dc,deps:[kc]},{provide:od,useClass:od,deps:[rd,kc]},{provide:$h,useClass:id,deps:[]},[]],Pd=function(){var t=function(){function t(e){if(s(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return a(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:rc,useValue:e.appId},{provide:td,useExisting:rc},ed]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(t,12))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:Dd,imports:[Yh,eh]}),t}();function Ed(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return a(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,b(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),Hd=function(){function t(){s(this,t)}return a(t,[{key:"encodeKey",value:function(t){return Gd(t)}},{key:"encodeValue",value:function(t){return Gd(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function jd(t,e){var n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var i=t.indexOf("="),r=y(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function Gd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Ud(t){return"".concat(t)}var Wd=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Hd,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=jd(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}return a(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var i=t[n];Array.isArray(i)?i.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(Ud(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(Ud(e.value));-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),Yd=function(){function t(){s(this,t),this.map=new Map}return a(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function qd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Zd(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Kd=function(){function t(e,n,i,r){var o;if(s(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Bd),this.context||(this.context=new Yd),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var l=n.indexOf("?");this.urlWithParams=n+(-1===l?"?":l0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,c=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},u)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},c)),new t(i,r,a,{params:c,headers:u,context:h,reportProgress:l,responseType:o,withCredentials:s})}}]),t}(),$d=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),Qd=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";s(this,t),this.headers=e.headers||new Bd,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Jd=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(t=e.call(this,i)).type=$d.ResponseHeader,t}return a(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Qd),tf=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(t=e.call(this,i)).type=$d.Response,t.body=void 0!==i.body?i.body:null,t}return a(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Qd),ef=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(Qd);function nf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var rf=function(){var t=function(){function t(e){s(this,t),this.handler=e}return a(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof Kd)n=t;else{var o=void 0;o=r.headers instanceof Bd?r.headers:new Bd(r.headers);var a=void 0;r.params&&(a=r.params instanceof Wd?r.params:new Wd({fromObject:r.params})),n=new Kd(t,e,void 0!==r.body?r.body:null,{headers:o,context:r.context,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Ed(n).pipe(Rd(function(t){return i.handler.handle(t)}));if(t instanceof Kd||"events"===r.observe)return s;var l=s.pipe(Ld(function(t){return t instanceof tf}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(q(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(q(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Wd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,nf(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,nf(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,nf(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(zd))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),of=function(){function t(e,n){s(this,t),this.next=e,this.interceptor=n}return a(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),af=new _i("HTTP_INTERCEPTORS"),sf=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),lf=/^\)\]\}',?\n/,uf=function(){var t=function(){function t(e){s(this,t),this.xhrFactory=e}return a(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V(function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach(function(t,e){return i.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Bd(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Jd({headers:r,status:e,statusText:n,url:o})},u=function(){var e=l(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(lf,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new tf({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new ef({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=l(),r=new ef({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:$d.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:$d.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:$d.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi($h))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),cf=new _i("XSRF_COOKIE_NAME"),hf=new _i("XSRF_HEADER_NAME"),df=function t(){s(this,t)},ff=function(){var t=function(){function t(e,n,i){s(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return a(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(lc),Fi(cf))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),pf=function(){var t=function(){function t(e,n){s(this,t),this.tokenService=e,this.headerName=n}return a(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(df),Fi(hf))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),gf=function(){var t=function(){function t(e,n){s(this,t),this.backend=e,this.injector=n,this.chain=null}return a(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(af,[]);this.chain=e.reduceRight(function(t,e){return new of(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Vd),Fi(Wa))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),mf=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:pf,useClass:sf}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:cf,useValue:e.cookieName}:[],e.headerName?{provide:hf,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[pf,{provide:af,useExisting:pf,multi:!0},{provide:df,useClass:ff},{provide:cf,useValue:"XSRF-TOKEN"},{provide:hf,useValue:"X-XSRF-TOKEN"}]}),t}(),vf=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[rf,{provide:zd,useClass:gf},uf,{provide:Vd,useExisting:uf}],imports:[[mf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),yf=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._value=t,i}return a(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}}]),n}(U),_f=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(R),bf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this)).parent=t,o.outerValue=i,o.outerIndex=r,o.index=0,o}return a(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(R);function xf(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new bf(t,n,i);if(!r.closed)return e instanceof V?e.subscribe(r):et(e)(r)}var wf={};function kf(){for(var t=arguments.length,e=new Array(t),n=0;n=2&&(n=!0),function(i){return i.lift(new Hf(t,e,n))}}var Hf=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new jf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),jf=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return a(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}}]),n}(R);function Gf(t){return function(e){var n=new Uf(t),i=e.lift(n);return n.caught=i}}var Uf=function(){function t(e){s(this,t),this.selector=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Wf(t,this.selector,this.caught))}}]),t}(),Wf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).selector=i,o.caught=r,o}return a(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new rt(this);this.add(o);var a=at(e,o);a!==o&&this.add(a)}}}]),n}(ot);function Yf(t){return function(e){return 0===t?Tf():e.lift(new qf(t))}}var qf=function(){function t(e){if(s(this,t),this.total=e,this.total<0)throw new Lf}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Xf(t,this.total))}}]),t}(),Xf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return a(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Qf;return function(e){return e.lift(new Kf(t))}}var Kf=function(){function t(e){s(this,t),this.errorFactory=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new $f(t,this.errorFactory))}}]),t}(),$f=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return a(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(R);function Qf(){return new Mf}function Jf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new tp(t))}}var tp=function(){function t(e){s(this,t),this.defaultValue=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ep(t,this.defaultValue))}}]),t}(),ep=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return a(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(R);function np(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ld(function(e,n){return t(e,n,i)}):F,Nf(1),n?Jf(e):Zf(function(){return new Mf}))}}function ip(){}function rp(t,e,n){return function(i){return i.lift(new op(t,e,n))}}var op=function(){function t(e,n,i){s(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ap(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),ap=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t))._tapNext=ip,a._tapError=ip,a._tapComplete=ip,a._tapError=r||ip,a._tapComplete=o||ip,S(i)?(a._context=d(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||ip,a._tapError=i.error||ip,a._tapComplete=i.complete||ip),a}return a(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(R),sp=function(){function t(e){s(this,t),this.callback=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new lp(t,this.callback))}}]),t}(),lp=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).add(new A(i)),r}return n}(R),up=function t(e,n){s(this,t),this.id=e,this.url=n},cp=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return s(this,n),(r=e.call(this,t,i)).navigationTrigger=o,r.restoredState=a,r}return a(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(up),hp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o}return a(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(up),dp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).reason=r,o}return a(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(up),fp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).error=r,o}return a(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(up),pp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),gp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),mp=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;return s(this,n),(l=e.call(this,t,i)).urlAfterRedirects=r,l.state=o,l.shouldActivate=a,l}return a(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(up),vp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),yp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),_p=function(){function t(e){s(this,t),this.route=e}return a(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),bp=function(){function t(e){s(this,t),this.route=e}return a(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),xp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),wp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),kp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Cp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Sp=function(){function t(e,n,i){s(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return a(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),Mp="primary",Ap=function(){function t(e){s(this,t),this.params=e||{}}return a(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Ip(t){return new Ap(t)}function Op(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Tp(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length0?t[t.length-1]:null}function Lp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Np(t){return ws(t)?t:bs(t)?it(Promise.resolve(t)):Ed(t)}var Fp={exact:function t(e,n,i){if(!Yp(e.segments,n.segments))return!1;if(!jp(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:Bp},zp={exact:function(t,e){return Dp(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Pp(t[n],e[n])})},ignored:function(){return!0}};function Vp(t,e,n){return Fp[n.paths](t.root,e.root,n.matrixParams)&&zp[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Bp(t,e,n){return Hp(t,e,e.segments,n)}function Hp(t,e,n,i){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!Yp(r,n)&&!e.hasChildren()&&!!jp(r,n,i)}if(t.segments.length===n.length){if(!Yp(t.segments,n))return!1;if(!jp(t.segments,n,i))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!Bp(t.children[o],e.children[o],i))return!1}return!0}var a=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Yp(t.segments,a)&&!!jp(t.segments,a,i)&&!!t.children.primary&&Hp(t.children.primary,e,s,i)}function jp(t,e,n){return e.every(function(e,i){return zp[n](t[i].parameters,e.parameters)})}var Gp=function(){function t(e,n,i){s(this,t),this.root=e,this.queryParams=n,this.fragment=i}return a(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ip(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Zp.serialize(this)}}]),t}(),Up=function(){function t(e,n){var i=this;s(this,t),this.segments=e,this.children=n,this.parent=null,Lp(n,function(t,e){return t.parent=i})}return a(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Kp(this)}}]),t}(),Wp=function(){function t(e,n){s(this,t),this.path=e,this.parameters=n}return a(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Ip(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ig(this)}}]),t}();function Yp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var qp=function t(){s(this,t)},Xp=function(){function t(){s(this,t)}return a(t,[{key:"parse",value:function(t){var e=new lg(t);return new Gp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat($p(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Jp(t),"=").concat(Jp(e))}).join("&"):"".concat(Jp(t),"=").concat(Jp(n))}).filter(function(t){return!!t})).length?"?".concat(n.join("&")):""),o="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),t}(),Zp=new Xp;function Kp(t){return t.segments.map(function(t){return ig(t)}).join("/")}function $p(t,e){if(!t.hasChildren())return Kp(t);if(e){var n=t.children.primary?$p(t.children.primary,!1):"",i=[];return Lp(t.children,function(t,e){e!==Mp&&i.push("".concat(e,":").concat($p(t,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(t,e){var n=[];return Lp(t.children,function(t,i){i===Mp&&(n=n.concat(e(t,i)))}),Lp(t.children,function(t,i){i!==Mp&&(n=n.concat(e(t,i)))}),n}(t,function(e,n){return n===Mp?[$p(t.children.primary,!1)]:["".concat(n,":").concat($p(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Kp(t),"/").concat(r[0]):"".concat(Kp(t),"/(").concat(r.join("//"),")")}function Qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jp(t){return Qp(t).replace(/%3B/gi,";")}function tg(t){return Qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function eg(t){return decodeURIComponent(t)}function ng(t){return eg(t.replace(/\+/g,"%20"))}function ig(t){return"".concat(tg(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(tg(t),"=").concat(tg(e[t]))}).join("")));var e}var rg=/^[^\/()?;=#]+/;function og(t){var e=t.match(rg);return e?e[0]:""}var ag=/^[^=?&#]+/,sg=/^[^?&#]+/,lg=function(){function t(e){s(this,t),this.url=e,this.remaining=e}return a(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Up([],{}):new Up([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Up(t,e)),n}},{key:"parseSegment",value:function(){var t=og(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Wp(eg(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=og(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=og(this.remaining);i&&this.capture(n=i)}t[eg(e)]=eg(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(ag);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(sg);return e?e[0]:""}(this.remaining);i&&this.capture(n=i)}var r=ng(e),o=ng(n);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(t[r]=a=[a]),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=og(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Mp);var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Up([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),ug=function(){function t(e){s(this,t),this._root=e}return a(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=cg(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=cg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=hg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return hg(t,this._root).map(function(t){return t.value})}}]),t}();function cg(t,e){if(t===e.value)return e;var n,i=v(e.children);try{for(i.s();!(n=i.n()).done;){var r=cg(t,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function hg(t,e){if(t===e.value)return[e];var n,i=v(e.children);try{for(i.s();!(n=i.n()).done;){var r=hg(t,n.value);if(r.length)return r.unshift(e),r}}catch(o){i.e(o)}finally{i.f()}return[]}var dg=function(){function t(e,n){s(this,t),this.value=e,this.children=n}return a(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function fg(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var pg=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).snapshot=i,xg(d(r),t),r}return a(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(ug);function gg(t,e){var n=function(t,e){var n=new _g([],{},{},"",{},Mp,e,null,t.root,-1,{});return new bg("",new dg(n,[]))}(t,e),i=new yf([new Wp("",{})]),r=new yf({}),o=new yf({}),a=new yf({}),s=new yf(""),l=new mg(i,r,a,s,o,Mp,e,n.root);return l.snapshot=n.root,new pg(new dg(l,[]),n)}var mg=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this._futureSnapshot=u}return a(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q(function(t){return Ip(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(t){return Ip(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function vg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return yg(n.slice(i))}function yg(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var _g=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=h,this._resolve=d}return a(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Ip(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ip(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),t}(),bg=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,i)).url=t,xg(d(r),i),r}return a(n,[{key:"toString",value:function(){return wg(this._root)}}]),n}(ug);function xg(t,e){e.value._routerState=t,e.children.forEach(function(e){return xg(t,e)})}function wg(t){var e=t.children.length>0?" { ".concat(t.children.map(wg).join(", ")," } "):"";return"".concat(t.value).concat(e)}function kg(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Eg(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Lg(a.segmentGroup,a.index,o.commands):Rg(a.segmentGroup,a.index,o.commands);return Tg(a.segmentGroup,s,e,i,r)}function Ig(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Og(t){return"object"==typeof t&&null!=t&&t.outlets}function Tg(t,e,n,i,r){var o={};return i&&Lp(i,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new Gp(n.root===t?e:Dg(n.root,t,e),o,r)}function Dg(t,e,n){var i={};return Lp(t.children,function(t,r){i[r]=t===e?n:Dg(t,e,n)}),new Up(t.segments,i)}var Pg=function(){function t(e,n,i){if(s(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&Ig(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(Og);if(r&&r!==Rp(i))throw new Error("{outlets:{}} has to be the last command")}return a(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Eg=function t(e,n,i){s(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Rg(t,e,n){if(t||(t=new Up([],{})),0===t.segments.length&&t.hasChildren())return Lg(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=t.segments[r],s=n[i];if(Og(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Vg(l,u,a))return o;i+=2}else{if(!Vg(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},tm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||Tp)(n,t,e);if(!r)return Object.assign({},tm);var o={};Lp(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function nm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&om(t,n,i)){var o=new Up(e,rm(t,e,i,new Up(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&am(t,n,i)){var a=new Up(t.segments,im(t,e,n,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Up(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function im(t,e,n,i,r,o){var a,s={},l=v(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(sm(t,n,u)&&!r[Qg(u)]){var c=new Up([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Qg(u)]=c}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},r),s)}function rm(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var o,a=v(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Qg(s)!==Mp){var l=new Up([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,r[Qg(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}function om(t,e,n){return n.some(function(n){return sm(t,e,n)&&Qg(n)!==Mp})}function am(t,e,n){return n.some(function(n){return sm(t,e,n)})}function sm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function lm(t,e,n,i){return!!(Qg(t)===i||i!==Mp&&sm(e,n,t))&&("**"===t.path||em(e,t,n).matched)}function um(t,e,n){return 0===e.length&&!t.children[n]}var cm=function t(e){s(this,t),this.segmentGroup=e||null},hm=function t(e){s(this,t),this.urlTree=e};function dm(t){return new V(function(e){return e.error(new cm(t))})}function fm(t){return new V(function(e){return e.error(new hm(t))})}function pm(t){return new V(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var gm=function(){function t(e,n,i,r,o){s(this,t),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(su)}return a(t,[{key:"apply",value:function(){var t=this,e=nm(this.urlTree.root,[],[],this.config).segmentGroup,n=new Up(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Mp).pipe(q(function(e){return t.createUrlTree(mm(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Gf(function(e){if(e instanceof hm)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof cm)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Mp).pipe(q(function(n){return e.createUrlTree(mm(n),t.queryParams,t.fragment)})).pipe(Gf(function(t){if(t instanceof cm)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new Up([],_({},Mp,t)):t;return new Gp(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q(function(t){return new Up([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o=2;return function(i){return i.pipe(t?Ld(function(e,n){return t(e,n,i)}):F,Yf(1),n?Jf(e):Zf(function(){return new Mf}))}}())}},{key:"expandSegment",value:function(t,e,n,i,r,o){var a=this;return it(n).pipe(Rd(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(Gf(function(t){if(t instanceof cm)return Ed(null);throw t}))}),np(function(t){return!!t}),Gf(function(t,n){if(t instanceof Mf||"EmptyError"===t.name){if(um(e,i,r))return Ed(new Up([],{}));throw new cm(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,o,a){return lm(i,e,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):dm(e):dm(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?fm(o):this.lineralizeSegments(n,o).pipe(st(function(n){var o=new Up(n,{});return r.expandSegment(t,o,e,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){var a=this,s=em(e,i,r),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return dm(e);var h=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?fm(h):this.lineralizeSegments(i,h).pipe(st(function(i){return a.expandSegment(t,e,n,i.concat(r.slice(u)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Ed(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(q(function(t){return n._loadedConfig=t,new Up(i,{})})):Ed(new Up(i,{}));var a=em(e,n,i),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return dm(e);var u=i.slice(l);return this.getChildConfig(t,n,i).pipe(st(function(t){var i=t.module,a=t.routes,l=nm(e,s,u,a),c=l.segmentGroup,h=l.slicedSegments,d=new Up(c.segments,c.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(q(function(t){return new Up(s,t)}));if(0===a.length&&0===h.length)return Ed(new Up(s,{}));var f=Qg(n)===r;return o.expandSegment(i,d,a,h,f?Mp:r,!0).pipe(q(function(t){return new Up(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Ed(new jg(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ed(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(st(function(n){return n?i.configLoader.load(t.injector,e).pipe(q(function(t){return e._loadedConfig=t,t})):function(t){return new V(function(e){return e.error(Op("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Ed(new jg([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i=this,r=e.canLoad;return r&&0!==r.length?Ed(r.map(function(i){var r,o=t.get(i);if(function(t){return t&&Gg(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!Gg(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Np(r)})).pipe(Yg(),rp(function(t){if(Ug(t)){var e=Op('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),q(function(t){return!0===t})):Ed(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ed(n);if(i.numberOfChildren>1||!i.children.primary)return pm(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Gp(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Lp(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return Lp(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)}),new Up(o,a)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=v(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function mm(t){for(var e={},n=0,i=Object.keys(t.children);n0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Up(t.segments.concat(e.segments),e.children)}return t}(new Up(t.segments,e))}var vm=function t(e){s(this,t),this.path=e,this.route=this.path[this.path.length-1]},ym=function t(e,n){s(this,t),this.component=e,this.route=n};function _m(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function bm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=fg(e);return t.children.forEach(function(t){xm(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]}),Lp(o,function(t,e){return km(t,n.getContext(e),r)}),r}function xm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=wm(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new vm(i)):(o.data=a.data,o._resolvedData=a._resolvedData),bm(t,e,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ym(s.outlet.component,a))}else a&&km(e,s,r),r.canActivateChecks.push(new vm(i)),bm(t,null,o.component?s?s.children:null:n,i,r);return r}function wm(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Yp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Yp(t.url,e.url)||!Dp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cg(t,e)||!Dp(t.queryParams,e.queryParams);case"paramsChange":default:return!Cg(t,e)}}function km(t,e,n){var i=fg(t),r=t.value;Lp(i,function(t,i){km(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new ym(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var Cm=function t(){s(this,t)};function Sm(t){return new V(function(e){return e.error(t)})}var Mm=function(){function t(e,n,i,r,o,a){s(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return a(t,[{key:"recognize",value:function(){var t=nm(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Mp);if(null===e)return null;var n=new _g([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Mp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new dg(n,e),r=new bg(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=vg(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,r=Object.keys(e.children);i0?Rp(n).parameters:{};r=new _g(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(t),Qg(t),t.component,t,Im(e),Om(e)+n.length,Dm(t))}else{var l=em(e,t,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new _g(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(t),Qg(t),t.component,t,Im(e),Om(e)+o.length,Dm(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=nm(e,o,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new dg(r,f)]}if(0===u.length&&0===d.length)return[new dg(r,[])];var p=Qg(t)===i,g=this.processSegment(u,h,d,p?Mp:i);return null===g?null:[new dg(r,g)]}}]),t}();function Am(t){var e,n=[],i=new Set,r=v(t);try{var o=function(){var t=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(t))return n.push(t),"continue";var r,o=n.find(function(e){return t.value.routeConfig===e.value.routeConfig});void 0!==o?((r=o.children).push.apply(r,b(t.children)),i.add(o)):n.push(t)};for(r.s();!(e=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=v(i);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=Am(l.children);n.push(new dg(l.value,u))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(t){return!i.has(t)})}function Im(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Om(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Tm(t){return t.data||{}}function Dm(t){return t.resolve||{}}function Pm(t){return Pf(function(e){var n=t(e);return n?it(n).pipe(q(function(){return e})):Ed(e)})}var Em=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(function(){function t(){s(this,t)}return a(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Rm=new _i("ROUTES"),Lm=function(){function t(e,n,i,r){s(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return a(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var i=this.loadModuleFactory(e.loadChildren).pipe(q(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new jg(Ep(r.injector.get(Rm,void 0,jt.Self|jt.Optional)).map($g),r)}),Gf(function(t){throw e._loader$=void 0,t}));return e._loader$=new mt(i,function(){return new U}).pipe(ft()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?it(this.loader.load(t)):Np(t()).pipe(st(function(t){return t instanceof lu?Ed(t):it(e.compiler.compileModuleAsync(t))}))}}]),t}(),Nm=function t(){s(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Fm,this.attachRef=null},Fm=function(){function t(){s(this,t),this.contexts=new Map}return a(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Nm,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),zm=function(){function t(){s(this,t)}return a(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Vm(t){throw t}function Bm(t,e,n){return e.parse("/")}function Hm(t,e){return Ed(null)}var jm={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gm={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Um=function(){var t=function(){function t(e,n,i,r,o,a,l,u){var c=this;s(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U,this.errorHandler=Vm,this.malformedUriErrorHandler=Bm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hm,afterPreactivation:Hm},this.urlHandlingStrategy=new zm,this.routeReuseStrategy=new Em,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(su),this.console=o.get(cc);var h=o.get(kc);this.isNgZoneEnabled=h instanceof kc&&kc.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Gp(new Up([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Lm(a,l,function(t){return c.triggerEvent(new _p(t))},function(t){return c.triggerEvent(new bp(t))}),this.routerState=gg(this.currentUrlTree,this.rootComponentType),this.transitions=new yf({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return a(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Ld(function(t){return 0!==t.id}),q(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Pf(function(t){var i,r,o,a,s=!1,l=!1;return Ed(t).pipe(rp(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Pf(function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ed(t).pipe(Pf(function(t){var i=e.transitions.getValue();return n.next(new cp(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Of:Promise.resolve(t)}),function(t,e,n,i){return Pf(function(r){return function(t,e,n,i,r){return new gm(t,e,n,i,r).apply()}(t,e,n,r.extractedUrl,i).pipe(q(function(t){return Object.assign(Object.assign({},r),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),rp(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,i,r,o){return st(function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Mm(t,e,n,i,r,o).recognize();return null===a?Sm(new Cm):Ed(a)}catch(s){return Sm(s)}}(t,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,e.serializeUrl(a)),r,o).pipe(q(function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),rp(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var i=new pp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var r=t.extractedUrl,o=t.source,a=t.restoredState,s=t.extras,l=new cp(t.id,e.serializeUrl(r),o,a);n.next(l);var u=gg(r,e.rootComponentType).snapshot;return Ed(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Of}),Pm(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),rp(function(t){var n=new gp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),q(function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,o=n._root,bm(o,i?i._root:null,r,[o.value]))});var n,i,r,o}),function(t,e){return st(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Ed(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return it(t).pipe(st(function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Ed(o.map(function(o){var a,s=_m(o,e,r);if(function(t){return t&&Gg(t.canDeactivate)}(s))a=Np(s.canDeactivate(t,e,n,i));else{if(!Gg(s))throw new Error("Invalid CanDeactivate guard");a=Np(s(t,e,n,i))}return a.pipe(np())})).pipe(Yg()):Ed(!0)}(t.component,t.route,n,e,i)}),np(function(t){return!0!==t},!0))}(s,i,r,t).pipe(st(function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return it(e).pipe(Rd(function(e){return If(function(t,e){return null!==t&&e&&e(new xp(t)),Ed(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new kp(t)),Ed(!0)}(e.route,i),function(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Df(function(){return Ed(e.guards.map(function(r){var o,a=_m(r,e.node,n);if(function(t){return t&&Gg(t.canActivateChild)}(a))o=Np(a.canActivateChild(i,t));else{if(!Gg(a))throw new Error("Invalid CanActivateChild guard");o=Np(a(i,t))}return o.pipe(np())})).pipe(Yg())})});return Ed(r).pipe(Yg())}(t,e.path,n),function(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Ed(i.map(function(i){return Df(function(){var r,o=_m(i,e,n);if(function(t){return t&&Gg(t.canActivate)}(o))r=Np(o.canActivate(e,t));else{if(!Gg(o))throw new Error("Invalid CanActivate guard");r=Np(o(e,t))}return r.pipe(np())})})).pipe(Yg()):Ed(!0)}(t,e.route,n))}),np(function(t){return!0!==t},!0))}(i,a,t,e):Ed(n)}),q(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),rp(function(t){if(Ug(t.guardsResult)){var n=Op('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var i=new mp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)}),Ld(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),Pm(function(t){if(t.guards.canActivateChecks.length)return Ed(t).pipe(rp(function(t){var n=new vp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Pf(function(t){var n,i,r=!1;return Ed(t).pipe((n=e.paramsInheritanceStrategy,i=e.ngModule.injector,st(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return Ed(t);var o=0;return it(r).pipe(Rd(function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Ed({});var o={};return it(r).pipe(st(function(r){return function(t,e,n,i){var r=_m(t,e,i);return Np(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(rp(function(t){o[r]=t}))}),Yf(1),st(function(){return Object.keys(o).length===r.length?Ed(o):Of}))}(t._resolve,t,e,i).pipe(q(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),vg(t,n).resolve),null}))}(t.route,e,n,i)}),rp(function(){return o++}),Yf(1),st(function(e){return o===r.length?Ed(t):Of}))})),rp({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),rp(function(t){var n=new yp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Pm(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),q(function(t){var n,i,r,o=(r=Sg(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new pg(r,n));return Object.assign(Object.assign({},t),{targetRouterState:o})}),rp(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},q(function(t){return new Bg(o,t.targetRouterState,t.currentRouterState,a).activate(r),t})),rp({next:function(){s=!0},complete:function(){s=!0}}),(i=function(){s||l||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null},function(t){return t.lift(new sp(i))}),Gf(function(i){if(l=!0,(s=i)&&s.ngNavigationCancelingError){var r=Ug(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new dp(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new fp(t.id,e.serializeUrl(t.extractedUrl),i);n.next(a);try{t.resolve(e.errorHandler(i))}catch(u){t.reject(u)}}var s;return Of}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,i,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Xg(t),this.config=t.map($g),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),Ag(s,this.currentUrlTree,t,u,null!=l?l:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Ug(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;if("computed"===this.canceledNavigationResolution){var o=0===this.currentPageId;(o||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState())}return this.scheduleNavigation(i,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Wm(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){var n;if(n=!0===e?Object.assign({},jm):!1===e?Object.assign({},Gm):e,Ug(t))return Vp(this.currentUrlTree,t,n);var i=this.parseUrl(t);return Vp(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var i=t[n];return null!=i&&(e[n]=i),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.currentPageId=e.targetPageId,t.events.next(new hp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==e&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(t,e){o=t,a=e});var h=++this.navigationId;return this.setTransition({id:h,targetPageId:"computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e){var n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();var n=new dp(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}},{key:"generateNgRouterState",value:function(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xi),Fi(qp),Fi(Fm),Fi(bh),Fi(Wa),Fi(Xc),Fi(bc),Fi(void 0))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Wm(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};s(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return a(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof cp?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof hp&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Sp&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Sp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Um),Fi(qh),Fi(void 0))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),nv=new _i("ROUTER_CONFIGURATION"),iv=new _i("ROUTER_FORROOT_GUARD"),rv=[bh,{provide:qp,useClass:Xp},{provide:Um,useFactory:function(t,e,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new Um(null,t,e,n,i,r,o,Ep(a));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),hv(s,c),s.enableTracing&&c.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[qp,Fm,bh,Wa,Xc,bc,Rm,nv,[function t(){s(this,t)},new Wi],[function t(){s(this,t)},new Wi]]},Fm,{provide:mg,useFactory:function(t){return t.routerState.root},deps:[Um]},{provide:Xc,useClass:$c},tv,Jm,Qm,{provide:nv,useValue:{enableTracing:!1}}];function ov(){return new Vc("Router",Um)}var av=function(){var t=function(){function t(e,n){s(this,t)}return a(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[rv,cv(e),{provide:iv,useFactory:uv,deps:[[Um,new Wi,new Yi]]},{provide:nv,useValue:n||{}},{provide:gh,useFactory:lv,deps:[ah,[new Ui(vh),new Wi],nv]},{provide:ev,useFactory:sv,deps:[Um,qh,nv]},{provide:$m,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Jm},{provide:Vc,multi:!0,useFactory:ov},[dv,{provide:nc,multi:!0,useFactory:fv,deps:[dv]},{provide:gv,useFactory:pv,deps:[dv]},{provide:uc,multi:!0,useExisting:gv}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[cv(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(iv,8),Fi(Um,8))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}();function sv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ev(t,e,n)}function lv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _h(t,e):new yh(t,e)}function uv(t){return"guarded"}function cv(t){return[{provide:bi,multi:!0,useValue:t},{provide:Rm,multi:!0,useValue:t}]}function hv(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}var dv=function(){var t=function(){function t(e){s(this,t),this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U}return a(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(lh,Promise.resolve(null)).then(function(){if(t.destroyed)return Promise.resolve(!0);var e=null,n=new Promise(function(t){return e=t}),i=t.injector.get(Um),r=t.injector.get(nv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return t.initNavigation?Ed(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(nv),n=this.injector.get(tv),i=this.injector.get(ev),r=this.injector.get(Um),o=this.injector.get(Yc);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Wa))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function fv(t){return t.appInitializer.bind(t)}function pv(t){return t.bootstrapListener.bind(t)}var gv=new _i("Router Initializer"),mv=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function vv(t){return null!=t&&"false"!=="".concat(t)}function yv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return _v(t)?Number(t):e}function _v(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function bv(t){return Array.isArray(t)?t:[t]}function xv(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function wv(t){return t instanceof Al?t.nativeElement:t}function kv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var i,r=Array.isArray(t)?t:"".concat(t).split(e),o=v(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s="".concat(a).trim();s&&n.push(s)}}catch(l){o.e(l)}finally{o.f()}}return n}function Cv(t,e,n,i){return S(n)&&(i=n,n=void 0),i?Cv(t,e,n).pipe(q(function(t){return k(t)?i.apply(void 0,b(t)):i(t)})):new V(function(i){Sv(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function Sv(t,e,n,i,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,r),o=function(){return a.removeEventListener(e,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var l=t;t.addListener(e,n),o=function(){return l.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,c=t.length;u1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){u(n,t);var e=p(n);function n(t,i){return s(this,n),e.call(this)}return a(n,[{key:"schedule",value:function(t){return this}}]),n}(A)),Av=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;s(this,t),this.SchedulerAction=e,this.now=n}return a(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Iv=function(t){u(n,t);var e=p(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Av.now;return s(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==d(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return a(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,o):r(i(n.prototype),"schedule",this).call(this,t,e,o)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(Av),Ov=1,Tv=function(){return Promise.resolve()}(),Dv={};function Pv(t){return t in Dv&&(delete Dv[t],!0)}var Ev=function(t){var e=Ov++;return Dv[e]=!0,Tv.then(function(){return Pv(e)&&t()}),e},Rv=function(t){Pv(t)},Lv=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return a(n,[{key:"requestAsyncId",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,o):(t.actions.push(this),t.scheduled||(t.scheduled=Ev(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,o);0===t.actions.length&&(Rv(e),t.scheduled=void 0)}}]),n}(Mv),Nv=new(function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function Wv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Uv(e)?i=Number(e)<1?1:Number(e):Y(e)&&(n=e),Y(n)||(n=Bv),new V(function(e){var r=Uv(t)?t:+t-n.now();return n.schedule(Yv,r,{index:0,period:i,subscriber:e})})}function Yv(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function qv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv;return Hv(function(){return Wv(t,e)})}function Xv(t){return function(e){return e.lift(new Zv(t))}}var Zv=function(){function t(e){s(this,t),this.notifier=e}return a(t,[{key:"call",value:function(t,e){var n=new Kv(t),i=at(this.notifier,new rt(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),Kv=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t)).seenValue=!1,i}return a(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ot);function $v(t,e){return new V(e?function(n){return e.schedule(Qv,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Qv(t){t.subscriber.error(t.error)}var Jv,ty=function(){var t=function(){function t(e,n,i){s(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return a(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Ed(this.value);case"E":return $v(this.error);case"C":return Tf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{Jv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(yH){Jv=!1}var ey,ny,iy,ry,oy=function(){var t=function t(e){s(this,t),this._platformId=e,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Jv)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(Fi(lc))},t.\u0275prov=Pt({factory:function(){return new t(Fi(lc))},token:t,providedIn:"root"}),t}(),ay=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),sy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ly(){if(ey)return ey;if("object"!=typeof document||!document)return ey=new Set(sy);var t=document.createElement("input");return ey=new Set(sy.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function uy(t){return function(){if(null==ny&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ny=!0}}))}finally{ny=ny||!1}return ny}()?t:!!t.capture}function cy(){if(null==iy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return iy=!1;if("scrollBehavior"in document.documentElement.style)iy=!0;else{var t=Element.prototype.scrollTo;iy=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return iy}function hy(t){if(function(){if(null==ry){var t="undefined"!=typeof document?document.head:null;ry=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ry}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function dy(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var fy=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return zi(oh)}}),py=function(){var t=function(){function t(e){if(s(this,t),this.value="ltr",this.change=new Nu,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return a(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(fy,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(fy,8))},token:t,providedIn:"root"}),t}(),gy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),my=function t(){s(this,t)};function vy(t){return t&&"function"==typeof t.connect}var yy=function(){function t(){s(this,t)}return a(t,[{key:"applyChanges",value:function(t,e,n,i,r){t.forEachOperation(function(t,i,o){var a,s;if(null==t.previousIndex){var l=n(t,i,o);a=e.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==o?(e.remove(i),s=3):(a=e.get(i),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),_y=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new U,i&&i.length&&(n?i.forEach(function(t){return e._markSelected(t)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return a(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(qv(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Ed()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ld(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=wv(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Cv(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc),Fi(oy),Fi(oh,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(kc),Fi(oy),Fi(oh,8))},token:t,providedIn:"root"}),t}(),wy=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._platform=e,this._change=new U,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return a(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(qv(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(kc),Fi(oh,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(kc),Fi(oh,8))},token:t,providedIn:"root"}),t}(),ky=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),Cy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[gy,ay,ky],gy,ky]}),t}(),Sy=function(){function t(){s(this,t)}return a(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),My=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this)).component=t,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(Sy),Ay=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=i,o.context=r,o}return a(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}}]),n}(Sy),Iy=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).element=t instanceof Al?t.nativeElement:t,i}return n}(Sy),Oy=function(){function t(){s(this,t),this._isDisposed=!1,this.attachDomPortal=null}return a(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof My?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ay?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Iy?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),Ty=function(t){u(n,t);var e=p(n);function n(t,o,a,l,u){var c,h;return s(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=a,h._defaultInjector=l,h.attachDomPortal=function(t){var e=t.element,o=h._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),h.outletElement.appendChild(e),h._attachedPortal=t,r((c=d(h),i(n.prototype)),"setDisposeFn",c).call(c,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},h._document=u,h}return a(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),this._attachedPortal=t,i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(Oy),Dy=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){return s(this,n),e.call(this,t,i)}return n}(Ay);return t.\u0275fac=function(e){return new(e||t)(cs(ru),cs(cu))},t.\u0275dir=me({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[qa]}),t}(),Py=function(){var t=function(t){u(n,t);var e=p(n);function n(t,o,a){var l,u;return s(this,n),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new Nu,u.attachDomPortal=function(t){var e=t.element,o=u._document.createComment("dom-portal");t.setAttachedHost(d(u)),e.parentNode.insertBefore(o,e),u._getRootNode().appendChild(e),u._attachedPortal=t,r((l=d(u),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},u._document=a,u}return a(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(o,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),n}(Oy);return t.\u0275fac=function(e){return new(e||t)(cs(kl),cs(cu),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[qa]}),t}(),Ey=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),Ry=function(){function t(e,n){s(this,t),this.predicate=e,this.inclusive=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Ly(t,this.predicate,this.inclusive))}}]),t}(),Ly=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).predicate=i,o.inclusive=r,o.index=0,o}return a(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(R),Ny=13,Fy=27,zy=32,Vy=35,By=36,Hy=37,jy=38,Gy=39,Uy=40;function Wy(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}(),Xy=function(){function t(e,n,i,r){var o=this;s(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return a(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Zy=function(){function t(){s(this,t)}return a(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Ky(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function $y(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var Qy=function(){function t(e,n,i,r){s(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return a(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;Ky(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Jy=function(){var t=function t(e,n,i,r){var o=this;s(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Zy},this.close=function(t){return new Xy(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new qy(o._viewportRuler,o._document)},this.reposition=function(t){return new Qy(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(Fi(xy),Fi(wy),Fi(kc),Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(xy),Fi(wy),Fi(kc),Fi(oh))},token:t,providedIn:"root"}),t}(),t_=function t(e){if(s(this,t),this.scrollStrategy=new Zy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh))},token:t,providedIn:"root"}),t}(),r_=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return a(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(i_);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh))},token:t,providedIn:"root"}),t}(),o_=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return a(n,[{key:"add",value:function(t){if(r(i(n.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(i_);return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(oy))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh),Fi(oy))},token:t,providedIn:"root"}),t}(),a_="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,s_=function(){var t=function(){function t(e,n){s(this,t),this._platform=n,this._document=e}return a(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||a_)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),n=0;nf&&(f=m,d=g)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&d_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(u_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=p_(e),o=t.x,a=t.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,u,c),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=f_(this._overlayRef.getConfig().minHeight),a=f_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=p_(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),l=Math.max(t.y+o.height-a.height,0),u=Math.max(a.top-n.top-t.y,0),c=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:i=o.width<=a.width?c||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{var d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;a=t.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=xv(n.height),i.top=xv(n.top),i.bottom=xv(n.bottom),i.width=xv(n.width),i.left=xv(n.left),i.right=xv(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=xv(r)),o&&(i.maxWidth=xv(o))}this._lastBoundingBoxSize=n,d_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){d_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){d_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();d_(n,this._getExactOverlayY(e,t,a)),d_(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=xv(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=xv(o.maxWidth):r&&(n.maxWidth="")),d_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=xv(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=xv(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:$y(t,n),isOriginOutsideView:Ky(t,n),isOverlayClipped:$y(e,n),isOverlayOutsideView:Ky(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(m_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),y_=function(){var t=function(){function t(e,n,i,r){s(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return a(t,[{key:"global",value:function(){return new v_}},{key:"connectedTo",value:function(t,e,n){return new g_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new h_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(wy),Fi(oh),Fi(oy),Fi(s_))},t.\u0275prov=Pt({factory:function(){return new t(Fi(wy),Fi(oh),Fi(oy),Fi(s_))},token:t,providedIn:"root"}),t}(),__=0,b_=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=u,this._directionality=c,this._location=h,this._outsideClickDispatcher=d}return a(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new t_(t);return r.direction=r.direction||this._directionality.value,new l_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(__++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Yc)),new Ty(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Jy),Fi(s_),Fi(kl),Fi(y_),Fi(r_),Fi(Wa),Fi(kc),Fi(oh),Fi(py),Fi(bh),Fi(o_))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),x_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],w_=new _i("cdk-connected-overlay-scroll-strategy"),k_=function(){var t=function t(e){s(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(cs(Al))},t.\u0275dir=me({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),C_=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=A.EMPTY,this._attachSubscription=A.EMPTY,this._detachSubscription=A.EMPTY,this._positionSubscription=A.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Nu,this.positionChange=new Nu,this.attach=new Nu,this.detach=new Nu,this.overlayKeydown=new Nu,this.overlayOutsideClick=new Nu,this._templatePortal=new Ay(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return a(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=vv(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=vv(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=vv(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=vv(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=vv(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=x_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==Fy||t.disableClose||Wy(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new t_({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Ry(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(ru),cs(cu),cs(w_),cs(py,8))},t.\u0275dir=me({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Te]}),t}(),S_={provide:w_,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},M_=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[b_,S_],imports:[[gy,Ey,Cy],Cy]}),t}();function A_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv;return function(n){return n.lift(new I_(t,e))}}var I_=function(){function t(e,n){s(this,t),this.dueTime=e,this.scheduler=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new O_(t,this.dueTime,this.scheduler))}}]),t}(),O_=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return a(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(T_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(R);function T_(t){t.debouncedNext()}function D_(t){return function(e){return e.lift(new P_(t))}}var P_=function(){function t(e){s(this,t),this.total=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new E_(t,this.total))}}]),t}(),E_=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return a(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(R),R_=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),L_=function(){var t=function(){function t(e){s(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return a(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=wv(t);return new V(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new U,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(R_))},t.\u0275prov=Pt({factory:function(){return new t(Fi(R_))},token:t,providedIn:"root"}),t}(),N_=function(){var t=function(){function t(e,n,i){s(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new Nu,this._disabled=!1,this._currentSubscription=null}return a(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=vv(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=yv(t),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(A_(t.debounce)):e).subscribe(t.event)})}},{key:"_unsubscribe",value:function(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(L_),cs(Al),cs(kc))},t.\u0275dir=me({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),F_=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[R_]}),t}();function z_(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var V_="cdk-describedby-message-container",B_="cdk-describedby-message",H_="cdk-describedby-host",j_=0,G_=new Map,U_=null,W_=function(){var t=function(){function t(e){s(this,t),this._document=e}return a(t,[{key:"describe",value:function(t,e,n){if(this._canBeDescribed(t,e)){var i=Y_(e,n);"string"!=typeof e?(q_(e),G_.set(i,{messageElement:e,referenceCount:0})):G_.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}}},{key:"removeDescription",value:function(t,e,n){if(e&&this._isElementNode(t)){var i=Y_(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){var r=G_.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}U_&&0===U_.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(H_,"]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return a(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(rp(function(e){return t._pressedLetters.push(e)}),A_(e),Ld(function(){return t._pressedLetters.length>0}),q(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case Uy:if(this._vertical&&i){this.setNextItemActive();break}return;case jy:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Gy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Hy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case By:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case Vy:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Wy(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof zu?this._items.toArray():this._items}}]),t}(),Z_=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(X_),K_=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._origin="program",t}return a(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(X_),$_=function(){var t=function(){function t(e){s(this,t),this._platform=e}return a(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(yH){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===J_(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=J_(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Q_(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy))},token:t,providedIn:"root"}),t}();function Q_(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function J_(t){if(!Q_(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var tb=function(){function t(e,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return a(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Nf(1)).subscribe(t)}}]),t}(),eb=function(){var t=function(){function t(e,n,i){s(this,t),this._checker=e,this._ngZone=n,this._document=i}return a(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new tb(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi($_),Fi(kc),Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi($_),Fi(kc),Fi(oh))},token:t,providedIn:"root"}),t}(),nb=function(){var t=function(){function t(e,n,i){s(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return a(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=vv(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=vv(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=dy(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(eb),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Te]}),t}();function ib(t){return 0===t.buttons}function rb(t){var e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈var ob=new _i("cdk-input-modality-detector-options"),ab={ignoreKeys:[18,17,224,91,16]},sb=uy({passive:!0,capture:!0}),lb=function(){var t=function(){function t(e,n,i,r){var o=this;s(this,t),this._platform=e,this._mostRecentTarget=null,this._modality=new yf(null),this._lastTouchMs=0,this._onKeydown=function(t){var e,n;(null===(n=null===(e=o._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(function(e){return e===t.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=ub(t))},this._onMousedown=function(t){Date.now()-o._lastTouchMs<650||(o._modality.next(ib(t)?"keyboard":"mouse"),o._mostRecentTarget=ub(t))},this._onTouchstart=function(t){rb(t)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=ub(t))},this._options=Object.assign(Object.assign({},ab),r),this.modalityDetected=this._modality.pipe(D_(1)),this.modalityChanged=this.modalityDetected.pipe(Fv()),e.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,sb),i.addEventListener("mousedown",o._onMousedown,sb),i.addEventListener("touchstart",o._onTouchstart,sb)})}return a(t,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,sb),document.removeEventListener("mousedown",this._onMousedown,sb),document.removeEventListener("touchstart",this._onTouchstart,sb))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(kc),Fi(oh),Fi(ob,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(kc),Fi(oh),Fi(ob,8))},token:t,providedIn:"root"}),t}();function ub(t){return t.composedPath?t.composedPath()[0]:t.target}var cb=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),hb=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),db=function(){var t=function(){function t(e,n,i,r){s(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return a(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=wv(t);if(!this._platform.isBrowser||1!==n.nodeType)return Ed(null);var i=hy(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;var o={checkChildren:e,subject:new U,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=wv(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=this,r=wv(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var n=y(t,2);return i._originChanged(n[0],e,n[1])}):(this._setOrigin(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOrigin",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){e._origin=t,e._originFromTouchInteraction="touch"===t&&n,0===e._detectionMode&&(clearTimeout(e._originTimeoutId),e._originTimeoutId=setTimeout(function(){return e._origin=null},e._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e),i=ub(t);n&&(n.checkChildren||e===i)&&this._originChanged(e,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,gb),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,gb)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){e._getWindow().addEventListener("focus",e._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xv(this._stopInputModalityDetector)).subscribe(function(t){e._setOrigin(t,!0)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gb),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,i){(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc),Fi(oy),Fi(lb),Fi(oh,8),Fi(pb,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(kc),Fi(oy),Fi(lb),Fi(oh,8),Fi(pb,8))},token:t,providedIn:"root"}),t}(),vb=function(){var t=function(){function t(e,n){s(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new Nu}return a(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(mb))},t.\u0275dir=me({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),yb="cdk-high-contrast-black-on-white",_b="cdk-high-contrast-white-on-black",bb="cdk-high-contrast-active",xb=function(){var t=function(){function t(e,n){s(this,t),this._platform=e,this._document=n}return a(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(bb),t.remove(yb),t.remove(_b),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add(bb),t.add(yb)):2===e&&(t.add(bb),t.add(_b))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(oh))},token:t,providedIn:"root"}),t}(),wb=function(){var t=function t(e){s(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(Fi(xb))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[ay,F_]]}),t}(),kb=new El("12.1.0"),Cb=function t(){s(this,t)},Sb=function t(){s(this,t)},Mb="*";function Ab(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ib(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Ob(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Tb(t){return{type:6,styles:t,offset:null}}function Db(t,e,n){return{type:0,name:t,styles:e,options:n}}function Pb(t){return{type:5,steps:t}}function Eb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function Rb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function Lb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function Nb(t){Promise.resolve(null).then(t)}var Fb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Nb(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),zb=function(){function t(e){var n=this;s(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,o=0,a=this.players.length;0==a?Nb(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==a&&n._onFinish()}),t.onDestroy(function(){++r==a&&n._onDestroy()}),t.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Vb="!";function Bb(){return"undefined"!=typeof window&&void 0!==window.document}function Hb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function jb(t){switch(t.length){case 0:return new Fb;case 1:return t[0];default:return new zb(t)}}function Gb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==l,c=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case Vb:s=r[n];break;case Mb:s=o[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Ub(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Wb(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Wb(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Wb(n,"destroy",t))})}}function Wb(t,e,n){var i=n.totalTime,r=Yb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Yb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function qb(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Xb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Zb=function(t,e){return!1},Kb=function(t,e){return!1},$b=function(t,e,n){return[]},Qb=Hb();(Qb||"undefined"!=typeof Element)&&(Zb=Bb()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},Kb=function(){if(Qb||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Kb}(),$b=function(t,e,n){var i=[];if(n)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function yx(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else vx(t,n);return n}function _x(t,e,n){return n?e+":"+n+";":""}function bx(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(Fx(o,s)),"<"!=a[0]||o==Rx&&s==Rx||e.push(Fx(s,o))}(t,r,i)}):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Ux(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Px(n,t,e)}),options:Ux(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=i;var o=Px(n,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:Ux(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Wx(mx(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=Wx(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Wx((n=n||mx(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Tb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Tb(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Mb?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(Gx(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=e.collectedStyles[e.currentQuerySelector],s=a[i],l=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),l=!1),o=s.startTime),l&&(a[i]={startTime:o,endTime:r}),e.options&&(u=e.errors,c=e.options.params||{},(h=Sx(t[i])).length&&h.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'));var u,c,h})})}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Gx(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Gx(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Px(this,kx(t.animation),e),options:Ux(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:Ux(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ux(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=y(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==zx});return e&&(t=t.replace(Vx,"")),[t=t.replace(/@\*/g,hx).replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,fx),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,qb(e.collectedStyles,e.currentQuerySelector,{});var s=Px(this,kx(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Ux(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:mx(t.timings,e.errors,!0);return{type:12,animation:Px(this,kx(t.animation),e),timings:n,options:null}}}]),t}(),jx=function t(e){s(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Gx(t){return!Array.isArray(t)&&"object"==typeof t}function Ux(t){var e;return t?(t=vx(t)).params&&(t.params=(e=t.params)?vx(e):null):t={},t}function Wx(t,e,n){return{duration:t,delay:e,easing:n}}function Yx(t,e,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var qx=function(){function t(){s(this,t),this._map=new Map}return a(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,b(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),Xx=new RegExp(":enter","g"),Zx=new RegExp(":leave","g");function Kx(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new $x).buildKeyframes(t,e,n,i,r,o,a,s,l,u)}var $x=function(){function t(){s(this,t)}return a(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new qx;var c=new Jx(t,e,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Px(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Yx(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?px(n.duration):null,o=null!=n.delay?px(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Px(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qx);var a=px(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Px(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?px(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Px(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return mx(e.params?Mx(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?px(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qx);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(l=s.currentTimeline),Px(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Px(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Qx={},Jx=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qx,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new tw(this._driver,n,0),l.push(this.currentTimeline)}return a(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=px(i.duration)),null!=i.delay&&(r.delay=px(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Mx(o[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Qx,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new ew(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(Xx,"."+this._enterClassName)).replace(Zx,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,b(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),tw=function(){function t(e,n,i,r){s(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return a(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Mb,e._currentKeyframe[t]=Mb}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=Mb}):yx(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Mx(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:Mb),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=yx(o,!0);Object.keys(s).forEach(function(t){var i=s[t];i==Vb?e.add(t):i==Mb&&n.add(t)}),i||(s.offset=a/t.duration),r.push(s)});var o=e.size?Ax(e.values()):[],a=n.size?Ax(n.values()):[];if(i){var s=r[0],l=vx(s);s.offset=0,l.offset=1,r=[s,l]}return Yx(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),t}(),ew=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return s(this,n),(u=e.call(this,t,i,l.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return a(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=yx(t[0],!1);l.offset=0,o.push(l);var u=yx(t[0],!1);u.offset=nw(s),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=yx(t[h],!1);d.offset=nw((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",t=o}return Yx(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(tw);function nw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var iw=function t(){s(this,t)},rw=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"normalizePropertyName",value:function(t,e){return Ox(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",o=n.toString().trim();if(ow[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+r}}]),n}(iw),ow=function(){return function(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function aw(t,e,n,i,r,o,a,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var sw={},lw=function(){function t(e,n,i){s(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return a(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some(function(t){return t(e,n,i,r)})}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,i,r,o,a,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||sw,d=this.buildStyles(n,a&&a.params||sw,c),f=s&&s.params||sw,p=this.buildStyles(i,f,c),g=new Set,m=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=u?[]:Kx(t,e,this.ast.animation,r,o,d,p,_,l,c),x=0;if(b.forEach(function(t){x=Math.max(t.duration+t.delay,x)}),c.length)return aw(e,this._triggerName,n,i,y,d,p,[],[],m,v,x,c);b.forEach(function(t){var n=t.element,i=qb(m,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=qb(v,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&g.add(n)});var w=Ax(g.values());return aw(e,this._triggerName,n,i,y,d,p,b,w,m,v,x)}}]),t}(),uw=function(){function t(e,n){s(this,t),this.styles=e,this.defaultParams=n}return a(t,[{key:"buildStyles",value:function(t,e){var n={},i=vx(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=Mx(o,i,e)),n[t]=o})}}),n}}]),t}(),cw=function(){function t(e,n){var i=this;s(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){i.states[t.name]=new uw(t.style,t.options&&t.options.params||{})}),hw(this.states,"true","1"),hw(this.states,"false","0"),n.transitions.forEach(function(t){i.transitionFactories.push(new lw(e,t,i.states))}),this.fallbackTransition=new lw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return a(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),t}();function hw(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var dw=new qx,fw=function(){function t(e,n,i){s(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return a(t,[{key:"register",value:function(t,e){var n=[],i=Bx(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=Gb(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=Kx(this._driver,e,a,lx,ux,{},{},r,dw,o)).forEach(function(t){var e=qb(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,Mb)})});var l=n.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}),u=jb(l);return this._playersById[t]=u,u.onDestroy(function(){return i.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Yb(e,"","","");return Ub(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),pw="ng-animate-queued",gw="ng-animate-disabled",mw=".ng-animate-disabled",vw="ng-star-inserted",yw=[],_w={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xw=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";s(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Aw(r),i){var o=vx(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return a(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}}]),t}(),ww="void",kw=new xw(ww),Cw=function(){function t(e,n,i){s(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Pw(n,this._hostClassName)}return a(t,[{key:"listen",value:function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=qb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var l=qb(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Pw(t,cx),Pw(t,"ng-trigger-"+e),l[e]=kw),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new Mw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Pw(t,cx),Pw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new xw(n,this.id),c=n&&n.hasOwnProperty("value");!c&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=kw);var h=u.value===ww;if(h||l.value!==u.value){var d=qb(this._engine.playersByElement,t,[]);d.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=o.matchTransition(l.value,u.value,t,u.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:u,player:a,isFallbackTransition:p}),p||(Pw(t,pw),a.onStart(function(){Ew(t,pw)})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),d.push(a),a}if(!Nw(l.params,u.params)){var g=[],m=o.matchStyles(l.value,l.params,g),v=o.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){wx(t,m),xx(t,v)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,hx,!0);i.forEach(function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(r._triggers[e]){var n=r.trigger(t,e,ww,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&jb(a).onDone(function(){return r._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=e._triggers[o].fallbackTransition,s=i[o]||kw,l=new xw(ww),u=new Mw(e.id,o,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==_w||(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Pw(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==i.triggerName){var n=Yb(o,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Ub(i.player,e.phase,n,e.callback)}}),r.markedForDestroy?e._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e}}]),t}(),Sw=function(){function t(e,n,i){s(this,t),this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return a(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}},{key:"createNamespace",value:function(t,e){var n=new Cw(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pw(t,gw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ew(t,gw))}},{key:"removeNode",value:function(t,e,n,i){if(Iw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return Iw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,hx,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,fx,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return jb(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=_w,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,mw)&&this.markElementAsDisabled(t,!1),this.driver.query(t,mw,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(S.push(e),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var d=!h||!n.driver.containsElement(h,o),f=k.get(o),g=p.get(o),m=n._buildInstruction(t,i,g,f,d);if(m.errors&&m.errors.length)M.push(m);else{if(d)return e.onStart(function(){return wx(o,m.fromStyles)}),e.onDestroy(function(){return xx(o,m.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return wx(o,m.fromStyles)}),e.onDestroy(function(){return xx(o,m.toStyles)}),void r.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return qb(s,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(M.length){var I=[];M.forEach(function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return I.push("- ".concat(t,"\n"))})}),S.forEach(function(t){return t.destroy()}),this.reportError(I)}var O=new Map,T=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(T.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){qb(O,e,[]).push(t),t.destroy()})});var D=m.filter(function(t){return Fw(t,l,u)}),P=new Map;Tw(P,this.driver,y,u,Mb).forEach(function(t){Fw(t,l,u)&&D.push(t)});var E=new Map;f.forEach(function(t,e){Tw(E,n.driver,new Set(t),l,Vb)}),D.forEach(function(t){var e=P.get(t),n=E.get(t);P.set(t,Object.assign(Object.assign({},e),n))});var R=[],L=[],N={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return a.onDestroy(function(){return xx(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=N;if(T.size>1){for(var u=e,h=[];u=u.parentNode;){var d=T.get(u);if(d){l=d;break}h.push(u)}h.forEach(function(t){return T.set(t,l)})}var f=n._buildAnimation(a.namespaceId,s,O,o,E,P);if(a.setRealPlayer(f),l===N)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=jb(p)),r.push(a)}}else wx(e,s.fromStyles),a.onDestroy(function(){return xx(e,s.toStyles)}),L.push(a),c.has(e)&&r.push(a)}),L.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=jb(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var F=0;F0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Fb(t.duration,t.delay)}}]),t}(),Mw=function(){function t(e,n,i){s(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Fb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return a(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Ub(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){qb(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Aw(t){return null!=t?t:null}function Iw(t){return t&&1===t.nodeType}function Ow(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Tw(t,e,n,i,r){var o=[];n.forEach(function(t){return o.push(Ow(t))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=bw,a.push(i))}),t.set(i,o)});var s=0;return n.forEach(function(t){return Ow(t,o[s++])}),a}function Dw(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:i.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}function Pw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ew(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Rw(t,e,n){jb(n).onDone(function(){return t.processLeaveNode(e)})}function Lw(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function Vw(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Hw(e[0]),e.length>1&&(i=Hw(e[e.length-1]))):e&&(n=Hw(e)),n||i?new Bw(t,n,i):null}var Bw=function(){var t=function(){function t(e,n,i){s(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return a(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&xx(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(xx(this._element,this._initialStyles),this._endStyles&&(xx(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(wx(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wx(this._element,this._endStyles),this._endStyles=null),xx(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Hw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Zw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Xw(n=$w(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Kw(t,"",n.join(","))))}}]),t}();function Yw(t,e,n){Kw(t,"PlayState",n,qw(t,e))}function qw(t,e){var n=$w(t,"");return n.indexOf(",")>0?Xw(n.split(","),e):Xw([n],e)}function Xw(t,e){for(var n=0;n=0)return n;return-1}function Zw(t,e,n){n?t.removeEventListener(Uw,e):t.addEventListener(Uw,e)}function Kw(t,e,n,i){var r=Gw+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function $w(t,e){return t.style[Gw+e]||""}var Qw=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return a(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Ww(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Ex(t.element,i))})}this.currentSnapshot=e}}]),t}(),Jw=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=ox(i),r}return a(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(Fb),tk="gen_css_kf_",ek=function(){function t(){s(this,t),this._count=0}return a(t,[{key:"validateStyleProperty",value:function(t){return ex(t)}},{key:"matchesElement",value:function(t,e){return nx(t,e)}},{key:"containsElement",value:function(t,e){return ix(t,e)}},{key:"query",value:function(t,e,n){return rx(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return ox(t)});var i="@keyframes ".concat(e," {\n"),r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof Qw}),s={};Tx(n,i)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var l=ik(e=Dx(t,e,s));if(0==n)return new Jw(t,l);var u="".concat(tk).concat(this._count++),c=this.buildKeyframeElement(t,u,e),h=nk(t);h.appendChild(c);var d=Vw(t,e),f=new Qw(t,e,u,n,i,r,l,d);return f.onDestroy(function(){return rk(c)}),f}}]),t}();function nk(t){var e,n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}function ik(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}function rk(t){t.parentNode.removeChild(t)}var ok=function(){function t(e,n,i,r){s(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Ex(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),ak=function(){function t(){s(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(sk().toString()),this._cssKeyframesDriver=new ek}return a(t,[{key:"validateStyleProperty",value:function(t){return ex(t)}},{key:"matchesElement",value:function(t,e){return nx(t,e)}},{key:"containsElement",value:function(t,e){return ix(t,e)}},{key:"query",value:function(t,e,n){return rx(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var l=0==i?"both":"forwards",u={duration:n,delay:i,fill:l};r&&(u.easing=r);var c={},h=o.filter(function(t){return t instanceof ok});Tx(n,i)&&h.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var d=Vw(t,e=Dx(t,e=e.map(function(t){return yx(t,!1)}),c));return new ok(t,e,u,d)}}]),t}();function sk(){return Bb()&&Element.prototype.animate||{}}var lk=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Xt.None,styles:[],data:{animation:[]}}),r}return a(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Ob(t):t;return hk(this._renderer,null,e,"register",[n]),new uk(e,this._renderer)}}]),n}(Cb);return t.\u0275fac=function(e){return new(e||t)(Fi(Ol),Fi(oh))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),uk=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return a(n,[{key:"create",value:function(t,e){return new ck(this._id,t,e||{},this._renderer)}}]),n}(Sb),ck=function(){function t(e,n,i,r){s(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return a(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){e.charAt(0)==dk&&e==fk?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),mk=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,i,r,o)).factory=t,a.namespaceId=i,a}return a(n,[{key:"setProperty",value:function(t,e,n){e.charAt(0)==dk?"."==e.charAt(1)&&e==fk?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,r,o=this;if(e.charAt(0)==dk){var a=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),s=e.substr(1),l="";if(s.charAt(0)!=dk){var u=y((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],l=u[1]}return this.engine.listen(this.namespaceId,a,s,l,function(t){o.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}]),n}(gk),vk=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return s(this,n),e.call(this,t.body,i,r)}return a(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(zw);return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(sx),Fi(iw))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),yk=new _i("AnimationModuleType"),_k=[{provide:Cb,useClass:lk},{provide:iw,useFactory:function(){return new rw}},{provide:zw,useClass:vk},{provide:Ol,useFactory:function(t,e,n){return new pk(t,e,n)},deps:[vd,zw,kc]}],bk=[{provide:sx,useFactory:function(){return"function"==typeof sk()?new ak:new ek}},{provide:yk,useValue:"BrowserAnimations"}].concat(_k),xk=[{provide:sx,useClass:ax},{provide:yk,useValue:"NoopAnimations"}].concat(_k),wk=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?xk:bk}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:bk,imports:[Pd]}),t}();function kk(t,e){if(1&t&&gs(0,"mat-pseudo-checkbox",4),2&t){var n=Is();hs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Ck(t,e){if(1&t&&(fs(0,"span",5),Qs(1),ps()),2&t){var n=Is();Po(1),tl("(",n.group.label,")")}}var Sk=["*"],Mk=function(){var t=function t(){s(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),Ak=function(){var t=function t(){s(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),Ik=new El("12.1.0"),Ok=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Tk=function(){var t=function(){function t(e,n,i){s(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return a(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Nc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Ik.full!==kb.full&&console.warn("The Angular Material version ("+Ik.full+") does not match the Angular CDK version ("+kb.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xb),Fi(Ok,8),Fi(oh))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[gy],gy]}),t}();function Dk(t){return function(t){u(n,t);var e=p(n);function n(){var t;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){u(i,t);var n=p(i);function i(){var t;s(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0?n:t}}]),t}(),Bk=new _i("mat-date-formats");try{Fk="undefined"!=typeof Intl}catch(yH){Fk=!1}var Hk={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},jk=Wk(31,function(t){return String(t+1)}),Gk={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Uk=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Wk(t,e){for(var n=Array(t),i=0;i9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(Uk.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}]),n}(Vk);return t.\u0275fac=function(e){return new(e||t)(Fi(zk,8),Fi(oy))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),qk=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[{provide:Vk,useClass:Yk}],imports:[[ay]]}),t}(),Xk={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Zk=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[{provide:Bk,useValue:Xk}],imports:[[qk]]}),t}(),Kk=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),$k=function(){function t(e,n,i){s(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return a(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),Qk={enterDuration:450,exitDuration:400},Jk=uy({passive:!0}),tC=["mousedown","touchstart"],eC=["mouseup","mouseleave","touchend","touchcancel"],nC=function(){function t(e,n,i,r){s(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=wv(i))}return a(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Qk),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=i.radius||rC(t,e,r),s=t-r.left,l=e-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-a,"px"),c.style.top="".concat(l-a,"px"),c.style.height="".concat(2*a,"px"),c.style.width="".concat(2*a,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),iC(c),c.style.transform="scale(1)";var h=new $k(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},Qk),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=wv(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(tC))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=ib(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,Jk)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(tC.forEach(function(e){t._triggerElement.removeEventListener(e,t,Jk)}),this._pointerUpEventsRegistered&&eC.forEach(function(e){t._triggerElement.removeEventListener(e,t,Jk)}))}}]),t}();function iC(t){window.getComputedStyle(t).getPropertyValue("opacity")}function rC(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var oC=new _i("mat-ripple-global-options"),aC=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new nC(this,n,e,i)}return a(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(oy),cs(oC,8),cs(yk,8))},t.\u0275dir=me({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Hs("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),sC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk,ay],Tk]}),t}(),lC=function(){var t=function t(e){s(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(cs(yk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Hs("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),uC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk]]}),t}(),cC=new _i("MAT_OPTION_PARENT_COMPONENT"),hC=Dk(function(){return function t(){s(this,t)}}()),dC=0,fC=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i,r;return s(this,n),(i=e.call(this))._labelId="mat-optgroup-label-".concat(dC++),i._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,i}return n}(hC);return t.\u0275fac=function(e){return new(e||t)(cs(cC,8))},t.\u0275dir=me({type:t,inputs:{label:"label"},features:[qa]}),t}(),pC=new _i("MatOptgroup"),gC=0,mC=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,t),this.source=e,this.isUserInput=n},vC=function(){var t=function(){function t(e,n,i,r){s(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(gC++),this.onSelectionChange=new Nu,this._stateChanges=new U}return a(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=vv(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==Ny&&t.keyCode!==zy||Wy(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new mC(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(void 0),cs(fC))},t.\u0275dir=me({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),yC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){return s(this,n),e.call(this,t,i,r,o)}return n}(vC);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(cC,8),cs(pC,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ks("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(nl("id",e.id),as("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Hs("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[qa],ngContentSelectors:Sk,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(Ts(),ls(0,kk,1,2,"mat-pseudo-checkbox",0),fs(1,"span",1),Ds(2),ps(),ls(3,Ck,2,1,"span",2),gs(4,"div",3)),2&t&&(hs("ngIf",e.multiple),Po(3),hs("ngIf",e.group&&e.group._inert),Po(1),hs("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Dh,aC,lC],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function _C(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,t-i+e):n}var xC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[sC,Yh,Tk,uC]]}),t}();function wC(t,e){}var kC=function t(){s(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},CC={dialogContainer:Ab("dialogContainer",[Db("void, exit",Tb({opacity:0,transform:"scale(0.7)"})),Db("enter",Tb({transform:"none"})),Eb("* => enter",Ib("150ms cubic-bezier(0, 0, 0.2, 1)",Tb({transform:"none",opacity:1}))),Eb("* => void, * => exit",Ib("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Tb({opacity:0})))])},SC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=l,u._animationStateChanged=new Nu,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return a(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=dy(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=dy())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=dy();return t===e||t.contains(e)}}]),n}(Oy);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(eb),cs(Jl),cs(oh,8),cs(kC),cs(mb))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&Zu(Py,7),2&t&&Xu(n=$u())&&(e._portalOutlet=n.first)},features:[qa]}),t}(),MC=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._state="enter",t}return a(n,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(SC);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Cs("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(nl("id",e._id),as("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),il("@dialogContainer",e._state))},features:[qa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ls(0,wC,0,0,"ng-template",0)},directives:[Py],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[CC.dialogContainer]}}),t}(),AC=0,IC=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(AC++);s(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,n._id=r,n._animationStateChanged.pipe(Ld(function(t){return"opened"===t.state}),Nf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Ld(function(t){return"closed"===t.state}),Nf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),e.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(Ld(function(t){return t.keyCode===Fy&&!i.disableClose&&!Wy(t)})).subscribe(function(t){t.preventDefault(),OC(i,"keyboard")}),e.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():OC(i,"mouse")})}return a(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Ld(function(t){return"closing"===t.state}),Nf(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function OC(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var TC=new _i("MatDialogData"),DC=new _i("mat-dialog-default-options"),PC=new _i("mat-dialog-scroll-strategy"),EC={provide:PC,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},RC=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c){var h=this;s(this,t),this._overlay=e,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=Df(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return a(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new kC)).id&&this.getDialogById(e.id);var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),o=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new t_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=Wa.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:kC,useValue:e}]}),i=new My(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new this._dialogRefConstructor(n,e,i.id);if(t instanceof ru)e.attachTemplatePortal(new Ay(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new My(t,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(py,null,jt.Optional)||r.push({provide:py,useValue:{value:t.direction,change:Ed()}}),Wa.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Wa),cs(void 0),cs(void 0),cs(s_),cs(void 0),cs(xi),cs(xi),cs(_i))},t.\u0275dir=me({type:t}),t}(),LC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){return s(this,n),e.call(this,t,i,o,l,u,a,IC,MC,TC)}return n}(RC);return t.\u0275fac=function(e){return new(e||t)(Fi(b_),Fi(Wa),Fi(bh,8),Fi(DC,8),Fi(PC),Fi(t,12),Fi(s_))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),NC=0,FC=function(){var t=function(){function t(e,n,i){s(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return a(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=HC(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){OC(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(IC,8),cs(Al),cs(LC))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&ks("click",function(t){return e._onButtonClick(t)}),2&t&&as("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Te]}),t}(),zC=function(){var t=function(){function t(e,n,i){s(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(NC++)}return a(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=HC(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(IC,8),cs(Al),cs(LC))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&nl("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),VC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),BC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function HC(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var jC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[LC,EC],imports:[[M_,Ey,Tk],Tk]}),t}();function GC(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var UC=["mat-button",""],WC=["*"],YC=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",qC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],XC=Pk(Dk(Ek(function(){return function t(e){s(this,t),this._elementRef=e}}()))),ZC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;s(this,n),(o=e.call(this,t))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,l=v(qC);try{for(l.s();!(a=l.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return a(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe(function(e){t.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv;return(!Uv(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Bv),new V(function(n){return n.add(e.schedule(GC,t,{subscriber:n,counter:0,period:t})),n})}(1e3).subscribe(function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()}))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===iS.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(gs(0,"h4",0),Tu(1,"safeHtml"),gs(2,"mat-dialog-content",1),Tu(3,"safeHtml"),fs(4,"mat-dialog-actions"),ls(5,tS,4,1,"button",2),ls(6,eS,3,1,"button",3),ls(7,nS,3,1,"button",3),ps()),2&t&&(hs("innerHtml",Du(1,5,e.data.title),Ir),Po(2),hs("innerHTML",Du(3,7,e.data.body),Ir),Po(3),hs("ngIf",0==e.data.type),Po(1),hs("ngIf",1==e.data.type),Po(1),hs("ngIf",1==e.data.type))},directives:[zC,VC,BC,Dh,ZC,FC,QC],pipes:[JC],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),oS=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),aS=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find(function(e){return e.id===t});if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function sS(t,e){return new V(function(n){var i=t.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=it(t[s]),u=!1;n.add(l.subscribe({next:function(t){u||(u=!0,a++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==i&&u||(a===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=r[n],t},{}):r),n.complete())}}))},l=0;le?{max:{max:e,actual:t.value}}:null};var e}},{key:"required",value:function(t){return bS(t)}},{key:"requiredTrue",value:function(t){return xS(t)}},{key:"email",value:function(t){return function(t){return pS(t.value)||yS.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return e=t,function(t){return pS(t.value)||!gS(t.value)?null:t.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}function kS(t){return null}function CS(t){return null!=t}function SS(t){var e=bs(t)?it(t):t;return ws(e),e}function MS(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function AS(t,e){return e.map(function(e){return e(t)})}function IS(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function OS(t){if(!t)return null;var e=t.filter(CS);return 0==e.length?null:function(t){return MS(AS(t,e))}}function TS(t){return null!=t?OS(IS(t)):null}function DS(t){if(!t)return null;var e=t.filter(CS);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t}(),FS=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(NS);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,features:[qa]}),t}(),zS=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(NS),VS=function(){function t(e){s(this,t),this._cd=e}return a(t,[{key:"is",value:function(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}]),t}(),BS=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,t)}return n}(VS);return t.\u0275fac=function(e){return new(e||t)(cs(zS,2))},t.\u0275dir=me({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Hs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[qa]}),t}(),HS=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,t)}return n}(VS);return t.\u0275fac=function(e){return new(e||t)(cs(FS,10))},t.\u0275dir=me({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&Hs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[qa]}),t}();function jS(t,e){WS(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&qS(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&qS(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)}function GS(t,e){var n=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),YS(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function US(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function WS(t,e){var n=RS(t);null!==e.validator?t.setValidators(ES(n,e.validator)):"function"==typeof n&&t.setValidators([n]);var i=LS(t);null!==e.asyncValidator?t.setAsyncValidators(ES(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);var r=function(){return t.updateValueAndValidity()};US(e._rawValidators,r),US(e._rawAsyncValidators,r)}function YS(t,e){var n=!1;if(null!==t){if(null!==e.validator){var i=RS(t);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(t){return t!==e.validator});r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=LS(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(n=!0,t.setAsyncValidators(a))}}}var s=function(){};return US(e._rawValidators,s),US(e._rawAsyncValidators,s),n}function qS(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function XS(t,e){WS(t,e)}function ZS(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function KS(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var $S="VALID",QS="INVALID",JS="PENDING",tM="DISABLED";function eM(t){return(oM(t)?t.validators:t)||null}function nM(t){return Array.isArray(t)?TS(t):t||null}function iM(t,e){return(oM(e)?e.asyncValidators:t)||null}function rM(t){return Array.isArray(t)?PS(t):t||null}function oM(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var aM=function(){function t(e,n){s(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=nM(this._rawValidators),this._composedAsyncValidatorFn=rM(this._rawAsyncValidators)}return a(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===$S}},{key:"invalid",get:function(){return this.status===QS}},{key:"pending",get:function(){return this.status==JS}},{key:"disabled",get:function(){return this.status===tM}},{key:"enabled",get:function(){return this.status!==tM}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=nM(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=rM(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=JS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=tM,this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=$S,this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==$S&&this.status!==JS||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?tM:$S}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=JS,this._hasOwnPendingAsyncValidator=!0;var n=SS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach(function(t){i=i instanceof lM?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof uM&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Nu,this.statusChanges=new Nu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?tM:this.errors?QS:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(JS)?JS:this._anyControlsHaveStatus(QS)?QS:$S}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){oM(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),sM=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return s(this,n),(t=e.call(this,eM(r),iM(o,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return a(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){KS(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){KS(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(aM),lM=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,eM(i),iM(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof sM?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var i=e.controls[n];i&&t(i,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(aM),uM=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,eM(i),iM(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof sM?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=v(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),n}(aM),cM={provide:FS,useExisting:St(function(){return dM})},hM=function(){return Promise.resolve(null)}(),dM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Nu,r.form=new lM({},TS(t),PS(i)),r}return a(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),jS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),KS(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path),i=new lM({});XS(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;hM.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,ZS(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(FS);return t.\u0275fac=function(e){return new(e||t)(cs(mS,10),cs(vS,10))},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ks("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_l([cM]),qa]}),t}(),fM={provide:zS,useExisting:St(function(){return gM})},pM=function(){return Promise.resolve(null)}(),gM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this)).control=new sM,a._registered=!1,a.update=new Nu,a._parent=t,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,i=void 0,r=void 0;return e.forEach(function(t){t.constructor===fS?n=t:Object.getPrototypeOf(t.constructor)===uS?i=t:r=t}),r||i||n||null}(d(a),o),a}return a(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?(t=this.name,[].concat(b(this._parent.path),[t])):[this.name];var t}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){jS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;pM.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;pM.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}}]),n}(zS);return t.\u0275fac=function(e){return new(e||t)(cs(FS,9),cs(mS,10),cs(vS,10),cs(cS,10))},t.\u0275dir=me({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_l([fM]),qa,Te]}),t}(),mM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),vM={provide:cS,useExisting:St(function(){return yM}),multi:!0},yM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),n}(uS);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ks("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[_l([vM]),qa]}),t}(),_M=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),bM=new _i("NgModelWithFormControlWarning"),xM={provide:FS,useExisting:St(function(){return wM})},wM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).validators=t,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Nu,r._setValidators(t),r._setAsyncValidators(i),r}return a(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(YS(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return jS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){GS(t.control||null,t),KS(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,ZS(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=e.control,i=t.form.get(e.path);n!==i&&(GS(n||null,e),i instanceof sM&&(jS(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);XS(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return YS(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){WS(this.form,this),this._oldForm&&YS(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(FS);return t.\u0275fac=function(e){return new(e||t)(cs(mS,10),cs(vS,10))},t.\u0275dir=me({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ks("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_l([xM]),qa,Te]}),t}(),kM={provide:mS,useExisting:St(function(){return SM}),multi:!0},CM={provide:mS,useExisting:St(function(){return MM}),multi:!0},SM=function(){var t=function(){function t(){s(this,t),this._required=!1}return a(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?bS(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&as("required",e.required?"":null)},inputs:{required:"required"},features:[_l([kM])]}),t}(),MM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"validate",value:function(t){return this.required?xS(t):null}}]),n}(SM);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&as("required",e.required?"":null)},features:[_l([CM]),qa]}),t}(),AM={provide:mS,useExisting:St(function(){return IM}),multi:!0},IM=function(){var t=function(){function t(){s(this,t),this._validator=kS}return a(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=wS("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&as("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[_l([AM]),Te]}),t}(),OM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[_M]]}),t}(),TM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[OM]}),t}(),DM=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:bM,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[OM]}),t}();function PM(t,e){1&t&&Ds(0)}var EM=["*"];function RM(t,e){}var LM=function(t){return{animationDuration:t}},NM=function(t,e){return{value:t,params:e}},FM=["tabBodyWrapper"],zM=["tabHeader"];function VM(t,e){}function BM(t,e){1&t&&ls(0,VM,0,0,"ng-template",9),2&t&&hs("cdkPortalOutlet",Is().$implicit.templateLabel)}function HM(t,e){1&t&&Qs(0),2&t&&Js(Is().$implicit.textLabel)}function jM(t,e){if(1&t){var n=_s();fs(0,"div",6),ks("click",function(){var t=en(n),e=t.$implicit,i=t.index,r=Is(),o=us(1);return r._handleClick(e,o,i)})("cdkFocusChange",function(t){var e=en(n).index;return Is()._tabFocusChanged(t,e)}),fs(1,"div",7),ls(2,BM,1,1,"ng-template",8),ls(3,HM,1,1,"ng-template",8),ps(),ps()}if(2&t){var i=e.$implicit,r=e.index,o=Is();Hs("mat-tab-label-active",o.selectedIndex==r),hs("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),as("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Po(2),hs("ngIf",i.templateLabel),Po(1),hs("ngIf",!i.templateLabel)}}function GM(t,e){if(1&t){var n=_s();fs(0,"mat-tab-body",10),ks("_onCentered",function(){return en(n),Is()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return en(n),Is()._setTabBodyWrapperHeight(t)}),ps()}if(2&t){var i=e.$implicit,r=e.index,o=Is();Hs("mat-tab-body-active",o.selectedIndex===r),hs("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),as("tabindex",null!=o.contentTabIndex&&o.selectedIndex===r?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(r))}}var UM=["tabListContainer"],WM=["tabList"],YM=["nextPaginator"],qM=["previousPaginator"],XM=new _i("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),ZM=function(){var t=function(){function t(e,n,i,r){s(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return a(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(XM),cs(yk,8))},t.\u0275dir=me({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Hs("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),KM=new _i("MatTabContent"),$M=new _i("MatTabLabel"),QM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(Dy);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[_l([{provide:$M,useExisting:t}]),qa]}),t}(),JM=Dk(function(){return function t(){s(this,t)}}()),tA=new _i("MAT_TAB_GROUP"),eA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new U,r.position=null,r.origin=null,r.isActive=!1,r}return a(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ay(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),n}(JM);return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(tA,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,$M,5),Ku(n,KM,7,ru)),2&t&&(Xu(i=$u())&&(e.templateLabel=i.first),Xu(i=$u())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Zu(ru,7),2&t&&Xu(n=$u())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[qa,Te],ngContentSelectors:EM,decls:1,vars:0,template:function(t,e){1&t&&(Ts(),ls(0,PM,1,0,"ng-template"))},encapsulation:2}),t}(),nA={translateTab:Ab("translateTab",[Db("center, void, left-origin-center, right-origin-center",Tb({transform:"none"})),Db("left",Tb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Db("right",Tb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Eb("* => left, * => right, left => center, right => center",Ib("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Eb("void => left-origin-center",[Tb({transform:"translate3d(-100%, 0, 0)"}),Ib("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Eb("void => right-origin-center",[Tb({transform:"translate3d(100%, 0, 0)"}),Ib("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},iA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i,o))._host=r,a._centeringSub=A.EMPTY,a._leavingSub=A.EMPTY,a}return a(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Py);return t.\u0275fac=function(e){return new(e||t)(cs(kl),cs(cu),cs(St(function(){return oA})),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","matTabBodyHost",""]],features:[qa]}),t}(),rA=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=A.EMPTY,this._translateTabComplete=new U,this._onCentering=new Nu,this._beforeCentering=new Nu,this._afterLeavingCenter=new Nu,this._onCentered=new Nu(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){r._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Fv(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return a(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(py,8),cs(Jl))},t.\u0275dir=me({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),oA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return s(this,n),e.call(this,t,i,r)}return n}(rA);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(py,8),cs(Jl))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Zu(Py,5),2&t&&Xu(n=$u())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[qa],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(fs(0,"div",0,1),ks("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),ls(2,RM,0,0,"ng-template",2),ps()),2&t&&hs("@translateTab",Mu(3,NM,e._position,Su(1,LM,e.animationDuration)))},directives:[iA],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[nA.translateTab]}}),t}(),aA=new _i("MAT_TABS_CONFIG"),sA=0,lA=function t(){s(this,t)},uA=Pk(Ek(function(){return function t(e){s(this,t),this._elementRef=e}}()),"primary"),cA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a,l;return s(this,n),(a=e.call(this,t))._changeDetectorRef=i,a._animationMode=o,a._tabs=new zu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=A.EMPTY,a._tabLabelSubscription=A.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Nu,a.focusChange=new Nu,a.animationDone=new Nu,a.selectedTabChange=new Nu(!0),a._groupId=sA++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a.contentTabIndex=null!==(l=null==r?void 0:r.contentTabIndex)&&void 0!==l?l:null,a}return a(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=vv(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=yv(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(t){this._contentTabIndex=yv(t,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,n){return t.isActive=n===e}),n||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),dA=Dk(function(){return function t(){s(this,t)}}()),fA=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).elementRef=t,i}return a(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(dA);return t.\u0275fac=function(e){return new(e||t)(cs(Al))},t.\u0275dir=me({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(as("aria-disabled",!!e.disabled),Hs("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[qa]}),t}(),pA=uy({passive:!0}),gA=function(){var t=function(){function t(e,n,i,r,o,a,l){var u=this;s(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new U,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new U,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Nu,this.indexFocused=new Nu,o.runOutsideAngular(function(){Cv(e.nativeElement,"mouseleave").pipe(Xv(u._destroyed)).subscribe(function(){u._stopInterval()})})}return a(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=yv(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;Cv(this._previousPaginator.nativeElement,"touchstart",pA).pipe(Xv(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),Cv(this._nextPaginator.nativeElement,"touchstart",pA).pipe(Xv(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Ed("ltr"),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new K_(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),dt(e,n,this._items.changes).pipe(Xv(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(i)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(Xv(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Wy(t))switch(t.keyCode){case Ny:case zy:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Wv(650,100).pipe(Xv(dt(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(wy),cs(py,8),cs(kc),cs(oy),cs(yk,8))},t.\u0275dir=me({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),mA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){var c;return s(this,n),(c=e.call(this,t,i,r,o,a,l,u))._disableRipple=!1,c}return a(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=vv(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),n}(gA);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(wy),cs(py,8),cs(kc),cs(oy),cs(yk,8))},t.\u0275dir=me({type:t,inputs:{disableRipple:"disableRipple"},features:[qa]}),t}(),vA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){return s(this,n),e.call(this,t,i,r,o,a,l,u)}return n}(mA);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(wy),cs(py,8),cs(kc),cs(oy),cs(yk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,fA,4),2&t&&Xu(i=$u())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Zu(ZM,7),Zu(UM,7),Zu(WM,7),Zu(YM,5),Zu(qM,5)),2&t&&(Xu(n=$u())&&(e._inkBar=n.first),Xu(n=$u())&&(e._tabListContainer=n.first),Xu(n=$u())&&(e._tabList=n.first),Xu(n=$u())&&(e._nextPaginator=n.first),Xu(n=$u())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Hs("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[qa],ngContentSelectors:EM,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Ts(),fs(0,"div",0,1),ks("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),gs(2,"div",2),ps(),fs(3,"div",3,4),ks("keydown",function(t){return e._handleKeydown(t)}),fs(5,"div",5,6),ks("cdkObserveContent",function(){return e._onContentChanges()}),fs(7,"div",7),Ds(8),ps(),gs(9,"mat-ink-bar"),ps(),ps(),fs(10,"div",8,9),ks("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),gs(12,"div",2),ps()),2&t&&(Hs("mat-tab-header-pagination-disabled",e._disableScrollBefore),hs("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Po(5),Hs("_mat-animation-noopable","NoopAnimations"===e._animationMode),Po(5),Hs("mat-tab-header-pagination-disabled",e._disableScrollAfter),hs("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[aC,N_,ZM],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),yA=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Yh,Tk,Ey,sC,F_,wb],Tk]}),t}();function _A(t,e){if(1&t){var n=_s();fs(0,"uds-field-text",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function bA(t,e){if(1&t){var n=_s();fs(0,"uds-field-textbox",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function xA(t,e){if(1&t){var n=_s();fs(0,"uds-field-numeric",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function wA(t,e){if(1&t){var n=_s();fs(0,"uds-field-password",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function kA(t,e){if(1&t){var n=_s();fs(0,"uds-field-hidden",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function CA(t,e){if(1&t){var n=_s();fs(0,"uds-field-choice",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function SA(t,e){if(1&t){var n=_s();fs(0,"uds-field-multichoice",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function MA(t,e){if(1&t){var n=_s();fs(0,"uds-field-editlist",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function AA(t,e){if(1&t){var n=_s();fs(0,"uds-field-checkbox",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function IA(t,e){if(1&t){var n=_s();fs(0,"uds-field-imgchoice",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function OA(t,e){if(1&t){var n=_s();fs(0,"uds-field-date",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function TA(t,e){if(1&t){var n=_s();fs(0,"uds-field-tags",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}var DA=function(){function t(){this.changed=new Nu,this.udsGuiFieldType=oS}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(fs(0,"div",0),ls(1,_A,1,1,"uds-field-text",1),ls(2,bA,1,1,"uds-field-textbox",1),ls(3,xA,1,1,"uds-field-numeric",1),ls(4,wA,1,1,"uds-field-password",1),ls(5,kA,1,1,"uds-field-hidden",1),ls(6,CA,1,1,"uds-field-choice",1),ls(7,SA,1,1,"uds-field-multichoice",1),ls(8,MA,1,1,"uds-field-editlist",1),ls(9,AA,1,1,"uds-field-checkbox",1),ls(10,IA,1,1,"uds-field-imgchoice",1),ls(11,OA,1,1,"uds-field-date",1),ls(12,TA,1,1,"uds-field-tags",1),ps()),2&t&&(hs("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.TEXT),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.TEXTBOX),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.NUMERIC),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.PASSWORD),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.HIDDEN),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.CHOICE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.MULTI_CHOICE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.EDITLIST),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.CHECKBOX),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.IMAGECHOICE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.DATE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function PA(t,e){1&t&&Qs(0),2&t&&tl(" ",Is().$implicit," ")}function EA(t,e){if(1&t){var n=_s();fs(0,"uds-field",7),ks("changed",function(t){return en(n),Is(3).changed.emit(t)}),ps()}2&t&&hs("field",e.$implicit)}function RA(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,PA,1,1,"ng-template",4),fs(2,"div",5),ls(3,EA,1,1,"uds-field",6),ps(),ps()),2&t){var n=e.$implicit,i=Is(2);Po(3),hs("ngForOf",i.fieldsByTab[n])}}function LA(t,e){if(1&t&&(fs(0,"mat-tab-group",2),ls(1,RA,4,1,"mat-tab",3),ps()),2&t){var n=Is();hs("disableRipple",!0)("@.disabled",!0),Po(1),hs("ngForOf",n.tabs)}}function NA(t,e){if(1&t&&(fs(0,"div"),gs(1,"uds-field",8),ps()),2&t){var n=e.$implicit;Po(1),hs("field",n)}}function FA(t,e){1&t&&ls(0,NA,2,1,"div",3),2&t&&hs("ngForOf",Is().fields)}var zA=django.gettext("Main"),VA=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(e){var n=void 0===e.gui.tab?zA:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(ls(0,LA,2,3,"mat-tab-group",0),ls(1,FA,1,1,"ng-template",null,1,ec)),2&t){var n=us(2);hs("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[Dh,hA,Oh,eA,QM,DA],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function BA(t,e){if(1&t){var n=_s();fs(0,"button",10),ks("click",function(){return en(n),Is().customButtonClicked()}),Qs(1),ps()}if(2&t){var i=Is();Po(1),Js(i.data.customButton)}}var HA,jA=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Nu(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach(function(n){var i=void 0!==n.values?n.values:n.value;n.gui.required&&0!==i&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i}),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(gs(0,"h4",0),Tu(1,"safeHtml"),fs(2,"mat-dialog-content",null,1),fs(4,"form",2),fs(5,"uds-form",3),ks("changed",function(t){return e.changed(t)}),ps(),ps(),ps(),fs(6,"mat-dialog-actions"),fs(7,"div",4),fs(8,"div",5),ls(9,BA,2,1,"button",6),ps(),fs(10,"div",7),fs(11,"button",8),ks("click",function(){return e.dialogRef.close()}),fs(12,"uds-translate"),Qs(13,"Discard & close"),ps(),ps(),fs(14,"button",9),ks("click",function(){return e.save()}),fs(15,"uds-translate"),Qs(16,"Save"),ps(),ps(),ps(),ps(),ps()),2&t&&(hs("innerHtml",Du(1,5,e.data.title),Ir),Po(5),hs("fields",e.data.guiFields),Po(4),hs("ngIf",void 0!==e.data.customButton),Po(2),hs("disabled",e.saving),Po(3),hs("disabled",e.saving))},directives:[zC,VC,mM,HS,dM,VA,BC,Dh,ZC,QC,Ah],pipes:[JC],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),GA=function(){function t(t){this.gui=t}return t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort(function(t,e){return t.gui.order>e.gui.order?1:-1});var r=null!=n;n=r?n:{},e.forEach(function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===oS.TEXT&&t.gui.multiline&&(t.gui.type=oS.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach(function(e){return t.values.push(e)})):t.value=e)});var o=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(jA,{position:{top:"64px"},width:o,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,o,a){var s=this;a=a||{};var l=new Nu,u=n?django.gettext("Test"):void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return a.snack||(a.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(o).subscribe(function(n){a.snack.dismiss(),void 0!==i&&i.forEach(function(t){n.push(t)}),n.forEach(function(t){c[t.name]=t,void 0!==t.gui.fills&&(h[t.name]=t.gui.fills)}),s.modalForm(e,n,r,u).subscribe(function(e){switch(e.data&&(e.data.data_type=o),e.type){case u:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(o,e.data).subscribe(function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===e.data)for(var i=0,h=n;i"+i.join(", ")+"";this.gui.yesno(e,o,!0).subscribe(function(e){if(e){var i=r.length,o=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach(function(e){t.table.rest.delete(e).subscribe(function(t){0==--i&&o()},function(t){0==--i&&o()})})}})},t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var o=new Array;e.gui.fills.parameters.forEach(function(t){o.push(t+"="+encodeURIComponent(n[t].value))}),t.table.rest.callback(e.gui.fills.callbackName,o.join("&")).subscribe(function(e){var o=new Array;e.forEach(function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&o.push(e),e.gui.values.length=0,t.values.forEach(function(t){return e.gui.values.push(t)}),e.value||(e.value=t.values.length>0?t.values[0].id:""))}),o.forEach(function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))})})},t}(),UA=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new GA(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(rS,{width:r,data:{title:t,body:e,autoclose:n,type:iS.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(rS,{width:i,data:{title:t,body:e,type:iS.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),WA=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),YA=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),qA="provider",XA="service",ZA="pool",KA="user",$A="group",QA="transport",JA="osmanager",tI="calendar",eI="poolgroup",nI={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},iI=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+nI[t]+"",type:YA.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach(function(t){return i=i[t]}),!i)throw new Error("not going :)");return i};try{switch(t){case qA:this.gotoProvider(i(0));break;case XA:this.gotoService(i(0),i(1));break;case ZA:this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case KA:this.gotoUser(i(0),i(1));break;case $A:this.gotoGroup(i(0),i(1));break;case QA:this.gotoTransport(i(0));break;case JA:this.gotoOSManager(i(0));break;case tI:this.gotoCalendar(i(0));break;case eI:this.gotoPoolGroup(i(0))}}catch(r){}},t}(),rI=new Set,oI=function(){var t=function(){function t(e){s(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aI}return a(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!rI.has(t))try{HA||((HA=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(HA)),HA.sheet&&(HA.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),rI.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy))},token:t,providedIn:"root"}),t}();function aI(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var sI=function(){var t=function(){function t(e,n){s(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new U}return a(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return lI(bv(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=kf(lI(bv(t)).map(function(t){return e._registerQuery(t).observable}));return(n=If(n.pipe(Nf(1)),n.pipe(D_(1),A_(0)))).pipe(q(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,i=t.query;e.matches=e.matches||n,e.breakpoints[i]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new V(function(t){var i=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),q(function(e){return{query:t,matches:e.matches}}),Xv(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oI),Fi(kc))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oI),Fi(kc))},token:t,providedIn:"root"}),t}();function lI(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function uI(t,e){if(1&t){var n=_s();fs(0,"div",1),fs(1,"button",2),ks("click",function(){return en(n),Is().action()}),Qs(2),ps(),ps()}if(2&t){var i=Is();Po(2),Js(i.data.action)}}function cI(t,e){}var hI=new _i("MatSnackBarData"),dI=function t(){s(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},fI=Math.pow(2,31)-1,pI=function(){function t(e,n){var i=this;s(this,t),this._overlayRef=n,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(function(){return i.dismiss()}),e._onExit.subscribe(function(){return i._finishDismiss()})}return a(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},Math.min(t,fI))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),t}(),gI=function(){var t=function(){function t(e,n){s(this,t),this.snackBarRef=e,this.data=n}return a(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(pI),cs(hI))},t.\u0275cmp=ce({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(fs(0,"span"),Qs(1),ps(),ls(2,uI,3,1,"div",0)),2&t&&(Po(1),Js(e.data.message),Po(1),hs("ngIf",e.hasAction))},directives:[Dh,ZC],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t}(),mI={snackBarState:Ab("state",[Db("void, hidden",Tb({transform:"scale(0.8)",opacity:0})),Db("visible",Tb({transform:"scale(1)",opacity:1})),Eb("* => visible",Ib("150ms cubic-bezier(0, 0, 0.2, 1)")),Eb("* => void, * => hidden",Ib("75ms cubic-bezier(0.4, 0.0, 1, 1)",Tb({opacity:0})))])},vI=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;return s(this,n),(l=e.call(this))._ngZone=t,l._elementRef=i,l._changeDetectorRef=r,l._platform=o,l.snackBarConfig=a,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new U,l._onExit=new U,l._onEnter=new U,l._animationState="void",l.attachDomPortal=function(t){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(t)},l._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return a(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.pipe(Nf(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var t=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){t._announceTimeoutId=setTimeout(function(){var e=t._elementRef.nativeElement.querySelector("[aria-hidden]"),n=t._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){var i=null;t._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==i||i.focus(),t._onAnnounce.next(),t._onAnnounce.complete()}},t._announceDelay)})}}]),n}(Oy);return t.\u0275fac=function(e){return new(e||t)(cs(kc),cs(Al),cs(Jl),cs(oy),cs(dI))},t.\u0275cmp=ce({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Zu(Py,7),2&t&&Xu(n=$u())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&Cs("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&il("@state",e._animationState)},features:[qa],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(fs(0,"div",0),ls(1,cI,0,0,"ng-template",1),ps(),gs(2,"div")),2&t&&(Po(2),as("aria-live",e._live)("role",e._role))},directives:[Py],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[mI.snackBarState]}}),t}(),yI=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[M_,Ey,Yh,$C,Tk],Tk]}),t}(),_I=new _i("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new dI}}),bI=function(){var t=function(){function t(e,n,i,r,o,a){s(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=gI,this.snackBarContainerComponent=vI,this.handsetCssClass="mat-snack-bar-handset"}return a(t,[{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}},{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=Wa.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:dI,useValue:e}]}),i=new My(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new dI),this._defaultConfig),e),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new pI(o,r);if(t instanceof ru){var s=new Ay(t,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var l=this._createInjector(i,a),u=new My(t,void 0,l),c=o.attachComponentPortal(u);a.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Xv(r.detachments())).subscribe(function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)}),i.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe(function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)})}},{key:"_createOverlay",value:function(t){var e=new t_;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return Wa.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:pI,useValue:e},{provide:hI,useValue:t.data}]})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(b_),Fi(db),Fi(Wa),Fi(sI),Fi(t,12),Fi(_I))},t.\u0275prov=Pt({factory:function(){return new t(Fi(b_),Fi(db),Fi(Oa),Fi(sI),Fi(t,12),Fi(_I))},token:t,providedIn:yI}),t}(),xI="dark-theme",wI="light-theme",kI=function(){function t(t,e,n,i,r,o){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=o,this.user=new mv(udsData.profile),this.navigation=new iI(this.router),this.gui=new UA(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.prototype.switchTheme=function(t){var e=document.getElementsByTagName("html")[0];[xI,wI].forEach(function(t){e.classList.contains(t)&&e.classList.remove(t)}),e.classList.add(t?xI:wI)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(rf),Fi(Um),Fi(LC),Fi(bI),Fi(Ad),Fi(Vk))},providedIn:"root"}),t}(),CI=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(kI))},providedIn:"root"}),t}(),SI=function(t,e){return(SI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function MI(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}SI(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function AI(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((i=i.apply(t,e||[])).next())})}var II=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),OI=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Bd).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(Gf(function(t){return n.handleError(t,!0)}))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(Gf(function(t){return n.handleError(t)}))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(Gf(function(t){return e.handleError(t)}))},t.prototype.permision=function(){return this.api.user.isAdmin?II.ALL:II.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,o=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(o,{perm:i},{headers:this.headers}).pipe(Gf(function(t){return r.handleError(t)}))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(Gf(function(t){return e.handleError(t)}))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new TI(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(Gf(function(t){return e.handleError(t)}))},t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),$v(n)},t}(),TI=function(t){function e(e,n,i,r){var o=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return o.parentModel=e,o.parentId=n,o.model=i,o.perm=r,o}return MI(e,t),e.prototype.permision=function(){return this.perm||II.ALL},e}(OI),DI=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return MI(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(OI),PI=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return MI(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(OI),EI=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return MI(e,t),e}(OI),RI=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return MI(e,t),e}(OI),LI=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return MI(e,t),e}(OI),NI=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return MI(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(OI),FI=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return MI(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(OI),zI=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return MI(e,t),e}(OI),VI=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return MI(e,t),e}(OI),BI=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return MI(e,t),e}(OI),HI=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return MI(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t,e){var n="stats/"+t;return e&&(n+="/"+e),this.get(n)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(OI),jI=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return MI(e,t),e.prototype.types=function(){return Ed([])},e}(OI),GI=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return MI(e,t),e}(OI),UI=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return MI(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(OI),WI=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return MI(e,t),e}(OI),YI=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return MI(e,t),e}(OI),qI=function(t){function e(e){var n=t.call(this,e,"tunneltokens")||this;return n.api=e,n}return MI(e,t),e}(OI),XI=function(){function t(t){this.api=t,this.providers=new DI(t),this.authenticators=new PI(t),this.osManagers=new EI(t),this.transports=new RI(t),this.networks=new LI(t),this.servicesPools=new NI(t),this.metaPools=new FI(t),this.gallery=new VI(t),this.servicesPoolGroups=new BI(t),this.calendars=new GI(t),this.accounts=new UI(t),this.proxy=new WI(t),this.system=new HI(t),this.configuration=new zI(t),this.actorToken=new YI(t),this.tunnelToken=new qI(t),this.reports=new jI(t)}return t.\u0275prov=Pt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(kI))},providedIn:"root"}),t}(),ZI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],KI=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],$I=function(t){var e=[];return t.forEach(function(t){e.push(t.substr(0,3))}),e},QI=function(t,e,n){return JI(t,e,n)},JI=function(t,e,n,i){i=i||{},e=e||new Date,(n=n||lO).formats=n.formats||{};var r=e.getTime();return(i.utc||"number"==typeof i.timezone)&&(e=tO(e)),"number"==typeof i.timezone&&(e=new Date(e.getTime()+6e4*i.timezone)),t.replace(/%([-_0]?.)/g,function(t,o){var a,s,l,u,c,h,d,f;if(l=null,c=null,2===o.length){if("-"===(l=o[0]))c="";else if("_"===l)c=" ";else{if("0"!==l)return t;c="0"}o=o[1]}switch(o){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return eO(Math.floor(e.getFullYear()/100),c);case"D":return JI(n.formats.D||"%m/%d/%y",e,n);case"d":return eO(e.getDate(),c);case"e":return e.getDate();case"F":return JI(n.formats.F||"%Y-%m-%d",e,n);case"H":return eO(e.getHours(),c);case"h":return n.shortMonths[e.getMonth()];case"I":return eO(nO(e),c);case"j":return d=new Date(e.getFullYear(),0,1),a=Math.ceil((e.getTime()-d.getTime())/864e5),eO(a,3);case"k":return eO(e.getHours(),void 0===c?" ":c);case"L":return eO(Math.floor(r%1e3),3);case"l":return eO(nO(e),void 0===c?" ":c);case"M":return eO(e.getMinutes(),c);case"m":return eO(e.getMonth()+1,c);case"n":return"\n";case"o":return String(e.getDate())+iO(e.getDate());case"P":case"p":return"";case"R":return JI(n.formats.R||"%H:%M",e,n);case"r":return JI(n.formats.r||"%I:%M:%S %p",e,n);case"S":return eO(e.getSeconds(),c);case"s":return Math.floor(r/1e3);case"T":return JI(n.formats.T||"%H:%M:%S",e,n);case"t":return"\t";case"U":return eO(rO(e,"sunday"),c);case"u":return 0===(s=e.getDay())?7:s;case"v":return JI(n.formats.v||"%e-%b-%Y",e,n);case"W":return eO(rO(e,"monday"),c);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return(f=String(e.getFullYear())).slice(f.length-2);case"Z":return i.utc?"GMT":(h=e.toString().match(/\((\w+)\)/))&&h[1]||"";case"z":return i.utc?"+0000":((u="number"==typeof i.timezone?i.timezone:-e.getTimezoneOffset())<0?"-":"+")+eO(Math.abs(u/60))+eO(u%60);default:return o}})},tO=function(t){var e=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+e)},eO=function(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e},iO=function(t){var e=t%10,n=t%100;if(n>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}},rO=function(t,e){e=e||"sunday";var n=t.getDay();"monday"===e&&(0===n?n=6:n--);var i=new Date(t.getFullYear(),0,1),r=Math.floor((t.getTime()-i.getTime())/864e5);return Math.floor((r+7-n)/7)},oO=function(t){return t.replace(/./g,function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}})},aO=function(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=QI(oO(r),new Date(1e3*e))}return i},sO=function(t){return"yes"===t||!0===t||"true"===t||1===t},lO={days:ZI,shortDays:$I(ZI),months:KI,shortMonths:$I(KI),AM:"AM",PM:"PM",am:"am",pm:"pm"},uO=n(8774),cO=n.n(uO),hO=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){dO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){dO&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;gO.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),yO=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),IO="undefined"!=typeof WeakMap?new WeakMap:new hO,OO=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=vO.getInstance(),i=new AO(e,n,this);IO.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){OO.prototype[t]=function(){var e;return(e=IO.get(this))[t].apply(e,arguments)}});var TO=void 0!==fO.ResizeObserver?fO.ResizeObserver:OO,DO=function(){function t(e){s(this,t),this.changes=e}return a(t,[{key:"notEmpty",value:function(t){if(this.changes[t]){var e=this.changes[t].currentValue;if(null!=e)return Ed(e)}return Of}},{key:"has",value:function(t){return this.changes[t]?Ed(this.changes[t].currentValue):Of}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?Ed(this.changes[t].currentValue):Of}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var e=this.changes[t].currentValue;if(null!=e)return Ed(e)}return Of}}],[{key:"of",value:function(e){return new t(e)}}]),t}(),PO=new _i("NGX_ECHARTS_CONFIG"),EO=function(){var t=function(){function t(e,n,i){s(this,t),this.el=n,this.ngZone=i,this.autoResize=!0,this.loadingType="default",this.chartInit=new Nu,this.optionsError=new Nu,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=e.echarts}return a(t,[{key:"ngOnChanges",value:function(t){var e=this,n=DO.of(t);n.notFirstAndEmpty("options").subscribe(function(t){return e.onOptionsChange(t)}),n.notFirstAndEmpty("merge").subscribe(function(t){return e.setOption(t)}),n.has("loading").subscribe(function(t){return e.toggleLoading(!!t)}),n.notFirst("theme").subscribe(function(){return e.refreshChart()})}},{key:"ngOnInit",value:function(){var t=this;this.autoResize&&(this.resizeSub=new TO(function(){t.animationFrameID=window.requestAnimationFrame(function(){return t.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var t=this;setTimeout(function(){return t.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(t){this.chart&&(t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(t,e){if(this.chart)try{this.chart.setOption(t,e)}catch(n){console.error(n),this.optionsError.emit(n)}}},{key:"refreshChart",value:function(){return AI(this,void 0,void 0,cO().mark(function t(){return cO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.dispose(),t.next=3,this.initChart();case 3:case"end":return t.stop()}},t,this)}))}},{key:"createChart",value:function(){var t=this,e=this.el.nativeElement;if(window&&window.getComputedStyle){var n=window.getComputedStyle(e,null).getPropertyValue("height");n&&"0px"!==n||e.style.height&&"0px"!==e.style.height||(e.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof t.echarts?t.echarts:function(){return Promise.resolve(t.echarts)})().then(function(n){return(0,n.init)(e,t.theme,t.initOpts)})})}},{key:"initChart",value:function(){return AI(this,void 0,void 0,cO().mark(function t(){return cO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return t.stop()}},t,this)}))}},{key:"onOptionsChange",value:function(t){return AI(this,void 0,void 0,cO().mark(function e(){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(!this.chart){e.next=6;break}this.setOption(this.options,!0),e.next=11;break;case 6:return e.next=8,this.createChart();case 8:this.chart=e.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return e.stop()}},e,this)}))}},{key:"createLazyEvent",value:function(t){var e=this;return this.chartInit.pipe(Pf(function(n){return new V(function(i){return n.on(t,function(t){return e.ngZone.run(function(){return i.next(t)})}),function(){e.chart&&(e.chart.isDisposed()||n.off(t))}})}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(PO),cs(Al),cs(kc))},t.\u0275dir=me({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[Te]}),t}(),RO=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:PO,useValue:e}]}}},{key:"forChild",value:function(){return{ngModule:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[]]}),t}();function LO(t,e){if(1&t&&(fs(0,"div",21),fs(1,"div",11),gs(2,"img",3),fs(3,"div",12),Qs(4),ps(),ps(),fs(5,"div",13),fs(6,"a",15),fs(7,"uds-translate"),Qs(8,"View service pools"),ps(),ps(),ps(),ps()),2&t){var n=Is(2);Po(2),hs("src",n.api.staticURL("admin/img/icons/logs.png"),Or),Po(2),tl(" ",n.data.restrained," ")}}function NO(t,e){if(1&t){var n=_s();fs(0,"div"),fs(1,"div",8),fs(2,"div",9),fs(3,"div",10),fs(4,"div",11),gs(5,"img",3),fs(6,"div",12),Qs(7),ps(),ps(),fs(8,"div",13),fs(9,"a",14),fs(10,"uds-translate"),Qs(11,"View authenticators"),ps(),ps(),ps(),ps(),fs(12,"div",10),fs(13,"div",11),gs(14,"img",3),fs(15,"div",12),Qs(16),ps(),ps(),fs(17,"div",13),fs(18,"a",15),fs(19,"uds-translate"),Qs(20,"View service pools"),ps(),ps(),ps(),ps(),fs(21,"div",10),fs(22,"div",11),gs(23,"img",3),fs(24,"div",12),Qs(25),ps(),ps(),fs(26,"div",13),fs(27,"a",15),fs(28,"uds-translate"),Qs(29,"View service pools"),ps(),ps(),ps(),ps(),ls(30,LO,9,2,"div",16),ps(),fs(31,"div",17),fs(32,"div",18),fs(33,"div",19),fs(34,"uds-translate"),Qs(35,"Assigned services chart"),ps(),ps(),fs(36,"div",20),ks("chartInit",function(t){return en(n),Is().chartInit("assigned",t)}),ps(),ps(),fs(37,"div",18),fs(38,"div",19),fs(39,"uds-translate"),Qs(40,"In use services chart"),ps(),ps(),fs(41,"div",20),ks("chartInit",function(t){return en(n),Is().chartInit("inuse",t)}),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(5),hs("src",i.api.staticURL("admin/img/icons/authenticators.png"),Or),Po(2),tl(" ",i.data.users," "),Po(7),hs("src",i.api.staticURL("admin/img/icons/pools.png"),Or),Po(2),tl(" ",i.data.pools," "),Po(7),hs("src",i.api.staticURL("admin/img/icons/services.png"),Or),Po(2),tl(" ",i.data.user_services," "),Po(5),hs("ngIf",i.data.restrained),Po(6),hs("options",i.assignedChartOpts),Po(5),hs("options",i.inuseChartOpts)}}function FO(t,e){1&t&&(fs(0,"div",22),fs(1,"div",23),fs(2,"div",24),fs(3,"uds-translate"),Qs(4,"UDS Administration"),ps(),ps(),fs(5,"div",25),fs(6,"p"),fs(7,"uds-translate"),Qs(8,"You are accessing UDS Administration as staff member."),ps(),ps(),fs(9,"p"),fs(10,"uds-translate"),Qs(11,"This means that you have restricted access to elements."),ps(),ps(),fs(12,"p"),fs(13,"uds-translate"),Qs(14,"In order to increase your access privileges, please contact your local UDS administrator. "),ps(),ps(),gs(15,"br"),fs(16,"p"),fs(17,"uds-translate"),Qs(18,"Thank you."),ps(),ps(),ps(),ps(),ps())}var zO=function(){function t(t,e){this.api=t,this.rest=e,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return t.prototype.onResize=function(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},t.prototype.ngOnInit=function(){var t=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))});for(var e=function(e){n.rest.system.stats(e).subscribe(function(n){var i={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(function(t){return aO("SHORT_DATE_FORMAT",new Date(t.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===e?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(function(t){return t.value})}]};"assigned"===e?t.assignedChartOpts=i:t.inuseChartOpts=i})},n=this,i=0,r=["assigned","inuse"];i enter",[Tb({opacity:0,transform:"translateY(-5px)"}),Ib("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},rT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t}(),oT=new _i("MatHint"),aT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-label"]]}),t}(),sT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-placeholder"]]}),t}(),lT=new _i("MatPrefix"),uT=new _i("MatSuffix"),cT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","matSuffix",""]],features:[_l([{provide:uT,useExisting:t}])]}),t}(),hT=0,dT=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}(),"primary"),fT=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pT=new _i("MatFormField"),gT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c){var h;return s(this,n),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=l,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new U,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(hT++),h._labelId="mat-form-field-label-".concat(hT++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return a(n,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=vv(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Vf(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Xv(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Xv(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),dt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Xv(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Cv(this._label.nativeElement,"transitionend").pipe(Nf(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,b(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push.apply(t,b(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=t.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",Lb("@transformPanel",[Rb()],{optional:!0}))]),transformPanel:Ab("transformPanel",[Db("void",Tb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Db("showing",Tb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Db("showing-multiple",Tb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Eb("void => *",Ib("120ms cubic-bezier(0, 0, 0.2, 1)")),Eb("* => void",Ib("100ms 25ms linear",Tb({opacity:0})))])},AT=0,IT=256,OT=new _i("mat-select-scroll-strategy"),TT=new _i("MAT_SELECT_CONFIG"),DT={provide:OT,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},PT=function t(e,n){s(this,t),this.source=e,this.value=n},ET=Ek(Rk(Dk(Lk(function(){return function t(e,n,i,r,o){s(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),RT=new _i("MatSelectTrigger"),LT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-select-trigger"]],features:[_l([{provide:RT,useExisting:t}])]}),t}(),NT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,f,p,g,m,v){var y,_,x,w;return s(this,n),(y=e.call(this,a,o,u,c,f))._viewportRuler=t,y._changeDetectorRef=i,y._ngZone=r,y._dir=l,y._parentFormField=h,y.ngControl=f,y._liveAnnouncer=m,y._defaultOptions=v,y._panelOpen=!1,y._compareWith=function(t,e){return t===e},y._uid="mat-select-".concat(AT++),y._triggerAriaLabelledBy=null,y._destroy=new U,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(AT++),y._panelDoneAnimatingStream=new U,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(w=null===(x=y._defaultOptions)||void 0===x?void 0:x.disableOptionCentering)&&void 0!==w&&w,y.ariaLabel="",y.optionSelectionChanges=Df(function(){var t=y.options;return t?t.changes.pipe(Vf(t),Pf(function(){return dt.apply(void 0,b(t.map(function(t){return t.onSelectionChange})))})):y._ngZone.onStable.pipe(Nf(1),Pf(function(){return y.optionSelectionChanges}))}),y.openedChange=new Nu,y._openedStream=y.openedChange.pipe(Ld(function(t){return t}),q(function(){})),y._closedStream=y.openedChange.pipe(Ld(function(t){return!t}),q(function(){})),y.selectionChange=new Nu,y.valueChange=new Nu,y.ngControl&&(y.ngControl.valueAccessor=d(y)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=v.typeaheadDebounceInterval),y._scrollStrategyFactory=g,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,y}return a(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=vv(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=vv(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=yv(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new _y(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fv(),Xv(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Xv(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(Vf(null),Xv(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=e===Uy||e===jy||e===Hy||e===Gy,i=e===Ny||e===zy,r=this._keyManager;if(!r.isTyping()&&i&&!Wy(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=n===Uy||n===jy,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==Ny&&n!==zy||!e.activeItem||Wy(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe(Nf(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find(function(n){if(e._selectionModel.isSelected(n))return!1;try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new Z_(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Xv(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe(Xv(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=dt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xv(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),dt.apply(void 0,b(this.options.map(function(t){return t._stateChanges}))).pipe(Xv(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(ET);return t.\u0275fac=function(e){return new(e||t)(cs(wy),cs(Jl),cs(kc),cs(Kk),cs(Al),cs(py,8),cs(dM,8),cs(wM,8),cs(pT,8),cs(zS,10),mi("tabindex"),cs(OT),cs(db),cs(TT,8))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&(Zu(vT,5),Zu(yT,5),Zu(C_,5)),2&t&&(Xu(n=$u())&&(e.trigger=n.first),Xu(n=$u())&&(e.panel=n.first),Xu(n=$u())&&(e._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[qa,Te]}),t}(),FT=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return a(n,[{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Xv(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=_C(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=bC((t+e)*n,n,this.panel.nativeElement.scrollTop,IT)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new PT(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(IT/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-IT)%r):e-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,IT)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*e,IT),r=n*e-i;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=_C(t,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(NT);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,RT,5),Ku(n,yC,5),Ku(n,pC,5)),2&t&&(Xu(i=$u())&&(e.customTrigger=i.first),Xu(i=$u())&&(e.options=i),Xu(i=$u())&&(e.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&ks("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(as("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Hs("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_l([{provide:rT,useExisting:t},{provide:cC,useExisting:t}]),qa],ngContentSelectors:ST,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Ts(CT),fs(0,"div",0,1),ks("click",function(){return e.toggle()}),fs(3,"div",2),ls(4,_T,2,1,"span",3),ls(5,wT,3,2,"span",4),ps(),fs(6,"div",5),gs(7,"div",6),ps(),ps(),ls(8,kT,4,14,"ng-template",7),ks("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var n=us(1);as("aria-owns",e.panelOpen?e.id+"-panel":null),Po(3),hs("ngSwitch",e.empty),as("id",e._valueId),Po(1),hs("ngSwitchCase",!0),Po(1),hs("ngSwitchCase",!1),Po(3),hs("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[k_,Lh,Nh,C_,Fh,Ah],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[MT.transformPanelWrap,MT.transformPanel]},changeDetection:0}),t}(),zT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[DT],imports:[[Yh,M_,xC,Tk],ky,mT,xC,Tk]}),t}(),VT={tooltipState:Ab("state",[Db("initial, void, hidden",Tb({opacity:0,transform:"scale(0)"})),Db("visible",Tb({transform:"scale(1)"})),Eb("* => visible",Ib("200ms cubic-bezier(0, 0, 0.2, 1)",Pb([Tb({opacity:0,transform:"scale(0)",offset:0}),Tb({opacity:.5,transform:"scale(0.99)",offset:.5}),Tb({opacity:1,transform:"scale(1)",offset:1})]))),Eb("* => hidden",Ib("100ms cubic-bezier(0, 0, 0.2, 1)",Tb({opacity:0})))])},BT="tooltip-panel",HT=uy({passive:!0}),jT=new _i("mat-tooltip-scroll-strategy"),GT={provide:jT,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},UT=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),WT=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d,f){var p=this;s(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new U,this._handleKeydown=function(t){p._isTooltipVisible()&&t.keyCode===Fy&&!Wy(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=f,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),h.change.pipe(Xv(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return a(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=vv(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xv(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=y(e,2);t.removeEventListener(n[0],n[1],HT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new My(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Xv(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(Xv(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(BT),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xv(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Nf(1),Xv(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,n=t.overlayY,i=t.originX;if((e="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===t.originY?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var o="".concat(this._cssClassPrefix,"-").concat(BT,"-");r.removePanelClass(o+this._currentPosition),r.addPanelClass(o+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=y(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],HT)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Al),cs(xy),cs(cu),cs(kc),cs(oy),cs(W_),cs(mb),cs(void 0),cs(py),cs(void 0),cs(oh))},t.\u0275dir=me({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),YT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,d,f,p){var g;return s(this,n),(g=e.call(this,t,i,r,o,a,l,u,c,h,d,f,p))._tooltipComponent=XT,g}return n}(WT);return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Al),cs(xy),cs(cu),cs(kc),cs(oy),cs(W_),cs(mb),cs(jT),cs(py,8),cs(UT,8),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[qa]}),t}(),qT=function(){var t=function(){function t(e){s(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new U}return a(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._onShow(),e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Jl))},t.\u0275dir=me({type:t}),t}(),XT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(qT);return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(sI))},t.\u0275cmp=ce({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ks("click",function(){return e._handleBodyInteraction()},!1,Br)("auxclick",function(){return e._handleBodyInteraction()},!1,Br),2&t&&Bs("zoom","visible"===e._visibility?1:null)},features:[qa],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(fs(0,"div",0),ks("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),Tu(1,"async"),Qs(2),ps()),2&t&&(Hs("mat-tooltip-handset",null==(n=Du(1,5,e._isHandset))?null:n.matches),hs("ngClass",e.tooltipClass)("@state",e._visibility),Po(2),Js(e.message))},directives:[Ah],pipes:[jh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[VT.tooltipState]},changeDetection:0}),t}(),ZT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[GT],imports:[[wb,Yh,M_,Tk],Tk,ky]}),t}();function KT(t,e){if(1&t&&(fs(0,"mat-option",19),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n),Po(1),tl(" ",n," ")}}function $T(t,e){if(1&t){var n=_s();fs(0,"mat-form-field",16),fs(1,"mat-select",17),ks("selectionChange",function(t){return en(n),Is(2)._changePageSize(t.value)}),ls(2,KT,2,2,"mat-option",18),ps(),ps()}if(2&t){var i=Is(2);hs("appearance",i._formFieldAppearance)("color",i.color),Po(1),hs("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Po(1),hs("ngForOf",i._displayedPageSizeOptions)}}function QT(t,e){if(1&t&&(fs(0,"div",20),Qs(1),ps()),2&t){var n=Is(2);Po(1),Js(n.pageSize)}}function JT(t,e){if(1&t&&(fs(0,"div",12),fs(1,"div",13),Qs(2),ps(),ls(3,$T,3,6,"mat-form-field",14),ls(4,QT,2,1,"div",15),ps()),2&t){var n=Is();Po(2),tl(" ",n._intl.itemsPerPageLabel," "),Po(1),hs("ngIf",n._displayedPageSizeOptions.length>1),Po(1),hs("ngIf",n._displayedPageSizeOptions.length<=1)}}function tD(t,e){if(1&t){var n=_s();fs(0,"button",21),ks("click",function(){return en(n),Is().firstPage()}),Tn(),fs(1,"svg",7),gs(2,"path",22),ps(),ps()}if(2&t){var i=Is();hs("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),as("aria-label",i._intl.firstPageLabel)}}function eD(t,e){if(1&t){var n=_s();Tn(),Dn(),fs(0,"button",23),ks("click",function(){return en(n),Is().lastPage()}),Tn(),fs(1,"svg",7),gs(2,"path",24),ps(),ps()}if(2&t){var i=Is();hs("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),as("aria-label",i._intl.lastPageLabel)}}var nD=function(){var t=function t(){s(this,t),this.changes=new U,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),iD={provide:nD,deps:[[new Wi,new Yi,nD]],useFactory:function(t){return t||new nD}},rD=new _i("MAT_PAGINATOR_DEFAULT_OPTIONS"),oD=Dk(Nk(function(){return function t(){s(this,t)}}())),aD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;if(s(this,n),(o=e.call(this))._intl=t,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Nu,o._intlChanges=t.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,l=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=l&&(o._pageSizeOptions=l),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return o}return a(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(yv(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=yv(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(yv(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return yv(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=vv(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=vv(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(fD);return t.\u0275fac=function(e){return new(e||t)(cs(dD,8))},t.\u0275dir=me({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[qa,Te]}),t}(),gD=Ak.ENTERING+" "+Mk.STANDARD_CURVE,mD={indicator:Ab("indicator",[Db("active-asc, asc",Tb({transform:"translateY(0px)"})),Db("active-desc, desc",Tb({transform:"translateY(10px)"})),Eb("active-asc <=> active-desc",Ib(gD))]),leftPointer:Ab("leftPointer",[Db("active-asc, asc",Tb({transform:"rotate(-45deg)"})),Db("active-desc, desc",Tb({transform:"rotate(45deg)"})),Eb("active-asc <=> active-desc",Ib(gD))]),rightPointer:Ab("rightPointer",[Db("active-asc, asc",Tb({transform:"rotate(45deg)"})),Db("active-desc, desc",Tb({transform:"rotate(-45deg)"})),Eb("active-asc <=> active-desc",Ib(gD))]),arrowOpacity:Ab("arrowOpacity",[Db("desc-to-active, asc-to-active, active",Tb({opacity:1})),Db("desc-to-hint, asc-to-hint, hint",Tb({opacity:.54})),Db("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Tb({opacity:0})),Eb("* => asc, * => desc, * => active, * => hint, * => void",Ib("0ms")),Eb("* <=> *",Ib(gD))]),arrowPosition:Ab("arrowPosition",[Eb("* => desc-to-hint, * => desc-to-active",Ib(gD,Pb([Tb({transform:"translateY(-25%)"}),Tb({transform:"translateY(0)"})]))),Eb("* => hint-to-desc, * => active-to-desc",Ib(gD,Pb([Tb({transform:"translateY(0)"}),Tb({transform:"translateY(25%)"})]))),Eb("* => asc-to-hint, * => asc-to-active",Ib(gD,Pb([Tb({transform:"translateY(25%)"}),Tb({transform:"translateY(0)"})]))),Eb("* => hint-to-asc, * => active-to-asc",Ib(gD,Pb([Tb({transform:"translateY(0)"}),Tb({transform:"translateY(-25%)"})]))),Db("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Tb({transform:"translateY(0)"})),Db("hint-to-desc, active-to-desc, desc",Tb({transform:"translateY(-25%)"})),Db("hint-to-asc, active-to-asc, asc",Tb({transform:"translateY(25%)"}))]),allowChildren:Ab("allowChildren",[Eb("* <=> *",[Lb("@*",Rb(),{optional:!0})])])},vD=function(){var t=function t(){s(this,t),this.changes=new U};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),yD={provide:vD,deps:[[new Wi,new Yi,vD]],useFactory:function(t){return t||new vD}},_D=Dk(function(){return function t(){s(this,t)}}()),bD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this))._intl=t,u._changeDetectorRef=i,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=l,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return a(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=vv(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var n=!!e;n!==t._showIndicatorHint&&(t._setIndicatorHintVisible(n),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==zy&&t.keyCode!==Ny||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=dt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),n}(_D);return t.\u0275fac=function(e){return new(e||t)(cs(vD),cs(Jl),cs(pD,8),cs("MAT_SORT_HEADER_COLUMN_DEF",8),cs(mb),cs(Al))},t.\u0275cmp=ce({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&ks("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(as("aria-sort",e._getAriaSortAttribute()),Hs("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[qa],attrs:uD,ngContentSelectors:hD,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Ts(),fs(0,"div",0),fs(1,"div",1),Ds(2),ps(),ls(3,cD,6,6,"div",2),ps()),2&t&&(Hs("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),as("tabindex",e._isDisabled()?null:0),Po(3),hs("ngIf",e._renderArrow()))},directives:[Dh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[mD.indicator,mD.leftPointer,mD.rightPointer,mD.arrowOpacity,mD.arrowPosition,mD.allowChildren]},changeDetection:0}),t}(),xD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[yD],imports:[[Yh,Tk]]}),t}(),wD=[[["caption"]],[["colgroup"],["col"]]],kD=["caption","colgroup, col"];function CD(t){return function(t){u(n,t);var e=p(n);function n(){var t;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;s(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return a(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],o=v(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||n.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,n),c=e.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===i.direction,d=o?"right":"left",f=o?"left":"right",p=v(t);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=t.children,r=0;r0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}]),t}(),ZD=new _i("CDK_SPL"),KD=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","rowOutlet",""]]}),t}(),$D=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),QD=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),JD=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),tP=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=h,this._stickyPositioningListener=d,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new yf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return a(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=vv(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=vv(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(Xv(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),vy(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,function(e,n,i){return t._getEmbeddedViewArgs(e.item,i)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(b(e),b(n),b(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,n){return t._renderRow(t._headerRowOutlet,e,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,n){return t._renderRow(t._footerRowOutlet,e,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map(function(t){return n._columnDefsByName.get(t)}),r=i.map(function(t){return t.sticky}),o=i.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var n,i=v(this._getCellTemplates(t));try{for(i.s();!(n=i.n()).done;)GD.mostRecentCellOutlet&&GD.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,e)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return s(this,n),(t=e.call(this))._renderData=new yf([]),t._filter=new yf(""),t._internalPageChanges=new U,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var n=t[e];if(_v(n)){var i=Number(n);return ia?u=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),n}(my));function yP(t){return t instanceof Date&&!isNaN(+t)}function _P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv,n=yP(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new bP(i,e))}}var bP=function(){function t(e,n){s(this,t),this.delay=e,this.scheduler=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new xP(t,this.delay,this.scheduler))}}]),t}(),xP=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return a(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new wP(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(ty.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(ty.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(R),wP=function t(e,n){s(this,t),this.time=e,this.notification=n},kP=uy({passive:!0}),CP=function(){var t=function(){function t(e,n){s(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return a(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return Of;var n=wv(t),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new U,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,kP),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,kP)}}),r}},{key:"stopMonitoring",value:function(t){var e=wv(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(kc))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(kc))},token:t,providedIn:"root"}),t}(),SP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[ay]]}),t}(),MP=new _i("MAT_INPUT_VALUE_ACCESSOR"),AP=["button","checkbox","file","hidden","image","radio","range","reset","submit"],IP=0,OP=Lk(function(){return function t(e,n,i,r){s(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),TP=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,d){var f;s(this,n),(f=e.call(this,l,o,a,r))._elementRef=t,f._platform=i,f.ngControl=r,f._autofillMonitor=c,f._formField=d,f._uid="mat-input-".concat(IP++),f.focused=!1,f.stateChanges=new U,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return ly().has(t)});var p=f._elementRef.nativeElement,g=p.nodeName.toLowerCase();return f._inputValueAccessor=u||p,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&h.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===g,f._isTextarea="textarea"===g,f._isInFormField=!!d,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return a(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=vv(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&ly().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=vv(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t,e,n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){AP.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(OP);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(oy),cs(zS,10),cs(dM,8),cs(wM,8),cs(Kk),cs(MP,10),cs(CP),cs(kc),cs(pT,8))},t.\u0275dir=me({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&ks("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(nl("disabled",e.disabled)("required",e.required),as("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),Hs("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[_l([{provide:rT,useExisting:t}]),qa,Te]}),t}(),DP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[Kk],imports:[[SP,mT,Tk],SP,mT]}),t}(),PP=["searchSelectInput"],EP=["innerSelectSearch"];function RP(t,e){if(1&t){var n=_s();fs(0,"button",6),ks("click",function(){return en(n),Is()._reset(!0)}),fs(1,"i",7),Qs(2,"close"),ps(),ps()}}var LP=function(t){return{"mat-select-search-inner-multiple":t}},NP=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new Nu,this.overlayClassSet=!1,this.change=new Nu,this._onDestroy=new U}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(_P(1),Xv(this._onDestroy)).subscribe(function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe(Nf(1)).pipe(Xv(this._onDestroy)).subscribe(function(){t._options=t.matSelect.options,t._options.changes.pipe(Xv(t._onDestroy)).subscribe(function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout(function(){e.setFirstItemActive(),t.getWidth()},1)})}),this.change.pipe(Xv(this._onDestroy)).subscribe(function(){t.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.setOverlayClass()}),this.matSelect.openedChange.pipe(Nf(1),Xv(this._onDestroy)).subscribe(function(){t.matSelect.options.changes.pipe(Xv(t._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})})},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||t.keyCode===zy)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t.value!==this._value&&(this.initMultiSelectedValues(),this._value=t.value,this.changed.emit(t.value),this.change.emit(t.value))},t.prototype.onBlur=function(t){this.writeValue(t.value)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(t){return t.selected}).map(function(t){return t.value}))},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Xv(this._onDestroy)).subscribe(function(e){if(e){for(var n=t.searchSelectInput.nativeElement,i=void 0;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){i=n;break}i&&i.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(Xv(this._onDestroy)).subscribe(function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)})}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}})},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.\u0275fac=function(e){return new(e||t)(cs(FT),cs(Jl))},t.\u0275cmp=ce({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){if(1&t&&(Zu(PP,7,Al),Zu(EP,7,Al)),2&t){var n=void 0;Xu(n=$u())&&(e.searchSelectInput=n.first),Xu(n=$u())&&(e.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[_l([{provide:cS,useExisting:St(function(){return t}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(gs(0,"input",0),fs(1,"div",1,2),fs(3,"input",3,4),ks("keydown",function(t){return e._handleKeydown(t)})("input",function(t){return e.onInputChange(t.target)})("blur",function(t){return e.onBlur(t.target)}),ps(),ls(5,RP,3,0,"button",5),ps()),2&t&&(Po(1),hs("ngClass",Su(3,LP,e.matSelect.multiple)),Po(2),hs("placeholder",e.placeholderLabel),Po(2),hs("ngIf",e.value))},directives:[TP,Ah,Dh,ZC],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function FP(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New user permission for"),ps())}function zP(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New group permission for"),ps())}function VP(t,e){if(1&t&&(fs(0,"mat-option",11),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),Js(n.text)}}function BP(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",12),ks("changed",function(t){return en(n),Is().filterUser=t}),ps()}}function HP(t,e){if(1&t&&(fs(0,"mat-option",11),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),Js(n.text)}}function jP(t,e){if(1&t&&(fs(0,"mat-option",11),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),Js(n.text)}}var GP=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new Nu(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){e.forEach(function(e){t.authenticators.push({id:e.id,text:e.name})})})},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe(function(t){t.forEach(function(t){e.entities.push({id:t.id,text:t.name})})})},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach(function(n){t.filterUser&&!n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase())||e.push(n)}),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,FP,2,0,"uds-translate",1),gs(2,"b",2),ls(3,zP,2,0,"ng-template",null,3,ec),ps(),fs(5,"mat-dialog-content"),fs(6,"div",4),fs(7,"mat-form-field"),fs(8,"mat-select",5),ks("valueChange",function(t){return e.changeAuth(t)})("ngModelChange",function(t){return e.authenticator=t}),ls(9,VP,2,2,"mat-option",6),ps(),ps(),fs(10,"mat-form-field"),fs(11,"mat-select",7),ks("ngModelChange",function(t){return e.entity=t}),ls(12,BP,1,0,"uds-mat-select-search",8),ls(13,HP,2,2,"mat-option",6),ps(),ps(),fs(14,"mat-form-field"),fs(15,"mat-select",7),ks("ngModelChange",function(t){return e.permission=t}),ls(16,jP,2,2,"mat-option",6),ps(),ps(),ps(),ps(),fs(17,"mat-dialog-actions"),fs(18,"button",9),fs(19,"uds-translate"),Qs(20,"Cancel"),ps(),ps(),fs(21,"button",10),ks("click",function(){return e.save()}),fs(22,"uds-translate"),Qs(23,"Ok"),ps(),ps(),ps()),2&t){var n=us(4);Po(1),hs("ngIf","user"===e.data.type)("ngIfElse",n),Po(1),hs("innerHTML",e.data.item.name,Ir),Po(6),hs("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Po(1),hs("ngForOf",e.authenticators),Po(2),hs("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Po(1),hs("ngIf",e.entities.length>10),Po(1),hs("ngForOf",e.filteredEntities()),Po(2),hs("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Po(1),hs("ngForOf",e.permissions)}},directives:[zC,Dh,VC,gT,FT,BS,gM,Oh,BC,ZC,FC,QC,yC,NP],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function UP(t,e){if(1&t){var n=_s();fs(0,"div",11),fs(1,"div",12),Qs(2),ps(),fs(3,"div",13),Qs(4),fs(5,"a",14),ks("click",function(){var t=en(n).$implicit;return Is(2).revokePermission(t)}),fs(6,"i",15),Qs(7,"close"),ps(),ps(),ps(),ps()}if(2&t){var i=e.$implicit;Po(2),el(" ",i.entity_name,"@",i.auth_name," "),Po(2),tl(" ",i.perm_name," \xa0")}}function WP(t,e){if(1&t){var n=_s();fs(0,"div",7),fs(1,"div",8),fs(2,"div",9),ks("click",function(t){var e=en(n).$implicit;return Is().newPermission(e),t.preventDefault()}),fs(3,"uds-translate"),Qs(4,"New permission..."),ps(),ps(),ls(5,UP,8,3,"div",10),ps(),ps()}if(2&t){var i=e.$implicit;Po(5),hs("ngForOf",i)}}var YP=function(t,e){return[t,e]},qP=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(e){t.updatePermissions(e)})},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach(function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)})},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe(function(n){n&&e.data.rest.revokePermission([t.id]).subscribe(function(t){e.reload()})})},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";GP.launch(this.api,n,this.data.item).subscribe(function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe(function(t){e.reload()})})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Permissions for"),ps(),Qs(3,"\xa0"),gs(4,"b",1),ps(),fs(5,"mat-dialog-content"),fs(6,"div",2),fs(7,"uds-translate",3),Qs(8,"Users"),ps(),fs(9,"uds-translate",3),Qs(10,"Groups"),ps(),ps(),fs(11,"div",4),ls(12,WP,6,1,"div",5),ps(),ps(),fs(13,"mat-dialog-actions"),fs(14,"button",6),fs(15,"uds-translate"),Qs(16,"Ok"),ps(),ps(),ps()),2&t&&(Po(4),hs("innerHTML",e.data.item.name,Ir),Po(8),hs("ngForOf",Mu(2,YP,e.userPermissions,e.groupPermissions)))},directives:[zC,QC,VC,Oh,BC,ZC,FC],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:blue;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:blue;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),XP=n(9595),ZP=function(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'},KP=function(t){var e="";t.columns.forEach(function(t){e+=ZP(t.title)+","}),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach(function(n){t.columns.forEach(function(t){var i=n[t.name];switch(t.type){case WA.DATE:i=aO("SHORT_DATE_FORMAT",i);break;case WA.DATETIME:i=aO("SHORT_DATETIME_FORMAT",i);break;case WA.DATETIMESEC:i=aO("SHORT_DATE_FORMAT",i," H:i:s");break;case WA.TIME:i=aO("TIME_FORMAT",i)}e+=ZP(i)+","}),e=e.slice(0,-1)+"\r\n"});var n=new Blob([e],{type:"text/csv"});setTimeout(function(){(0,XP.saveAs)(n,t.title+".csv")},100)},$P=function(){function t(e,n){s(this,t),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=e,this._document.body.appendChild(i)}return a(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(yH){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),QP=function(){var t=function(){function t(e){s(this,t),this._document=e}return a(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),n=e.copy();return e.destroy(),n}},{key:"beginCopy",value:function(t){return new $P(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh))},token:t,providedIn:"root"}),t}(),JP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}();function tE(t,e){if(1&t&&(Tn(),gs(0,"circle",3)),2&t){var n=Is();Bs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),as("r",n._getCircleRadius())}}function eE(t,e){if(1&t&&(Tn(),gs(0,"circle",3)),2&t){var n=Is();Bs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),as("r",n._getCircleRadius())}}var nE=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}(),"primary"),iE=new _i("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),rE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;s(this,n),(l=e.call(this,t))._elementRef=t,l._document=r,l._diameter=100,l._value=0,l._fallbackAnimation=!1,l.mode="determinate";var u=n._diameters;return l._spinnerAnimationLabel=l._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),l._fallbackAnimation=i.EDGE||i.TRIDENT,l._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(l.diameter=a.diameter),a.strokeWidth&&(l.strokeWidth=a.strokeWidth)),l}return a(n,[{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=yv(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=yv(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,yv(t)))}},{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=hy(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(nE);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(oy),cs(oh,8),cs(yk,8),cs(iE))},t.\u0275cmp=ce({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(as("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Bs("width",e.diameter,"px")("height",e.diameter,"px"),Hs("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[qa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Tn(),fs(0,"svg",0),ls(1,tE,1,9,"circle",1),ls(2,eE,1,7,"circle",2),ps()),2&t&&(Bs("width",e.diameter,"px")("height",e.diameter,"px"),hs("ngSwitch","indeterminate"===e.mode),as("viewBox",e._getViewBox()),Po(1),hs("ngSwitchCase",!0),Po(1),hs("ngSwitchCase",!1))},directives:[Lh,Nh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),oE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk,Yh],Tk]}),t}(),aE=["mat-menu-item",""],sE=["*"];function lE(t,e){if(1&t){var n=_s();fs(0,"div",0),ks("keydown",function(t){return en(n),Is()._handleKeydown(t)})("click",function(){return en(n),Is().closed.emit("click")})("@transformMenu.start",function(t){return en(n),Is()._onAnimationStart(t)})("@transformMenu.done",function(t){return en(n),Is()._onAnimationDone(t)}),fs(1,"div",1),Ds(2),ps(),ps()}if(2&t){var i=Is();hs("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),as("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var uE={transformMenu:Ab("transformMenu",[Db("void",Tb({opacity:0,transform:"scale(0.8)"})),Eb("void => enter",Ib("120ms cubic-bezier(0, 0, 0.2, 1)",Tb({opacity:1,transform:"scale(1)"}))),Eb("* => void",Ib("100ms 25ms linear",Tb({opacity:0})))]),fadeInItems:Ab("fadeInItems",[Db("showing",Tb({opacity:1})),Eb("void => *",[Tb({opacity:0}),Ib("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cE=new _i("MatMenuContent"),hE=function(){var t=function(){function t(e,n,i,r,o,a,l){s(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=l,this._attached=new U}return a(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ay(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Ty(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(ru),cs(kl),cs(Yc),cs(Wa),cs(cu),cs(oh),cs(Jl))},t.\u0275dir=me({type:t,selectors:[["ng-template","matMenuContent",""]],features:[_l([{provide:cE,useExisting:t}])]}),t}(),dE=new _i("MAT_MENU_PANEL"),fE=Ek(Dk(function(){return function t(){s(this,t)}}())),pE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new U,a._focused=new U,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(d(a)),a}return a(n,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=this,n=Math.min(this._baseElevation+t,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(t){return t.startsWith(e._elevationPrefix)});r&&r!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(gE))},t.\u0275dir=me({type:t,contentQueries:function(t,e,n){var i;1&t&&(Ku(n,cE,5),Ku(n,pE,5),Ku(n,pE,4)),2&t&&(Xu(i=$u())&&(e.lazyContent=i.first),Xu(i=$u())&&(e._allItems=i),Xu(i=$u())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Zu(ru,5),2&t&&Xu(n=$u())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),yE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(vE);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(gE))},t.\u0275cmp=ce({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&as("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_l([{provide:dE,useExisting:t}]),qa],ngContentSelectors:sE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Ts(),ls(0,lE,3,6,"ng-template"))},directives:[Ah],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[uE.transformMenu,uE.fadeInItems]},changeDetection:0}),t}(),_E=new _i("mat-menu-scroll-strategy"),bE={provide:_E,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},xE=uy({passive:!0}),wE=function(){var t=function(){function t(e,n,i,r,o,a,l,u){var c=this;s(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.EMPTY,this._hoverSubscription=A.EMPTY,this._menuCloseSubscription=A.EMPTY,this._handleTouchStart=function(t){rb(t)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Nu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Nu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof vE?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,xE),a&&(a._triggersSubmenu=this.triggersSubmenu())}return a(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,xE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof vE&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof vE?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Ld(function(t){return"void"===t.toState}),Nf(1),Xv(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new t_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=y("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=y("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-h},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return dt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ed(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ld(function(e){return e!==t._menuItemInstance}),Ld(function(){return t._menuOpen})):Ed(),n)}},{key:"_handleMousedown",value:function(t){ib(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==Ny&&e!==zy||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===Gy&&"ltr"===this.dir||e===Hy&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ld(function(e){return e===t._menuItemInstance&&!e.disabled}),_P(0,Nv)).subscribe(function(){t._openedBy="mouse",t.menu instanceof vE&&t.menu._isAnimating?t.menu._animationDone.pipe(Nf(1),_P(0,Nv),Xv(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ay(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Al),cs(cu),cs(_E),cs(dE,8),cs(pE,10),cs(py,8),cs(mb))},t.\u0275dir=me({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&ks("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&as("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),kE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[bE],imports:[Tk]}),t}(),CE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[bE],imports:[[Yh,Tk,sC,M_,kE],ky,Tk,kE]}),t}(),SE=function(){var t=function(){function t(){s(this,t),this._vertical=!1,this._inset=!1}return a(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=vv(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=vv(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(as("aria-orientation",e.vertical?"vertical":"horizontal"),Hs("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),ME=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk],Tk]}),t}(),AE=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ve({name:"sort",type:t,pure:!0}),t}(),IE=["trigger"];function OE(t,e){1&t&&gs(0,"img",36),2&t&&hs("src",Is().icon,Or)}function TE(t,e){if(1&t){var n=_s();fs(0,"button",46),ks("click",function(){var t=en(n).$implicit,e=Is(5);return e.newAction.emit({param:t,table:e})}),ps()}if(2&t){var i=e.$implicit,r=Is(5);hs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function DE(t,e){if(1&t&&(ms(0),fs(1,"button",42),Qs(2),ps(),fs(3,"mat-menu",43,44),ls(5,TE,1,1,"button",45),Tu(6,"sort"),ps(),vs()),2&t){var n=e.$implicit,i=us(4);Po(1),hs("matMenuTriggerFor",i),Po(1),Js(n.key),Po(1),hs("overlapTrigger",!1),Po(2),hs("ngForOf",Pu(6,4,n.value,"name"))}}function PE(t,e){if(1&t&&(ms(0),fs(1,"mat-menu",37,38),ls(3,DE,7,7,"ng-container",39),Tu(4,"keyvalue"),ps(),fs(5,"a",40),fs(6,"i",17),Qs(7,"insert_drive_file"),ps(),fs(8,"span",41),fs(9,"uds-translate"),Qs(10,"New"),ps(),ps(),fs(11,"i",17),Qs(12,"arrow_drop_down"),ps(),ps(),vs()),2&t){var n=us(2),i=Is(3);Po(1),hs("overlapTrigger",!1),Po(2),hs("ngForOf",Du(4,3,i.grpTypes)),Po(2),hs("matMenuTriggerFor",n)}}function EE(t,e){if(1&t){var n=_s();fs(0,"button",46),ks("click",function(){var t=en(n).$implicit,e=Is(4);return e.newAction.emit({param:t,table:e})}),ps()}if(2&t){var i=e.$implicit,r=Is(4);hs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function RE(t,e){if(1&t&&(ms(0),fs(1,"mat-menu",37,38),ls(3,EE,1,1,"button",45),Tu(4,"sort"),ps(),fs(5,"a",40),fs(6,"i",17),Qs(7,"insert_drive_file"),ps(),fs(8,"span",41),fs(9,"uds-translate"),Qs(10,"New"),ps(),ps(),fs(11,"i",17),Qs(12,"arrow_drop_down"),ps(),ps(),vs()),2&t){var n=us(2),i=Is(3);Po(1),hs("overlapTrigger",!1),Po(2),hs("ngForOf",Pu(4,3,i.oTypes,"name")),Po(2),hs("matMenuTriggerFor",n)}}function LE(t,e){if(1&t&&(ms(0),ls(1,PE,13,5,"ng-container",8),ls(2,RE,13,6,"ng-container",8),vs()),2&t){var n=Is(2);Po(1),hs("ngIf",n.newGrouped),Po(1),hs("ngIf",!n.newGrouped)}}function NE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",47),ks("click",function(){en(n);var t=Is(2);return t.newAction.emit({param:void 0,table:t})}),fs(2,"i",17),Qs(3,"insert_drive_file"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"New"),ps(),ps(),ps(),vs()}}function FE(t,e){if(1&t&&(ms(0),ls(1,LE,3,2,"ng-container",8),ls(2,NE,7,0,"ng-container",8),vs()),2&t){var n=Is();Po(1),hs("ngIf",void 0!==n.oTypes&&0!==n.oTypes.length),Po(1),hs("ngIf",void 0!==n.oTypes&&0===n.oTypes.length)}}function zE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",48),ks("click",function(){en(n);var t=Is();return t.emitIfSelection(t.editAction)}),fs(2,"i",17),Qs(3,"edit"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Edit"),ps(),ps(),ps(),vs()}if(2&t){var i=Is();Po(1),hs("disabled",1!==i.selection.selected.length)}}function VE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",48),ks("click",function(){return en(n),Is().permissions()}),fs(2,"i",17),Qs(3,"perm_identity"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Permissions"),ps(),ps(),ps(),vs()}if(2&t){var i=Is();Po(1),hs("disabled",1!==i.selection.selected.length)}}function BE(t,e){if(1&t){var n=_s();fs(0,"a",50),ks("click",function(){var t=en(n).$implicit;return Is(2).emitCustom(t)}),ps()}if(2&t){var i=e.$implicit;hs("disabled",Is(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function HE(t,e){if(1&t&&(ms(0),ls(1,BE,1,2,"a",49),vs()),2&t){var n=Is();Po(1),hs("ngForOf",n.getcustomButtons())}}function jE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",51),ks("click",function(){return en(n),Is().export()}),fs(2,"i",17),Qs(3,"import_export"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Export"),ps(),ps(),ps(),vs()}}function GE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",52),ks("click",function(){en(n);var t=Is();return t.emitIfSelection(t.deleteAction,!0)}),fs(2,"i",17),Qs(3,"delete_forever"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Delete"),ps(),ps(),ps(),vs()}if(2&t){var i=Is();Po(1),hs("disabled",i.selection.isEmpty())}}function UE(t,e){if(1&t){var n=_s();fs(0,"button",53),ks("click",function(){en(n);var t=Is();return t.filterText="",t.applyFilter()}),fs(1,"i",17),Qs(2,"close"),ps(),ps()}}function WE(t,e){1&t&&gs(0,"mat-header-cell")}function YE(t,e){1&t&&(fs(0,"i",17),Qs(1,"check_box"),ps())}function qE(t,e){1&t&&(fs(0,"i",17),Qs(1,"check_box_outline_blank"),ps())}function XE(t,e){if(1&t){var n=_s();fs(0,"mat-cell",56),ks("click",function(t){var e=en(n).$implicit;return Is(2).clickRow(e,t)}),ls(1,YE,2,0,"i",57),ls(2,qE,2,0,"ng-template",null,58,ec),ps()}if(2&t){var i=e.$implicit,r=us(3),o=Is(2);Po(1),hs("ngIf",o.selection.isSelected(i))("ngIfElse",r)}}function ZE(t,e){1&t&&(ms(0,54),ls(1,WE,1,0,"mat-header-cell",22),ls(2,XE,4,2,"mat-cell",55),vs())}function KE(t,e){1&t&&gs(0,"mat-header-cell")}function $E(t,e){if(1&t){var n=_s();fs(0,"mat-cell"),fs(1,"div",59),ks("click",function(t){var e=en(n).$implicit,i=Is();return i.detailAction.emit({param:e,table:i}),t.stopPropagation()}),fs(2,"i",17),Qs(3,"subdirectory_arrow_right"),ps(),ps(),ps()}}function QE(t,e){if(1&t&&(fs(0,"mat-header-cell",63),Qs(1),ps()),2&t){var n=Is().$implicit;Po(1),Js(n.title)}}function JE(t,e){if(1&t){var n=_s();fs(0,"mat-cell",64),ks("click",function(t){var e=en(n).$implicit;return Is(2).clickRow(e,t)})("contextmenu",function(t){var e=en(n).$implicit,i=Is().$implicit;return Is().onContextMenu(e,i,t)}),gs(1,"div",65),ps()}if(2&t){var i=e.$implicit,r=Is().$implicit,o=Is();Po(1),hs("innerHtml",o.getRowColumn(i,r),Ir)}}function tR(t,e){1&t&&(ms(0,60),ls(1,QE,2,1,"mat-header-cell",61),ls(2,JE,2,1,"mat-cell",62),vs()),2&t&&Ps("matColumnDef",e.$implicit.name)}function eR(t,e){1&t&&gs(0,"mat-header-row")}function nR(t,e){if(1&t&&gs(0,"mat-row",66),2&t){var n=e.$implicit;hs("ngClass",Is().rowClass(n))}}function iR(t,e){if(1&t&&(fs(0,"div",67),Qs(1),fs(2,"uds-translate"),Qs(3,"Selected items"),ps(),ps()),2&t){var n=Is();Po(1),tl(" ",n.selection.selected.length," ")}}function rR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){return en(n),Is(2).copyToClipboard()}),fs(1,"i",72),Qs(2,"content_copy"),ps(),fs(3,"uds-translate"),Qs(4,"Copy"),ps(),ps()}}function oR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){en(n);var t=Is().item,e=Is();return e.detailAction.emit({param:t,table:e})}),fs(1,"i",72),Qs(2,"subdirectory_arrow_right"),ps(),fs(3,"uds-translate"),Qs(4,"Detail"),ps(),ps()}}function aR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){en(n);var t=Is(2);return t.emitIfSelection(t.editAction)}),fs(1,"i",72),Qs(2,"edit"),ps(),fs(3,"uds-translate"),Qs(4,"Edit"),ps(),ps()}}function sR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){return en(n),Is(2).permissions()}),fs(1,"i",72),Qs(2,"perm_identity"),ps(),fs(3,"uds-translate"),Qs(4,"Permissions"),ps(),ps()}}function lR(t,e){if(1&t){var n=_s();fs(0,"button",73),ks("click",function(){var t=en(n).$implicit;return Is(2).emitCustom(t)}),ps()}if(2&t){var i=e.$implicit;hs("disabled",Is(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function uR(t,e){if(1&t){var n=_s();fs(0,"button",74),ks("click",function(){en(n);var t=Is(2);return t.emitIfSelection(t.deleteAction)}),fs(1,"i",72),Qs(2,"delete_forever"),ps(),fs(3,"uds-translate"),Qs(4,"Delete"),ps(),ps()}}function cR(t,e){if(1&t){var n=_s();fs(0,"button",73),ks("click",function(){var t=en(n).$implicit;return Is(3).emitCustom(t)}),ps()}if(2&t){var i=e.$implicit;hs("disabled",Is(3).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function hR(t,e){if(1&t&&(ms(0),gs(1,"mat-divider"),ls(2,cR,1,2,"button",69),vs()),2&t){var n=Is(2);Po(2),hs("ngForOf",n.getCustomAccelerators())}}function dR(t,e){if(1&t&&(ls(0,rR,5,0,"button",68),ls(1,oR,5,0,"button",68),ls(2,aR,5,0,"button",68),ls(3,sR,5,0,"button",68),ls(4,lR,1,2,"button",69),ls(5,uR,5,0,"button",70),ls(6,hR,3,1,"ng-container",8)),2&t){var n=Is();hs("ngIf",!0===n.allowCopy),Po(1),hs("ngIf",n.detailAction.observers.length>0),Po(1),hs("ngIf",n.editAction.observers.length>0),Po(1),hs("ngIf",!0===n.hasPermissions),Po(1),hs("ngForOf",n.getCustomMenu()),Po(1),hs("ngIf",n.deleteAction.observers.length>0),Po(1),hs("ngIf",n.hasAccelerators)}}var fR=function(){return[5,10,25,100,1e3]},pR=function(){function t(t,e){this.api=t,this.clipboard=e,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new Nu,this.rowSelected=new Nu,this.newAction=new Nu,this.editAction=new Nu,this.deleteAction=new Nu,this.customButtonAction=new Nu,this.detailAction=new Nu,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new vP([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach(function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw Error()})}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new _y(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&II.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==II.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(e){t.rest.tableInfo().subscribe(function(n){t.initialize(n,e)})})},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach(function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))}),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach(function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?WA.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}}),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(e){t.loading=!1,void 0!==t.onItem&&e.forEach(function(e){t.onItem(e)}),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1},function(e){t.loading=!1}))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==YA.ONLY_MENU&&t.type!==YA.ACCELERATOR}):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==YA.ACCELERATOR}):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type===YA.ACCELERATOR}):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case WA.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case WA.DATE:n=aO("SHORT_DATE_FORMAT",n);break;case WA.DATETIME:n=aO("SHORT_DATETIME_FORMAT",n);break;case WA.TIME:n=aO("TIME_FORMAT",n);break;case WA.DATETIMESEC:n=aO("SHORT_DATE_FORMAT",n," H:i:s");break;case WA.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case WA.CALLBACK:break;case WA.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case YA.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case YA.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===YA.ALWAYS)&&(t.type===YA.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=0,r=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);i/,"")),this.clipValue=""+i,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())},t.prototype.selectElement=function(t,e){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(i,r){if(i[t]===e){var o=Math.floor(r/n.paginator.pageSize);n.selection.select(i),n.paginator.pageIndex=o,n.paginator.page.next({pageIndex:o,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},t.prototype.export=function(){KP(this)},t.prototype.permissions=function(){this.selection.selected.length&&qP.launch(this.api,this.rest,this.selection.selected[0])},t.prototype.keyDown=function(t){switch(t.keyCode){case By:this.paginator.firstPage(),t.preventDefault();break;case Vy:this.paginator.lastPage(),t.preventDefault();break;case Gy:this.paginator.nextPage(),t.preventDefault();break;case Hy:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(QP))},t.\u0275cmp=ce({type:t,selectors:[["uds-table"]],viewQuery:function(t,e){if(1&t&&(Zu(IE,7),Zu(sD,7),Zu(pD,7)),2&t){var n=void 0;Xu(n=$u())&&(e.contextMenu=n.first),Xu(n=$u())&&(e.paginator=n.first),Xu(n=$u())&&(e.sort=n.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,e){if(1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"div",2),ls(3,OE,1,1,"img",3),Qs(4),ps(),fs(5,"div",4),Qs(6),ps(),ps(),fs(7,"div",5),fs(8,"div",6),fs(9,"div",7),ls(10,FE,3,2,"ng-container",8),ls(11,zE,7,1,"ng-container",8),ls(12,VE,7,1,"ng-container",8),ls(13,HE,2,1,"ng-container",8),ls(14,jE,7,0,"ng-container",8),ls(15,GE,7,1,"ng-container",8),ps(),fs(16,"div",9),fs(17,"div",10),fs(18,"uds-translate"),Qs(19,"Filter"),ps(),Qs(20,"\xa0 "),fs(21,"mat-form-field"),fs(22,"input",11),ks("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),ps(),ls(23,UE,3,0,"button",12),ps(),ps(),fs(24,"div",13),gs(25,"mat-paginator",14),ps(),fs(26,"div",15),fs(27,"a",16),ks("click",function(){return e.overview()}),fs(28,"i",17),Qs(29,"autorenew"),ps(),ps(),ps(),ps(),ps(),fs(30,"div",18),ks("keydown",function(t){return e.keyDown(t)}),fs(31,"mat-table",19),ks("matSortChange",function(t){return e.sortChanged(t)}),ls(32,ZE,3,0,"ng-container",20),ms(33,21),ls(34,KE,1,0,"mat-header-cell",22),ls(35,$E,4,0,"mat-cell",23),vs(),ls(36,tR,3,1,"ng-container",24),ls(37,eR,1,0,"mat-header-row",25),ls(38,nR,1,1,"mat-row",26),ps(),fs(39,"div",27),fs(40,"div",28),gs(41,"mat-progress-spinner",29),ps(),ps(),ps(),fs(42,"div",30),Qs(43," \xa0 "),ls(44,iR,4,1,"div",31),ps(),ps(),gs(45,"div",32,33),fs(47,"mat-menu",null,34),ls(49,dR,7,7,"ng-template",35),ps(),ps()),2&t){var n=us(48);Po(3),hs("ngIf",void 0!==e.icon),Po(1),tl(" ",e.title," "),Po(2),tl(" ",e.subtitle," "),Po(4),hs("ngIf",e.newAction.observers.length>0),Po(1),hs("ngIf",e.editAction.observers.length>0),Po(1),hs("ngIf",!0===e.hasPermissions),Po(1),hs("ngIf",e.hasCustomButtons),Po(1),hs("ngIf",!0===e.allowExport),Po(1),hs("ngIf",e.deleteAction.observers.length>0),Po(7),hs("ngModel",e.filterText),Po(1),hs("ngIf",e.filterText),Po(2),hs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Cu(27,fR))("showFirstLastButtons",!0),Po(6),hs("dataSource",e.dataSource),Po(1),hs("ngIf",e.hasButtons),Po(4),hs("ngForOf",e.columns),Po(1),hs("matHeaderRowDef",e.displayedColumns),Po(1),hs("matRowDefColumns",e.displayedColumns),Po(1),hs("hidden",!e.loading),Po(5),hs("ngIf",e.hasButtons&&e.selection.selected.length>0),Po(1),Bs("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),hs("matMenuTriggerFor",n)}},directives:[Dh,QC,gT,TP,fS,BS,gM,sD,KC,oP,pD,lP,sP,aP,Oh,hP,dP,rE,wE,yE,hE,pE,ZC,cT,uP,cP,bD,fP,pP,Ah,SE],pipes:[Uh,AE],styles:[".mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) /20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) /20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-2[_ngcontent-%COMP%], .mat-body-strong[_ngcontent-%COMP%]{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-caption[_ngcontent-%COMP%], .mat-small[_ngcontent-%COMP%]{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%], .mat-card[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-content[_ngcontent-%COMP%], .mat-card-subtitle[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-footer[_ngcontent-%COMP%], .mat-grid-tile-header[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%], .mat-select[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%], .mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-stepper-horizontal[_ngcontent-%COMP%], .mat-stepper-vertical[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:400}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%], .mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%], .mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-nested-tree-node[_ngcontent-%COMP%], .mat-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%], .cdk-overlay-container[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%], .cdk-overlay-pane[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@-webkit-keyframes cdk-text-field-autofill-start{\n }@keyframes cdk-text-field-autofill-start{\n }@-webkit-keyframes cdk-text-field-autofill-end{\n }@keyframes cdk-text-field-autofill-end{\n }.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:blue}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:blue}"]}),t}(),gR='pause'+django.gettext("Maintenance")+"",mR='pause'+django.gettext("Exit maintenance mode")+"",vR='pause'+django.gettext("Enter maintenance mode")+"",yR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:gR,type:YA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe(function(i){i&&e.rest.providers.maintenance(n.id).subscribe(function(){t.table.overview()})})},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?gR:e.selection.selected[0].maintenance_mode?mR:vR},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("customButtonAction",function(t){return e.onMaintenance(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("rowSelected",function(t){return e.onRowSelect(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),_R=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?WA.ALPHANUMERIC:t.type},e})}return t.prototype.get=function(t){return Of},t.prototype.getLogs=function(t){return Of},t.prototype.overview=function(t){return"function"==typeof this.data?this.data():Ed([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return Of},t.prototype.create=function(t){return Of},t.prototype.save=function(t,e){return Of},t.prototype.test=function(t,e){return Of},t.prototype.delete=function(t){return Of},t.prototype.permision=function(){return II.ALL},t.prototype.getPermissions=function(t){return Of},t.prototype.addPermission=function(t,e,n,i){return Of},t.prototype.revokePermission=function(t){return Of},t.prototype.types=function(){return Ed([])},t.prototype.gui=function(t){return Of},t.prototype.callback=function(t,e){return Of},t.prototype.tableInfo=function(){return Ed({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return Of},t}();function bR(t,e){if(1&t){var n=_s();fs(0,"button",24),ks("click",function(){en(n);var t=Is();return t.filterText="",t.applyFilter()}),fs(1,"i",8),Qs(2,"close"),ps(),ps()}}function xR(t,e){if(1&t&&(fs(0,"mat-header-cell",28),Qs(1),ps()),2&t){var n=Is().$implicit;Po(1),Js(n)}}function wR(t,e){if(1&t&&(fs(0,"mat-cell"),gs(1,"div",29),ps()),2&t){var n=e.$implicit,i=Is().$implicit,r=Is();Po(1),hs("innerHtml",r.getRowColumn(n,i),Ir)}}function kR(t,e){1&t&&(ms(0,25),ls(1,xR,2,1,"mat-header-cell",26),ls(2,wR,2,1,"mat-cell",27),vs()),2&t&&hs("matColumnDef",e.$implicit)}function CR(t,e){1&t&&gs(0,"mat-header-row")}function SR(t,e){if(1&t&&gs(0,"mat-row",30),2&t){var n=e.$implicit;hs("ngClass",Is().rowClass(n))}}var MR=function(){return[5,10,25,100,1e3]},AR=function(){function t(t){this.api=t,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new vP([]),this.selection=new _y}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(e){t.columns.push({name:e,title:e,type:"date"===e?WA.DATETIMESEC:WA.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe(function(e){t.dataSource.data=e})},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=aO("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){KP(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case By:this.paginator.firstPage(),t.preventDefault();break;case Vy:this.paginator.lastPage(),t.preventDefault();break;case Gy:this.paginator.nextPage(),t.preventDefault();break;case Hy:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){if(1&t&&(Zu(sD,7),Zu(pD,7)),2&t){var n=void 0;Xu(n=$u())&&(e.paginator=n.first),Xu(n=$u())&&(e.sort=n.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"div",2),gs(3,"img",3),Qs(4," \xa0"),fs(5,"uds-translate"),Qs(6,"Logs"),ps(),ps(),ps(),fs(7,"div",4),fs(8,"div",5),fs(9,"div",6),fs(10,"a",7),ks("click",function(){return e.export()}),fs(11,"i",8),Qs(12,"import_export"),ps(),fs(13,"span",9),fs(14,"uds-translate"),Qs(15,"Export"),ps(),ps(),ps(),ps(),fs(16,"div",10),fs(17,"div",11),fs(18,"uds-translate"),Qs(19,"Filter"),ps(),Qs(20,"\xa0 "),fs(21,"mat-form-field"),fs(22,"input",12),ks("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),ps(),ls(23,bR,3,0,"button",13),ps(),ps(),fs(24,"div",14),gs(25,"mat-paginator",15),ps(),fs(26,"div",16),fs(27,"a",17),ks("click",function(){return e.overview()}),fs(28,"i",8),Qs(29,"autorenew"),ps(),ps(),ps(),ps(),ps(),fs(30,"div",18),ks("keydown",function(t){return e.keyDown(t)}),fs(31,"mat-table",19),ks("matSortChange",function(t){return e.sortChanged(t)}),ls(32,kR,3,1,"ng-container",20),ls(33,CR,1,0,"mat-header-row",21),ls(34,SR,1,1,"mat-row",22),ps(),ps(),gs(35,"div",23),ps(),ps()),2&t&&(Po(3),hs("src",e.api.staticURL("admin/img/icons/logs.png"),Or),Po(19),hs("ngModel",e.filterText),Po(1),hs("ngIf",e.filterText),Po(2),hs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Cu(11,MR))("showFirstLastButtons",!0),Po(6),hs("dataSource",e.dataSource),Po(1),hs("ngForOf",e.displayedColumns),Po(1),hs("matHeaderRowDef",e.displayedColumns),Po(1),hs("matRowDefColumns",e.displayedColumns))},directives:[QC,KC,gT,TP,fS,BS,gM,Dh,sD,oP,pD,Oh,hP,dP,ZC,cT,lP,sP,aP,uP,bD,cP,fP,pP,Ah],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function IR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services pools"),ps())}function OR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}var TR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],DR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[iI.getGotoButton(ZA,"id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new _R(django.gettext("Service pools"),function(){return t.services.invoke(t.service.id+"/servicesPools")},TR,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Information for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"mat-tab-group"),fs(6,"mat-tab"),ls(7,IR,2,0,"ng-template",1),gs(8,"uds-table",2),ps(),fs(9,"mat-tab"),ls(10,OR,2,0,"ng-template",1),fs(11,"div",3),gs(12,"uds-logs-table",4),ps(),ps(),ps(),ps(),fs(13,"mat-dialog-actions"),fs(14,"button",5),fs(15,"uds-translate"),Qs(16,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.service.name,"\n"),Po(5),hs("rest",e.servicePools)("customButtons",e.customButtons)("pageSize",6),Po(4),hs("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[zC,QC,VC,hA,eA,QM,pR,AR,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function PR(t,e){if(1&t&&(fs(0,"div",3),gs(1,"div",4),gs(2,"div",5),ps()),2&t){var n=e.$implicit;Po(1),hs("innerHTML",n.gui.label,Ir),Po(1),hs("innerHTML",n.value,Ir)}}var ER=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter(function(t){return t.gui.type!==oS.HIDDEN});e.forEach(function(e){var n=t.value[e.name];switch(e.gui.type){case oS.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case oS.PASSWORD:e.value=django.gettext("(hidden)");break;case oS.CHOICE:var i=aS.locateChoice(n,e);e.value=i.text;break;case oS.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case oS.IMAGECHOICE:i=aS.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")}),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),ls(2,PR,3,2,"div",2),ps(),gs(3,"div"),ps()),2&t&&(Po(2),hs("ngForOf",e.displayables))},directives:[Oh],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function RR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function LR(t,e){if(1&t&&gs(0,"uds-information",15),2&t){var n=Is(2);hs("value",n.provider)("gui",n.gui)}}function NR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services"),ps())}function FR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Usage"),ps())}function zR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function VR(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,RR,2,0,"ng-template",9),fs(5,"div",10),ls(6,LR,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,NR,2,0,"ng-template",9),fs(9,"div",10),fs(10,"uds-table",12),ks("newAction",function(t){return en(n),Is().onNewService(t)})("editAction",function(t){return en(n),Is().onEditService(t)})("deleteAction",function(t){return en(n),Is().onDeleteService(t)})("customButtonAction",function(t){return en(n),Is().onInformation(t)})("loaded",function(t){return en(n),Is().onLoad(t)}),ps(),ps(),ps(),fs(11,"mat-tab"),ls(12,FR,2,0,"ng-template",9),fs(13,"div",10),fs(14,"uds-table",13),ks("deleteAction",function(t){return en(n),Is().onDeleteUsage(t)}),ps(),ps(),ps(),fs(15,"mat-tab"),ls(16,zR,2,0,"ng-template",9),fs(17,"div",10),gs(18,"uds-logs-table",14),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("selectedIndex",i.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",i.provider&&i.gui),Po(4),hs("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-services"+i.provider.id),Po(4),hs("rest",i.usage)("multiSelect",!0)("allowExport",!0)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-usage"+i.provider.id),Po(4),hs("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var BR=function(t){return["/providers",t]},HR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:YA.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe(function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe(function(e){t.gui=e})})},t.prototype.onInformation=function(t){DR.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach(function(t){t.id===e&&n.selection.select(t)})}}},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,VR,19,17,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,BR,e.services.parentId)),Po(4),hs("src",e.api.staticURL("admin/img/icons/services.png"),Or),Po(1),tl(" \xa0",null==e.provider?null:e.provider.name," "),Po(1),hs("ngIf",null!==e.provider))},directives:[qm,Dh,hA,eA,QM,pR,AR,QC,ER],styles:[""]}),t}(),jR=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),GR=["panel"];function UR(t,e){if(1&t&&(fs(0,"div",0,1),Ds(2),ps()),2&t){var n=e.id,i=Is();hs("id",i.id)("ngClass",i._classList),as("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var WR=["*"],YR=0,qR=function t(e,n){s(this,t),this.source=e,this.option=n},XR=Ek(function(){return function t(){s(this,t)}}()),ZR=new _i("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),KR=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this))._changeDetectorRef=t,a._elementRef=i,a._activeOptionChanges=A.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new Nu,a.opened=new Nu,a.closed=new Nu,a.optionActivated=new Nu,a._classList={},a.id="mat-autocomplete-".concat(YR++),a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return a(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=vv(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?kv(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Z_(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new qR(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),n}(XR);return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(Al),cs(ZR),cs(oy))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&(Zu(ru,7),Zu(GR,5)),2&t&&(Xu(n=$u())&&(e.template=n.first),Xu(n=$u())&&(e.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[qa]}),t}(),$R=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return n}(KR);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,pC,5),Ku(n,yC,5)),2&t&&(Xu(i=$u())&&(e.optionGroups=i),Xu(i=$u())&&(e.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_l([{provide:cC,useExisting:t}]),qa],ngContentSelectors:WR,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Ts(),ls(0,UR,3,4,"ng-template"))},directives:[Ah],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t}(),QR=new _i("mat-autocomplete-scroll-strategy"),JR={provide:QR,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},tL={provide:cS,useExisting:St(function(){return nL}),multi:!0},eL=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){var f=this;s(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=u,this._document=c,this._viewportRuler=h,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Df(function(){return f.autocomplete&&f.autocomplete.options?dt.apply(void 0,b(f.autocomplete.options.map(function(t){return t.onSelectionChange}))):f._zone.onStable.pipe(Nf(1),Pf(function(){return f.optionSelections}))}),this._scrollStrategy=a}return a(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=vv(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return dt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ld(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ld(function(){return t._overlayAttached})):Ed()).pipe(q(function(t){return t instanceof mC?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return dt(Cv(this._document,"click"),Cv(this._document,"auxclick"),Cv(this._document,"touchend")).pipe(Ld(function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==Fy||Wy(t)||t.preventDefault(),this.activeOption&&e===Ny&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=e===jy||e===Uy;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this;return dt(this._zone.onStable.pipe(Nf(1)),this.autocomplete.options.changes.pipe(rp(function(){return t._positionStrategy.reapplyLastPosition()}),_P(0))).pipe(Pf(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),Nf(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!hy(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Ay(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(t){(t.keyCode===Fy&&!Wy(t)||t.keyCode===jy&&Wy(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&n&&n.updateSize({width:e._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new t_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];e="above"===this.position?r:"below"===this.position?n:[].concat(n,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,n=_C(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){var i=e.options.toArray()[t];if(i){var r=i._getHostElement(),o=bC(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(b_),cs(cu),cs(kc),cs(Jl),cs(QR),cs(py,8),cs(pT,9),cs(oh,8),cs(wy),cs(ZR,8))},t.\u0275dir=me({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Te]}),t}(),nL=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return n}(eL);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&ks("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&as("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_l([tL]),qa]}),t}(),iL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[JR],imports:[[M_,xC,Tk,Yh],ky,xC,Tk]}),t}();function rL(t,e){if(1&t&&(fs(0,"div"),fs(1,"uds-translate"),Qs(2,"Edit user"),ps(),Qs(3),ps()),2&t){var n=Is();Po(3),tl(" ",n.user.name," ")}}function oL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New user"),ps())}function aL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",19),ks("ngModelChange",function(t){return en(n),Is().user.name=t}),ps(),ps()}if(2&t){var i=Is();Po(2),tl(" ",i.authenticator.type_info.userNameLabel," "),Po(1),hs("ngModel",i.user.name)("disabled",i.user.id)}}function sL(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),el(" ",n.id," (",n.name,") ")}}function lL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",20),ks("ngModelChange",function(t){return en(n),Is().user.name=t})("input",function(t){return en(n),Is().filterUser(t)}),ps(),fs(4,"mat-autocomplete",null,21),ls(6,sL,2,3,"mat-option",16),ps(),ps()}if(2&t){var i=us(5),r=Is();Po(2),tl(" ",r.authenticator.type_info.userNameLabel," "),Po(1),hs("ngModel",r.user.name)("matAutocomplete",i),Po(3),hs("ngForOf",r.users)}}function uL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",23),ks("ngModelChange",function(t){return en(n),Is().user.password=t}),ps(),ps()}if(2&t){var i=Is();Po(2),tl(" ",i.authenticator.type_info.passwordLabel," "),Po(1),hs("ngModel",i.user.password)}}function cL(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var hL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(e){t.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},function(e){t.dialogRef.close()})},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe(function(t){e.users.length=0,t.forEach(function(t){e.users.push(t)})})},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,rL,4,1,"div",1),ls(2,oL,2,0,"ng-template",null,2,ec),ps(),fs(4,"mat-dialog-content"),fs(5,"div",3),ls(6,aL,4,3,"mat-form-field",4),ls(7,lL,7,4,"mat-form-field",4),fs(8,"mat-form-field"),fs(9,"mat-label"),fs(10,"uds-translate"),Qs(11,"Real name"),ps(),ps(),fs(12,"input",5),ks("ngModelChange",function(t){return e.user.real_name=t}),ps(),ps(),fs(13,"mat-form-field"),fs(14,"mat-label"),fs(15,"uds-translate"),Qs(16,"Comments"),ps(),ps(),fs(17,"input",6),ks("ngModelChange",function(t){return e.user.comments=t}),ps(),ps(),fs(18,"mat-form-field"),fs(19,"mat-label"),fs(20,"uds-translate"),Qs(21,"State"),ps(),ps(),fs(22,"mat-select",7),ks("ngModelChange",function(t){return e.user.state=t}),fs(23,"mat-option",8),fs(24,"uds-translate"),Qs(25,"Enabled"),ps(),ps(),fs(26,"mat-option",9),fs(27,"uds-translate"),Qs(28,"Disabled"),ps(),ps(),fs(29,"mat-option",10),fs(30,"uds-translate"),Qs(31,"Blocked"),ps(),ps(),ps(),ps(),fs(32,"mat-form-field"),fs(33,"mat-label"),fs(34,"uds-translate"),Qs(35,"Role"),ps(),ps(),fs(36,"mat-select",11),ks("ngModelChange",function(t){return e.user.role=t})("valueChange",function(t){return e.roleChanged(t)}),fs(37,"mat-option",12),fs(38,"uds-translate"),Qs(39,"Admin"),ps(),ps(),fs(40,"mat-option",13),fs(41,"uds-translate"),Qs(42,"Staff member"),ps(),ps(),fs(43,"mat-option",14),fs(44,"uds-translate"),Qs(45,"User"),ps(),ps(),ps(),ps(),ls(46,uL,4,2,"mat-form-field",4),fs(47,"mat-form-field"),fs(48,"mat-label"),fs(49,"uds-translate"),Qs(50,"Groups"),ps(),ps(),fs(51,"mat-select",15),ks("ngModelChange",function(t){return e.user.groups=t}),ls(52,cL,2,2,"mat-option",16),ps(),ps(),ps(),ps(),fs(53,"mat-dialog-actions"),fs(54,"button",17),fs(55,"uds-translate"),Qs(56,"Cancel"),ps(),ps(),fs(57,"button",18),ks("click",function(){return e.save()}),fs(58,"uds-translate"),Qs(59,"Ok"),ps(),ps(),ps()),2&t){var n=us(3);Po(1),hs("ngIf",e.user.id)("ngIfElse",n),Po(5),hs("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Po(1),hs("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Po(5),hs("ngModel",e.user.real_name),Po(5),hs("ngModel",e.user.comments),Po(5),hs("ngModel",e.user.state),Po(14),hs("ngModel",e.user.role),Po(10),hs("ngIf",e.authenticator.type_info.needsPassword),Po(5),hs("ngModel",e.user.groups),Po(1),hs("ngForOf",e.groups)}},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,FT,yC,Oh,BC,ZC,FC,nL,$R],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),dL=["thumbContainer"],fL=["toggleBar"],pL=["input"],gL=function(t){return{enterDuration:t}},mL=["*"],vL=new _i("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),yL=0,_L={provide:cS,useExisting:St(function(){return wL}),multi:!0},bL=function t(e,n){s(this,t),this.source=e,this.checked=n},xL=Rk(Pk(Ek(Dk(function(){return function t(e){s(this,t),this._elementRef=e}}())))),wL=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this,t))._focusMonitor=i,u._changeDetectorRef=r,u.defaults=a,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++yL),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new Nu,u.toggleChange=new Nu,u.tabIndex=parseInt(o)||0,u.color=u.defaultColor=a.color||"accent",u._noopAnimations="NoopAnimations"===l,u}return a(n,[{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=vv(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new bL(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(xL);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(mb),cs(Jl),mi("tabindex"),cs(vL),cs(yk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Zu(dL,5),Zu(fL,5),Zu(pL,5)),2&t&&(Xu(n=$u())&&(e._thumbEl=n.first),Xu(n=$u())&&(e._thumbBarEl=n.first),Xu(n=$u())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(nl("id",e.id),as("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Hs("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[_l([_L]),qa],ngContentSelectors:mL,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Ts(),fs(0,"label",0,1),fs(2,"div",2,3),fs(4,"input",4,5),ks("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),ps(),fs(6,"div",6,7),gs(8,"div",8),fs(9,"div",9),gs(10,"div",10),ps(),ps(),ps(),fs(11,"span",11,12),ks("cdkObserveContent",function(){return e._onLabelTextChange()}),fs(13,"span",13),Qs(14,"\xa0"),ps(),Ds(15),ps(),ps()),2&t){var n=us(1),i=us(12);as("for",e.inputId),Po(2),Hs("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Po(2),hs("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),as("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Po(5),hs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Su(17,gL,e._noopAnimations?0:150))}},directives:[aC,N_],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),kL={provide:mS,useExisting:St(function(){return CL}),multi:!0},CL=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(MM);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[_l([kL]),qa]}),t}(),SL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),ML=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[SL,sC,Tk,F_],SL,Tk]}),t}();function AL(t,e){if(1&t&&(fs(0,"div"),fs(1,"uds-translate"),Qs(2,"Edit group"),ps(),Qs(3),ps()),2&t){var n=Is();Po(3),tl(" ",n.group.name," ")}}function IL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New group"),ps())}function OL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",13),ks("ngModelChange",function(t){return en(n),Is(2).group.name=t}),ps(),ps()}if(2&t){var i=Is(2);Po(2),tl(" ",i.authenticator.type_info.groupNameLabel," "),Po(1),hs("ngModel",i.group.name)("disabled",i.group.id)}}function TL(t,e){if(1&t&&(fs(0,"mat-option",17),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),el(" ",n.id," (",n.name,") ")}}function DL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",14),ks("ngModelChange",function(t){return en(n),Is(2).group.name=t})("input",function(t){return en(n),Is(2).filterGroup(t)}),ps(),fs(4,"mat-autocomplete",null,15),ls(6,TL,2,3,"mat-option",16),ps(),ps()}if(2&t){var i=us(5),r=Is(2);Po(2),tl(" ",r.authenticator.type_info.groupNameLabel," "),Po(1),hs("ngModel",r.group.name)("matAutocomplete",i),Po(3),hs("ngForOf",r.fltrGroup)}}function PL(t,e){if(1&t&&(ms(0),ls(1,OL,4,3,"mat-form-field",12),ls(2,DL,7,4,"mat-form-field",12),vs()),2&t){var n=Is();Po(1),hs("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Po(1),hs("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function EL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),fs(2,"uds-translate"),Qs(3,"Meta group name"),ps(),ps(),fs(4,"input",13),ks("ngModelChange",function(t){return en(n),Is().group.name=t}),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.group.name)("disabled",i.group.id)}}function RL(t,e){if(1&t&&(fs(0,"mat-option",17),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function LL(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Service Pools"),ps(),ps(),fs(5,"mat-select",18),ks("ngModelChange",function(t){return en(n),Is().group.pools=t}),ls(6,RL,2,2,"mat-option",16),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.group.pools),Po(1),hs("ngForOf",i.servicePools)}}function NL(t,e){if(1&t&&(fs(0,"mat-option",17),Qs(1),ps()),2&t){var n=Is().$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function FL(t,e){if(1&t&&(ms(0),ls(1,NL,2,2,"mat-option",22),vs()),2&t){var n=e.$implicit;Po(1),hs("ngIf","group"===n.type)}}function zL(t,e){if(1&t){var n=_s();fs(0,"div",19),fs(1,"span",20),fs(2,"uds-translate"),Qs(3,"Match mode"),ps(),ps(),fs(4,"mat-slide-toggle",6),ks("ngModelChange",function(t){return en(n),Is().group.meta_if_any=t}),Qs(5),ps(),ps(),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Selected Groups"),ps(),ps(),fs(10,"mat-select",18),ks("ngModelChange",function(t){return en(n),Is().group.groups=t}),ls(11,FL,2,1,"ng-container",21),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.group.meta_if_any),Po(1),tl(" ",i.getMatchValue()," "),Po(5),hs("ngModel",i.group.groups),Po(1),hs("ngForOf",i.groups)}}var VL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe(function(e){t.group=e},function(e){t.dialogRef.close()}),"meta"===this.group.type?e.summary().subscribe(function(e){return t.groups=e}):this.rest.servicesPools.summary().subscribe(function(e){return t.servicePools=e})},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe(function(t){e.fltrGroup.length=0,t.forEach(function(t){e.fltrGroup.push(t)})})},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,AL,4,1,"div",1),ls(2,IL,2,0,"ng-template",null,2,ec),ps(),fs(4,"mat-dialog-content"),fs(5,"div",3),ls(6,PL,3,2,"ng-container",1),ls(7,EL,5,2,"ng-template",null,4,ec),fs(9,"mat-form-field"),fs(10,"mat-label"),fs(11,"uds-translate"),Qs(12,"Comments"),ps(),ps(),fs(13,"input",5),ks("ngModelChange",function(t){return e.group.comments=t}),ps(),ps(),fs(14,"mat-form-field"),fs(15,"mat-label"),fs(16,"uds-translate"),Qs(17,"State"),ps(),ps(),fs(18,"mat-select",6),ks("ngModelChange",function(t){return e.group.state=t}),fs(19,"mat-option",7),fs(20,"uds-translate"),Qs(21,"Enabled"),ps(),ps(),fs(22,"mat-option",8),fs(23,"uds-translate"),Qs(24,"Disabled"),ps(),ps(),ps(),ps(),ls(25,LL,7,2,"ng-container",1),ls(26,zL,12,4,"ng-template",null,9,ec),ps(),ps(),fs(28,"mat-dialog-actions"),fs(29,"button",10),fs(30,"uds-translate"),Qs(31,"Cancel"),ps(),ps(),fs(32,"button",11),ks("click",function(){return e.save()}),fs(33,"uds-translate"),Qs(34,"Ok"),ps(),ps(),ps()),2&t){var n=us(3),i=us(8),r=us(27);Po(1),hs("ngIf",e.group.id)("ngIfElse",n),Po(5),hs("ngIf","group"===e.group.type)("ngIfElse",i),Po(7),hs("ngModel",e.group.comments),Po(5),hs("ngModel",e.group.state),Po(7),hs("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,FT,yC,BC,ZC,FC,nL,$R,Oh,wL],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function BL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function HL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,BL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.group)("pageSize",6)}}function jL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services Pools"),ps())}function GL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,jL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.servicesPools)("pageSize",6)}}function UL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Assigned Services"),ps())}function WL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,UL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.userServices)("pageSize",6)}}var YL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],qL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],XL=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],ZL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(e){t.group=new _R(django.gettext("Groups"),function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(q(function(t){return t.filter(function(t){return e.groups.includes(t.id)})}))},YL,t.user.id+"infogrp"),t.servicesPools=new _R(django.gettext("Services Pools"),function(){return t.users.invoke(t.user.id+"/servicesPools")},qL,t.user.id+"infopool"),t.userServices=new _R(django.gettext("Assigned services"),function(){return t.users.invoke(t.user.id+"/userServices").pipe(q(function(e){return e.map(function(e){return e.in_use=t.api.yesno(e.in_use),e})}))},XL,t.user.id+"userservpool")})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Information for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"mat-tab-group"),ls(6,HL,3,2,"mat-tab",1),ls(7,GL,3,2,"mat-tab",1),ls(8,WL,3,2,"mat-tab",1),ps(),ps(),fs(9,"mat-dialog-actions"),fs(10,"button",2),fs(11,"uds-translate"),Qs(12,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.user.name,"\n"),Po(3),hs("ngIf",e.group),Po(1),hs("ngIf",e.servicesPools),Po(1),hs("ngIf",e.userServices))},directives:[zC,QC,VC,hA,Dh,BC,ZC,FC,eA,QM,pR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function KL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services Pools"),ps())}function $L(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,KL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.servicesPools)("pageSize",6)}}function QL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Users"),ps())}function JL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,QL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.users)("pageSize",6)}}function tN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function eN(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,tN,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.groups)("pageSize",6)}}var nN=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],iN=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:WA.DATETIME}],rN=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],oN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new _R(django.gettext("Service pools"),function(){return e.invoke(t.data.group.id+"/servicesPools")},nN,this.data.group.id+"infopls"),this.users=new _R(django.gettext("Users"),function(){return e.invoke(t.data.group.id+"/users").pipe(q(function(t){return t.map(function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t})}))},iN,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new _R(django.gettext("Groups"),function(){return e.overview().pipe(q(function(e){return e.filter(function(e){return t.data.group.groups.includes(e.id)})}))},rN,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Information for"),ps(),ps(),fs(3,"mat-dialog-content"),fs(4,"mat-tab-group"),ls(5,$L,3,2,"mat-tab",1),ls(6,JL,3,2,"mat-tab",1),ls(7,eN,3,2,"mat-tab",1),ps(),ps(),fs(8,"mat-dialog-actions"),fs(9,"button",2),fs(10,"uds-translate"),Qs(11,"Ok"),ps(),ps(),ps()),2&t&&(Po(5),hs("ngIf",e.servicesPools),Po(1),hs("ngIf",e.users),Po(1),hs("ngIf",e.groups))},directives:[zC,QC,VC,hA,Dh,BC,ZC,FC,eA,QM,pR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function aN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function sN(t,e){if(1&t&&gs(0,"uds-information",16),2&t){var n=Is(2);hs("value",n.authenticator)("gui",n.gui)}}function lN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Users"),ps())}function uN(t,e){if(1&t){var n=_s();fs(0,"uds-table",17),ks("loaded",function(t){return en(n),Is(2).onLoad(t)})("newAction",function(t){return en(n),Is(2).onNewUser(t)})("editAction",function(t){return en(n),Is(2).onEditUser(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteUser(t)})("customButtonAction",function(t){return en(n),Is(2).onUserInformation(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function cN(t,e){if(1&t){var n=_s();fs(0,"uds-table",18),ks("loaded",function(t){return en(n),Is(2).onLoad(t)})("editAction",function(t){return en(n),Is(2).onEditUser(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteUser(t)})("customButtonAction",function(t){return en(n),Is(2).onUserInformation(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function hN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function dN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function fN(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,aN,2,0,"ng-template",9),fs(5,"div",10),ls(6,sN,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,lN,2,0,"ng-template",9),fs(9,"div",10),ls(10,uN,1,6,"uds-table",12),ls(11,cN,1,6,"uds-table",13),ps(),ps(),fs(12,"mat-tab"),ls(13,hN,2,0,"ng-template",9),fs(14,"div",10),fs(15,"uds-table",14),ks("loaded",function(t){return en(n),Is().onLoad(t)})("newAction",function(t){return en(n),Is().onNewGroup(t)})("editAction",function(t){return en(n),Is().onEditGroup(t)})("deleteAction",function(t){return en(n),Is().onDeleteGroup(t)})("customButtonAction",function(t){return en(n),Is().onGroupInformation(t)}),ps(),ps(),ps(),fs(16,"mat-tab"),ls(17,dN,2,0,"ng-template",9),fs(18,"div",10),gs(19,"uds-logs-table",15),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("selectedIndex",i.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",i.authenticator&&i.gui),Po(4),hs("ngIf",i.authenticator.type_info.canCreateUsers),Po(1),hs("ngIf",!i.authenticator.type_info.canCreateUsers),Po(4),hs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var pN=function(t){return["/authenticators",t]},gN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:YA.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe(function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe(function(e){t.gui=e})})},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){hL.launch(this.api,this.authenticator).subscribe(function(e){return t.table.overview()})},t.prototype.onEditUser=function(t){hL.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){VL.launch(this.api,this.authenticator,t.param.type).subscribe(function(e){return t.table.overview()})},t.prototype.onEditGroup=function(t){VL.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){ZL.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){oN.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,fN,20,14,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,pN,e.authenticator?e.authenticator.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/services.png"),Or),Po(1),tl(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Po(1),hs("ngIf",e.authenticator))},directives:[qm,Dh,hA,eA,QM,pR,AR,QC,ER],styles:[""]}),t}(),mN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),vN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map(function(t){return t.id}).join(", ")}catch(e){t.allowed_oss=""}},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),yN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),_N=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),bN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[iI.getGotoButton(qA,"provider_id"),iI.getGotoButton(XA,"provider_id","service_id"),iI.getGotoButton(JA,"osmanager_id"),iI.getGotoButton(eI,"pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach(function(e){return t.all[e].gui.rdonly=!0});this.rest.providers.service(t.all.service_id.value).subscribe(function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe(function(e){e.forEach(function(e){e.servicesTypes.forEach(function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})})}),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.value||t.all.osmanager_id.gui.values[0].id:""}):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach(function(e){return t.all[e].gui.rdonly=!i.info.uses_cache}),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)}),n.forEach(function(e){t.all[e].gui.rdonly=!0})}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:oS.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(t){return e.onChange(t)})},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe(function(t){return e.onChange(t)})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function xN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function wN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",9),ks("changed",function(t){return en(n),Is().userFilter=t}),ps()}}function kN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var CN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()})},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(!this.userFilter)return this.users;var e=new Array;return this.users.forEach(function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)}),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Change owner of assigned service"),ps(),ps(),fs(3,"mat-dialog-content"),fs(4,"div",1),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Authenticator"),ps(),ps(),fs(9,"mat-select",2),ks("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ls(10,xN,2,2,"mat-option",3),ps(),ps(),fs(11,"mat-form-field"),fs(12,"mat-label"),fs(13,"uds-translate"),Qs(14,"User"),ps(),ps(),fs(15,"mat-select",4),ks("ngModelChange",function(t){return e.userId=t}),ls(16,wN,1,0,"uds-mat-select-search",5),ls(17,kN,2,2,"mat-option",3),ps(),ps(),ps(),ps(),fs(18,"mat-dialog-actions"),fs(19,"button",6),fs(20,"uds-translate"),Qs(21,"Cancel"),ps(),ps(),fs(22,"button",7),ks("click",function(){return e.save()}),fs(23,"uds-translate"),Qs(24,"Ok"),ps(),ps(),ps()),2&t&&(Po(9),hs("ngModel",e.authId),Po(1),hs("ngForOf",e.auths),Po(5),hs("ngModel",e.userId),Po(1),hs("ngIf",e.users.length>10),Po(1),hs("ngForOf",e.filteredUsers()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Oh,Dh,BC,ZC,FC,yC,NP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function SN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New access rule for"),ps())}function MN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit access rule for"),ps())}function AN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Default fallback access for"),ps())}function IN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",11),ks("changed",function(t){return en(n),Is(2).calendarsFilter=t}),ps()}}function ON(t,e){if(1&t&&(fs(0,"mat-option",12),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function TN(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Priority"),ps(),ps(),fs(5,"input",8),ks("ngModelChange",function(t){return en(n),Is().accessRule.priority=t}),ps(),ps(),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Calendar"),ps(),ps(),fs(10,"mat-select",3),ks("ngModelChange",function(t){return en(n),Is().accessRule.calendarId=t}),ls(11,IN,1,0,"uds-mat-select-search",9),ls(12,ON,2,2,"mat-option",10),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.accessRule.priority),Po(5),hs("ngModel",i.accessRule.calendarId),Po(1),hs("ngIf",i.calendars.length>10),Po(1),hs("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var DN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe(function(e){t.calendars=e}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(e){t.accessRule=e}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(e){return t.accessRule.access=e})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"h4",0),ls(1,SN,2,0,"uds-translate",1),ls(2,MN,2,0,"uds-translate",1),ls(3,AN,2,0,"uds-translate",1),Qs(4),ps(),fs(5,"mat-dialog-content"),fs(6,"div",2),ls(7,TN,13,4,"ng-container",1),fs(8,"mat-form-field"),fs(9,"mat-label"),fs(10,"uds-translate"),Qs(11,"Action"),ps(),ps(),fs(12,"mat-select",3),ks("ngModelChange",function(t){return e.accessRule.access=t}),fs(13,"mat-option",4),Qs(14," ALLOW "),ps(),fs(15,"mat-option",5),Qs(16," DENY "),ps(),ps(),ps(),ps(),ps(),fs(17,"mat-dialog-actions"),fs(18,"button",6),fs(19,"uds-translate"),Qs(20,"Cancel"),ps(),ps(),fs(21,"button",7),ks("click",function(){return e.save()}),fs(22,"uds-translate"),Qs(23,"Ok"),ps(),ps(),ps()),2&t&&(Po(1),hs("ngIf",void 0===e.accessRule.id),Po(1),hs("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Po(1),hs("ngIf",-1===e.accessRule.id),Po(1),tl(" ",e.pool.name,"\n"),Po(3),hs("ngIf",-1!==e.accessRule.id),Po(5),hs("ngModel",e.accessRule.access))},directives:[zC,Dh,VC,gT,aT,QC,FT,BS,gM,yC,BC,ZC,FC,TP,yM,fS,Oh,NP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function PN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function EN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",9),ks("changed",function(t){return en(n),Is().groupFilter=t}),ps()}}function RN(t,e){if(1&t&&(ms(0),Qs(1),vs()),2&t){var n=Is().$implicit;Po(1),tl(" (",n.comments,")")}}function LN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ls(2,RN,2,1,"ng-container",10),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name,""),Po(1),hs("ngIf",n.comments)}}var NN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()})},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())})},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(e){t.groups=e})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"New group for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"div",1),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Authenticator"),ps(),ps(),fs(10,"mat-select",2),ks("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ls(11,PN,2,2,"mat-option",3),ps(),ps(),fs(12,"mat-form-field"),fs(13,"mat-label"),fs(14,"uds-translate"),Qs(15,"Group"),ps(),ps(),fs(16,"mat-select",4),ks("ngModelChange",function(t){return e.groupId=t}),ls(17,EN,1,0,"uds-mat-select-search",5),ls(18,LN,3,3,"mat-option",3),ps(),ps(),ps(),ps(),fs(19,"mat-dialog-actions"),fs(20,"button",6),fs(21,"uds-translate"),Qs(22,"Cancel"),ps(),ps(),fs(23,"button",7),ks("click",function(){return e.save()}),fs(24,"uds-translate"),Qs(25,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.pool.name,"\n"),Po(7),hs("ngModel",e.authId),Po(1),hs("ngForOf",e.auths),Po(5),hs("ngModel",e.groupId),Po(1),hs("ngIf",e.groups.length>10),Po(1),hs("ngForOf",e.filteredGroups()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Oh,Dh,BC,ZC,FC,yC,NP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function FN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",7),ks("changed",function(t){return en(n),Is().transportsFilter=t}),ps()}}function zN(t,e){if(1&t&&(ms(0),Qs(1),vs()),2&t){var n=Is().$implicit;Po(1),tl(" (",n.comments,")")}}function VN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ls(2,zN,2,1,"ng-container",9),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name,""),Po(1),hs("ngIf",n.comments)}}var BN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe(function(e){t.transports=e.filter(function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)})})},t.prototype.filteredTransports=function(){var t=this;return this.transportsFilter?this.transports.filter(function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}):this.transports},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"New transport for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"div",1),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Transport"),ps(),ps(),fs(10,"mat-select",2),ks("ngModelChange",function(t){return e.transportId=t}),ls(11,FN,1,0,"uds-mat-select-search",3),ls(12,VN,3,3,"mat-option",4),ps(),ps(),ps(),ps(),fs(13,"mat-dialog-actions"),fs(14,"button",5),fs(15,"uds-translate"),Qs(16,"Cancel"),ps(),ps(),fs(17,"button",6),ks("click",function(){return e.save()}),fs(18,"uds-translate"),Qs(19,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.servicePool.name,"\n"),Po(7),hs("ngModel",e.transportId),Po(1),hs("ngIf",e.transports.length>10),Po(1),hs("ngForOf",e.filteredTransports()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Dh,Oh,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),HN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"New publication for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"div",1),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Comments"),ps(),ps(),fs(10,"input",2),ks("ngModelChange",function(t){return e.reason=t}),ps(),ps(),ps(),ps(),fs(11,"mat-dialog-actions"),fs(12,"button",3),fs(13,"uds-translate"),Qs(14,"Cancel"),ps(),ps(),fs(15,"button",4),ks("click",function(){return e.save()}),fs(16,"uds-translate"),Qs(17,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.servicePool.name,"\n"),Po(7),hs("ngModel",e.reason))},directives:[zC,QC,VC,gT,aT,TP,fS,BS,gM,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),jN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Changelog of"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),gs(5,"uds-table",1,2),ps(),fs(7,"mat-dialog-actions"),fs(8,"button",3),fs(9,"uds-translate"),Qs(10,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.servicePool.name,"\n"),Po(2),hs("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[zC,QC,VC,pR,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function GN(t,e){1&t&&(ms(0),fs(1,"uds-translate"),Qs(2,"Edit action for"),ps(),vs())}function UN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New action for"),ps())}function WN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",14),ks("changed",function(t){return en(n),Is().calendarsFilter=t}),ps()}}function YN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function qN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.description," ")}}function XN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",14),ks("changed",function(t){return en(n),Is(2).transportsFilter=t}),ps()}}function ZN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function KN(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Transport"),ps(),ps(),fs(5,"mat-select",4),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ls(6,XN,1,0,"uds-mat-select-search",5),ls(7,ZN,2,2,"mat-option",6),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.paramValue),Po(1),hs("ngIf",i.transports.length>10),Po(1),hs("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function $N(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function QN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",14),ks("changed",function(t){return en(n),Is(2).groupsFilter=t}),ps()}}function JN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",Is(2).authenticator+"@"+n.id),Po(1),tl(" ",n.name," ")}}function tF(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Authenticator"),ps(),ps(),fs(5,"mat-select",10),ks("ngModelChange",function(t){return en(n),Is().authenticator=t})("valueChange",function(t){return en(n),Is().changedAuthenticator(t)}),ls(6,$N,2,2,"mat-option",6),ps(),ps(),fs(7,"mat-form-field"),fs(8,"mat-label"),fs(9,"uds-translate"),Qs(10,"Group"),ps(),ps(),fs(11,"mat-select",4),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ls(12,QN,1,0,"uds-mat-select-search",5),ls(13,JN,2,2,"mat-option",6),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.authenticator),Po(1),hs("ngForOf",i.authenticators),Po(5),hs("ngModel",i.paramValue),Po(1),hs("ngIf",i.groups.length>10),Po(1),hs("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function eF(t,e){if(1&t){var n=_s();ms(0),fs(1,"div",8),fs(2,"span",16),Qs(3),ps(),Qs(4,"\xa0 "),fs(5,"mat-slide-toggle",4),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ps(),ps(),vs()}if(2&t){var i=Is();Po(3),Js(i.parameter.description),Po(2),hs("ngModel",i.paramValue)}}function nF(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),Qs(3),ps(),fs(4,"input",17),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ps(),ps(),vs()}if(2&t){var i=Is();Po(3),tl(" ",i.parameter.description," "),Po(1),hs("type",i.parameter.type)("ngModel",i.paramValue)}}var iF=function(){return["transport","group","bool"]},rF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){return t.authenticators=e}),this.rest.transports.summary().subscribe(function(e){return t.transports=e}),this.rest.calendars.summary().subscribe(function(e){return t.calendars=e}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(e){t.actionList=e,t.actionList.forEach(function(e){t.paramsDict[e.id]=e.params[0]}),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe(function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)})})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe(function(t){return e.groups=t})},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,GN,3,0,"ng-container",1),ls(2,UN,2,0,"ng-template",null,2,ec),Qs(4),ps(),fs(5,"mat-dialog-content"),fs(6,"div",3),fs(7,"mat-form-field"),fs(8,"mat-label"),fs(9,"uds-translate"),Qs(10,"Calendar"),ps(),ps(),fs(11,"mat-select",4),ks("ngModelChange",function(t){return e.scheduledAction.calendarId=t}),ls(12,WN,1,0,"uds-mat-select-search",5),ls(13,YN,2,2,"mat-option",6),ps(),ps(),fs(14,"mat-form-field"),fs(15,"mat-label"),fs(16,"uds-translate"),Qs(17,"Events offset (minutes)"),ps(),ps(),fs(18,"input",7),ks("ngModelChange",function(t){return e.scheduledAction.eventsOffset=t}),ps(),ps(),fs(19,"div",8),fs(20,"span",9),fs(21,"uds-translate"),Qs(22,"At the beginning of the interval?"),ps(),ps(),fs(23,"mat-slide-toggle",4),ks("ngModelChange",function(t){return e.scheduledAction.atStart=t}),Qs(24),ps(),ps(),fs(25,"mat-form-field"),fs(26,"mat-label"),fs(27,"uds-translate"),Qs(28,"Action"),ps(),ps(),fs(29,"mat-select",10),ks("ngModelChange",function(t){return e.scheduledAction.action=t})("valueChange",function(t){return e.changedAction(t)}),ls(30,qN,2,2,"mat-option",6),ps(),ps(),ls(31,KN,8,3,"ng-container",11),ls(32,tF,14,5,"ng-container",11),ls(33,eF,6,2,"ng-container",11),ls(34,nF,5,3,"ng-container",11),ps(),ps(),fs(35,"mat-dialog-actions"),fs(36,"button",12),fs(37,"uds-translate"),Qs(38,"Cancel"),ps(),ps(),fs(39,"button",13),ks("click",function(){return e.save()}),fs(40,"uds-translate"),Qs(41,"Ok"),ps(),ps(),ps()),2&t){var n=us(3);Po(1),hs("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Po(3),tl(" ",e.servicePool.name,"\n"),Po(7),hs("ngModel",e.scheduledAction.calendarId),Po(1),hs("ngIf",e.calendars.length>10),Po(1),hs("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Po(5),hs("ngModel",e.scheduledAction.eventsOffset),Po(5),hs("ngModel",e.scheduledAction.atStart),Po(1),tl(" ",e.api.yesno(e.scheduledAction.atStart)," "),Po(5),hs("ngModel",e.scheduledAction.action),Po(1),hs("ngForOf",e.actionList),Po(1),hs("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Po(1),hs("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Po(1),hs("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Po(1),hs("ngIf",(null==e.parameter?null:e.parameter.type)&&!Cu(15,iF).includes(e.parameter.type))}},directives:[zC,Dh,VC,gT,aT,QC,FT,BS,gM,Oh,TP,yM,fS,wL,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),oF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Logs of"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),gs(5,"uds-logs-table",1),ps(),fs(6,"mat-dialog-actions"),fs(7,"button",2),fs(8,"uds-translate"),Qs(9,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.userService.name,"\n"),Po(2),hs("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[zC,QC,VC,AR,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function aF(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",8),ks("changed",function(t){return en(n),Is().assignablesServicesFilter=t}),ps()}}function sF(t,e){if(1&t&&(fs(0,"mat-option",9),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.text," ")}}function lF(t,e){if(1&t&&(fs(0,"mat-option",9),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function uF(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",8),ks("changed",function(t){return en(n),Is().userFilter=t}),ps()}}function cF(t,e){if(1&t&&(fs(0,"mat-option",9),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var hF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(e){t.assignablesServices=e})},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(!this.userFilter)return this.users;var e=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)}),e},t.prototype.filteredAssignables=function(){var t=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Assign service to user manually"),ps(),ps(),fs(3,"mat-dialog-content"),fs(4,"div",1),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Service"),ps(),ps(),fs(9,"mat-select",2),ks("ngModelChange",function(t){return e.serviceId=t}),ls(10,aF,1,0,"uds-mat-select-search",3),ls(11,sF,2,2,"mat-option",4),ps(),ps(),fs(12,"mat-form-field"),fs(13,"mat-label"),fs(14,"uds-translate"),Qs(15,"Authenticator"),ps(),ps(),fs(16,"mat-select",5),ks("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ls(17,lF,2,2,"mat-option",4),ps(),ps(),fs(18,"mat-form-field"),fs(19,"mat-label"),fs(20,"uds-translate"),Qs(21,"User"),ps(),ps(),fs(22,"mat-select",2),ks("ngModelChange",function(t){return e.userId=t}),ls(23,uF,1,0,"uds-mat-select-search",3),ls(24,cF,2,2,"mat-option",4),ps(),ps(),ps(),ps(),fs(25,"mat-dialog-actions"),fs(26,"button",6),fs(27,"uds-translate"),Qs(28,"Cancel"),ps(),ps(),fs(29,"button",7),ks("click",function(){return e.save()}),fs(30,"uds-translate"),Qs(31,"Ok"),ps(),ps(),ps()),2&t&&(Po(9),hs("ngModel",e.serviceId),Po(1),hs("ngIf",e.assignablesServices.length>10),Po(1),hs("ngForOf",e.filteredAssignables()),Po(5),hs("ngModel",e.authId),Po(1),hs("ngForOf",e.auths),Po(5),hs("ngModel",e.userId),Po(1),hs("ngIf",e.users.length>10),Po(1),hs("ngForOf",e.filteredUsers()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Dh,Oh,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),dF=function(){function t(t){this.rest=t,this.chart=null}return t.prototype.onResize=function(t){this.chart&&this.chart.resize()},t.prototype.ngOnInit=function(){var t=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(e){t.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:e.assigned.map(function(t){return aO("SHORT_DATETIME_FORMAT",new Date(t.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:e.assigned.map(function(t){return t.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:e.cached.map(function(t){return t.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:e.inuse.map(function(t){return t.value})}]}})},t.prototype.chartInit=function(t){this.chart=t},t.\u0275fac=function(e){return new(e||t)(cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,e){1&t&&ks("resize",function(t){return e.onResize(t)},!1,zr)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),ks("chartInit",function(t){return e.chartInit(t)}),ps(),ps()),2&t&&(Po(1),hs("options",e.options))},directives:[EO],styles:[""]}),t}();function fF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function pF(t,e){if(1&t&&gs(0,"uds-information",21),2&t){var n=Is(2);hs("value",n.servicePool)("gui",n.gui)}}function gF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Assigned services"),ps())}function mF(t,e){if(1&t){var n=_s();fs(0,"uds-table",22),ks("customButtonAction",function(t){return en(n),Is(2).onCustomAssigned(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteAssigned(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function vF(t,e){if(1&t){var n=_s();fs(0,"uds-table",23),ks("customButtonAction",function(t){return en(n),Is(2).onCustomAssigned(t)})("newAction",function(t){return en(n),Is(2).onNewAssigned(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteAssigned(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function yF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Cache"),ps())}function _F(t,e){if(1&t){var n=_s();fs(0,"mat-tab"),ls(1,yF,2,0,"ng-template",9),fs(2,"div",10),fs(3,"uds-table",24),ks("customButtonAction",function(t){return en(n),Is(2).onCustomCached(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteCache(t)}),ps(),ps(),ps()}if(2&t){var i=Is(2);Po(3),hs("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)("pageSize",i.api.config.admin.page_size)}}function bF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function xF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Transports"),ps())}function wF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Publications"),ps())}function kF(t,e){if(1&t){var n=_s();fs(0,"mat-tab"),ls(1,wF,2,0,"ng-template",9),fs(2,"div",10),fs(3,"uds-table",25),ks("customButtonAction",function(t){return en(n),Is(2).onCustomPublication(t)})("newAction",function(t){return en(n),Is(2).onNewPublication(t)})("rowSelected",function(t){return en(n),Is(2).onPublicationRowSelect(t)}),ps(),ps(),ps()}if(2&t){var i=Is(2);Po(3),hs("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)("pageSize",i.api.config.admin.page_size)}}function CF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Scheduled actions"),ps())}function SF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Access calendars"),ps())}function MF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Charts"),ps())}function AF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function IF(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,fF,2,0,"ng-template",9),fs(5,"div",10),ls(6,pF,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,gF,2,0,"ng-template",9),fs(9,"div",10),ls(10,mF,1,7,"uds-table",12),ls(11,vF,1,7,"ng-template",null,13,ec),ps(),ps(),ls(13,_F,4,7,"mat-tab",14),fs(14,"mat-tab"),ls(15,bF,2,0,"ng-template",9),fs(16,"div",10),fs(17,"uds-table",15),ks("newAction",function(t){return en(n),Is().onNewGroup(t)})("deleteAction",function(t){return en(n),Is().onDeleteGroup(t)}),ps(),ps(),ps(),fs(18,"mat-tab"),ls(19,xF,2,0,"ng-template",9),fs(20,"div",10),fs(21,"uds-table",16),ks("newAction",function(t){return en(n),Is().onNewTransport(t)})("deleteAction",function(t){return en(n),Is().onDeleteTransport(t)}),ps(),ps(),ps(),ls(22,kF,4,6,"mat-tab",14),fs(23,"mat-tab"),ls(24,CF,2,0,"ng-template",9),fs(25,"div",10),fs(26,"uds-table",17),ks("customButtonAction",function(t){return en(n),Is().onCustomScheduleAction(t)})("newAction",function(t){return en(n),Is().onNewScheduledAction(t)})("editAction",function(t){return en(n),Is().onEditScheduledAction(t)})("deleteAction",function(t){return en(n),Is().onDeleteScheduledAction(t)}),ps(),ps(),ps(),fs(27,"mat-tab"),ls(28,SF,2,0,"ng-template",9),fs(29,"div",10),fs(30,"uds-table",18),ks("newAction",function(t){return en(n),Is().onNewAccessCalendar(t)})("editAction",function(t){return en(n),Is().onEditAccessCalendar(t)})("deleteAction",function(t){return en(n),Is().onDeleteAccessCalendar(t)})("loaded",function(t){return en(n),Is().onAccessCalendarLoad(t)}),ps(),ps(),ps(),fs(31,"mat-tab"),ls(32,MF,2,0,"ng-template",9),fs(33,"div",10),gs(34,"uds-service-pools-charts",19),ps(),ps(),fs(35,"mat-tab"),ls(36,AF,2,0,"ng-template",9),fs(37,"div",10),gs(38,"uds-logs-table",20),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=us(12),r=Is();Po(2),hs("selectedIndex",r.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",r.servicePool&&r.gui),Po(4),hs("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Po(3),hs("ngIf",r.cache),Po(4),hs("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Po(4),hs("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Po(1),hs("ngIf",r.publications),Po(4),hs("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Po(4),hs("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Po(4),hs("poolUuid",r.servicePool.id),Po(4),hs("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var OF=function(t){return["/pools","service-pools",t]},TF='event'+django.gettext("Logs")+"",DF='computer'+django.gettext("VNC")+"",PF='schedule'+django.gettext("Launch now")+"",EF='perm_identity'+django.gettext("Change owner")+"",RF='perm_identity'+django.gettext("Assign service")+"",LF='cancel'+django.gettext("Cancel")+"",NF='event'+django.gettext("Changelog")+"",FF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:PF,type:YA.SINGLE_SELECT},iI.getGotoButton(tI,"calendarId")],this.customButtonAccessCalendars=[iI.getGotoButton(tI,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:EF,type:YA.SINGLE_SELECT},{id:"log",html:TF,type:YA.SINGLE_SELECT},{id:"vnc",html:DF,type:YA.ONLY_MENU},iI.getGotoButton(KA,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:TF,type:YA.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:LF,type:YA.SINGLE_SELECT},{id:"changelog",html:NF,type:YA.ALWAYS}],this.customButtonsGroups=[iI.getGotoButton($A,"auth_id","id")],this.customButtonsTransports=[iI.getGotoButton(QA,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(e){return t.table.selection.deselect(e)}),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe(function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:RF,type:YA.ALWAYS}),t.rest.servicesPools.gui().subscribe(function(e){t.gui=e.filter(function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)})})})},t.prototype.onNewAssigned=function(t){},t.prototype.vnc=function(t){var e=new Blob(["[connection]\nhost="+t.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,XP.saveAs)(e,t.ip+".vnc")},100)},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;CN.launch(this.api,e,this.assignedServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id?oF.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id?hF.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()}):"vnc"===t.param.id&&this.vnc(e)},t.prototype.onCustomCached=function(t){"log"===t.param.id&&oF.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){NN.launch(this.api,this.servicePool,this.groups).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){BN.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){HN.launch(this.api,this.servicePool).subscribe(function(e){t.table.overview()})},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe(function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):"changelog"===t.param.id&&jN.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){rF.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onEditScheduledAction=function(t){rF.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe(function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})},t.prototype.onNewAccessCalendar=function(t){DN.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){DN.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var i=t.table.dataSource.data.filter(function(t){return!0});i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i})},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,IF,39,38,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,OF,e.servicePool?e.servicePool.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/pools.png"),Or),Po(1),tl(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Po(1),hs("ngIf",null!==e.servicePool))},directives:[qm,Dh,hA,eA,QM,pR,dF,AR,QC,ER],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),t}(),zF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("detailAction",function(t){return e.onDetail(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function VF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New member pool"),ps())}function BF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit member pool"),ps())}function HF(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",11),ks("changed",function(t){return en(n),Is().servicePoolsFilter=t}),ps()}}function jF(t,e){if(1&t&&(fs(0,"mat-option",12),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var GF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe(function(e){return t.servicePools=e}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(e){return t.memberPool=e})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"h4",0),ls(1,VF,2,0,"uds-translate",1),ls(2,BF,2,0,"uds-translate",1),ps(),fs(3,"mat-dialog-content"),fs(4,"div",2),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Priority"),ps(),ps(),fs(9,"input",3),ks("ngModelChange",function(t){return e.memberPool.priority=t}),ps(),ps(),fs(10,"mat-form-field"),fs(11,"mat-label"),fs(12,"uds-translate"),Qs(13,"Service pool"),ps(),ps(),fs(14,"mat-select",4),ks("ngModelChange",function(t){return e.memberPool.pool_id=t}),ls(15,HF,1,0,"uds-mat-select-search",5),ls(16,jF,2,2,"mat-option",6),ps(),ps(),fs(17,"div",7),fs(18,"span",8),fs(19,"uds-translate"),Qs(20,"Enabled?"),ps(),ps(),fs(21,"mat-slide-toggle",4),ks("ngModelChange",function(t){return e.memberPool.enabled=t}),Qs(22),ps(),ps(),ps(),ps(),fs(23,"mat-dialog-actions"),fs(24,"button",9),fs(25,"uds-translate"),Qs(26,"Cancel"),ps(),ps(),fs(27,"button",10),ks("click",function(){return e.save()}),fs(28,"uds-translate"),Qs(29,"Ok"),ps(),ps(),ps()),2&t&&(Po(1),hs("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Po(1),hs("ngIf",null==e.memberPool?null:e.memberPool.id),Po(7),hs("ngModel",e.memberPool.priority),Po(5),hs("ngModel",e.memberPool.pool_id),Po(1),hs("ngIf",e.servicePools.length>10),Po(1),hs("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Po(5),hs("ngModel",e.memberPool.enabled),Po(1),tl(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[zC,Dh,VC,gT,aT,QC,TP,yM,fS,BS,gM,FT,Oh,wL,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function UF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function WF(t,e){if(1&t&&gs(0,"uds-information",17),2&t){var n=Is(2);hs("value",n.metaPool)("gui",n.gui)}}function YF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Service pools"),ps())}function qF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Assigned services"),ps())}function XF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function ZF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Access calendars"),ps())}function KF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function $F(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,UF,2,0,"ng-template",9),fs(5,"div",10),ls(6,WF,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,YF,2,0,"ng-template",9),fs(9,"div",10),fs(10,"uds-table",12),ks("newAction",function(t){return en(n),Is().onNewMemberPool(t)})("editAction",function(t){return en(n),Is().onEditMemberPool(t)})("deleteAction",function(t){return en(n),Is().onDeleteMemberPool(t)}),ps(),ps(),ps(),fs(11,"mat-tab"),ls(12,qF,2,0,"ng-template",9),fs(13,"div",10),fs(14,"uds-table",13),ks("customButtonAction",function(t){return en(n),Is().onCustomAssigned(t)})("deleteAction",function(t){return en(n),Is().onDeleteAssigned(t)}),ps(),ps(),ps(),fs(15,"mat-tab"),ls(16,XF,2,0,"ng-template",9),fs(17,"div",10),fs(18,"uds-table",14),ks("newAction",function(t){return en(n),Is().onNewGroup(t)})("deleteAction",function(t){return en(n),Is().onDeleteGroup(t)}),ps(),ps(),ps(),fs(19,"mat-tab"),ls(20,ZF,2,0,"ng-template",9),fs(21,"div",10),fs(22,"uds-table",15),ks("newAction",function(t){return en(n),Is().onNewAccessCalendar(t)})("editAction",function(t){return en(n),Is().onEditAccessCalendar(t)})("deleteAction",function(t){return en(n),Is().onDeleteAccessCalendar(t)})("loaded",function(t){return en(n),Is().onAccessCalendarLoad(t)}),ps(),ps(),ps(),fs(23,"mat-tab"),ls(24,KF,2,0,"ng-template",9),fs(25,"div",10),gs(26,"uds-logs-table",16),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("selectedIndex",i.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",i.metaPool&&i.gui),Po(4),hs("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)("onItem",i.processsCalendarItem),Po(4),hs("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)}}var QF=function(t){return["/pools","meta-pools",t]},JF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[iI.getGotoButton(ZA,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:EF,type:YA.SINGLE_SELECT},{id:"log",html:TF,type:YA.SINGLE_SELECT},iI.getGotoButton(KA,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe(function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe(function(e){t.gui=e}),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")})},t.prototype.onNewMemberPool=function(t){GF.launch(this.api,this.memberPools).subscribe(function(){return t.table.overview()})},t.prototype.onEditMemberPool=function(t){GF.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;CN.launch(this.api,e,this.memberUserServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id&&oF.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){FF.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){NN.launch(this.api,this.metaPool.id,this.groups).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){DN.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){DN.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){console.log("ID",t.table.selection.selected[0].id),-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var i=t.table.dataSource.data.filter(function(t){return!0});i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i})},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.prototype.processsCalendarItem=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,$F,27,31,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,QF,e.metaPool?e.metaPool.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/metas.png"),Or),Po(1),tl(" ",null==e.metaPool?null:e.metaPool.name," "),Po(1),hs("ngIf",e.metaPool))},directives:[qm,Dh,hA,eA,QM,pR,AR,QC,ER],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),tz=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),ez=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[""]}),t}(),nz=["mat-calendar-body",""];function iz(t,e){if(1&t&&(fs(0,"tr",2),fs(1,"td",3),Qs(2),ps(),ps()),2&t){var n=Is();Po(1),Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),as("colspan",n.numCols),Po(1),tl(" ",n.label," ")}}function rz(t,e){if(1&t&&(fs(0,"td",7),Qs(1),ps()),2&t){var n=Is(2);Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),as("colspan",n._firstRowOffset),Po(1),tl(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function oz(t,e){if(1&t){var n=_s();fs(0,"td",8),ks("click",function(t){var e=en(n).$implicit;return Is(2)._cellClicked(e,t)}),fs(1,"div",9),Qs(2),ps(),gs(3,"div",10),ps()}if(2&t){var i=e.$implicit,r=e.index,o=Is().index,a=Is();Bs("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Hs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(i.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",a._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(i.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(i.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",a._isInPreview(i.compareValue)),hs("ngClass",i.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),as("data-mat-row",o)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",a._isSelected(i.compareValue)),Po(1),Hs("mat-calendar-body-selected",a._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",a.todayValue===i.compareValue),Po(1),tl(" ",i.displayValue," ")}}function az(t,e){if(1&t&&(fs(0,"tr",4),ls(1,rz,2,6,"td",5),ls(2,oz,4,46,"td",6),ps()),2&t){var n=e.$implicit,i=e.index,r=Is();Po(1),hs("ngIf",0===i&&r._firstRowOffset),Po(1),hs("ngForOf",n)}}function sz(t,e){if(1&t&&(fs(0,"th",5),fs(1,"abbr",6),Qs(2),ps(),ps()),2&t){var n=e.$implicit;as("aria-label",n.long),Po(1),as("title",n.long),Po(1),Js(n.narrow)}}var lz=["*"];function uz(t,e){}function cz(t,e){if(1&t){var n=_s();fs(0,"mat-month-view",5),ks("activeDateChange",function(t){return en(n),Is().activeDate=t})("_userSelection",function(t){return en(n),Is()._dateSelected(t)}),ps()}if(2&t){var i=Is();hs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function hz(t,e){if(1&t){var n=_s();fs(0,"mat-year-view",6),ks("activeDateChange",function(t){return en(n),Is().activeDate=t})("monthSelected",function(t){return en(n),Is()._monthSelectedInYearView(t)})("selectedChange",function(t){return en(n),Is()._goToDateInView(t,"month")}),ps()}if(2&t){var i=Is();hs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function dz(t,e){if(1&t){var n=_s();fs(0,"mat-multi-year-view",7),ks("activeDateChange",function(t){return en(n),Is().activeDate=t})("yearSelected",function(t){return en(n),Is()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return en(n),Is()._goToDateInView(t,"year")}),ps()}if(2&t){var i=Is();hs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function fz(t,e){}var pz=["button"];function gz(t,e){1&t&&(Tn(),fs(0,"svg",3),gs(1,"path",4),ps())}var mz=[[["","matDatepickerToggleIcon",""]]],vz=["[matDatepickerToggleIcon]"],yz=function(){var t=function(){function t(){s(this,t),this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return a(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),_z=function t(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,l=arguments.length>6?arguments[6]:void 0;s(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=l},bz=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Nu,this.previewChange=new Nu,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run(function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&xz(t.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:t})})},n.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)})}return a(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Nf(1)).subscribe(function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(t){return wz(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return kz(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return Cz(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return wz(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return kz(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return Cz(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return wz(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return kz(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return Cz(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(xz(t)?e=t:xz(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc))},t.\u0275cmp=ce({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Te],attrs:nz,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(ls(0,iz,3,6,"tr",0),ls(1,az,3,2,"tr",1)),2&t&&(hs("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function xz(t){return"TD"===t.nodeName}function wz(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function Cz(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var Sz=function t(e,n){s(this,t),this.start=e,this.end=n},Mz=function(){var t=function(){function t(e,n){s(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged,this.selection=e}return a(t,[{key:"updateSelection",value:function(t,e){var n=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:n})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(void 0),Fi(Vk))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Az=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,null,t)}return a(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new n(this._adapter);return t.updateSelection(this.selection,this),t}}]),n}(Mz);return t.\u0275fac=function(e){return new(e||t)(Fi(Vk))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Iz={provide:Mz,deps:[[new Wi,new Yi,Mz],Vk],useFactory:function(t,e){return t||new Az(e)}},Oz=new _i("MAT_DATE_RANGE_SELECTION_STRATEGY"),Tz=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Nu,this._userSelection=new Nu,this.activeDateChange=new Nu,this._activeDate=this._dateAdapter.today()}return a(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof Sz?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vf(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,i);this._selected instanceof Sz?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case Hy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case Gy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case jy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Uy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case By:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Vy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case Ny:case zy:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Fy:return void(null==this._previewEnd||Wy(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map(function(t,n){return{long:t,narrow:e[n]}});this._weekdays=n.slice(t).concat(n.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof Sz?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(Bk,8),cs(Vk,8),cs(py,8),cs(Oz,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Zu(bz,5),2&t&&Xu(n=$u())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Te],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,e){1&t&&(fs(0,"table",0),fs(1,"thead",1),fs(2,"tr"),ls(3,sz,3,3,"th",2),ps(),fs(4,"tr"),gs(5,"th",3),ps(),ps(),fs(6,"tbody",4),ks("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),ps(),ps()),2&t&&(Po(3),hs("ngForOf",e._weekdays),Po(3),hs("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Oh,bz],encapsulation:2,changeDetection:0}),t}(),Dz=24,Pz=function(){var t=function(){function t(e,n,i){s(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Nu,this.yearSelected=new Nu,this.activeDateChange=new Nu,this._activeDate=this._dateAdapter.today()}return a(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Ez(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof Sz?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vf(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-Rz(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];nthis._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",Ib("120ms cubic-bezier(0, 0, 0.2, 1)",Pb([Tb({opacity:0,transform:"scale(1, 0.8)"}),Tb({opacity:1,transform:"scale(1, 1)"})]))),Eb("void => enter-dialog",Ib("150ms cubic-bezier(0, 0, 0.2, 1)",Pb([Tb({opacity:0,transform:"scale(0.7)"}),Tb({transform:"none",opacity:1})]))),Eb("* => void",Ib("100ms linear",Tb({opacity:0})))]),fadeInCalendar:Ab("fadeInCalendar",[Db("void",Tb({opacity:0})),Db("enter",Tb({opacity:1})),Eb("void => *",Ib("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Hz=0,jz=new _i("mat-datepicker-scroll-strategy"),Gz={provide:jz,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Uz=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}()),Wz=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this,t))._changeDetectorRef=i,u._globalModel=r,u._dateAdapter=o,u._rangeSelectionStrategy=a,u._subscriptions=new A,u._animationDone=new U,u._actionsPortal=null,u._closeButtonText=l.closeCalendarLabel,u}return a(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,n=t.value,i=e instanceof Sz;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Uz);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(Mz),cs(Vk),cs(Oz,8),cs(yz))},t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Zu(Vz,5),2&t&&Xu(n=$u())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&Cs("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(il("@transformPanel",e._animationState),Hs("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[qa],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"mat-calendar",1),ks("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),ps(),ls(2,fz,0,0,"ng-template",2),fs(3,"button",3),ks("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Qs(4),ps(),ps()),2&t&&(Hs("mat-datepicker-content-container-with-actions",e._actionsPortal),Po(1),hs("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),Po(1),hs("cdkPortalOutlet",e._actionsPortal),Po(1),Hs("cdk-visually-hidden",!e._closeButtonFocused),hs("color",e.color||"primary"),Po(1),Js(e._closeButtonText))},directives:[nb,Vz,Ah,Py,ZC],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Bz.transformPanel,Bz.fadeInCalendar]},changeDetection:0}),t}(),Yz=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c){s(this,t),this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=a,this._dir=l,this._model=c,this._inputStateChanges=A.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Nu,this.monthSelected=new Nu,this.viewChanged=new Nu(!0),this.openedStream=new Nu,this.closedStream=new Nu,this._opened=!1,this.id="mat-datepicker-".concat(Hz++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new U,this._scrollStrategy=o}return a(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=vv(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=vv(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=vv(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=kv(t)}},{key:"opened",get:function(){return this._opened},set:function(t){vv(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var n=this._overlayRef.getConfig().positionStrategy;n instanceof h_&&(this._setConnectedPositions(n),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=dy(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Nf(1)).subscribe(function(){return t._destroyOverlay()})}var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,n=this.datepickerInput.getOverlayLabelId(),i=new My(Wz,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new t_({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(e?"dialog":"popup")})),o=r.overlayElement;o.setAttribute("role","dialog"),n&&o.setAttribute("aria-labelledby",n),e&&o.setAttribute("aria-modal","true"),this._getCloseStream(r).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){return r.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return dt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Ld(function(t){return t.keyCode===Fy&&!Wy(t)||e.datepickerInput&&Wy(t,"altKey")&&t.keyCode===jy})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(b_),cs(kc),cs(cu),cs(jz),cs(Vk,8),cs(py,8),cs(oh,8),cs(Mz))},t.\u0275dir=me({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Te]}),t}(),qz=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(Yz);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[_l([Iz,{provide:Yz,useExisting:t}]),qa],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),Xz=function t(e,n){s(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},Zz=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Nu,this.dateInput=new Nu,this.stateChanges=new U,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=A.EMPTY,this._localeSubscription=A.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return a(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=vv(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e.dateInput.emit(new Xz(e,e._elementRef.nativeElement)),e.dateChange.emit(new Xz(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var n=0,i=Object.keys(t);n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(e){return null!=t.value&&e===t.value}):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})):(this._clearSelection(),this._selectValue(t)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(rV,8))},t.\u0275dir=me({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,hV,5),2&t&&Xu(i=$u())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(as("aria-disabled",e.disabled),Hs("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[_l([aV,{provide:oV,useExisting:t}])]}),t}(),cV=Ek(function(){return function t(){s(this,t)}}()),hV=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;s(this,n),(u=e.call(this))._changeDetectorRef=i,u._elementRef=r,u._focusMonitor=o,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new Nu;var c=Number(a);return u.tabIndex=c||0===c?c:null,u.buttonToggleGroup=t,u.appearance=l&&l.appearance?l.appearance:"standard",u}return a(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=vv(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=vv(t)}},{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(sV++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new lV(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(cV);return t.\u0275fac=function(e){return new(e||t)(cs(oV,8),cs(Jl),cs(Al),cs(mb),mi("tabindex"),cs(rV,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Zu(nV,5),2&t&&Xu(n=$u())&&(e._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&ks("focus",function(){return e.focus()}),2&t&&(as("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),Hs("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[qa],ngContentSelectors:iV,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Ts(),fs(0,"button",0,1),ks("click",function(){return e._onButtonClick()}),fs(2,"span",2),Ds(3),ps(),ps(),gs(4,"span",3),gs(5,"span",4)),2&t){var n=us(1);hs("id",e.buttonId)("disabled",e.disabled||null),as("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Po(5),hs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[aC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),dV=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk,sC],Tk]}),t}();function fV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit rule"),ps())}function pV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New rule"),ps())}function gV(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.value," ")}}function mV(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.value," ")}}function vV(t,e){if(1&t&&(fs(0,"mat-button-toggle",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.value," ")}}function yV(t,e){if(1&t){var n=_s();fs(0,"div",23),fs(1,"span",24),fs(2,"uds-translate"),Qs(3,"Weekdays"),ps(),ps(),fs(4,"mat-button-toggle-group",25),ks("ngModelChange",function(t){return en(n),Is().wDays=t}),ls(5,vV,2,2,"mat-button-toggle",8),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.wDays),Po(1),hs("ngForOf",i.weekDays)}}function _V(t,e){if(1&t){var n=_s();fs(0,"mat-form-field",9),fs(1,"mat-label"),fs(2,"uds-translate"),Qs(3,"Repeat every"),ps(),ps(),fs(4,"input",6),ks("ngModelChange",function(t){return en(n),Is().rule.interval=t}),ps(),fs(5,"div",26),Qs(6),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.rule.interval),Po(2),tl("\xa0",i.frequency(),"")}}var bV={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},xV={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},wV=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],kV=function(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(wV[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")},CV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(xV).map(function(t){return{id:t,value:xV[t]}}),this.freqs=Object.keys(bV).map(function(t){return{id:t,value:bV[t][2]}}),this.weekDays=wV.map(function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+xV[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,fV,2,0,"uds-translate",1),ls(2,pV,2,0,"uds-translate",1),ps(),fs(3,"mat-dialog-content"),fs(4,"div",2),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Name"),ps(),ps(),fs(9,"input",3),ks("ngModelChange",function(t){return e.rule.name=t}),ps(),ps(),fs(10,"mat-form-field"),fs(11,"mat-label"),fs(12,"uds-translate"),Qs(13,"Comments"),ps(),ps(),fs(14,"input",3),ks("ngModelChange",function(t){return e.rule.comments=t}),ps(),ps(),fs(15,"h3"),fs(16,"uds-translate"),Qs(17,"Event"),ps(),ps(),fs(18,"mat-form-field",4),fs(19,"mat-label"),fs(20,"uds-translate"),Qs(21,"Start time"),ps(),ps(),fs(22,"input",5),ks("ngModelChange",function(t){return e.startTime=t}),ps(),ps(),fs(23,"mat-form-field",4),fs(24,"mat-label"),fs(25,"uds-translate"),Qs(26,"Duration"),ps(),ps(),fs(27,"input",6),ks("ngModelChange",function(t){return e.rule.duration=t}),ps(),ps(),fs(28,"mat-form-field",4),fs(29,"mat-label"),fs(30,"uds-translate"),Qs(31,"Duration units"),ps(),ps(),fs(32,"mat-select",7),ks("ngModelChange",function(t){return e.rule.duration_unit=t}),ls(33,gV,2,2,"mat-option",8),ps(),ps(),fs(34,"h3"),Qs(35," Repetition "),ps(),fs(36,"mat-form-field",9),fs(37,"mat-label"),fs(38,"uds-translate"),Qs(39," Start date "),ps(),ps(),fs(40,"input",10),ks("ngModelChange",function(t){return e.startDate=t}),ps(),gs(41,"mat-datepicker-toggle",11),gs(42,"mat-datepicker",null,12),ps(),fs(44,"mat-form-field",9),fs(45,"mat-label"),fs(46,"uds-translate"),Qs(47," Repeat until date "),ps(),ps(),fs(48,"input",13),ks("ngModelChange",function(t){return e.endDate=t}),ps(),gs(49,"mat-datepicker-toggle",11),gs(50,"mat-datepicker",null,14),ps(),fs(52,"div",15),fs(53,"mat-form-field",9),fs(54,"mat-label"),fs(55,"uds-translate"),Qs(56,"Frequency"),ps(),ps(),fs(57,"mat-select",16),ks("ngModelChange",function(t){return e.rule.frequency=t})("valueChange",function(){return e.rule.interval=1}),ls(58,mV,2,2,"mat-option",8),ps(),ps(),ls(59,yV,6,2,"div",17),ls(60,_V,7,2,"mat-form-field",18),ps(),fs(61,"h3"),fs(62,"uds-translate"),Qs(63,"Summary"),ps(),ps(),fs(64,"div",19),Qs(65),ps(),ps(),ps(),fs(66,"mat-dialog-actions"),fs(67,"button",20),fs(68,"uds-translate"),Qs(69,"Cancel"),ps(),ps(),fs(70,"button",21),ks("click",function(){return e.save()}),fs(71,"uds-translate"),Qs(72,"Ok"),ps(),ps(),ps()),2&t){var n=us(43),i=us(51);Po(1),hs("ngIf",e.rule.id),Po(1),hs("ngIf",!e.rule.id),Po(7),hs("ngModel",e.rule.name),Po(5),hs("ngModel",e.rule.comments),Po(8),hs("ngModel",e.startTime),Po(5),hs("ngModel",e.rule.duration),Po(5),hs("ngModel",e.rule.duration_unit),Po(1),hs("ngForOf",e.dunits),Po(7),hs("matDatepicker",n)("ngModel",e.startDate),Po(1),hs("for",n),Po(7),hs("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Po(1),hs("for",i),Po(8),hs("ngModel",e.rule.frequency),Po(1),hs("ngForOf",e.freqs),Po(1),hs("ngIf","WEEKDAYS"===e.rule.frequency),Po(1),hs("ngIf","WEEKDAYS"!==e.rule.frequency),Po(5),tl(" ",e.summary()," "),Po(5),hs("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,yM,FT,Oh,Qz,tV,cT,qz,BC,ZC,FC,yC,uV,hV],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function SV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Rules"),ps())}function MV(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),fs(3,"mat-tab"),ls(4,SV,2,0,"ng-template",9),fs(5,"div",10),fs(6,"uds-table",11),ks("newAction",function(t){return en(n),Is().onNewRule(t)})("editAction",function(t){return en(n),Is().onEditRule(t)})("deleteAction",function(t){return en(n),Is().onDeleteRule(t)}),ps(),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("@.disabled",!0),Po(4),hs("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)("pageSize",i.api.config.admin.page_size)}}var AV=function(t){return["/pools","calendars",t]},IV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe(function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")})},t.prototype.onNewRule=function(t){CV.launch(this.api,this.calendarRules).subscribe(function(){return t.table.overview()})},t.prototype.onEditRule=function(t){CV.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?kV(t.interval):t.interval+" "+bV[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+xV[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,MV,7,7,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,AV,e.calendar?e.calendar.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/calendars.png"),Or),Po(1),tl(" ",null==e.calendar?null:e.calendar.name," "),Po(1),hs("ngIf",e.calendar))},directives:[qm,Dh,hA,eA,QM,pR,QC],styles:[".mat-column-end, .mat-column-start{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),OV='event'+django.gettext("Set time mark")+"",TV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:OV,type:YA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(i){i&&e.rest.accounts.timemark(n.id).subscribe(function(){e.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):aO("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("customButtonAction",function(t){return e.onTimeMark(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("onItem",e.processElement)},directives:[pR],styles:[""]}),t}();function DV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Account usage"),ps())}function PV(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),fs(3,"mat-tab"),ls(4,DV,2,0,"ng-template",9),fs(5,"div",10),fs(6,"uds-table",11),ks("deleteAction",function(t){return en(n),Is().onDeleteUsage(t)}),ps(),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("@.disabled",!0),Po(4),hs("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var EV=function(t){return["/pools","accounts",t]},RV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe(function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")})},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,PV,7,6,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,EV,e.account?e.account.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/accounts.png"),Or),Po(1),tl(" ",null==e.account?null:e.account.name," "),Po(1),hs("ngIf",e.account))},directives:[qm,Dh,hA,eA,QM,pR,QC],styles:[""]}),t}();function LV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New image for"),ps())}function NV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit for"),ps())}var FV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}})},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=_s();fs(0,"h4",0),ls(1,LV,2,0,"uds-translate",1),ls(2,NV,2,0,"uds-translate",1),ps(),fs(3,"mat-dialog-content"),fs(4,"div",2),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Image name"),ps(),ps(),fs(9,"input",3),ks("ngModelChange",function(t){return e.image.name=t}),ps(),ps(),fs(10,"input",4,5),ks("change",function(t){return e.onFileChanged(t)}),ps(),fs(12,"mat-form-field"),fs(13,"mat-label"),fs(14,"uds-translate"),Qs(15,"Image (click to change)"),ps(),ps(),fs(16,"input",6),ks("click",function(){return en(n),us(11).click()}),ps(),fs(17,"div",7),ks("click",function(){return en(n),us(11).click()}),gs(18,"div",8),ps(),ps(),fs(19,"div",9),fs(20,"uds-translate"),Qs(21,' For optimal results, use "squared" images. '),ps(),fs(22,"uds-translate"),Qs(23," The image will be resized on upload to "),ps(),Qs(24),ps(),ps(),ps(),fs(25,"mat-dialog-actions"),fs(26,"button",10),fs(27,"uds-translate"),Qs(28,"Cancel"),ps(),ps(),fs(29,"button",11),ks("click",function(){return e.save()}),fs(30,"uds-translate"),Qs(31,"Ok"),ps(),ps(),ps()}2&t&&(Po(1),hs("ngIf",!e.image.id),Po(1),hs("ngIf",e.image.id),Po(7),hs("ngModel",e.image.name),Po(7),hs("hidden",!0),Po(2),hs("ngStyle",e.background()),Po(6),el(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,zh,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),zV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){FV.launch(this.api).subscribe(function(){return t.table.overview()})},t.prototype.onEdit=function(t){FV.launch(this.api,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),VV='assessment'+django.gettext("Generate report")+"",BV=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:VV,type:YA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Nu;n.subscribe(function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe(function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),o=0;o div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}()},{path:"tools/tokens/actor",component:function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("deleteAction",function(t){return e.onDelete(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}()},{path:"tools/tokens/tunnel",component:function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("deleteAction",function(t){return e.onDelete(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}()}]},{path:"**",redirectTo:"summary"}],rB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[av.forRoot(iB,{relativeLinkResolution:"legacy"})],av]}),t}(),oB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),aB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[sC,Tk,F_,oB],Tk,oB]}),t}(),sB=["*"],lB=new _i("MatChipRemove"),uB=new _i("MatChipAvatar"),cB=new _i("MatChipTrailingIcon"),hB=Rk(Pk(Ek(function t(e){s(this,t),this._elementRef=e}),"primary"),-1),dB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c){var h;return s(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=a,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new U,h._onBlur=new U,h.selectionChange=new Nu,h.destroyed=new Nu,h.removed=new Nu,h._addHostClassName(),h._chipRippleTarget=l.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new nC(d(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=c&&parseInt(c)||-1,h}return a(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=vv(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=vv(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=vv(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=vv(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case zy:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),n}(hB);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(oy),cs(oC,8),cs(Jl),cs(oh),cs(yk,8),mi("tabindex"))},t.\u0275dir=me({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,uB,5),Ku(n,cB,5),Ku(n,lB,5)),2&t&&(Xu(i=$u())&&(e.avatar=i.first),Xu(i=$u())&&(e.trailingIcon=i.first),Xu(i=$u())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&ks("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(as("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Hs("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[qa]}),t}(),fB=function(){var t=function(){function t(e,n){s(this,t),this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return a(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(dB),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&ks("click",function(t){return e._handleClick(t)})},features:[_l([{provide:lB,useExisting:t}])]}),t}(),pB=new _i("mat-chips-default-options"),gB=Lk(function(){return function t(e,n,i,r){s(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),mB=0,vB=function t(e,n){s(this,t),this.source=e,this.value=n},yB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){var c;return s(this,n),(c=e.call(this,l,o,a,u))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new U,c._uid="mat-chip-list-".concat(mB++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Nu,c.valueChange=new Nu,c.ngControl&&(c.ngControl.valueAccessor=d(c)),c}return a(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=vv(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=vv(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=vv(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new K_(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Xv(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe(Xv(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe(Vf(null),Xv(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new _y(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,n)}),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&e._compareWith(n.value,t)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new vB(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),n}(gB);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(py,8),cs(dM,8),cs(wM,8),cs(Kk),cs(zS,10))},t.\u0275cmp=ce({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,dB,5),2&t&&Xu(i=$u())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&ks("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(nl("id",e._uid),as("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Hs("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[_l([{provide:rT,useExisting:t}]),qa],ngContentSelectors:sB,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Ts(),fs(0,"div",0),Ds(1),ps())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),_B=0,bB=function(){var t=function(){function t(e,n){s(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Nu,this.placeholder="",this.id="mat-chip-list-input-".concat(_B++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return a(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=vv(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=vv(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(9!==t.keyCode||Wy(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!Wy(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(pB))},t.\u0275dir=me({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&ks("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(nl("id",e.id),as("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Te]}),t}(),xB={separatorKeyCodes:[Ny]},wB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[Kk,{provide:pB,useValue:xB}],imports:[[Tk]]}),t}(),kB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),CB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Yh,Tk,kB,Ey]]}),t}(),SB=["*",[["mat-toolbar-row"]]],MB=["*","mat-toolbar-row"],AB=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}()),IB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),OB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t))._platform=i,o._document=r,o}return a(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(AB);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(oy),cs(oh))},t.\u0275cmp=ce({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,IB,5),2&t&&Xu(i=$u())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Hs("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[qa],ngContentSelectors:MB,decls:2,vars:0,template:function(t,e){1&t&&(Ts(SB),Ds(0),Ds(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t}(),TB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk],Tk]}),t}(),DB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[{provide:fT,useValue:{floatLabel:"always"}},{provide:zk,useValue:udsData.language}],imports:[Yh,TM,DM,TB,$C,CE,ZT,CB,jC,mT,DP,zT,eV,Zk,gP,lD,xD,oE,aB,yA,wB,dV,ML,iL,yI,ME,JP]}),t}();function PB(t,e){if(1&t){var n=_s();fs(0,"button",6),ks("click",function(){var t=en(n).$implicit;return Is().changeLang(t)}),Qs(1),ps()}if(2&t){var i=e.$implicit;Po(1),Js(i.name)}}function EB(t,e){if(1&t&&(fs(0,"button",12),fs(1,"i",7),Qs(2,"face"),ps(),Qs(3),ps()),2&t){var n=Is();hs("matMenuTriggerFor",us(7)),Po(3),Js(n.api.user.user)}}function RB(t,e){if(1&t&&(fs(0,"button",18),Qs(1),fs(2,"i",7),Qs(3,"arrow_drop_down"),ps(),ps()),2&t){var n=Is();hs("matMenuTriggerFor",us(7)),Po(1),tl("",n.api.user.user," ")}}var LB=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px rgba(48,48,48,.56),0 4px 25px 0 rgba(48,48,48,.12),0 8px 10px -5px rgba(48,48,48,.2)} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}"]}),t}();function BB(t,e){1&t&&gs(0,"div",1),2&t&&hs("innerHTML",Is().messages,Ir)}var HB=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map(function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){t.visible=!0})}},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&ls(0,BB,1,1,"div",0),2&t&&hs("ngIf",e.visible)},directives:[Dh],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),jB=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(fs(0,"div"),Qs(1,"\xa9 2012-2020 "),fs(2,"a",0),Qs(3,"Virtual Cable S.L.U."),ps(),ps())},styles:[""]}),t}(),GB=function(){function t(t){this.api=t,this.title="UDS Admin",this.blackTheme=!1}return t.prototype.handleKeyboardEvent=function(t){t.altKey&&t.ctrlKey&&"b"===t.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},t.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-root"]],hostBindings:function(t,e){1&t&&ks("keydown",function(t){return e.handleKeyboardEvent(t)},!1,Vr)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(gs(0,"uds-navbar"),gs(1,"uds-sidebar"),fs(2,"div",0),fs(3,"div",1),gs(4,"uds-notices"),gs(5,"router-outlet"),ps(),fs(6,"div",2),gs(7,"uds-footer"),ps(),ps())},directives:[LB,VB,HB,Zm,jB],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),UB=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return MI(e,t),e.\u0275prov=Pt({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(nD),WB=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128)("autocomplete","new-"+e.field.name))},directives:[gT,aT,TP,fS,BS,gM,SM,IM],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),t}(),YB=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){this.field.value||0===this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[gT,aT,TP,yM,fS,BS,gM,SM],styles:[""]}),t}(),qB=function(){function t(){this.changed=new Nu,this.passwordType="password"}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),ps(),fs(4,"a",2),ks("click",function(){return e.passwordType="text"===e.passwordType?"password":"text"}),fs(5,"i",3),Qs(6,"remove_red_eye"),ps(),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[gT,aT,TP,fS,BS,gM,SM,KC,cT],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),t}(),XB=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),ZB=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"textarea",1),ks("ngModelChange",function(t){return e.field.value=t}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[gT,aT,TP,fS,BS,gM,SM],styles:[""]}),t}();function KB(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",3),ks("changed",function(t){return en(n),Is().filter=t}),ps()}}function $B(t,e){if(1&t&&(fs(0,"mat-option",4),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.text," ")}}var QB=function(){function t(){this.changed=new Nu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-select",0),ks("ngModelChange",function(t){return e.field.value=t})("valueChange",function(){return e.changed.emit(e)}),ls(4,KB,1,0,"uds-mat-select-search",1),ls(5,$B,2,2,"mat-option",2),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(1),hs("ngIf",e.field.gui.values.length>10),Po(1),hs("ngForOf",e.filteredValues()))},directives:[gT,aT,FT,BS,gM,SM,Dh,Oh,NP,yC],styles:[""]}),t}();function JB(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",3),ks("changed",function(t){return en(n),Is().filter=t}),ps()}}function tH(t,e){if(1&t&&(fs(0,"mat-option",4),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.text," ")}}var eH=function(){function t(){this.changed=new Nu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(t,e,n){n[e]=""+t.id}):this.field.values=new Array},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-select",0),ks("ngModelChange",function(t){return e.field.values=t})("valueChange",function(){return e.changed.emit(e)}),ls(4,JB,1,0,"uds-mat-select-search",1),ls(5,tH,2,2,"mat-option",2),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(1),hs("ngIf",e.field.gui.values.length>10),Po(1),hs("ngForOf",e.filteredValues()))},directives:[gT,aT,FT,BS,gM,SM,Dh,Oh,NP,yC],styles:[""]}),t}();function nH(t,e){if(1&t){var n=_s();fs(0,"div",12),fs(1,"div",13),Qs(2),ps(),fs(3,"div",14),Qs(4," \xa0"),fs(5,"a",15),ks("click",function(){var t=en(n).index;return Is().removeElement(t)}),fs(6,"i",16),Qs(7,"close"),ps(),ps(),ps(),ps()}if(2&t){var i=e.$implicit;Po(2),tl(" ",i," ")}}var iH=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new Nu(!0),this.data.values.forEach(function(t){return r.values.push(t)})}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach(function(e){t.values.push(e)}),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach(function(e){return t.data.values.push(e)}),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(fs(0,"h4",0),Qs(1),ps(),fs(2,"mat-dialog-content"),fs(3,"div",1),fs(4,"div",2),ls(5,nH,8,1,"div",3),ps(),fs(6,"div",4),fs(7,"button",5),ks("click",function(){return e.removeAll()}),fs(8,"uds-translate"),Qs(9,"Remove all"),ps(),ps(),ps(),fs(10,"div",6),fs(11,"mat-form-field",7),fs(12,"input",8),ks("keyup",function(t){return e.checkKey(t)})("ngModelChange",function(t){return e.input=t}),ps(),fs(13,"button",9),ks("click",function(){return e.addElements()}),fs(14,"uds-translate"),Qs(15,"Add"),ps(),ps(),ps(),ps(),ps(),ps(),fs(16,"mat-dialog-actions"),fs(17,"button",10),fs(18,"uds-translate"),Qs(19,"Cancel"),ps(),ps(),fs(20,"button",11),ks("click",function(){return e.save()}),fs(21,"uds-translate"),Qs(22,"Ok"),ps(),ps(),ps()),2&t&&(Po(1),tl(" ",e.data.title,"\n"),Po(4),hs("ngForOf",e.values),Po(7),hs("ngModel",e.input))},directives:[zC,VC,Oh,ZC,QC,gT,TP,fS,BS,gM,cT,BC,FC],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),rH=function(){function t(t){this.api=t,this.changed=new Nu}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),iH.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(e){t.changed.emit({field:t.field})})},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter(function(t,e,n){return e<5}).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("click",function(){return e.launch()}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[gT,aT,TP],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),oH=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){var t;this.field.value=sO(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return sO(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"span",1),Qs(2),ps(),fs(3,"mat-slide-toggle",2),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),Qs(4),ps(),ps()),2&t&&(Po(2),Js(e.field.gui.label),Po(1),hs("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(1),tl(" ",e.getValue()," "))},directives:[wL,CL,BS,gM,SM],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function aH(t,e){if(1&t&&gs(0,"div",5),2&t){var n=Is().$implicit;hs("innerHTML",Is().asIcon(n),Ir)}}function sH(t,e){if(1&t&&(fs(0,"div"),ls(1,aH,1,1,"div",4),ps()),2&t){var n=e.$implicit,i=Is();Po(1),hs("ngIf",n.id==i.field.value)}}function lH(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",6),ks("changed",function(t){return en(n),Is().filter=t}),ps()}}function uH(t,e){if(1&t&&(fs(0,"mat-option",7),gs(1,"div",5),ps()),2&t){var n=e.$implicit,i=Is();hs("value",n.id),Po(1),hs("innerHTML",i.asIcon(n),Ir)}}var cH=function(){function t(t){this.api=t,this.changed=new Nu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-select",0),ks("valueChange",function(){return e.changed.emit(e)})("ngModelChange",function(t){return e.field.value=t}),fs(4,"mat-select-trigger"),ls(5,sH,2,1,"div",1),ps(),ls(6,lH,1,0,"uds-mat-select-search",2),ls(7,uH,2,2,"mat-option",3),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(2),hs("ngForOf",e.field.gui.values),Po(1),hs("ngIf",e.field.gui.values.length>10),Po(1),hs("ngForOf",e.filteredValues()))},directives:[gT,aT,FT,BS,gM,SM,LT,Oh,Dh,NP,yC],styles:[""]}),t}(),hH=function(){function t(){this.changed=new Nu,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=QI("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=QI("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=QI("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.date=t}),ps(),gs(4,"mat-datepicker-toggle",2),gs(5,"mat-datepicker",null,3),ps()),2&t){var n=us(6);Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Po(1),hs("for",n)}},directives:[gT,aT,TP,Qz,fS,BS,gM,tV,cT,qz],styles:[""]}),t}();function dH(t,e){if(1&t){var n=_s();fs(0,"mat-chip",5),ks("removed",function(){var t=en(n).$implicit;return Is().remove(t)}),Qs(1),fs(2,"i",6),Qs(3,"cancel"),ps(),ps()}if(2&t){var i=e.$implicit,r=Is();hs("selectable",!1)("removable",!0!==r.field.gui.rdonly),Po(1),tl(" ",i," ")}}var fH,pH,gH,mH=function(){function t(){this.changed=new Nu,this.separatorKeysCodes=[Ny,188]}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(t,e,n){""===t.trim()&&n.splice(e,1)})},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-chip-list",1,2),ks("change",function(){return e.changed.emit(e)}),ls(5,dH,4,3,"mat-chip",3),fs(6,"input",4),ks("matChipInputTokenEnd",function(t){return e.add(t)}),ps(),ps(),ps()),2&t){var n=us(4);Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("selectable",!1)("disabled",!0===e.field.gui.rdonly),Po(2),hs("ngForOf",e.field.values),Po(1),hs("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[gT,aT,yB,Oh,bB,dB,fB],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),vH=(n(1419),function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t,bootstrap:[GB]}),t.\u0275inj=Et({providers:[kI,XI,{provide:nD,useClass:UB}],imports:[[Pd,vf,rB,wk,DB,RO.forRoot({echarts:function(){return Promise.resolve().then(n.bind(n,9737))}})]]}),t}());fH=[Lh,YT,Nh,WB,ZB,YB,qB,XB,QB,eH,rH,oH,cH,hH,mH],pH=[],(gH=DA.\u0275cmp).directiveDefs=function(){return fH.map(he)},gH.pipeDefs=function(){return pH.map(de)},function(){if(Lc)throw new Error("Cannot enable prod mode after platform setup.");Rc=!1}(),Td().bootstrapModule(vH).catch(function(t){return console.log(t)})},8774:function(t,e,n){t.exports=n(5579)}},function(t){"use strict";t(t.s=6262)}]); \ No newline at end of file +(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{98255:function(ns){function dr(Mt){return Promise.resolve().then(function(){var Pe=new Error("Cannot find module '"+Mt+"'");throw Pe.code="MODULE_NOT_FOUND",Pe})}dr.keys=function(){return[]},dr.resolve=dr,dr.id=98255,ns.exports=dr},59737:function(ns,dr,Mt){"use strict";Mt.r(dr),Mt.d(dr,{Axis:function(){return Qi},ChartView:function(){return Vn},ComponentModel:function(){return Qt},ComponentView:function(){return gr},List:function(){return _a},Model:function(){return Ln},PRIORITY:function(){return Lx},SeriesModel:function(){return ir},color:function(){return Oe},connect:function(){return BX},dataTool:function(){return Ev},dependencies:function(){return QR},disConnect:function(){return Yx},disconnect:function(){return w8},dispose:function(){return S8},env:function(){return Ot},extendChartView:function(){return CT},extendComponentModel:function(){return O_},extendComponentView:function(){return aU},extendSeriesModel:function(){return oU},format:function(){return Rt},getCoordinateSystemDimensions:function(){return Kx},getInstanceByDom:function(){return qx},getInstanceById:function(){return k8},getMap:function(){return eT},graphic:function(){return Hn},helper:function(){return ht},init:function(){return C8},innerDrawElementOnCanvas:function(){return Ku},matrix:function(){return Co},number:function(){return oe},parseGeoJSON:function(){return Dx},parseGeoJson:function(){return Dx},registerAction:function(){return ru},registerCoordinateSystem:function(){return x8},registerLayout:function(){return p2},registerLoading:function(){return $x},registerLocale:function(){return yM},registerMap:function(){return Jx},registerPostInit:function(){return h2},registerPostUpdate:function(){return M8},registerPreprocessor:function(){return zC},registerProcessor:function(){return Zx},registerTheme:function(){return Xx},registerTransform:function(){return g2},registerVisual:function(){return kf},setCanvasCreator:function(){return T8},throttle:function(){return cC},time:function(){return Ar},use:function(){return wt},util:function(){return Mu},vector:function(){return ji},version:function(){return NX},zrUtil:function(){return Pe},zrender:function(){return j}});var Pe={};Mt.r(Pe),Mt.d(Pe,{$override:function(){return xc},HashMap:function(){return eH},assert:function(){return ra},bind:function(){return qe},clone:function(){return it},concatArray:function(){return IS},createCanvas:function(){return Tc},createHashMap:function(){return st},createObject:function(){return _p},curry:function(){return bt},defaults:function(){return tt},each:function(){return q},eqNaN:function(){return Rg},extend:function(){return Me},filter:function(){return sr},find:function(){return Db},guid:function(){return Tb},hasOwn:function(){return Ke},indexOf:function(){return zt},inherits:function(){return OS},isArray:function(){return ke},isArrayLike:function(){return to},isBuiltInObject:function(){return fd},isDom:function(){return Il},isFunction:function(){return Mn},isGradientObject:function(){return Ii},isImagePatternObject:function(){return vP},isNumber:function(){return Ac},isObject:function(){return pt},isPrimitive:function(){return Fg},isRegExp:function(){return gP},isString:function(){return tn},isStringSafe:function(){return fi},isTypedArray:function(){return wo},keys:function(){return kn},logError:function(){return He},map:function(){return Ie},merge:function(){return yt},mergeAll:function(){return Ht},mixin:function(){return br},noop:function(){return ln},normalizeCssArray:function(){return Ab},reduce:function(){return Dc},retrieve:function(){return jr},retrieve2:function(){return Yt},retrieve3:function(){return bn},setAsPrimitive:function(){return Lg},slice:function(){return mp},trim:function(){return Tu}});var ji={};Mt.r(ji),Mt.d(ji,{add:function(){return bP},applyTransform:function(){return St},clone:function(){return Du},copy:function(){return ia},create:function(){return dd},dist:function(){return Rl},distSquare:function(){return Ll},distance:function(){return Bg},distanceSquare:function(){return Hg},div:function(){return ft},dot:function(){return Pc},len:function(){return Pb},lenSquare:function(){return CP},length:function(){return zq},lengthSquare:function(){return Ge},lerp:function(){return zg},max:function(){return Oc},min:function(){return Fl},mul:function(){return Uq},negate:function(){return wP},normalize:function(){return bp},scale:function(){return Vg},scaleAndAdd:function(){return aa},set:function(){return yP},sub:function(){return zn}});var Oe={};Mt.r(Oe),Mt.d(Oe,{fastLerp:function(){return Fb},fastMapToColor:function(){return qq},lerp:function(){return cH},lift:function(){return PP},lum:function(){return Nb},mapToColor:function(){return Xq},modifyAlpha:function(){return kp},modifyHSL:function(){return Wg},parse:function(){return io},random:function(){return Zq},stringify:function(){return Do},toHex:function(){return OP}});var Co={};Mt.r(Co),Mt.d(Co,{clone:function(){return Kg},copy:function(){return Nl},create:function(){return Yn},identity:function(){return Hc},invert:function(){return wd},mul:function(){return Mi},rotate:function(){return Vl},scale:function(){return QS},translate:function(){return Eo}});var j={};Mt.r(j),Mt.d(j,{dispose:function(){return rk},disposeAll:function(){return Gb},getInstance:function(){return xH},init:function(){return qc},registerPainter:function(){return ik},version:function(){return YP}});var F={};Mt.r(F),Mt.d(F,{Arc:function(){return T0},BezierCurve:function(){return Ud},BoundingRect:function(){return Vt},Circle:function(){return gs},CompoundPath:function(){return Gd},Ellipse:function(){return Am},Group:function(){return ut},Image:function(){return di},IncrementalDisplayable:function(){return A0},Line:function(){return Ai},LinearGradient:function(){return Zl},OrientedBoundingRect:function(){return jd},Path:function(){return an},Point:function(){return Nt},Polygon:function(){return ni},Polyline:function(){return Fa},RadialGradient:function(){return sM},Rect:function(){return Bt},Ring:function(){return M0},Sector:function(){return No},Text:function(){return on},applyTransform:function(){return ms},clipPointsByRect:function(){return dM},clipRectByRect:function(){return oI},createIcon:function(){return Fm},extendPath:function(){return tI},extendShape:function(){return uM},getShapeClass:function(){return E0},getTransform:function(){return cf},groupTransition:function(){return Wd},initProps:function(){return Or},isElementRemoved:function(){return tv},lineLineIntersect:function(){return sI},linePolygonIntersect:function(){return nv},makeImage:function(){return nI},makePath:function(){return Im},mergePath:function(){return co},registerShape:function(){return zr},removeElement:function(){return qu},removeElementWithFadeOut:function(){return ev},resizePath:function(){return rI},setTooltipConfig:function(){return ff},subPixelOptimize:function(){return Rm},subPixelOptimizeLine:function(){return bz},subPixelOptimizeRect:function(){return cM},transformDirection:function(){return Lm},updateProps:function(){return un}});var ht={};Mt.r(ht),Mt.d(ht,{createDimensions:function(){return Lv},createList:function(){return jX},createScale:function(){return YX},createSymbol:function(){return ii},createTextStyle:function(){return XX},dataStack:function(){return WX},enableHoverEmphasis:function(){return Un},getECData:function(){return gt},getLayoutRect:function(){return pi},mixinAxisModelCommonMethods:function(){return qX}});var oe={};Mt.r(oe),Mt.d(oe,{MAX_SAFE_INTEGER:function(){return sk},asc:function(){return ca},getPercentWithPrecision:function(){return ok},getPixelPrecision:function(){return jb},getPrecision:function(){return Ks},getPrecisionSafe:function(){return ak},isNumeric:function(){return Kc},isRadianAroundZero:function(){return Xc},linearMap:function(){return wn},nice:function(){return Zc},numericToNumber:function(){return Er},parseDate:function(){return Oo},quantile:function(){return qt},quantity:function(){return uk},quantityExponent:function(){return Wb},reformIntervals:function(){return om},remRadian:function(){return lk},round:function(){return Wr}});var Ar={};Mt.r(Ar),Mt.d(Ar,{format:function(){return Um},parse:function(){return Oo}});var Hn={};Mt.r(Hn),Mt.d(Hn,{Arc:function(){return T0},BezierCurve:function(){return Ud},BoundingRect:function(){return Vt},Circle:function(){return gs},CompoundPath:function(){return Gd},Ellipse:function(){return Am},Group:function(){return ut},Image:function(){return di},IncrementalDisplayable:function(){return A0},Line:function(){return Ai},LinearGradient:function(){return Zl},Polygon:function(){return ni},Polyline:function(){return Fa},RadialGradient:function(){return sM},Rect:function(){return Bt},Ring:function(){return M0},Sector:function(){return No},Text:function(){return on},clipPointsByRect:function(){return dM},clipRectByRect:function(){return oI},createIcon:function(){return Fm},extendPath:function(){return tI},extendShape:function(){return uM},getShapeClass:function(){return E0},getTransform:function(){return cf},initProps:function(){return Or},makeImage:function(){return nI},makePath:function(){return Im},mergePath:function(){return co},registerShape:function(){return zr},resizePath:function(){return rI},updateProps:function(){return un}});var Rt={};Mt.r(Rt),Mt.d(Rt,{addCommas:function(){return SM},capitalFirst:function(){return MI},encodeHTML:function(){return Na},formatTime:function(){return kI},formatTpl:function(){return MM},getTextRect:function(){return ZX},getTooltipMarker:function(){return Bz},normalizeCssArray:function(){return fv},toCamelCase:function(){return SI},truncateText:function(){return tO}});var Mu={};Mt.r(Mu),Mt.d(Mu,{bind:function(){return qe},clone:function(){return it},curry:function(){return bt},defaults:function(){return tt},each:function(){return q},extend:function(){return Me},filter:function(){return sr},indexOf:function(){return zt},inherits:function(){return OS},isArray:function(){return ke},isFunction:function(){return Mn},isObject:function(){return pt},isString:function(){return tn},map:function(){return Ie},merge:function(){return yt},reduce:function(){return Dc}});var ue=function(o,i){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(r[u]=s[u])})(o,i)};function he(o,i){function r(){this.constructor=o}ue(o,i),o.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var ui=function(){return(ui=Object.assign||function(i){for(var r,s=1,u=arguments.length;s18),d&&(r.weChat=!0),i.canvasSupported=!!document.createElement("canvas").getContext,i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,i.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),i.domSupported="undefined"!=typeof document;var p=document.documentElement.style;i.transform3dSupported=(r.ie&&"transition"in p||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in p)&&!("OTransition"in p),i.transformSupported=i.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,yr);var Ot=yr,Pn={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},js={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},gp=Object.prototype.toString,Mb=Array.prototype,Og=Mb.forEach,xb=Mb.filter,dP=Mb.slice,hP=Mb.map,pn=function(){}.constructor,Ig=pn?pn.prototype:null,PS={};function xc(o,i){PS[o]=i}var pP=2311;function Tb(){return pP++}function He(){for(var o=[],i=0;i>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[v]+":0",u[g]+":0",s[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),o.appendChild(d),r.push(d)}return r}(i,f),f,u);if(p)return p(o,r,s),!0}return!1}function iH(o){return"CANVAS"===o.nodeName.toUpperCase()}var Rc="undefined"!=typeof window&&!!window.addEventListener,lr=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Cp=[];function Ug(o,i,r,s){return r=r||{},s||!Ot.canvasSupported?Ob(o,i,r):Ot.browser.firefox&&null!=i.layerX&&i.layerX!==i.offsetX?(r.zrX=i.layerX,r.zrY=i.layerY):null!=i.offsetX?(r.zrX=i.offsetX,r.zrY=i.offsetY):Ob(o,i,r),r}function Ob(o,i,r){if(Ot.domSupported&&o.getBoundingClientRect){var s=i.clientX,u=i.clientY;if(iH(o)){var f=o.getBoundingClientRect();return r.zrX=s-f.left,void(r.zrY=u-f.top)}if(NS(Cp,o,s,u))return r.zrX=Cp[0],void(r.zrY=Cp[1])}r.zrX=r.zrY=0}function Ib(o){return o||window.event}function os(o,i,r){if(null!=(i=Ib(i)).zrX)return i;var s=i.type;if(s&&s.indexOf("touch")>=0){var d="touchend"!==s?i.targetTouches[0]:i.changedTouches[0];d&&Ug(o,d,i,r)}else{Ug(o,i,i,r);var f=function(o){var i=o.wheelDelta;if(i)return i;var r=o.deltaX,s=o.deltaY;return null==r||null==s?i:3*Math.abs(0!==s?s:r)*(s>0?-1:s<0?1:r>0?-1:1)}(i);i.zrDelta=f?f/120:-(i.detail||0)/3}var p=i.button;return null==i.which&&void 0!==p&&lr.test(i.type)&&(i.which=1&p?1:2&p?3:4&p?2:0),i}function hd(o,i,r,s){Rc?o.addEventListener(i,r,s):o.attachEvent("on"+i,r)}function aH(o,i,r,s){Rc?o.removeEventListener(i,r,s):o.detachEvent("on"+i,r)}var Se=Rc?function(o){o.preventDefault(),o.stopPropagation(),o.cancelBubble=!0}:function(o){o.returnValue=!1,o.cancelBubble=!0};function VS(o){return 2===o.which||3===o.which}var xP=function(){function o(){this._track=[]}return o.prototype.recognize=function(i,r,s){return this._doTrack(i,r,s),this._recognize(i)},o.prototype.clear=function(){return this._track.length=0,this},o.prototype._doTrack=function(i,r,s){var u=i.touches;if(u){for(var f={points:[],touches:[],target:r,event:i},d=0,p=u.length;d1&&u&&u.length>1){var d=BS(u)/BS(f);!isFinite(d)&&(d=1),r.pinchScale=d;var p=[((o=u)[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2];return r.pinchX=p[0],r.pinchY=p[1],{type:"pinch",target:i[0].target,event:r}}}}};function oa(){Se(this.event)}var Da=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.handler=null,r}return at(i,o),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Ta),ss=function(i,r){this.x=i,this.y=r},pd=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ko=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d._hovered=new ss(0,0),d.storage=r,d.painter=s,d.painterRoot=f,u=u||new Da,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new Gq(d),d}return at(i,o),i.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(q(pd,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this),this.proxy=r},i.prototype.mousemove=function(r){var s=r.zrX,u=r.zrY,f=Mo(this,s,u),d=this._hovered,p=d.target;p&&!p.__zr&&(p=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new ss(s,u):this.findHover(s,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),p&&g!==p&&this.dispatchToElement(d,"mouseout",r),this.dispatchToElement(v,"mousemove",r),g&&g!==p&&this.dispatchToElement(v,"mouseover",r)},i.prototype.mouseout=function(r){var s=r.zrEventControl;"only_globalout"!==s&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==s&&this.trigger("globalout",{type:"globalout",event:r})},i.prototype.resize=function(){this._hovered=new ss(0,0)},i.prototype.dispatch=function(r,s){var u=this[r];u&&u.call(this,s)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},i.prototype.dispatchToElement=function(r,s,u){var f=(r=r||{}).target;if(!f||!f.silent){for(var d="on"+s,p=function(o,i,r){return{type:o,event:r,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:oa}}(s,r,u);f&&(f[d]&&(p.cancelBubble=!!f[d].call(f,p)),f.trigger(s,p),f=f.__hostTarget?f.__hostTarget:f.parent,!p.cancelBubble););p.cancelBubble||(this.trigger(s,p),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,p),v.trigger&&v.trigger(s,p)}))}},i.prototype.findHover=function(r,s,u){for(var f=this.storage.getDisplayList(),d=new ss(r,s),p=f.length-1;p>=0;p--){var v=void 0;if(f[p]!==u&&!f[p].ignore&&(v=sH(f[p],r,s))&&(!d.topTarget&&(d.topTarget=f[p]),"silent"!==v)){d.target=f[p];break}}return d},i.prototype.processGesture=function(r,s){this._gestureMgr||(this._gestureMgr=new xP);var u=this._gestureMgr;"start"===s&&u.clear();var f=u.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===s&&u.clear(),f){var d=f.type;r.gestureEvent=d;var p=new ss;p.target=f.target,this.dispatchToElement(p,d,f.event)}},i}(Ta);function sH(o,i,r){if(o[o.rectHover?"rectContain":"contain"](i,r)){for(var s=o,u=void 0,f=!1;s;){if(s.ignoreClip&&(f=!0),!f){var d=s.getClipPath();if(d&&!d.contain(i,r))return!1;s.silent&&(u=!0)}s=s.__hostTarget||s.parent}return!u||"silent"}return!1}function Mo(o,i,r){var s=o.painter;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){ko.prototype[o]=function(i){var f,d,r=i.zrX,s=i.zrY,u=Mo(this,r,s);if(("mouseup"!==o||!u)&&(d=(f=this.findHover(r,s)).target),"mousedown"===o)this._downEl=d,this._downPoint=[i.zrX,i.zrY],this._upEl=d;else if("mouseup"===o)this._upEl=d;else if("click"===o){if(this._downEl!==this._upEl||!this._downPoint||Rl(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,o,i)}});var nt=ko;function ki(o,i,r,s){var u=i+1;if(u===r)return 1;if(s(o[u++],o[i])<0){for(;u=0;)u++;return u-i}function ei(o,i,r,s,u){for(s===i&&s++;s>>1])<0?p=v:d=v+1;var g=s-d;switch(g){case 3:o[d+3]=o[d+2];case 2:o[d+2]=o[d+1];case 1:o[d+1]=o[d];break;default:for(;g>0;)o[d+g]=o[d+g-1],g--}o[d]=f}}function md(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])>0){for(p=s-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}else{for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(o,i[r+m])>0?d=m+1:v=m}return v}function Lc(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])<0){for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}else{for(p=s-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}for(d++;d>>1);f(o,i[r+m])<0?v=m:d=m+1}return v}function wp(o,i,r,s){r||(r=0),s||(s=o.length);var u=s-r;if(!(u<2)){var f=0;if(u<32)return void ei(o,r,s,r+(f=ki(o,r,s,i)),i);var d=function(o,i){var d,p,r=7,v=0,g=[];function w(x){var T=d[x],P=p[x],I=d[x+1],R=p[x+1];p[x]=P+R,x===v-3&&(d[x+1]=d[x+2],p[x+1]=p[x+2]),v--;var B=Lc(o[I],o,T,P,0,i);T+=B,0!=(P-=B)&&0!==(R=md(o[T+P-1],o,I,R,R-1,i))&&(P<=R?function(x,T,P,I){var R=0;for(R=0;R=7||J>=7);if(Z)break;W<0&&(W=0),W+=2}if((r=W)<1&&(r=1),1===T){for(R=0;R=0;R--)o[K+R]=o[W+R];if(0===T){te=!0;break}}if(o[G--]=g[V--],1==--I){te=!0;break}if(0!=(ne=I-md(o[B],g,0,I,I-1,i))){for(I-=ne,K=1+(G-=ne),W=1+(V-=ne),R=0;R=7||ne>=7);if(te)break;J<0&&(J=0),J+=2}if((r=J)<1&&(r=1),1===I){for(K=1+(G-=T),W=1+(B-=T),R=T-1;R>=0;R--)o[K+R]=o[W+R];o[G]=g[V]}else{if(0===I)throw new Error;for(W=G-(I-1),R=0;R=0;R--)o[K+R]=o[W+R];o[G]=g[V]}else for(W=G-(I-1),R=0;R1;){var x=v-2;if(x>=1&&p[x-1]<=p[x]+p[x+1]||x>=2&&p[x-2]<=p[x]+p[x-1])p[x-1]p[x+1])break;w(x)}},forceMergeRuns:function(){for(;v>1;){var x=v-2;x>0&&p[x-1]=32;)i|=1&o,o>>=1;return o+i}(u);do{if((f=ki(o,r,s,i))p&&(v=p),ei(o,r,r+v,r+f,i),f=v}d.pushRun(r,f),d.mergeRuns(),u-=f,r+=f}while(0!==u);d.forceMergeRuns()}}var Aa=!1;function yd(){Aa||(Aa=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bd(o,i){return o.zlevel===i.zlevel?o.z===i.z?o.z2-i.z2:o.z-i.z:o.zlevel-i.zlevel}var Cr=function(){function o(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bd}return o.prototype.traverse=function(i,r){for(var s=0;s0&&(m.__clipPaths=[]),isNaN(m.z)&&(yd(),m.z=0),isNaN(m.z2)&&(yd(),m.z2=0),isNaN(m.zlevel)&&(yd(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=i.getDecalElement&&i.getDecalElement();y&&this._updateAndAddDisplayable(y,r,s);var b=i.getTextGuideLine();b&&this._updateAndAddDisplayable(b,r,s);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,r,s)}},o.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},o.prototype.delRoot=function(i){if(i instanceof Array)for(var r=0,s=i.length;r=0&&this._roots.splice(u,1)}},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}(),US="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)},Cd={linear:function(i){return i},quadraticIn:function(i){return i*i},quadraticOut:function(i){return i*(2-i)},quadraticInOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)},cubicIn:function(i){return i*i*i},cubicOut:function(i){return--i*i*i+1},cubicInOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)},quarticIn:function(i){return i*i*i*i},quarticOut:function(i){return 1- --i*i*i*i},quarticInOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)},quinticIn:function(i){return i*i*i*i*i},quinticOut:function(i){return--i*i*i*i*i+1},quinticInOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)},sinusoidalIn:function(i){return 1-Math.cos(i*Math.PI/2)},sinusoidalOut:function(i){return Math.sin(i*Math.PI/2)},sinusoidalInOut:function(i){return.5*(1-Math.cos(Math.PI*i))},exponentialIn:function(i){return 0===i?0:Math.pow(1024,i-1)},exponentialOut:function(i){return 1===i?1:1-Math.pow(2,-10*i)},exponentialInOut:function(i){return 0===i?0:1===i?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(2-Math.pow(2,-10*(i-1)))},circularIn:function(i){return 1-Math.sqrt(1-i*i)},circularOut:function(i){return Math.sqrt(1- --i*i)},circularInOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)},elasticIn:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),-s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4))},elasticOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),s*Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/.4)+1)},elasticInOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),(i*=2)<1?s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*-.5:s*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*.5+1)},backIn:function(i){var r=1.70158;return i*i*((r+1)*i-r)},backOut:function(i){var r=1.70158;return--i*i*((r+1)*i+r)+1},backInOut:function(i){var r=2.5949095;return(i*=2)<1?i*i*((r+1)*i-r)*.5:.5*((i-=2)*i*((r+1)*i+r)+2)},bounceIn:function(i){return 1-Cd.bounceOut(1-i)},bounceOut:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},bounceInOut:function(i){return i<.5?.5*Cd.bounceIn(2*i):.5*Cd.bounceOut(2*i-1)+.5}},GS=Cd,Rb=function(){function o(i){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=null!=i.loop&&i.loop,this.gap=i.gap||0,this.easing=i.easing||"linear",this.onframe=i.onframe,this.ondestroy=i.ondestroy,this.onrestart=i.onrestart}return o.prototype.step=function(i,r){if(this._initialized||(this._startTime=i+this._delay,this._initialized=!0),!this._paused){var s=(i-this._startTime-this._pausedTime)/this._life;s<0&&(s=0),s=Math.min(s,1);var u=this.easing,f="string"==typeof u?GS[u]:u,d="function"==typeof f?f(s):s;if(this.onframe&&this.onframe(d),1===s){if(!this.loop)return!0;this._restart(i),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=r},o.prototype._restart=function(i){this._startTime=i-(i-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused=!1},o}(),Fc=function(i){this.value=i},sa=function(){function o(){this._len=0}return o.prototype.insert=function(i){var r=new Fc(i);return this.insertEntry(r),r},o.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},o.prototype.remove=function(i){var r=i.prev,s=i.next;r?r.next=s:this.head=s,s?s.prev=r:this.tail=r,i.next=i.prev=null,this._len--},o.prototype.len=function(){return this._len},o.prototype.clear=function(){this.head=this.tail=null,this._len=0},o}(),ro=function(){function o(i){this._list=new sa,this._maxSize=10,this._map={},this._maxSize=i}return o.prototype.put=function(i,r){var s=this._list,u=this._map,f=null;if(null==u[i]){var d=s.len(),p=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=s.head;s.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}p?p.value=r:p=new Fc(r),p.key=i,s.insertEntry(p),u[i]=p}return f},o.prototype.get=function(i){var r=this._map[i],s=this._list;if(null!=r)return r!==s.tail&&(s.remove(r),s.insertEntry(r)),r.value},o.prototype.clear=function(){this._list.clear(),this._map={}},o.prototype.len=function(){return this._list.len()},o}(),ls={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function xo(o){return(o=Math.round(o))<0?0:o>255?255:o}function Nc(o){return o<0?0:o>1?1:o}function To(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?xo(parseFloat(i)/100*255):xo(parseInt(i,10))}function Sp(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?Nc(parseFloat(i)/100):Nc(parseFloat(i))}function DP(o,i,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?o+(i-o)*r*6:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o}function Vc(o,i,r){return o+(i-o)*r}function us(o,i,r,s,u){return o[0]=i,o[1]=r,o[2]=s,o[3]=u,o}function AP(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var uH=new ro(20),jS=null;function jg(o,i){jS&&AP(jS,i),jS=uH.put(o,jS||i.slice())}function io(o,i){if(o){i=i||[];var r=uH.get(o);if(r)return AP(i,r);var s=(o+="").replace(/ /g,"").toLowerCase();if(s in ls)return AP(i,ls[s]),jg(o,i),i;var f,u=s.length;if("#"===s.charAt(0))return 4===u||5===u?(f=parseInt(s.slice(1,4),16))>=0&&f<=4095?(us(i,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(s.slice(4),16)/15:1),jg(o,i),i):void us(i,0,0,0,1):7===u||9===u?(f=parseInt(s.slice(1,7),16))>=0&&f<=16777215?(us(i,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(s.slice(7),16)/255:1),jg(o,i),i):void us(i,0,0,0,1):void 0;var d=s.indexOf("("),p=s.indexOf(")");if(-1!==d&&p+1===u){var v=s.substr(0,d),g=s.substr(d+1,p-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?us(i,+g[0],+g[1],+g[2],1):us(i,0,0,0,1);m=Sp(g.pop());case"rgb":return 3!==g.length?void us(i,0,0,0,1):(us(i,To(g[0]),To(g[1]),To(g[2]),m),jg(o,i),i);case"hsla":return 4!==g.length?void us(i,0,0,0,1):(g[3]=Sp(g[3]),EP(g,i),jg(o,i),i);case"hsl":return 3!==g.length?void us(i,0,0,0,1):(EP(g,i),jg(o,i),i);default:return}}us(i,0,0,0,1)}}function EP(o,i){var r=(parseFloat(o[0])%360+360)%360/360,s=Sp(o[1]),u=Sp(o[2]),f=u<=.5?u*(s+1):u+s-u*s,d=2*u-f;return us(i=i||[],xo(255*DP(d,f,r+1/3)),xo(255*DP(d,f,r)),xo(255*DP(d,f,r-1/3)),1),4===o.length&&(i[3]=o[3]),i}function PP(o,i){var r=io(o);if(r){for(var s=0;s<3;s++)r[s]=i<0?r[s]*(1-i)|0:(255-r[s])*i+r[s]|0,r[s]>255?r[s]=255:r[s]<0&&(r[s]=0);return Do(r,4===r.length?"rgba":"rgb")}}function OP(o){var i=io(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Fb(o,i,r){if(i&&i.length&&o>=0&&o<=1){r=r||[];var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=i[u],p=i[f],v=s-u;return r[0]=xo(Vc(d[0],p[0],v)),r[1]=xo(Vc(d[1],p[1],v)),r[2]=xo(Vc(d[2],p[2],v)),r[3]=Nc(Vc(d[3],p[3],v)),r}}var qq=Fb;function cH(o,i,r){if(i&&i.length&&o>=0&&o<=1){var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=io(i[u]),p=io(i[f]),v=s-u,g=Do([xo(Vc(d[0],p[0],v)),xo(Vc(d[1],p[1],v)),xo(Vc(d[2],p[2],v)),Nc(Vc(d[3],p[3],v))],"rgba");return r?{color:g,leftIndex:u,rightIndex:f,value:s}:g}}var Xq=cH;function Wg(o,i,r,s){var u=io(o);if(o)return u=function(o){if(o){var v,g,i=o[0]/255,r=o[1]/255,s=o[2]/255,u=Math.min(i,r,s),f=Math.max(i,r,s),d=f-u,p=(f+u)/2;if(0===d)v=0,g=0;else{g=p<.5?d/(f+u):d/(2-f-u);var m=((f-i)/6+d/2)/d,y=((f-r)/6+d/2)/d,b=((f-s)/6+d/2)/d;i===f?v=b-y:r===f?v=1/3+m-b:s===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var w=[360*v,g,p];return null!=o[3]&&w.push(o[3]),w}}(u),null!=i&&(u[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(i)),null!=r&&(u[1]=Sp(r)),null!=s&&(u[2]=Sp(s)),Do(EP(u),"rgba")}function kp(o,i){var r=io(o);if(r&&null!=i)return r[3]=Nc(i),Do(r,"rgba")}function Do(o,i){if(o&&o.length){var r=o[0]+","+o[1]+","+o[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(r+=","+o[3]),i+"("+r+")"}}function Nb(o,i){var r=io(o);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*i:0}function Zq(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var IP=Array.prototype.slice;function qs(o,i,r){return(i-o)*r+o}function vn(o,i,r,s){for(var u=i.length,f=0;fd)s.length=d;else for(var v=f;v=2&&this.interpolable},o.prototype.getAdditiveTrack=function(){return this._additiveTrack},o.prototype.addKeyframe=function(i,r){i>=this.maxTime?this.maxTime=i:this._needsSort=!0;var s=this.keyframes,u=s.length;if(this.interpolable)if(to(r)){var f=function(o){return to(o&&o[0])?2:1}(r);if(u>0&&this.arrDim!==f)return void(this.interpolable=!1);if(1===f&&"number"!=typeof r[0]||2===f&&"number"!=typeof r[0][0])return void(this.interpolable=!1);if(u>0){var d=s[u-1];this._isAllValueEqual&&(1===f&&WS(r,d.value)||(this._isAllValueEqual=!1))}this.arrDim=f}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof r){var p=io(r);p?(r=p,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof r||isNaN(r))return void(this.interpolable=!1);this._isAllValueEqual&&u>0&&(d=s[u-1],(this.isValueColor&&!WS(d.value,r)||d.value!==r)&&(this._isAllValueEqual=!1))}var v={time:i,value:r,percent:0};return this.keyframes.push(v),v},o.prototype.prepare=function(i){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var s=this.arrDim,u=r.length,f=r[u-1],d=0;d0&&d!==u-1&&NP(r[d].value,f.value,s);if(i&&this.needsAnimate()&&i.needsAnimate()&&s===i.arrDim&&this.isValueColor===i.isValueColor&&!i._finished){this._additiveTrack=i;var p=r[0].value;for(d=0;d=0&&!(f[m].percent<=r);m--);m=Math.min(m,d-2)}else{for(m=this._lastFrame;mr);m++);m=Math.min(m-1,d-2)}var b=f[m+1],w=f[m];if(w&&b){this._lastFrame=m,this._lastFramePercent=r;var S=b.percent-w.percent;if(0!==S){var M=(r-w.percent)/S,x=s?this._additiveValue:g?qg:i[p];if((v>0||g)&&!x&&(x=this._additiveValue=[]),this.useSpline){var T=f[m][u],P=f[0===m?m:m-1][u],I=f[m>d-2?d-1:m+1][u],R=f[m>d-3?d-1:m+2][u];if(v>0)1===v?VP(x,P,T,I,R,M,M*M,M*M*M):function(o,i,r,s,u,f,d,p){for(var v=i.length,g=i[0].length,m=0;m0?1===v?vn(x,w[u],b[u],M):function(o,i,r,s){for(var u=i.length,f=u&&i[0].length,d=0;d.5?i:o}(w[u],b[u],M),s?this._additiveValue=B:i[p]=B);s&&this._addToTarget(i)}}}},o.prototype._addToTarget=function(i){var r=this.arrDim,s=this.propName,u=this._additiveValue;0===r?this.isValueColor?(io(i[s],qg),Vb(qg,qg,u,1),i[s]=xp(qg)):i[s]=i[s]+u:1===r?Vb(i[s],i[s],u,1):2===r&&FP(i[s],i[s],u,1)},o}(),Nr=function(){function o(i,r,s){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=i,this._loop=r,r&&s?He("Can' use additive animation on looped animation."):this._additiveAnimators=s}return o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(i){this._target=i},o.prototype.when=function(i,r){return this.whenWithKeys(i,r,kn(r))},o.prototype.whenWithKeys=function(i,r,s){for(var u=this._tracks,f=0;f0)){this._started=1;for(var s=this,u=[],f=0;f1){var p=d.pop();f.addKeyframe(p.time,i[u]),f.prepare(f.getAdditiveTrack())}}}},o}(),BP=function(o){function i(r){var s=o.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,s.stage=(r=r||{}).stage||{},s.onframe=r.onframe||function(){},s}return at(i,o),i.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},i.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();s&&this.addClip(s)},i.prototype.removeClip=function(r){if(r.animation){var s=r.prev,u=r.next;s?s.next=u:this._clipsHead=u,u?u.prev=s:this._clipsTail=s,r.next=r.prev=r.animation=null}},i.prototype.removeAnimator=function(r){var s=r.getClip();s&&this.removeClip(s),r.animation=null},i.prototype.update=function(r){for(var s=(new Date).getTime()-this._pausedTime,u=s-this._time,f=this._clipsHead;f;){var d=f.next;f.step(s,u)&&(f.ondestroy&&f.ondestroy(),this.removeClip(f)),f=d}this._time=s,r||(this.onframe(u),this.trigger("frame",u),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var r=this;this._running=!0,US(function s(){r._running&&(US(s),!r._paused&&r.update())})},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var r=this._clipsHead;r;){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._clipsHead=this._clipsTail=null},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(r,s){s=s||{},this.start();var u=new Nr(r,s.loop);return this.addAnimator(u),u},i}(Ta),ti=Ot.domSupported,XS=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:o=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Ie(o,function(u){var f=u.replace("mouse","pointer");return r.hasOwnProperty(f)?f:u})}),hH_mouse=["mousemove","mouseup"],hH_pointer=["pointermove","pointerup"],Xg=!1;function ao(o){var i=o.pointerType;return"pen"===i||"touch"===i}function Zg(o){o&&(o.zrByTouch=!0)}function oo(o,i){for(var r=i,s=!1;r&&9!==r.nodeType&&!(s=r.domBelongToZr||r!==i&&r===o.painterRoot);)r=r.parentNode;return s}var HP=function(i,r){this.stopPropagation=ln,this.stopImmediatePropagation=ln,this.preventDefault=ln,this.type=r.type,this.target=this.currentTarget=i.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY},Ao={mousedown:function(i){i=os(this.dom,i),this.__mayPointerCapture=[i.zrX,i.zrY],this.trigger("mousedown",i)},mousemove:function(i){i=os(this.dom,i);var r=this.__mayPointerCapture;r&&(i.zrX!==r[0]||i.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",i)},mouseup:function(i){i=os(this.dom,i),this.__togglePointerCapture(!1),this.trigger("mouseup",i)},mouseout:function(i){oo(this,(i=os(this.dom,i)).toElement||i.relatedTarget)||(this.__pointerCapturing&&(i.zrEventControl="no_globalout"),this.trigger("mouseout",i))},wheel:function(i){Xg=!0,i=os(this.dom,i),this.trigger("mousewheel",i)},mousewheel:function(i){Xg||(i=os(this.dom,i),this.trigger("mousewheel",i))},touchstart:function(i){Zg(i=os(this.dom,i)),this.__lastTouchMoment=new Date,this.handler.processGesture(i,"start"),Ao.mousemove.call(this,i),Ao.mousedown.call(this,i)},touchmove:function(i){Zg(i=os(this.dom,i)),this.handler.processGesture(i,"change"),Ao.mousemove.call(this,i)},touchend:function(i){Zg(i=os(this.dom,i)),this.handler.processGesture(i,"end"),Ao.mouseup.call(this,i),+new Date-+this.__lastTouchMoment<300&&Ao.click.call(this,i)},pointerdown:function(i){Ao.mousedown.call(this,i)},pointermove:function(i){ao(i)||Ao.mousemove.call(this,i)},pointerup:function(i){Ao.mouseup.call(this,i)},pointerout:function(i){ao(i)||Ao.mouseout.call(this,i)}};q(["click","dblclick","contextmenu"],function(o){Ao[o]=function(i){i=os(this.dom,i),this.trigger(o,i)}});var ZS={pointermove:function(i){ao(i)||ZS.mousemove.call(this,i)},pointerup:function(i){ZS.mouseup.call(this,i)},mousemove:function(i){this.trigger("mousemove",i)},mouseup:function(i){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",i),r&&(i.zrEventControl="only_globalout",this.trigger("mouseout",i))}};function Dp(o,i,r,s){o.mounted[i]=r,o.listenerOpts[i]=s,hd(o.domTarget,i,r,s)}function Ut(o){var i=o.mounted;for(var r in i)i.hasOwnProperty(r)&&aH(o.domTarget,r,i[r],o.listenerOpts[r]);o.mounted={}}var vH=function(i,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=r},mH=function(o){function i(r,s){var u=o.call(this)||this;return u.__pointerCapturing=!1,u.dom=r,u.painterRoot=s,u._localHandlerScope=new vH(r,Ao),ti&&(u._globalHandlerScope=new vH(document,ZS)),function(o,i){var r=i.domHandlers;Ot.pointerEventsSupported?q(XS.pointer,function(s){Dp(i,s,function(u){r[s].call(o,u)})}):(Ot.touchEventsSupported&&q(XS.touch,function(s){Dp(i,s,function(u){r[s].call(o,u),function(o){o.touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(i)})}),q(XS.mouse,function(s){Dp(i,s,function(u){u=Ib(u),i.touching||r[s].call(o,u)})}))}(u,u._localHandlerScope),u}return at(i,o),i.prototype.dispose=function(){Ut(this._localHandlerScope),ti&&Ut(this._globalHandlerScope)},i.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},i.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,ti&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?function(o,i){function r(s){Dp(i,s,function(f){f=Ib(f),oo(o,f.target)||(f=function(o,i){return os(o.dom,new HP(o,i),!0)}(o,f),i.domHandlers[s].call(o,f))},{capture:!0})}Ot.pointerEventsSupported?q(hH_pointer,r):Ot.touchEventsSupported||q(hH_mouse,r)}(this,s):Ut(s)}},i}(Ta),UP=1;"undefined"!=typeof window&&(UP=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bb=UP,Re="#333",xn="#ccc";function Yn(){return[1,0,0,1,0,0]}function Hc(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function Nl(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4],o[5]=i[5],o}function Mi(o,i,r){var u=i[1]*r[0]+i[3]*r[1],f=i[0]*r[2]+i[2]*r[3],d=i[1]*r[2]+i[3]*r[3],p=i[0]*r[4]+i[2]*r[5]+i[4],v=i[1]*r[4]+i[3]*r[5]+i[5];return o[0]=i[0]*r[0]+i[2]*r[1],o[1]=u,o[2]=f,o[3]=d,o[4]=p,o[5]=v,o}function Eo(o,i,r){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4]+r[0],o[5]=i[5]+r[1],o}function Vl(o,i,r){var s=i[0],u=i[2],f=i[4],d=i[1],p=i[3],v=i[5],g=Math.sin(r),m=Math.cos(r);return o[0]=s*m+d*g,o[1]=-s*g+d*m,o[2]=u*m+p*g,o[3]=-u*g+m*p,o[4]=m*f+g*v,o[5]=m*v-g*f,o}function QS(o,i,r){var s=r[0],u=r[1];return o[0]=i[0]*s,o[1]=i[1]*u,o[2]=i[2]*s,o[3]=i[3]*u,o[4]=i[4]*s,o[5]=i[5]*u,o}function wd(o,i){var r=i[0],s=i[2],u=i[4],f=i[1],d=i[3],p=i[5],v=r*d-f*s;return v?(o[0]=d*(v=1/v),o[1]=-f*v,o[2]=-s*v,o[3]=r*v,o[4]=(s*p-d*u)*v,o[5]=(f*u-r*p)*v,o):null}function Kg(o){var i=[1,0,0,1,0,0];return Nl(i,o),i}var Qg=Hc;function so(o){return o>5e-5||o<-5e-5}var Hb,ua,zc=[],Xs=[],Zs=[1,0,0,1,0,0],$S=Math.abs,Eu=function(){function o(){}return o.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},o.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},o.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},o.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},o.prototype.needLocalTransform=function(){return so(this.rotation)||so(this.x)||so(this.y)||so(this.scaleX-1)||so(this.scaleY-1)},o.prototype.updateTransform=function(){var i=this.parent,r=i&&i.transform,s=this.needLocalTransform(),u=this.transform;s||r?(u=u||[1,0,0,1,0,0],s?this.getLocalTransform(u):Qg(u),r&&(s?Mi(u,i.transform,u):Nl(u,i.transform)),this.transform=u,this._resolveGlobalScaleRatio(u)):u&&Qg(u)},o.prototype._resolveGlobalScaleRatio=function(i){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(zc);var s=zc[0]<0?-1:1,u=zc[1]<0?-1:1,f=((zc[0]-s)*r+s)/zc[0]||0,d=((zc[1]-u)*r+u)/zc[1]||0;i[0]*=f,i[1]*=f,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],wd(this.invTransform,i)},o.prototype.getLocalTransform=function(i){return o.getLocalTransform(this,i)},o.prototype.getComputedTransform=function(){for(var i=this,r=[];i;)r.push(i),i=i.parent;for(;i=r.pop();)i.updateTransform();return this.transform},o.prototype.setLocalTransform=function(i){if(i){var r=i[0]*i[0]+i[1]*i[1],s=i[2]*i[2]+i[3]*i[3],u=Math.atan2(i[1],i[0]),f=Math.PI/2+u-Math.atan2(i[3],i[2]);s=Math.sqrt(s)*Math.cos(f),r=Math.sqrt(r),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+i[4],this.y=+i[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0}},o.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,r=this.transform;i&&i.transform&&(Mi(Xs,i.invTransform,r),r=Xs);var s=this.originX,u=this.originY;(s||u)&&(Zs[4]=s,Zs[5]=u,Mi(Xs,r,Zs),Xs[4]-=s,Xs[5]-=u,r=Xs),this.setLocalTransform(r)}},o.prototype.getGlobalScale=function(i){var r=this.transform;return i=i||[],r?(i[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),i[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(i[0]=-i[0]),r[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},o.prototype.transformCoordToLocal=function(i,r){var s=[i,r],u=this.invTransform;return u&&St(s,s,u),s},o.prototype.transformCoordToGlobal=function(i,r){var s=[i,r],u=this.transform;return u&&St(s,s,u),s},o.prototype.getLineScale=function(){var i=this.transform;return i&&$S(i[0]-1)>1e-10&&$S(i[3]-1)>1e-10?Math.sqrt($S(i[0]*i[3]-i[2]*i[1])):1},o.getLocalTransform=function(i,r){r=r||[];var s=i.originX||0,u=i.originY||0,f=i.scaleX,d=i.scaleY,p=i.rotation||0,v=i.x,g=i.y,m=i.skewX?Math.tan(i.skewX):0,y=i.skewY?Math.tan(-i.skewY):0;return s||u?(r[4]=-s*f-m*u*d,r[5]=-u*d-y*s*f):r[4]=r[5]=0,r[0]=f,r[3]=d,r[1]=y*f,r[2]=m*d,p&&Vl(r,r,p),r[4]+=s+v,r[5]+=u+g,r},o.initDefaultProps=((i=o.prototype).x=0,i.y=0,i.scaleX=1,i.scaleY=1,i.originX=0,i.originY=0,i.skewX=0,i.skewY=0,i.rotation=0,void(i.globalScaleRatio=1)),o;var i}(),Nt=function(){function o(i,r){this.x=i||0,this.y=r||0}return o.prototype.copy=function(i){return this.x=i.x,this.y=i.y,this},o.prototype.clone=function(){return new o(this.x,this.y)},o.prototype.set=function(i,r){return this.x=i,this.y=r,this},o.prototype.equal=function(i){return i.x===this.x&&i.y===this.y},o.prototype.add=function(i){return this.x+=i.x,this.y+=i.y,this},o.prototype.scale=function(i){this.x*=i,this.y*=i},o.prototype.scaleAndAdd=function(i,r){this.x+=i.x*r,this.y+=i.y*r},o.prototype.sub=function(i){return this.x-=i.x,this.y-=i.y,this},o.prototype.dot=function(i){return this.x*i.x+this.y*i.y},o.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},o.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},o.prototype.normalize=function(){var i=this.len();return this.x/=i,this.y/=i,this},o.prototype.distance=function(i){var r=this.x-i.x,s=this.y-i.y;return Math.sqrt(r*r+s*s)},o.prototype.distanceSquare=function(i){var r=this.x-i.x,s=this.y-i.y;return r*r+s*s},o.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},o.prototype.transform=function(i){if(i){var r=this.x,s=this.y;return this.x=i[0]*r+i[2]*s+i[4],this.y=i[1]*r+i[3]*s+i[5],this}},o.prototype.toArray=function(i){return i[0]=this.x,i[1]=this.y,i},o.prototype.fromArray=function(i){this.x=i[0],this.y=i[1]},o.set=function(i,r,s){i.x=r,i.y=s},o.copy=function(i,r){i.x=r.x,i.y=r.y},o.len=function(i){return Math.sqrt(i.x*i.x+i.y*i.y)},o.lenSquare=function(i){return i.x*i.x+i.y*i.y},o.dot=function(i,r){return i.x*r.x+i.y*r.y},o.add=function(i,r,s){i.x=r.x+s.x,i.y=r.y+s.y},o.sub=function(i,r,s){i.x=r.x-s.x,i.y=r.y-s.y},o.scale=function(i,r,s){i.x=r.x*s,i.y=r.y*s},o.scaleAndAdd=function(i,r,s,u){i.x=r.x+s.x*u,i.y=r.y+s.y*u},o.lerp=function(i,r,s,u){var f=1-u;i.x=f*r.x+u*s.x,i.y=f*r.y+u*s.y},o}(),Ap=Math.min,$g=Math.max,Pu=new Nt,Sd=new Nt,Uc=new Nt,Bl=new Nt,Ep=new Nt,Pp=new Nt,Vt=function(){function o(i,r,s,u){s<0&&(i+=s,s=-s),u<0&&(r+=u,u=-u),this.x=i,this.y=r,this.width=s,this.height=u}return o.prototype.union=function(i){var r=Ap(i.x,this.x),s=Ap(i.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?$g(i.x+i.width,this.x+this.width)-r:i.width,this.height=isFinite(this.y)&&isFinite(this.height)?$g(i.y+i.height,this.y+this.height)-s:i.height,this.x=r,this.y=s},o.prototype.applyTransform=function(i){o.applyTransform(this,this,i)},o.prototype.calculateTransform=function(i){var r=this,s=i.width/r.width,u=i.height/r.height,f=[1,0,0,1,0,0];return Eo(f,f,[-r.x,-r.y]),QS(f,f,[s,u]),Eo(f,f,[i.x,i.y]),f},o.prototype.intersect=function(i,r){if(!i)return!1;i instanceof o||(i=o.create(i));var s=this,u=s.x,f=s.x+s.width,d=s.y,p=s.y+s.height,v=i.x,g=i.x+i.width,m=i.y,y=i.y+i.height,b=!(fS&&(S=I,Nt.set(Pp,MS&&(S=R,Nt.set(Pp,0,T=s.x&&i<=s.x+s.width&&r>=s.y&&r<=s.y+s.height},o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.copy=function(i){o.copy(this,i)},o.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},o.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},o.prototype.isZero=function(){return 0===this.width||0===this.height},o.create=function(i){return new o(i.x,i.y,i.width,i.height)},o.copy=function(i,r){i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height},o.applyTransform=function(i,r,s){if(s){if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var u=s[0],f=s[3],p=s[5];return i.x=r.x*u+s[4],i.y=r.y*f+p,i.width=r.width*u,i.height=r.height*f,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}Pu.x=Uc.x=r.x,Pu.y=Bl.y=r.y,Sd.x=Bl.x=r.x+r.width,Sd.y=Uc.y=r.y+r.height,Pu.transform(s),Bl.transform(s),Sd.transform(s),Uc.transform(s),i.x=Ap(Pu.x,Sd.x,Uc.x,Bl.x),i.y=Ap(Pu.y,Sd.y,Uc.y,Bl.y);var v=$g(Pu.x,Sd.x,Uc.x,Bl.x),g=$g(Pu.y,Sd.y,Uc.y,Bl.y);i.width=v-i.x,i.height=g-i.y}else i!==r&&o.copy(i,r)},o}(),Jg={},kd="12px sans-serif",Vr_measureText=function(o,i){return Hb||(Hb=Tc().getContext("2d")),ua!==i&&(ua=Hb.font=i||kd),Hb.measureText(o)};function Po(o,i){var r=Jg[i=i||kd];r||(r=Jg[i]=new ro(500));var s=r.get(o);return null==s&&(s=Vr_measureText(o,i).width,r.put(o,s)),s}function Op(o,i,r,s){var u=Po(o,i),f=Md(i),d=tm(0,u,r),p=Ip(0,f,s);return new Vt(d,p,u,f)}function em(o,i,r,s){var u=((o||"")+"").split("\n");if(1===u.length)return Op(u[0],i,r,s);for(var d=new Vt(0,0,0,0),p=0;p=0?parseFloat(o)/100*i:parseFloat(o):o}function zb(o,i,r){var s=i.position||"inside",u=null!=i.distance?i.distance:5,f=r.height,d=r.width,p=f/2,v=r.x,g=r.y,m="left",y="top";if(s instanceof Array)v+=Pa(s[0],r.width),g+=Pa(s[1],r.height),m=null,y=null;else switch(s){case"left":v-=u,g+=p,m="right",y="middle";break;case"right":v+=u+d,g+=p,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=p,m="center",y="middle";break;case"insideLeft":v+=u,g+=p,y="middle";break;case"insideRight":v+=d-u,g+=p,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(o=o||{}).x=v,o.y=g,o.align=m,o.verticalAlign=y,o}var Ub="__zr_normal__",ek=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],jc={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Hl={},bH=new Vt(0,0,0,0),tk=function(){function o(i){this.id=Tb(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return o.prototype._init=function(i){this.attr(i)},o.prototype.drift=function(i,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=i,u[5]+=r,this.decomposeTransform(),this.markRedraw()},o.prototype.beforeUpdate=function(){},o.prototype.afterUpdate=function(){},o.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},o.prototype.updateInnerText=function(i){var r=this._textContent;if(r&&(!r.ignore||i)){this.textConfig||(this.textConfig={});var s=this.textConfig,u=s.local,f=r.attachedTransform,d=void 0,p=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.x=r.x,f.y=r.y,f.originX=r.originX,f.originY=r.originY,f.rotation=r.rotation,f.scaleX=r.scaleX,f.scaleY=r.scaleY,null!=s.position){var m=bH;m.copy(s.layoutRect?s.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Hl,s,m):zb(Hl,s,m),f.x=Hl.x,f.y=Hl.y,d=Hl.align,p=Hl.verticalAlign;var y=s.origin;if(y&&null!=s.rotation){var b=void 0,w=void 0;"center"===y?(b=.5*m.width,w=.5*m.height):(b=Pa(y[0],m.width),w=Pa(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+w+(u?0:m.y)}}null!=s.rotation&&(f.rotation=s.rotation);var S=s.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var M=null==s.inside?"string"==typeof s.position&&s.position.indexOf("inside")>=0:s.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,P=void 0,I=void 0;M&&this.canBeInsideText()?(P=s.insideStroke,(null==(T=s.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==P||"auto"===P)&&(P=this.getInsideTextStroke(T),I=!0)):(P=s.outsideStroke,(null==(T=s.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==P||"auto"===P)&&(P=this.getOutsideStroke(T),I=!0)),((T=T||"#000")!==x.fill||P!==x.stroke||I!==x.autoStroke||d!==x.align||p!==x.verticalAlign)&&(v=!0,x.fill=T,x.stroke=P,x.autoStroke=I,x.align=d,x.verticalAlign=p,r.setDefaultTextStyle(x)),r.__dirty|=1,v&&r.dirtyStyle(!0)}},o.prototype.canBeInsideText=function(){return!0},o.prototype.getInsideTextFill=function(){return"#fff"},o.prototype.getInsideTextStroke=function(i){return"#000"},o.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xn:Re},o.prototype.getOutsideStroke=function(i){var r=this.__zr&&this.__zr.getBackgroundColor(),s="string"==typeof r&&io(r);s||(s=[255,255,255,1]);for(var u=s[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)s[d]=s[d]*u+(f?0:255)*(1-u);return s[3]=1,Do(s,"rgba")},o.prototype.traverse=function(i,r){},o.prototype.attrKV=function(i,r){"textConfig"===i?this.setTextConfig(r):"textContent"===i?this.setTextContent(r):"clipPath"===i?this.setClipPath(r):"extra"===i?(this.extra=this.extra||{},Me(this.extra,r)):this[i]=r},o.prototype.hide=function(){this.ignore=!0,this.markRedraw()},o.prototype.show=function(){this.ignore=!1,this.markRedraw()},o.prototype.attr=function(i,r){if("string"==typeof i)this.attrKV(i,r);else if(pt(i))for(var u=kn(i),f=0;f0},o.prototype.getState=function(i){return this.states[i]},o.prototype.ensureState=function(i){var r=this.states;return r[i]||(r[i]={}),r[i]},o.prototype.clearStates=function(i){this.useState(Ub,!1,i)},o.prototype.useState=function(i,r,s,u){var f=i===Ub;if(this.hasState()||!f){var p=this.currentStates,v=this.stateTransition;if(!(zt(p,i)>=0)||!r&&1!==p.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!f)return void He("State "+i+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,r,!s&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(i,r,s,m),b&&b.useState(i,r,s,m),f?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},o.prototype.useStates=function(i,r,s){if(i.length){var u=[],f=this.currentStates,d=i.length,p=d===f.length;if(p)for(var v=0;v0,S);var M=this._textContent,x=this._textGuide;M&&M.useStates(i,r,b),x&&x.useStates(i,r,b),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},o.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},o.prototype.replaceState=function(i,r,s){var u=this.currentStates.slice(),f=zt(u,i),d=zt(u,r)>=0;f>=0?d?u.splice(f,1):u[f]=r:s&&!d&&u.push(r),this.useStates(u)},o.prototype.toggleState=function(i,r){r?this.useState(i,!0):this.removeState(i)},o.prototype._mergeStates=function(i){for(var s,r={},u=0;u=0&&f.splice(d,1)}),this.animators.push(i),s&&s.animation.addAnimator(i),s&&s.wakeUp()},o.prototype.updateDuringAnimation=function(i){this.markRedraw()},o.prototype.stopAnimation=function(i,r){for(var s=this.animators,u=s.length,f=[],d=0;d8)&&(u("position","_legacyPos","x","y"),u("scale","_legacyScale","scaleX","scaleY"),u("origin","_legacyOrigin","originX","originY"))}(),o}();function xd(o,i,r,s,u){var f=[];SH(o,"",o,i,r=r||{},s,f,u);var d=f.length,p=!1,v=r.done,g=r.aborted,m=function(){p=!0,--d<=0&&(p?v&&v():g&&g())},y=function(){--d<=0&&(p?v&&v():g&&g())};d||v&&v(),f.length>0&&r.during&&f[0].during(function(S,M){r.during(M)});for(var b=0;b0||u.force&&!d.length){for(var I=o.animators,R=[],B=0;B=0&&(u.splice(f,0,r),this._doAdd(r))}return this},i.prototype.replaceAt=function(r,s){var u=this._children,f=u[s];if(r&&r!==this&&r.parent!==this&&r!==f){u[s]=r,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(r)}return this},i.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var s=this.__zr;s&&s!==r.__zr&&r.addSelfToZr(s),s&&s.refresh()},i.prototype.remove=function(r){var s=this.__zr,u=this._children,f=zt(u,r);return f<0||(u.splice(f,1),r.parent=null,s&&r.removeSelfFromZr(s),s&&s.refresh()),this},i.prototype.removeAll=function(){for(var r=this._children,s=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},o.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.addHover=function(i){},o.prototype.removeHover=function(i){},o.prototype.clearHover=function(){},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.pathToImage=function(i,r){if(this.painter.pathToImage)return this.painter.pathToImage(i,r)},o.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},o.prototype.findHover=function(i,r){return this.handler.findHover(i,r)},o.prototype.on=function(i,r,s){return this.handler.on(i,r,s),this},o.prototype.off=function(i,r){this.handler.off(i,r)},o.prototype.trigger=function(i,r){this.handler.trigger(i,r)},o.prototype.clear=function(){for(var i=this.storage.getRoots(),r=0;r0){if(o<=u)return d;if(o>=f)return p}else{if(o>=u)return d;if(o<=f)return p}else{if(o===u)return d;if(o===f)return p}return(o-u)/v*g+d}function Ae(o,i){switch(o){case"center":case"middle":o="50%";break;case"left":case"top":o="0%";break;case"right":case"bottom":o="100%"}return"string"==typeof o?function(o){return o.replace(/^\s+|\s+$/g,"")}(o).match(/%$/)?parseFloat(o)/100*i:parseFloat(o):null==o?NaN:+o}function Wr(o,i,r){return null==i&&(i=10),i=Math.min(Math.max(0,i),20),o=(+o).toFixed(i),r?o:+o}function ca(o){return o.sort(function(i,r){return i-r}),o}function Ks(o){if(o=+o,isNaN(o))return 0;if(o>1e-14)for(var i=1,r=0;r<15;r++,i*=10)if(Math.round(o*i)/i===o)return r;return ak(o)}function ak(o){var i=o.toString().toLowerCase(),r=i.indexOf("e"),s=r>0?+i.slice(r+1):0,u=r>0?r:i.length,f=i.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-s)}function jb(o,i){var r=Math.log,s=Math.LN10,u=Math.floor(r(o[1]-o[0])/s),f=Math.round(r(Math.abs(i[1]-i[0]))/s),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function ok(o,i,r){if(!o[i])return 0;var s=Dc(o,function(S,M){return S+(isNaN(M)?0:M)},0);if(0===s)return 0;for(var u=Math.pow(10,r),f=Ie(o,function(S){return(isNaN(S)?0:S)/s*u*100}),d=100*u,p=Ie(f,function(S){return Math.floor(S)}),v=Dc(p,function(S,M){return S+M},0),g=Ie(f,function(S,M){return S-p[M]});vm&&(m=g[b],y=b);++p[y],g[y]=0,++v}return p[i]/u}function ZP(o,i){var r=Math.max(Ks(o),Ks(i)),s=o+i;return r>20?s:Wr(s,r)}var sk=9007199254740991;function lk(o){var i=2*Math.PI;return(o%i+i)%i}function Xc(o){return o>-1e-4&&o<1e-4}var am=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Oo(o){if(o instanceof Date)return o;if("string"==typeof o){var i=am.exec(o);if(!i)return new Date(NaN);if(i[8]){var r=+i[4]||0;return"Z"!==i[8].toUpperCase()&&(r-=+i[8].slice(0,3)),new Date(Date.UTC(+i[1],+(i[2]||1)-1,+i[3]||1,r,+(i[5]||0),+i[6]||0,+i[7]||0))}return new Date(+i[1],+(i[2]||1)-1,+i[3]||1,+i[4]||0,+(i[5]||0),+i[6]||0,+i[7]||0)}return null==o?new Date(NaN):new Date(Math.round(o))}function uk(o){return Math.pow(10,Wb(o))}function Wb(o){if(0===o)return 0;var i=Math.floor(Math.log(o)/Math.LN10);return o/Math.pow(10,i)>=10&&i++,i}function Zc(o,i){var r=Wb(o),s=Math.pow(10,r),u=o/s;return o=(i?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*s,r>=-20?+o.toFixed(r<0?-r:0):o}function qt(o,i){var r=(o.length-1)*i+1,s=Math.floor(r),u=+o[s-1],f=r-s;return f?u+f*(o[s]-u):u}function om(o){o.sort(function(v,g){return p(v,g,0)?-1:1});for(var i=-1/0,r=1,s=0;s=0||f&&zt(f,v)<0)){var g=s.getShallow(v,i);null!=g&&(d[o[p][0]]=g)}}return d}}var LH=Iu([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),FH=function(){function o(){}return o.prototype.getAreaStyle=function(i,r){return LH(this,i,r)},o}(),hk=new ro(50);function pk(o){if("string"==typeof o){var i=hk.get(o);return i&&i.image}return o}function vk(o,i,r,s,u){if(o){if("string"==typeof o){if(i&&i.__zrImageSrc===o||!r)return i;var f=hk.get(o),d={hostEl:r,cb:s,cbPayload:u};return f?!Jc(i=f.image)&&f.pending.push(d):((i=new Image).onload=i.onerror=gk,hk.put(o,i.__cachedImgObj={image:i,pending:[d]}),i.src=i.__zrImageSrc=o),i}return o}return i}function gk(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=d;v++)p-=d;var g=Po(r,i);return g>p&&(r="",g=0),p=o-g,u.ellipsis=r,u.ellipsisWidth=g,u.contentWidth=p,u.containerWidth=o,u}function mk(o,i){var r=i.containerWidth,s=i.font,u=i.contentWidth;if(!r)return"";var f=Po(o,s);if(f<=r)return o;for(var d=0;;d++){if(f<=u||d>=i.maxIterations){o+=i.ellipsis;break}var p=0===d?nO(o,u,i.ascCharWidth,i.cnCharWidth):f>0?Math.floor(o.length*u/f):0;f=Po(o=o.substr(0,p),s)}return""===o&&(o=i.placeholder),o}function nO(o,i,r,s){for(var u=0,f=0,d=o.length;f0&&S+s.accumWidth>s.width&&(m=i.split("\n"),g=!0),s.accumWidth=S}else{var M=uo(i,v,s.width,s.breakAll,s.accumWidth);s.accumWidth=M.accumWidth+w,y=M.linesWidths,m=M.lines}}else m=i.split("\n");for(var x=0;x=33&&i<=255}(o)||!!Di[o]}function uo(o,i,r,s,u){for(var f=[],d=[],p="",v="",g=0,m=0,y=0;yr:u+m+w>r)?m?(p||v)&&(S?(p||(p=v,v="",m=g=0),f.push(p),d.push(m-g),v+=b,p="",m=g+=w):(v&&(p+=v,m+=g,v="",g=0),f.push(p),d.push(m),p=b,m=w)):S?(f.push(v),d.push(g),v=b,g=w):(f.push(b),d.push(w)):(m+=w,S?(v+=b,g+=w):(v&&(p+=v,v="",g=0),p+=b))}else v&&(p+=v,m+=g),f.push(p),d.push(m),p="",v="",g=0,m=0}return!f.length&&!p&&(p=o,v="",g=0),v&&(p+=v),p&&(f.push(p),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var yk="__zr_style_"+Math.round(10*Math.random()),ef={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ef[yk]=!0;var fm=["z","z2","invisible"],aO=["invisible"],VH=function(o){function i(r){return o.call(this,r)||this}return at(i,o),i.prototype._init=function(r){for(var s=kn(r),u=0;u-1e-8&&o<1e-8}function sO(o){return o>1e-8||o<-1e-8}function Br(o,i,r,s,u){var f=1-u;return f*f*(f*o+3*u*i)+u*u*(u*s+3*f*r)}function HH(o,i,r,s,u){var f=1-u;return 3*(((i-o)*f+2*(r-i)*u)*f+(s-r)*u*u)}function Up(o,i,r,s,u,f){var d=s+3*(i-r)-o,p=3*(r-2*i+o),v=3*(i-o),g=o-u,m=p*p-3*d*v,y=p*v-9*d*g,b=v*v-3*p*g,w=0;if(Io(m)&&Io(y))Io(p)?f[0]=0:(S=-v/p)>=0&&S<=1&&(f[w++]=S);else{var M=y*y-4*m*b;if(Io(M)){var x=y/m,T=-x/2;(S=-p/d+x)>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T)}else if(M>0){var P=Lu(M),I=m*p+1.5*d*(-y+P),R=m*p+1.5*d*(-y-P);(S=(-p-((I=I<0?-Ck(-I,e0):Ck(I,e0))+(R=R<0?-Ck(-R,e0):Ck(R,e0))))/(3*d))>=0&&S<=1&&(f[w++]=S)}else{var B=(2*m*p-3*d*y)/(2*Lu(m*m*m)),V=Math.acos(B)/3,G=Lu(m),W=Math.cos(V),S=(-p-2*G*W)/(3*d),K=(T=(-p+G*(W+oO*Math.sin(V)))/(3*d),(-p+G*(W-oO*Math.sin(V)))/(3*d));S>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T),K>=0&&K<=1&&(f[w++]=K)}}return w}function t0(o,i,r,s,u){var f=6*r-12*i+6*o,d=9*i+3*s-3*o-9*r,p=3*i-3*o,v=0;if(Io(d))sO(f)&&(g=-p/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*p;if(Io(m))u[0]=-f/(2*d);else if(m>0){var g,y=Lu(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function Od(o,i,r,s,u,f){var d=(i-o)*u+o,p=(r-i)*u+i,v=(s-r)*u+r,g=(p-d)*u+d,m=(v-p)*u+p,y=(m-g)*u+g;f[0]=o,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=s}function wk(o,i,r,s,u,f,d,p,v,g,m){var y,S,M,x,T,b=.005,w=1/0;Gl[0]=v,Gl[1]=g;for(var P=0;P<1;P+=.05)Oa[0]=Br(o,r,u,d,P),Oa[1]=Br(i,s,f,p,P),(x=Ll(Gl,Oa))=0&&x=0&&w1e-4)return p[0]=o-r,p[1]=i-s,v[0]=o+r,void(v[1]=i+s);if(n0[0]=Mk(u)*r+o,n0[1]=kk(u)*s+i,r0[0]=Mk(f)*r+o,r0[1]=kk(f)*s+i,g(p,n0,r0),m(v,n0,r0),(u%=Id)<0&&(u+=Id),(f%=Id)<0&&(f+=Id),u>f&&!d?f+=Id:uu&&(pm[0]=Mk(w)*r+o,pm[1]=kk(w)*s+i,g(p,pm,p),m(v,pm,v))}var er={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fa=[],$s=[],Js=[],Fu=[],el=[],jl=[],gm=Math.min,mm=Math.max,Nu=Math.cos,Vu=Math.sin,Gp=Math.sqrt,Bu=Math.abs,Tk=Math.PI,Hu=2*Tk,Dk="undefined"!=typeof Float32Array,_m=[];function Ak(o){return Math.round(o/Tk*1e8)/1e8%2*Tk}function pO(o,i){var r=Ak(o[0]);r<0&&(r+=Hu);var u=o[1];u+=r-o[0],!i&&u-r>=Hu?u=r+Hu:i&&r-u>=Hu?u=r-Hu:!i&&r>u?u=r+(Hu-Ak(r-u)):i&&r0&&(this._ux=Bu(s/Bb/i)||0,this._uy=Bu(s/Bb/r)||0)},o.prototype.setDPR=function(i){this.dpr=i},o.prototype.setContext=function(i){this._ctx=i},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(i,r){return this._drawPendingPt(),this.addData(er.M,i,r),this._ctx&&this._ctx.moveTo(i,r),this._x0=i,this._y0=r,this._xi=i,this._yi=r,this},o.prototype.lineTo=function(i,r){var s=Bu(i-this._xi),u=Bu(r-this._yi),f=s>this._ux||u>this._uy;if(this.addData(er.L,i,r),this._ctx&&f&&(this._needsDash?this._dashedLineTo(i,r):this._ctx.lineTo(i,r)),f)this._xi=i,this._yi=r,this._pendingPtDist=0;else{var d=s*s+u*u;d>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=r,this._pendingPtDist=d)}return this},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){return this.addData(er.C,i,r,s,u,f,d),this._ctx&&(this._needsDash?this._dashedBezierTo(i,r,s,u,f,d):this._ctx.bezierCurveTo(i,r,s,u,f,d)),this._xi=f,this._yi=d,this},o.prototype.quadraticCurveTo=function(i,r,s,u){return this.addData(er.Q,i,r,s,u),this._ctx&&(this._needsDash?this._dashedQuadraticTo(i,r,s,u):this._ctx.quadraticCurveTo(i,r,s,u)),this._xi=s,this._yi=u,this},o.prototype.arc=function(i,r,s,u,f,d){return _m[0]=u,_m[1]=f,pO(_m,d),this.addData(er.A,i,r,s,s,u=_m[0],(f=_m[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(i,r,s,u,f,d),this._xi=Nu(f)*s+i,this._yi=Vu(f)*s+r,this},o.prototype.arcTo=function(i,r,s,u,f){return this._ctx&&this._ctx.arcTo(i,r,s,u,f),this},o.prototype.rect=function(i,r,s,u){return this._ctx&&this._ctx.rect(i,r,s,u),this.addData(er.R,i,r,s,u),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(er.Z);var i=this._ctx,r=this._x0,s=this._y0;return i&&(this._needsDash&&this._dashedLineTo(r,s),i.closePath()),this._xi=r,this._yi=s,this},o.prototype.fill=function(i){i&&i.fill(),this.toStatic()},o.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},o.prototype.setLineDash=function(i){if(i instanceof Array){this._lineDash=i,this._dashIdx=0;for(var r=0,s=0;sm.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],r=0;r0&&b<=i||g<0&&b>=i||0===g&&(m>0&&w<=r||m<0&&w>=r);)b+=g*(M=u[x=this._dashIdx]),w+=m*M,this._dashIdx=(x+1)%S,!(g>0&&bp||m>0&&wv)&&f[x%2?"moveTo":"lineTo"](g>=0?gm(b,i):mm(b,i),m>=0?gm(w,r):mm(w,r));this._dashOffset=-Gp((g=b-i)*g+(m=w-r)*m)},o.prototype._dashedBezierTo=function(i,r,s,u,f,d){var x,T,P,I,R,p=this._ctx,v=this._dashSum,g=this._dashOffset,m=this._lineDash,y=this._xi,b=this._yi,w=0,S=this._dashIdx,M=m.length,B=0;for(g<0&&(g=v+g),g%=v,x=0;x<1;x+=.1)T=Br(y,i,s,f,x+.1)-Br(y,i,s,f,x),P=Br(b,r,u,d,x+.1)-Br(b,r,u,d,x),w+=Gp(T*T+P*P);for(;Sg);S++);for(x=(B-g)/w;x<=1;)I=Br(y,i,s,f,x),R=Br(b,r,u,d,x),S%2?p.moveTo(I,R):p.lineTo(I,R),x+=m[S]/w,S=(S+1)%M;S%2!=0&&p.lineTo(f,d),this._dashOffset=-Gp((T=f-I)*T+(P=d-R)*P)},o.prototype._dashedQuadraticTo=function(i,r,s,u){var f=s,d=u;s=(s+2*i)/3,u=(u+2*r)/3,this._dashedBezierTo(i=(this._xi+2*i)/3,r=(this._yi+2*r)/3,s,u,f,d)},o.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var i=this.data;i instanceof Array&&(i.length=this._len,Dk&&this._len>11&&(this.data=new Float32Array(i)))}},o.prototype.getBoundingRect=function(){Js[0]=Js[1]=el[0]=el[1]=Number.MAX_VALUE,Fu[0]=Fu[1]=jl[0]=jl[1]=-Number.MAX_VALUE;var d,i=this.data,r=0,s=0,u=0,f=0;for(d=0;ds||Bu(I)>u||b===r-1)&&(M=Math.sqrt(P*P+I*I),f=x,d=T);break;case er.C:var R=i[b++],B=i[b++],T=(x=i[b++],i[b++]),V=i[b++],G=i[b++];M=lO(f,d,R,B,x,T,V,G,10),f=V,d=G;break;case er.Q:M=Ro(f,d,R=i[b++],B=i[b++],x=i[b++],T=i[b++],10),f=x,d=T;break;case er.A:var W=i[b++],K=i[b++],J=i[b++],Z=i[b++],ne=i[b++],te=i[b++],se=te+ne;b+=1,b++,S&&(p=Nu(ne)*J+W,v=Vu(ne)*Z+K),M=mm(J,Z)*gm(Hu,Math.abs(te)),f=Nu(se)*J+W,d=Vu(se)*Z+K;break;case er.R:p=f=i[b++],v=d=i[b++],M=2*i[b++]+2*i[b++];break;case er.Z:var P=p-f;I=v-d,M=Math.sqrt(P*P+I*I),f=p,d=v}M>=0&&(g[y++]=M,m+=M)}return this._pathLen=m,m},o.prototype.rebuildPath=function(i,r){var p,v,g,m,y,b,S,P,R,B,s=this.data,u=this._ux,f=this._uy,d=this._len,w=r<1,x=0,T=0,I=0;if(!w||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,P=r*this._pathLen))e:for(var V=0;V0&&(i.lineTo(R,B),I=0),p=g=s[V++],v=m=s[V++],i.moveTo(g,m);break;case er.L:y=s[V++],b=s[V++];var K=Bu(y-g),J=Bu(b-m);if(K>u||J>f){if(w){if(x+(Z=S[T++])>P){i.lineTo(g*(1-(ne=(P-x)/Z))+y*ne,m*(1-ne)+b*ne);break e}x+=Z}i.lineTo(y,b),g=y,m=b,I=0}else{var te=K*K+J*J;te>I&&(R=y,B=b,I=te)}break;case er.C:var se=s[V++],le=s[V++],de=s[V++],pe=s[V++],me=s[V++],Ce=s[V++];if(w){if(x+(Z=S[T++])>P){Od(g,se,de,me,ne=(P-x)/Z,fa),Od(m,le,pe,Ce,ne,$s),i.bezierCurveTo(fa[1],$s[1],fa[2],$s[2],fa[3],$s[3]);break e}x+=Z}i.bezierCurveTo(se,le,de,pe,me,Ce),g=me,m=Ce;break;case er.Q:if(se=s[V++],le=s[V++],de=s[V++],pe=s[V++],w){if(x+(Z=S[T++])>P){hm(g,se,de,ne=(P-x)/Z,fa),hm(m,le,pe,ne,$s),i.quadraticCurveTo(fa[1],$s[1],fa[2],$s[2]);break e}x+=Z}i.quadraticCurveTo(se,le,de,pe),g=de,m=pe;break;case er.A:var Te=s[V++],ze=s[V++],Qe=s[V++],mt=s[V++],En=s[V++],It=s[V++],At=s[V++],Bn=!s[V++],yn=Qe>mt?Qe:mt,Lr=Bu(Qe-mt)>.001,Qn=En+It,Pt=!1;if(w&&(x+(Z=S[T++])>P&&(Qn=En+It*(P-x)/Z,Pt=!0),x+=Z),Lr&&i.ellipse?i.ellipse(Te,ze,Qe,mt,At,En,Qn,Bn):i.arc(Te,ze,yn,En,Qn,Bn),Pt)break e;W&&(p=Nu(En)*Qe+Te,v=Vu(En)*mt+ze),g=Nu(Qn)*Qe+Te,m=Vu(Qn)*mt+ze;break;case er.R:p=g=s[V],v=m=s[V+1],y=s[V++],b=s[V++];var oi=s[V++],si=s[V++];if(w){if(x+(Z=S[T++])>P){var wi=P-x;i.moveTo(y,b),i.lineTo(y+gm(wi,oi),b),(wi-=oi)>0&&i.lineTo(y+oi,b+gm(wi,si)),(wi-=si)>0&&i.lineTo(y+mm(oi-wi,0),b+si),(wi-=oi)>0&&i.lineTo(y,b+mm(si-wi,0));break e}x+=Z}i.rect(y,b,oi,si);break;case er.Z:if(I>0&&(i.lineTo(R,B),I=0),w){var Z;if(x+(Z=S[T++])>P){var ne;i.lineTo(g*(1-(ne=(P-x)/Z))+p*ne,m*(1-ne)+v*ne);break e}x+=Z}i.closePath(),g=p,m=v}}},o.CMD=er,o.initDefaultProps=((i=o.prototype)._saveData=!0,i._needsDash=!1,i._dashOffset=0,i._dashIdx=0,i._dashSum=0,i._ux=0,i._uy=0,i._pendingPtDist=0,void(i._version=0)),o;var i}();function zu(o,i,r,s,u,f,d){if(0===u)return!1;var v,p=u;if(d>i+p&&d>s+p||do+p&&f>r+p||fi+y&&m>s+y&&m>f+y&&m>p+y||mo+y&&g>r+y&&g>u+y&&g>d+y||gi+g&&v>s+g&&v>f+g||vo+g&&p>r+g&&p>u+g||pr||m+gu&&(u+=ym);var b=Math.atan2(v,p);return b<0&&(b+=ym),b>=s&&b<=u||b+ym>=s&&b+ym<=u}function Wl(o,i,r,s,u,f){if(f>i&&f>s||fu?p:0}var rf=Lo.CMD,Rd=2*Math.PI,Ra=[-1,-1,-1],tl=[-1,-1];function oX(){var o=tl[0];tl[0]=tl[1],tl[1]=o}function bm(o,i,r,s,u,f,d,p,v,g){if(g>i&&g>s&&g>f&&g>p||g1&&oX(),w=Br(i,s,f,p,tl[0]),b>1&&(S=Br(i,s,f,p,tl[1]))),y+=2===b?xi&&p>s&&p>f||p=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*p;if(Io(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Lu(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(i,s,f,p,Ra);if(0===v)return 0;var g=uO(i,s,f);if(g>=0&&g<=1){for(var m=0,y=Hr(i,s,f,g),b=0;br||p<-r)return 0;var v=Math.sqrt(r*r-p*p);Ra[0]=-v,Ra[1]=v;var g=Math.abs(s-u);if(g<1e-4)return 0;if(g>=Rd-1e-4){s=0,u=Rd;var m=f?1:-1;return d>=Ra[0]+o&&d<=Ra[1]+o?m:0}if(s>u){var y=s;s=u,u=y}s<0&&(s+=Rd,u+=Rd);for(var b=0,w=0;w<2;w++){var S=Ra[w];if(S+o>d){var M=Math.atan2(p,S);m=f?1:-1,M<0&&(M=Rd+M),(M>=s&&M<=u||M+Rd>=s&&M+Rd<=u)&&(M>Math.PI/2&&M<1.5*Math.PI&&(m=-m),b+=m)}}return b}function Ok(o,i,r,s,u){for(var b,w,f=o.data,d=o.len(),p=0,v=0,g=0,m=0,y=0,S=0;S1&&(r||(p+=Wl(v,g,m,y,s,u))),x&&(m=v=f[S],y=g=f[S+1]),M){case rf.M:v=m=f[S++],g=y=f[S++];break;case rf.L:if(r){if(zu(v,g,f[S],f[S+1],i,s,u))return!0}else p+=Wl(v,g,f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case rf.C:if(r){if(Ek(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=bm(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case rf.Q:if(r){if(gO(v,g,f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=ds(v,g,f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case rf.A:var T=f[S++],P=f[S++],I=f[S++],R=f[S++],B=f[S++],V=f[S++];S+=1;var G=!!(1-f[S++]);b=Math.cos(B)*I+T,w=Math.sin(B)*R+P,x?(m=b,y=w):p+=Wl(v,g,b,w,s,u);var W=(s-T)*R/I+T;if(r){if(dn(T,P,R,B,B+V,G,i,W,u))return!0}else p+=Pk(T,P,R,B,B+V,G,W,u);v=Math.cos(B+V)*I+T,g=Math.sin(B+V)*R+P;break;case rf.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],w=y+f[S++],r){if(zu(m,y,b,y,i,s,u)||zu(b,y,b,w,i,s,u)||zu(b,w,m,w,i,s,u)||zu(m,w,m,y,i,s,u))return!0}else p+=Wl(b,y,b,w,s,u),p+=Wl(m,w,m,y,s,u);break;case rf.Z:if(r){if(zu(v,g,m,y,i,s,u))return!0}else p+=Wl(v,g,m,y,s,u);v=m,g=y}}return!r&&!function(o,i){return Math.abs(o-i)<1e-4}(g,y)&&(p+=Wl(v,g,m,y,s,u)||0),0!==p}var jp=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ef),Ik={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zp.style)},Rk=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],an=function(o){function i(r){return o.call(this,r)||this}return at(i,o),i.prototype.update=function(){var r=this;o.prototype.update.call(this);var s=this.style;if(s.decal){var u=this._decalEl=this._decalEl||new i;u.buildPath===i.prototype.buildPath&&(u.buildPath=function(v){r.buildPath(v,r.shape)}),u.silent=!0;var f=u.style;for(var d in s)f[d]!==s[d]&&(f[d]=s[d]);f.fill=s.fill?s.decal:null,f.decal=null,f.shadowColor=null,s.strokeFirst&&(f.stroke=null);for(var p=0;p.5?Re:s>.2?"#eee":xn}if(r)return xn}return Re},i.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(tn(s)){var u=this.__zr;if(!(!u||!u.isDarkMode())==Nb(r,0)<.4)return s}},i.prototype.buildPath=function(r,s,u){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.createPathProxy=function(){this.path=new Lo(!1)},i.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(null==s||"none"===s||!(r.lineWidth>0))},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,u=!r;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),r=d.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||u){p.copy(r);var v=s.strokeNoScale?this.getLineScale():1,g=s.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(p.width+=g/v,p.height+=g/v,p.x-=g/v/2,p.y-=g/v/2)}return p}return r},i.prototype.contain=function(r,s){var u=this.transformCoordToLocal(r,s),f=this.getBoundingRect(),d=this.style;if(f.contain(r=u[0],s=u[1])){var p=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function(o,i,r,s){return Ok(o,i,!0,r,s)}(p,v/g,r,s)))return!0}if(this.hasFill())return function(o,i,r){return Ok(o,0,!1,i,r)}(p,r,s)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(r){return this.animate("shape",r)},i.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(r,s){"shape"===r?this.setShape(s):o.prototype.attrKV.call(this,r,s)},i.prototype.setShape=function(r,s){var u=this.shape;return u||(u=this.shape={}),"string"==typeof r?u[r]=s:Me(u,r),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(r){return _p(jp,r)},i.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.shape&&!s.shape&&(s.shape=Me({},this.shape))},i.prototype._applyStateObj=function(r,s,u,f,d,p){o.prototype._applyStateObj.call(this,r,s,u,f,d,p);var g,v=!(s&&f);if(s&&s.shape?d?f?g=s.shape:(g=Me({},u.shape),Me(g,s.shape)):(g=Me({},f?this.shape:u.shape),Me(g,s.shape)):v&&(g=u.shape),g)if(d){this.shape=Me({},this.shape);for(var m={},y=kn(g),b=0;b0},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.createStyle=function(r){return _p(YH,r)},i.prototype.setBoundingRect=function(r){this._rect=r},i.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var s=r.text;null!=s?s+="":s="";var u=em(s,r.font,r.textAlign,r.textBaseline);if(u.x+=r.x||0,u.y+=r.y||0,this.hasStroke()){var f=r.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(Ru);Lk.prototype.type="tspan";var Wp=Lk,_O=tt({x:0,y:0},ef),qH={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zp.style)},yO=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return at(i,o),i.prototype.createStyle=function(r){return _p(_O,r)},i.prototype._getSize=function(r){var s=this.style,u=s[r];if(null!=u)return u;var f=function(o){return!!(o&&"string"!=typeof o&&o.width&&o.height)}(s.image)?s.image:this.__image;if(!f)return 0;var d="width"===r?"height":"width",p=s[d];return null==p?f[r]:f[r]/f[d]*p},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return qH},i.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Vt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},i}(Ru);yO.prototype.type="image";var di=yO,Ld=Math.round;function bO(o,i,r){if(i){var s=i.x1,u=i.x2,f=i.y1,d=i.y2;o.x1=s,o.x2=u,o.y1=f,o.y2=d;var p=r&&r.lineWidth;return p&&(Ld(2*s)===Ld(2*u)&&(o.x1=o.x2=af(s,p,!0)),Ld(2*f)===Ld(2*d)&&(o.y1=o.y2=af(f,p,!0))),o}}function ZH(o,i,r){if(i){var s=i.x,u=i.y,f=i.width,d=i.height;o.x=s,o.y=u,o.width=f,o.height=d;var p=r&&r.lineWidth;return p&&(o.x=af(s,p,!0),o.y=af(u,p,!0),o.width=Math.max(af(s+f,p,!1)-o.x,0===f?0:1),o.height=Math.max(af(u+d,p,!1)-o.y,0===d?0:1)),o}}function af(o,i,r){if(!i)return o;var s=Ld(2*o);return(s+Ld(i))%2==0?s/2:(s+(r?1:-1))/2}var a0=function(){this.x=0,this.y=0,this.width=0,this.height=0},KH={},CO=function(o){function i(r){return o.call(this,r)||this}return at(i,o),i.prototype.getDefaultShape=function(){return new a0},i.prototype.buildPath=function(r,s){var u,f,d,p;if(this.subPixelOptimize){var v=ZH(KH,s,this.style);u=v.x,f=v.y,d=v.width,p=v.height,v.r=s.r,s=v}else u=s.x,f=s.y,d=s.width,p=s.height;s.r?function(o,i){var p,v,g,m,y,r=i.x,s=i.y,u=i.width,f=i.height,d=i.r;u<0&&(r+=u,u=-u),f<0&&(s+=f,f=-f),"number"==typeof d?p=v=g=m=d:d instanceof Array?1===d.length?p=v=g=m=d[0]:2===d.length?(p=g=d[0],v=m=d[1]):3===d.length?(p=d[0],v=m=d[1],g=d[2]):(p=d[0],v=d[1],g=d[2],m=d[3]):p=v=g=m=0,p+v>u&&(p*=u/(y=p+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),p+m>f&&(p*=f/(y=p+m),m*=f/y),o.moveTo(r+p,s),o.lineTo(r+u-v,s),0!==v&&o.arc(r+u-v,s+v,v,-Math.PI/2,0),o.lineTo(r+u,s+f-g),0!==g&&o.arc(r+u-g,s+f-g,g,0,Math.PI/2),o.lineTo(r+m,s+f),0!==m&&o.arc(r+m,s+f-m,m,Math.PI/2,Math.PI),o.lineTo(r,s+p),0!==p&&o.arc(r+p,s+p,p,Math.PI,1.5*Math.PI)}(r,s):r.rect(u,f,d,p)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(an);CO.prototype.type="rect";var Bt=CO,wO={fill:"#000"},QH={style:tt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},zp.style)},kO=function(o){function i(r){var s=o.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=wO,s.attr(r),s}return at(i,o),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var r=0;rb&&v){var w=Math.floor(b/p);m=m.slice(0,w)}var S=b,M=g;if(s&&(S+=s[0]+s[2],null!=M&&(M+=s[1]+s[3])),o&&f&&null!=M)for(var x=ce(g,u,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),T=0;T0,Z=null!=r.width&&("truncate"===r.overflow||"break"===r.overflow||"breakAll"===r.overflow),ne=d.calculatedLineHeight,te=0;tep&&_k(r,o.substring(p,g),i,d),_k(r,v[2],i,d,v[1]),p=Bp.lastIndex}pu){B>0?(P.tokens=P.tokens.slice(0,B),x(P,R,I),r.lines=r.lines.slice(0,T+1)):r.lines=r.lines.slice(0,T);break e}var ne=G.width,te=null==ne||"auto"===ne;if("string"==typeof ne&&"%"===ne.charAt(ne.length-1))V.percentWidth=ne,m.push(V),V.contentWidth=Po(V.text,J);else{if(te){var se=G.backgroundColor,le=se&&se.image;le&&Jc(le=pk(le))&&(V.width=Math.max(V.width,le.width*Z/le.height))}var de=S&&null!=s?s-R:null;null!=de&&de=0&&"right"===(se=V[te]).align;)this._placeToken(se,r,W,T,ne,"right",I),K-=se.width,ne-=se.width,te--;for(Z+=(f-(Z-x)-(P-ne)-K)/2;J<=te;)this._placeToken(se=V[J],r,W,T,Z+se.width/2,"center",I),Z+=se.width,J++;T+=W}},i.prototype._placeToken=function(r,s,u,f,d,p,v){var g=s.rich[r.styleName]||{};g.text=r.text;var m=r.verticalAlign,y=f+u/2;"top"===m?y=f+r.height/2:"bottom"===m&&(y=f+u-r.height/2),!r.isLineHolder&&o0(g)&&this._renderBackground(g,s,"right"===p?d-r.width:"center"===p?d-r.width/2:d,y-r.height/2,r.width,r.height);var w=!!g.backgroundColor,S=r.textPadding;S&&(d=Hk(d,p,S),y-=r.height/2-S[0]-r.innerHeight/2);var M=this._getOrCreateChild(Wp),x=M.createStyle();M.useStyle(x);var T=this._defaultStyle,P=!1,I=0,R=Bk("fill"in g?g.fill:"fill"in s?s.fill:(P=!0,T.fill)),B=Bk("stroke"in g?g.stroke:"stroke"in s?s.stroke:w||v||T.autoStroke&&!P?null:(I=2,T.stroke)),V=g.textShadowBlur>0||s.textShadowBlur>0;x.text=r.text,x.x=d,x.y=y,V&&(x.shadowBlur=g.textShadowBlur||s.textShadowBlur||0,x.shadowColor=g.textShadowColor||s.textShadowColor||"transparent",x.shadowOffsetX=g.textShadowOffsetX||s.textShadowOffsetX||0,x.shadowOffsetY=g.textShadowOffsetY||s.textShadowOffsetY||0),x.textAlign=p,x.textBaseline="middle",x.font=r.font||kd,x.opacity=bn(g.opacity,s.opacity,1),B&&(x.lineWidth=bn(g.lineWidth,s.lineWidth,I),x.lineDash=Yt(g.lineDash,s.lineDash),x.lineDashOffset=s.lineDashOffset||0,x.stroke=B),R&&(x.fill=R);var G=r.contentWidth,W=r.contentHeight;M.setBoundingRect(new Vt(tm(x.x,G,x.textAlign),Ip(x.y,W,x.textBaseline),G,W))},i.prototype._renderBackground=function(r,s,u,f,d,p){var M,x,P,v=r.backgroundColor,g=r.borderWidth,m=r.borderColor,y=v&&v.image,b=v&&!y,w=r.borderRadius,S=this;if(b||g&&m){(M=this._getOrCreateChild(Bt)).useStyle(M.createStyle()),M.style.fill=null;var T=M.shape;T.x=u,T.y=f,T.width=d,T.height=p,T.r=w,M.dirtyShape()}if(b)(P=M.style).fill=v||null,P.fillOpacity=Yt(r.fillOpacity,1);else if(y){(x=this._getOrCreateChild(di)).onload=function(){S.dirtyStyle()};var I=x.style;I.image=v.image,I.x=u,I.y=f,I.width=d,I.height=p}g&&m&&((P=M.style).lineWidth=g,P.stroke=m,P.strokeOpacity=Yt(r.strokeOpacity,1),P.lineDash=r.borderDash,P.lineDashOffset=r.borderDashOffset||0,M.strokeContainThreshold=0,M.hasFill()&&M.hasStroke()&&(P.strokeFirst=!0,P.lineWidth*=2));var R=(M||x).style;R.shadowBlur=r.shadowBlur||0,R.shadowColor=r.shadowColor||"transparent",R.shadowOffsetX=r.shadowOffsetX||0,R.shadowOffsetY=r.shadowOffsetY||0,R.opacity=bn(r.opacity,s.opacity,1)},i.makeFont=function(r){var s="";if(r.fontSize||r.fontFamily||r.fontWeight){var u="";u="string"!=typeof r.fontSize||-1===r.fontSize.indexOf("px")&&-1===r.fontSize.indexOf("rem")&&-1===r.fontSize.indexOf("em")?isNaN(+r.fontSize)?"12px":r.fontSize+"px":r.fontSize,s=[r.fontStyle,r.fontWeight,u,r.fontFamily||"sans-serif"].join(" ")}return s&&Tu(s)||r.textFont||r.font},i}(Ru),$H={left:!0,right:1,center:1},Nk={top:1,bottom:1,middle:1};function Vk(o){if(o){o.font=kO.makeFont(o);var i=o.align;"middle"===i&&(i="center"),o.align=null==i||$H[i]?i:"left";var r=o.verticalAlign;"center"===r&&(r="middle"),o.verticalAlign=null==r||Nk[r]?r:"top",o.padding&&(o.padding=Ab(o.padding))}}function Bk(o,i){return null==o||i<=0||"transparent"===o||"none"===o?null:o.image||o.colorStops?"#000":o}function Hk(o,i,r){return"right"===i?o-r[1]:"center"===i?o+r[3]/2-r[1]/2:o+r[3]}function MO(o){var i=o.text;return null!=i&&(i+=""),i}function o0(o){return!!(o.backgroundColor||o.borderWidth&&o.borderColor)}var on=kO,gt=nn(),xO=1,Fd={},nl=nn(),ps=["emphasis","blur","select"],Yl=["normal","emphasis","blur","select"],Nd="highlight",wm="downplay",Uu="select",Sm="unselect",Yp="toggleSelect";function sf(o){return null!=o&&"none"!==o}var l0=new ro(100);function Uk(o){if("string"!=typeof o)return o;var i=l0.get(o);return i||(i=PP(o,-.1),l0.put(o,i)),i}function Gk(o,i,r){o.onHoverStateChange&&(o.hoverState||0)!==r&&o.onHoverStateChange(i),o.hoverState=r}function Vd(o){Gk(o,"emphasis",2)}function u0(o){2===o.hoverState&&Gk(o,"normal",0)}function c0(o){Gk(o,"blur",1)}function DO(o){1===o.hoverState&&Gk(o,"normal",0)}function jk(o){o.selected=!0}function ez(o){o.selected=!1}function AO(o,i,r){i(o,r)}function Gu(o,i,r){AO(o,i,r),o.isGroup&&o.traverse(function(s){AO(s,i,r)})}function f0(o,i){switch(i){case"emphasis":o.hoverState=2;break;case"normal":o.hoverState=0;break;case"blur":o.hoverState=1;break;case"select":o.selected=!0}}function km(o,i){var r=this.states[o];if(this.style){if("emphasis"===o)return function(o,i,r,s){var u=r&&zt(r,"select")>=0,f=!1;if(o instanceof an){var d=nl(o),p=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(sf(p)||sf(v)){var g=(s=s||{}).style||{};!sf(g.fill)&&sf(p)?(f=!0,s=Me({},s),(g=Me({},g)).fill=Uk(p)):!sf(g.stroke)&&sf(v)&&(f||(s=Me({},s),g=Me({},g)),g.stroke=Uk(v)),s.style=g}}if(s&&null==s.z2){f||(s=Me({},s));var m=o.z2EmphasisLift;s.z2=o.z2+(null!=m?m:10)}return s}(this,0,i,r);if("blur"===o)return function(o,i,r){var s=zt(o.currentStates,i)>=0,u=o.style.opacity,f=s?null:function(o,i,r,s){for(var u=o.style,f={},d=0;d0){var v={dataIndex:p,seriesIndex:r.seriesIndex};null!=d&&(v.dataType=d),i.push(v)}})}),i}function Un(o,i,r){qp(o,!0),Gu(o,Bd),Hd(o,i,r)}function Hd(o,i,r){var s=gt(o);null!=i?(s.focus=i,s.blurScope=r):s.focus&&(s.focus=null)}var NO=["emphasis","blur","select"],VO={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Wi(o,i,r,s){r=r||"itemStyle";for(var u=0;u1&&(d*=y0(S),p*=y0(S));var M=(u===f?-1:1)*y0((d*d*(p*p)-d*d*(w*w)-p*p*(b*b))/(d*d*(w*w)+p*p*(b*b)))||0,x=M*d*w/p,T=M*-p*b/d,P=(o+r)/2+C0(y)*x-b0(y)*T,I=(i+s)/2+b0(y)*x+C0(y)*T,R=GO([1,0],[(b-x)/d,(w-T)/p]),B=[(b-x)/d,(w-T)/p],V=[(-1*b-x)/d,(-1*w-T)/p],G=GO(B,V);if(w0(B,V)<=-1&&(G=Tm),w0(B,V)>=1&&(G=0),G<0){var W=Math.round(G/Tm*1e6)/1e6;G=2*Tm+W%2*Tm}m.addData(g,P,I,d,p,R,G,y,f)}var az=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Kt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,$k=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return at(i,o),i.prototype.applyTransform=function(r){},i}(an);function Dm(o){return null!=o.setData}function vs(o,i){var r=function(o){var i=new Lo;if(!o)return i;var d,r=0,s=0,u=r,f=s,p=Lo.CMD,v=o.match(az);if(!v)return i;for(var g=0;gse*se+le*le&&(W=J,K=Z),{cx:W,cy:K,x01:-m,y01:-y,x11:W*(u/B-1),y11:K*(u/B-1)}}var rM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},cz=function(o){function i(r){return o.call(this,r)||this}return at(i,o),i.prototype.getDefaultShape=function(){return new rM},i.prototype.buildPath=function(r,s){!function(o,i){var r=YO(i.r,0),s=YO(i.r0||0,0),u=r>0;if(u||s>0){if(u||(r=s,s=0),s>r){var d=r;r=s,s=d}var m,p=!!i.clockwise,v=i.startAngle,g=i.endAngle;if(v===g)m=0;else{var y=[v,g];pO(y,!p),m=WO(y[0]-y[1])}var b=i.cx,w=i.cy,S=i.cornerRadius||0,M=i.innerCornerRadius||0;if(r>Xl)if(m>Wu-Xl)o.moveTo(b+r*Yu(v),w+r*ql(v)),o.arc(b,w,r,v,g,!p),s>Xl&&(o.moveTo(b+s*Yu(g),w+s*ql(g)),o.arc(b,w,s,g,v,p));else{var x=WO(r-s)/2,T=k0(x,S),P=k0(x,M),I=P,R=T,B=r*Yu(v),V=r*ql(v),G=s*Yu(g),W=s*ql(g),K=void 0,J=void 0,Z=void 0,ne=void 0;if((T>Xl||P>Xl)&&(K=r*Yu(g),J=r*ql(g),Z=s*Yu(v),ne=s*ql(v),mXl)if(R>Xl){var Te=Em(Z,ne,B,V,r,R,p),ze=Em(K,J,G,W,r,R,p);o.moveTo(b+Te.cx+Te.x01,w+Te.cy+Te.y01),RXl&&m>Xl?I>Xl?(Te=Em(G,W,K,J,s,-I,p),ze=Em(B,V,Z,ne,s,-I,p),o.lineTo(b+Te.cx+Te.x01,w+Te.cy+Te.y01),I=2){if(s&&"spline"!==s){var f=function(o,i,r,s){var v,g,m,y,u=[],f=[],d=[],p=[];if(s){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,w=o.length;br-2?r-1:v+1],w=o[v>r-3?r-1:v+2]);var S=g*g,M=g*S;s.push([dz(m[0],y[0],b[0],w[0],g,S,M),dz(m[1],y[1],b[1],w[1],g,S,M)])}return s}(u,r)),o.moveTo(u[0][0],u[0][1]),p=1;for(var y=u.length;puf[1]){if(p=!1,f)return p;var m=Math.abs(uf[0]-lf[1]),y=Math.abs(lf[0]-uf[1]);Math.min(m,y)>u.len()&&Nt.scale(u,g,m0?p?i.animateFrom(r,{duration:S,delay:x||0,easing:M,done:f,force:!!f||!!d,scope:o,during:d}):i.animateTo(r,{duration:S,delay:x||0,easing:M,done:f,force:!!f||!!d,setToFinal:!0,scope:o,during:d}):(i.stopAnimation(),!p&&i.attr(r),f&&f())}else i.stopAnimation(),!p&&i.attr(r),d&&d(1),f&&f()}function un(o,i,r,s,u,f){fM("update",o,i,r,s,u,f)}function Or(o,i,r,s,u,f){fM("init",o,i,r,s,u,f)}function qu(o,i,r,s,u,f){tv(o)||fM("remove",o,i,r,s,u,f)}function iI(o,i,r,s){o.removeTextContent(),o.removeTextGuideLine(),qu(o,{style:{opacity:0}},i,r,s)}function ev(o,i,r){function s(){o.parent&&o.parent.remove(o)}o.isGroup?o.traverse(function(u){u.isGroup||iI(u,i,r,s)}):iI(o,i,r,s)}function tv(o){if(!o.__zr)return!0;for(var i=0;iMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function aI(o){return!o.isGroup}function Wd(o,i,r){if(o&&i){var p,f=(p={},o.traverse(function(v){aI(v)&&v.anid&&(p[v.anid]=v)}),p);i.traverse(function(d){if(aI(d)&&d.anid){var p=f[d.anid];if(p){var v=u(d);d.attr(u(p)),un(d,v,r,gt(d).dataIndex)}}})}function u(d){var p={x:d.x,y:d.y,rotation:d.rotation};return function(o){return null!=o.shape}(d)&&(p.shape=Me({},d.shape)),p}}function dM(o,i){return Ie(o,function(r){var s=r[0];s=Pm(s,i.x),s=Om(s,i.x+i.width);var u=r[1];return u=Pm(u,i.y),[s,u=Om(u,i.y+i.height)]})}function oI(o,i){var r=Pm(o.x,i.x),s=Om(o.x+o.width,i.x+i.width),u=Pm(o.y,i.y),f=Om(o.y+o.height,i.y+i.height);if(s>=r&&f>=u)return{x:r,y:u,width:s-r,height:f-u}}function Fm(o,i,r){var s=Me({rectHover:!0},i),u=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},o)return 0===o.indexOf("image://")?(u.image=o.slice(8),tt(u,r),new di(s)):Im(o.replace("path://",""),s,r,"center")}function nv(o,i,r,s,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var w=o-u,S=i-f,M=hM(w,S,v,g)/b;if(M<0||M>1)return!1;var x=hM(w,S,m,y)/b;return!(x<0||x>1)}function hM(o,i,r,s){return o*s-r*i}function ff(o){var i=o.itemTooltipOption,r=o.componentModel,s=o.itemName,u=tn(i)?{formatter:i}:i,f=r.mainType,d=r.componentIndex,p={componentType:f,name:s,$vars:["name"]};p[f+"Index"]=d;var v=o.formatterParamsExtra;v&&q(kn(v),function(m){Ke(p,m)||(p[m]=v[m],p.$vars.push(m))});var g=gt(o.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:s,option:tt({content:s,formatterParams:p},u)}}zr("circle",gs),zr("ellipse",Am),zr("sector",No),zr("ring",M0),zr("polygon",ni),zr("polyline",Fa),zr("rect",Bt),zr("line",Ai),zr("bezierCurve",Ud),zr("arc",T0);var P0={};function lI(o,i){for(var r=0;r-1?"ZH":"EN";function yM(o,i){o=o.toUpperCase(),_M[o]=new Ln(i),L0[o]=i}yM("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),yM("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var lv=36e5,jt=24*lv,gI=365*jt,F0={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},Xu="{yyyy}-{MM}-{dd}",N0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xu,hour:Xu+" "+F0.hour,minute:Xu+" "+F0.minute,second:Xu+" "+F0.second,millisecond:F0.none},zm=["year","month","day","hour","minute","second","millisecond"],Pz=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(o,i){return"0000".substr(0,i-(o+="").length)+o}function uv(o){switch(o){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return o}}function Oz(o){return o===uv(o)}function Um(o,i,r,s){var u=Oo(o),f=u[Xd(r)](),d=u[cv(r)]()+1,p=Math.floor((d-1)/4)+1,v=u[V0(r)](),g=u["get"+(r?"UTC":"")+"Day"](),m=u[Gm(r)](),y=(m-1)%12+1,b=u[jm(r)](),w=u[B0(r)](),S=u[CM(r)](),x=(s instanceof Ln?s:function(o){return _M[o]}(s||qd)||_M.EN).getModel("time"),T=x.get("month"),P=x.get("monthAbbr"),I=x.get("dayOfWeek"),R=x.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,p+"").replace(/{MMMM}/g,T[d-1]).replace(/{MMM}/g,P[d-1]).replace(/{MM}/g,Vo(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Vo(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,I[g]).replace(/{ee}/g,R[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Vo(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Vo(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Vo(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Vo(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,Vo(S,3)).replace(/{S}/g,S+"")}function _I(o,i){var r=Oo(o),s=r[cv(i)]()+1,u=r[V0(i)](),f=r[Gm(i)](),d=r[jm(i)](),p=r[B0(i)](),g=0===r[CM(i)](),m=g&&0===p,y=m&&0===d,b=y&&0===f,w=b&&1===u;return w&&1===s?"year":w?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function yI(o,i,r){var s="number"==typeof o?Oo(o):o;switch(i=i||_I(o,r)){case"year":return s[Xd(r)]();case"half-year":return s[cv(r)]()>=6?1:0;case"quarter":return Math.floor((s[cv(r)]()+1)/4);case"month":return s[cv(r)]();case"day":return s[V0(r)]();case"half-day":return s[Gm(r)]()/24;case"hour":return s[Gm(r)]();case"minute":return s[jm(r)]();case"second":return s[B0(r)]();case"millisecond":return s[CM(r)]()}}function Xd(o){return o?"getUTCFullYear":"getFullYear"}function cv(o){return o?"getUTCMonth":"getMonth"}function V0(o){return o?"getUTCDate":"getDate"}function Gm(o){return o?"getUTCHours":"getHours"}function jm(o){return o?"getUTCMinutes":"getMinutes"}function B0(o){return o?"getUTCSeconds":"getSeconds"}function CM(o){return o?"getUTCSeconds":"getSeconds"}function Rz(o){return o?"setUTCFullYear":"setFullYear"}function bI(o){return o?"setUTCMonth":"setMonth"}function Lz(o){return o?"setUTCDate":"setDate"}function wM(o){return o?"setUTCHours":"setHours"}function Fz(o){return o?"setUTCMinutes":"setMinutes"}function CI(o){return o?"setUTCSeconds":"setSeconds"}function wI(o){return o?"setUTCSeconds":"setSeconds"}function SM(o){if(!Kc(o))return tn(o)?o:"-";var i=(o+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function SI(o,i){return o=(o||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),i&&o&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o}var fv=Ab,kM=/([&<>"'])/g,Nz={"&":"&","<":"<",">":">",'"':""","'":"'"};function Na(o){return null==o?"":(o+"").replace(kM,function(i,r){return Nz[r]})}function Wm(o,i,r){function u(m){return m&&Tu(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===i,p=o instanceof Date;if(d||p){var v=d?Oo(o):o;if(!isNaN(+v))return Um(v,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",r);if(p)return"-"}if("ordinal"===i)return fi(o)?u(o):Ac(o)&&f(o)?o+"":"-";var g=Er(o);return f(g)?SM(g):fi(o)?u(o):"-"}var Vz=["a","b","c","d","e","f","g"],Bo=function(i,r){return"{"+i+(null==r?"":r)+"}"};function MM(o,i,r){ke(i)||(i=[i]);var s=i.length;if(!s)return"";for(var u=i[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}:""}function kI(o,i,r){("week"===o||"month"===o||"quarter"===o||"half-year"===o||"year"===o)&&(o="MM-dd\nyyyy");var s=Oo(i),u=r?"UTC":"",f=s["get"+u+"FullYear"](),d=s["get"+u+"Month"]()+1,p=s["get"+u+"Date"](),v=s["get"+u+"Hours"](),g=s["get"+u+"Minutes"](),m=s["get"+u+"Seconds"](),y=s["get"+u+"Milliseconds"]();return o.replace("MM",Vo(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Vo(p,2)).replace("d",p).replace("hh",Vo(v,2)).replace("h",v).replace("mm",Vo(g,2)).replace("m",g).replace("ss",Vo(m,2)).replace("s",m).replace("SSS",Vo(y,3))}function MI(o){return o&&o.charAt(0).toUpperCase()+o.substr(1)}function hf(o,i){return i=i||"transparent",tn(o)?o:pt(o)&&o.colorStops&&(o.colorStops[0]||{}).color||i}function H0(o,i){if("_blank"===i||"blank"===i){var r=window.open();r.opener=null,r.location.href=o}else window.open(o,i)}var xM=q,TM=["left","right","top","bottom","width","height"],xe=[["width","left","right"],["height","top","bottom"]];function DM(o,i,r,s,u){var f=0,d=0;null==s&&(s=1/0),null==u&&(u=1/0);var p=0;i.eachChild(function(v,g){var w,S,m=v.getBoundingRect(),y=i.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===o){var M=m.width+(b?-b.x+m.x:0);(w=f+M)>s||v.newline?(f=0,w=M,d+=p+r,p=m.height):p=Math.max(p,m.height)}else{var x=m.height+(b?-b.y+m.y:0);(S=d+x)>u||v.newline?(f+=p+r,d=0,S=x,p=m.width):p=Math.max(p,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===o?f=w+r:d=S+r)})}var Zu=DM;function pi(o,i,r){r=fv(r||0);var s=i.width,u=i.height,f=Ae(o.left,s),d=Ae(o.top,u),p=Ae(o.right,s),v=Ae(o.bottom,u),g=Ae(o.width,s),m=Ae(o.height,u),y=r[2]+r[0],b=r[1]+r[3],w=o.aspect;switch(isNaN(g)&&(g=s-p-b-f),isNaN(m)&&(m=u-v-y-d),null!=w&&(isNaN(g)&&isNaN(m)&&(w>s/u?g=.8*s:m=.8*u),isNaN(g)&&(g=w*m),isNaN(m)&&(m=g/w)),isNaN(f)&&(f=s-p-g-b),isNaN(d)&&(d=u-v-m-y),o.left||o.right){case"center":f=s/2-g/2-r[3];break;case"right":f=s-g-b}switch(o.top||o.bottom){case"middle":case"center":d=u/2-m/2-r[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=s-b-f-(p||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new Vt(f+r[3],d+r[0],g,m);return S.margin=r,S}function z0(o,i,r,s,u){var f=!u||!u.hv||u.hv[0],d=!u||!u.hv||u.hv[1],p=u&&u.boundingMode||"all";if(f||d){var v;if("raw"===p)v="group"===o.type?new Vt(0,0,+i.width||0,+i.height||0):o.getBoundingRect();else if(v=o.getBoundingRect(),o.needLocalTransform()){var g=o.getLocalTransform();(v=v.clone()).applyTransform(g)}var m=pi(tt({width:v.width,height:v.height},i),r,s),y=f?m.x-v.x:0,b=d?m.y-v.y:0;"raw"===p?(o.x=y,o.y=b):(o.x+=y,o.y+=b),o.markRedraw()}}function pf(o){var i=o.layoutMode||o.constructor.layoutMode;return pt(i)?i:i?{type:i}:null}function Ho(o,i,r){var s=r&&r.ignoreSize;!ke(s)&&(s=[s,s]);var u=d(xe[0],0),f=d(xe[1],1);function d(m,y){var b={},w=0,S={},M=0;if(xM(m,function(I){S[I]=o[I]}),xM(m,function(I){p(i,I)&&(b[I]=S[I]=i[I]),v(b,I)&&w++,v(S,I)&&M++}),s[y])return v(i,m[1])?S[m[2]]=null:v(i,m[2])&&(S[m[1]]=null),S;if(2===M||!w)return S;if(w>=2)return b;for(var T=0;T=0;v--)p=yt(p,u[v],!0);s.defaultOption=p}return s.defaultOption},i.prototype.getReferringComponents=function(r,s){var f=r+"Id";return lm(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(f,!0)},s)},i.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},i.protoInitialize=function(){var r=i.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),i}(Ln);eO(dv,Ln),$c(dv),function(o){var i={};o.registerSubTypeDefaulter=function(r,s){var u=Qs(r);i[u.main]=s},o.determineSubType=function(r,s){var u=s.type;if(!u){var f=Qs(r).main;o.hasSubTypes(r)&&i[f]&&(u=i[f](s))}return u}}(dv),function(o,i){function s(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}o.topologicalTravel=function(f,d,p,v){if(f.length){var g=function(f){var d={},p=[];return q(f,function(v){var g=s(d,v),y=function(f,d){var p=[];return q(f,function(v){zt(d,v)>=0&&p.push(v)}),p}(g.originalDeps=function(o){var i=[];return q(dv.getClassesByMainType(o),function(r){i=i.concat(r.dependencies||r.prototype.dependencies||[])}),i=Ie(i,function(r){return Qs(r).main}),"dataset"!==o&&zt(i,"dataset")<=0&&i.unshift("dataset"),i}(v),f);g.entryCount=y.length,0===g.entryCount&&p.push(v),q(y,function(b){zt(g.predecessor,b)<0&&g.predecessor.push(b);var w=s(d,b);zt(w.successor,b)<0&&w.successor.push(v)})}),{graph:d,noEntryList:p}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(P){b[P]=!0});y.length;){var w=y.pop(),S=m[w],M=!!b[w];M&&(p.call(v,w,S.originalDeps.slice()),delete b[w]),q(S.successor,M?T:x)}q(b,function(){throw new Error("")})}function x(P){m[P].entryCount--,0===m[P].entryCount&&y.push(P)}function T(P){b[P]=!0,x(P)}}}(dv);var Qt=dv,ol="";"undefined"!=typeof navigator&&(ol=navigator.platform||"");var $l="rgba(0, 0, 0, 0.2)",pa={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$l,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$l,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$l,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$l,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$l,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$l,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ol.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},gf=st(["tooltip","label","itemName","itemId","seriesName"]),zo="original",vr="arrayRows",Ye="objectRows",fo="keyedColumns",ho="typedArray",Kd="unknown",Va="column",sl="row",Qd=nn();function $d(o,i,r){var s={},u=G0(i);if(!u||!o)return s;var m,y,f=[],d=[],v=Qd(i.ecModel).datasetMap,g=u.uid+"_"+r.seriesLayoutBy;q(o=o.slice(),function(M,x){var T=pt(M)?M:o[x]={name:M};"ordinal"===T.type&&null==m&&(m=x,y=S(T)),s[T.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function w(M,x,T){for(var P=0;Pi)return o[s];return o[r-1]}(s,d):r;if((m=m||r)&&m.length){var y=m[v];return u&&(g[u]=y),p.paletteIdx=(v+1)%m.length,y}}var W0,qm,IM,EI="\0_ec_inner",RM=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r,s,u,f,d,p){f=f||{},this.option=null,this._theme=new Ln(f),this._locale=new Ln(d),this._optionManager=p},i.prototype.setOption=function(r,s,u){var f=Xz(s);this._optionManager.setOption(r,u,f),this._resetOption(null,f)},i.prototype.resetOption=function(r,s){return this._resetOption(r,Xz(s))},i.prototype._resetOption=function(r,s){var u=!1,f=this._optionManager;if(!r||"recreate"===r){var d=f.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(d,s)):IM(this,d),u=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var p=f.getTimelineOption(this);p&&(u=!0,this._mergeOption(p,s))}if(!r||"recreate"===r||"media"===r){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,s)},this)}return u},i.prototype.mergeOption=function(r){this._mergeOption(r,null)},i.prototype._mergeOption=function(r,s){var u=this.option,f=this._componentsMap,d=this._componentsCount,p=[],v=st(),g=s&&s.replaceMergeMainTypeMap;(function(o){Qd(o).datasetMap=st()})(this),q(r,function(y,b){null!=y&&(Qt.hasClass(b)?b&&(p.push(b),v.set(b,!0)):u[b]=null==u[b]?it(y):yt(u[b],y,!0))}),g&&g.each(function(y,b){Qt.hasClass(b)&&!v.get(b)&&(p.push(b),v.set(b,!0))}),Qt.topologicalTravel(p,Qt.getAllClassMainTypes(),function(y){var b=function(o,i,r){var s=j0.get(i);if(!s)return r;var u=s(o);return u?r.concat(u):r}(this,y,pr(r[y])),w=f.get(y),M=Ee(w,b,w?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function(o,i,r){q(o,function(s){var u=s.newOption;pt(u)&&(s.keyInfo.mainType=i,s.keyInfo.subType=function(o,i,r,s){return i.type?i.type:r?r.subType:s.determineSubType(o,i)}(i,u,s.existing,r))})})(M,y,Qt),u[y]=null,f.set(y,null),d.set(y,0);var x=[],T=[],P=0;q(M,function(I,R){var B=I.existing,V=I.newOption;if(V){var W=Qt.getClass(y,I.keyInfo.subType,!("series"===y));if(!W)return;if(B&&B.constructor===W)B.name=I.keyInfo.name,B.mergeOption(V,this),B.optionUpdated(V,!1);else{var Z=Me({componentIndex:R},I.keyInfo);Me(B=new W(V,this,this,Z),Z),I.brandNew&&(B.__requireNewView=!0),B.init(V,this,this),B.optionUpdated(null,!0)}}else B&&(B.mergeOption({},this),B.optionUpdated({},!1));B?(x.push(B.option),T.push(B),P++):(x.push(void 0),T.push(void 0))},this),u[y]=x,f.set(y,T),d.set(y,P),"series"===y&&W0(this)},this),this._seriesIndices||W0(this)},i.prototype.getOption=function(){var r=it(this.option);return q(r,function(s,u){if(Qt.hasClass(u)){for(var f=pr(s),d=f.length,p=!1,v=d-1;v>=0;v--)f[v]&&!Xb(f[v])?p=!0:(f[v]=null,!p&&d--);f.length=d,r[u]=f}}),delete r[EI],r},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.getLocale=function(r){return this.getLocaleModel().get(r)},i.prototype.setUpdatePayload=function(r){this._payload=r},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(r,s){var u=this._componentsMap.get(r);if(u){var f=u[s||0];if(f)return f;if(null==s)for(var d=0;d=i:"max"===r?o<=i:o===i})(s[g],f,v)||(u=!1)}}),u}var $z=function(){function o(i){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=i}return o.prototype.setOption=function(i,r,s){i&&(q(pr(i.series),function(d){d&&d.data&&wo(d.data)&&Lg(d.data)}),q(pr(i.dataset),function(d){d&&d.source&&wo(d.source)&&Lg(d.source)})),i=it(i);var u=this._optionBackup,f=function(o,i,r){var u,f,s=[],d=o.baseOption,p=o.timeline,v=o.options,g=o.media,m=!!o.media,y=!!(v||p||d&&d.timeline);function b(w){q(i,function(S){S(w,r)})}return d?(f=d).timeline||(f.timeline=p):((y||m)&&(o.options=o.media=null),f=o),m&&ke(g)&&q(g,function(w){w&&w.option&&(w.query?s.push(w):u||(u=w))}),b(f),q(v,function(w){return b(w)}),q(s,function(w){return b(w.option)}),{baseOption:f,timelineOptions:v||[],mediaDefault:u,mediaList:s}}(i,r,!u);this._newBaseOption=f.baseOption,u?(f.timelineOptions.length&&(u.timelineOptions=f.timelineOptions),f.mediaList.length&&(u.mediaList=f.mediaList),f.mediaDefault&&(u.mediaDefault=f.mediaDefault)):this._optionBackup=f},o.prototype.mountOption=function(i){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],it(i?r.baseOption:this._newBaseOption)},o.prototype.getTimelineOption=function(i){var r,s=this._timelineOptions;if(s.length){var u=i.getComponent("timeline");u&&(r=it(s[u.getCurrentIndex()]))}return r},o.prototype.getMediaOption=function(i){var r=this._api.getWidth(),s=this._api.getHeight(),u=this._mediaList,f=this._mediaDefault,d=[],p=[];if(!u.length&&!f)return p;for(var v=0,g=u.length;v=0;x--){var T=o[x];if(p||(S=T.data.rawIndexOf(T.stackedByDimension,w)),S>=0){var P=T.data.getByRawIndex(T.stackResultDimension,S);if(b>=0&&P>0||b<=0&&P<0){b=ZP(b,P),M=P;break}}}return s[0]=b,s[1]=M,s});d.hostModel.setData(v),i.data=v})}var A=function(i){this.data=i.data||(i.sourceFormat===fo?{}:[]),this.sourceFormat=i.sourceFormat||Kd,this.seriesLayoutBy=i.seriesLayoutBy||Va,this.startIndex=i.startIndex||0,this.dimensionsDefine=i.dimensionsDefine,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.encodeDefine=i.encodeDefine,this.metaRawOption=i.metaRawOption};function _e(o){return o instanceof A}function HI(o,i,r,s){r=r||Yi(o);var u=i.seriesLayoutBy,f=function(o,i,r,s,u){var f,d;if(!o)return{dimensionsDefine:zM(u),startIndex:d,dimensionsDetectedCount:f};if(i===vr){var p=o;"auto"===s||null==s?Qm(function(g){null!=g&&"-"!==g&&(tn(g)?null==d&&(d=1):d=0)},r,p,10):d=Ac(s)?s:s?1:0,!u&&1===d&&(u=[],Qm(function(g,m){u[m]=null!=g?g+"":""},r,p,1/0)),f=u?u.length:r===sl?p.length:p[0]?p[0].length:null}else if(i===Ye)u||(u=function(o){for(var r,i=0;ix&&(x=R)}S[0]=M,S[1]=x}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var p=0;p=1)&&(P=1),P}(d!==v||p!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(s)),this._modBy=v,this._modDataCount=g;var b=i&&i.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!s&&(y||w1&&s>0?p:d}};return f;function d(){return i=o?null:vr},gte:function(i,r){return i>=r}},MX=function(){function o(i,r){"number"!=typeof r&&_n(""),this._opFn=XM[i],this._rvalFloat=Er(r)}return o.prototype.evaluate=function(i){return this._opFn("number"==typeof i?i:Er(i),this._rvalFloat)},o}(),qr=function(){function o(i,r){var s="desc"===i;this._resultLT=s?1:-1,null==r&&(r=s?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return o.prototype.evaluate=function(i,r){var s=typeof i,u=typeof r,f="number"===s?i:Er(i),d="number"===u?r:Er(r),p=isNaN(f),v=isNaN(d);if(p&&(f=this._incomparable),v&&(d=this._incomparable),p&&v){var g="string"===s,m="string"===u;g&&(f=m?i:0),m&&(d=g?r:0)}return fd?-this._resultLT:0},o}(),ct=function(){function o(i,r){this._rval=r,this._isEQ=i,this._rvalTypeof=typeof r,this._rvalFloat=Er(r)}return o.prototype.evaluate=function(i){var r=i===this._rval;if(!r){var s=typeof i;s!==this._rvalTypeof&&("number"===s||"number"===this._rvalTypeof)&&(r=Er(i)===this._rvalFloat)}return this._isEQ?r:!r},o}();function Jl(o,i){return"eq"===o||"ne"===o?new ct("eq"===o,i):Ke(XM,o)?new MX(o,i):null}var f4=function(){function o(){}return o.prototype.getRawData=function(){throw new Error("not supported")},o.prototype.getRawDataItem=function(i){throw new Error("not supported")},o.prototype.cloneRawData=function(){},o.prototype.getDimensionInfo=function(i){},o.prototype.cloneAllDimensionInfo=function(){},o.prototype.count=function(){},o.prototype.retrieveValue=function(i,r){},o.prototype.retrieveValueFromItem=function(i,r){},o.prototype.convertValue=function(i,r){return tC(i,r)},o}();function eu(o){return KM(o.sourceFormat)||_n(""),o.data}function ul(o){var i=o.sourceFormat,r=o.data;if(KM(i)||_n(""),i===vr){for(var u=[],f=0,d=r.length;f9e10&&(this._versionSignBase=0)},o.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},o.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},o.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,i=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length;if(QM(i)){var d=i,p=void 0,v=void 0,g=void 0;if(s){var m=r[0];m.prepareSource(),p=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=wo(p=d.get("data",!0))?ho:zo,f=[];var y=this._getSourceMetaRawOption(),b=g?g.metaRawOption:null;u=[HI(p,{seriesLayoutBy:Yt(y.seriesLayoutBy,b?b.seriesLayoutBy:null),sourceHeader:Yt(y.sourceHeader,b?b.sourceHeader:null),dimensions:Yt(y.dimensions,b?b.dimensions:null)},v,d.get("encode",!0))]}else{var x=i;if(s){var T=this._applyTransform(r);u=T.sourceList,f=T.upstreamSignList}else u=[HI(x.get("source",!0),this._getSourceMetaRawOption(),null,null)],f=[]}this._setLocalSource(u,f)},o.prototype._applyTransform=function(i){var r=this._sourceHost,s=r.get("transform",!0),u=r.get("fromTransformResult",!0);null!=u&&1!==i.length&&$M("");var d,p=[],v=[];return q(i,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&$M(""),p.push(m),v.push(g._getVersionSign())}),s?d=function(o,i,r){var s=pr(o),u=s.length;u||_n("");for(var d=0,p=u;d1||r>0&&!i.noHeader,u=0;q(i.blocks,function(f){iC(f).planLayout(f);var d=f.__gapLevelBetweenSubBlocks;d>=u&&(u=d+(!s||d&&("section"!==f.type||f.noHeader)?0:1))}),i.__gapLevelBetweenSubBlocks=u},build:function(i,r,s,u){var f=r.noHeader,d=th(r),p=function(o,i,r,s){var u=[],f=i.blocks||[];ra(!f||ke(f)),f=f||[];var d=o.orderMode;if(i.sortBlocks&&d){f=f.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(Ke(p,d)){var v=new qr(p[d],null);f.sort(function(m,y){return v.evaluate(m.sortParam,y.sortParam)})}else"seriesDesc"===d&&f.reverse()}var g=th(i);if(q(f,function(m,y){var b=iC(m).build(o,m,y>0?g.html:0,s);null!=b&&u.push(b)}),u.length)return"richText"===o.renderMode?u.join(g.richText):aC(u.join(""),r)}(i,r,f?s:d.html,u);if(f)return p;var v=Wm(r.header,"ordinal",i.useUTC),g=JM(u,i.renderMode).nameStyle;return"richText"===i.renderMode?ex(i,v,g)+d.richText+p:aC('
'+Na(v)+"
"+p,s)}},nameValue:{planLayout:function(i){i.__gapLevelBetweenSubBlocks=0},build:function(i,r,s,u){var f=i.renderMode,d=r.noName,p=r.noValue,v=!r.markerType,g=r.name,m=r.value,y=i.useUTC;if(!d||!p){var b=v?"":i.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",f),w=d?"":Wm(g,"ordinal",y),S=r.valueType,M=p?[]:ke(m)?Ie(m,function(B,V){return Wm(B,ke(S)?S[V]:S,y)}):[Wm(m,ke(S)?S[0]:S,y)],x=!v||!d,T=!v&&d,P=JM(u,f),I=P.nameStyle,R=P.valueStyle;return"richText"===f?(v?"":b)+(d?"":ex(i,w,I))+(p?"":function(o,i,r,s,u){var f=[u];return r&&f.push({padding:[0,0,0,s?10:20],align:"right"}),o.markupStyleCreator.wrapRichTextStyle(i.join(" "),f)}(i,M,x,T,R)):aC((v?"":b)+(d?"":function(o,i,r){return''+Na(o)+""}(w,!v,I))+(p?"":function(o,i,r,s){return''+Ie(o,function(d){return Na(d)}).join("  ")+""}(M,x,T,R)),s)}}}};function Ve(o,i,r,s,u,f){if(o){var d=iC(o);return d.planLayout(o),d.build({useUTC:u,renderMode:r,orderMode:s,markupStyleCreator:i},o,0,f)}}function th(o){var i=o.__gapLevelBetweenSubBlocks;return{html:XI[i],richText:rC[i]}}function aC(o,i){return'
'+o+'
'}function ex(o,i,r){return o.markupStyleCreator.wrapRichTextStyle(i,r)}function tx(o,i){return hf(o.getData().getItemVisual(i,"style")[o.visualDrawType])}function nx(o,i){var r=o.get("padding");return null!=r?r:"richText"===i?[8,10]:10}var oC=function(){function o(){this.richTextStyles={},this._nextStyleNameId=Td()}return o.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},o.prototype.makeTooltipMarker=function(i,r,s){var u="richText"===s?this._generateStyleName():null,f=Bz({color:r,type:i,renderMode:s,markerId:u});return tn(f)?f:(this.richTextStyles[u]=f.style,f.content)},o.prototype.wrapRichTextStyle=function(i,r){var s={};ke(r)?q(r,function(f){return Me(s,f)}):Me(s,r);var u=this._generateStyleName();return this.richTextStyles[u]=s,"{"+u+"|"+i+"}"},o}();function $I(o){var m,y,b,w,i=o.series,r=o.dataIndex,s=o.multipleSeries,u=i.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,p=i.getRawValue(r),v=ke(p),g=tx(i,r);if(d>1||v&&!d){var S=function(o,i,r,s,u){var f=i.getData(),d=Dc(o,function(y,b,w){var S=f.getDimensionInfo(w);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),p=[],v=[],g=[];function m(y,b){var w=f.getDimensionInfo(b);!w||!1===w.otherDims.tooltip||(d?g.push(Ei("nameValue",{markerType:"subItem",markerColor:u,name:w.displayName,value:y,valueType:w.type})):(p.push(y),v.push(w.type)))}return s.length?q(s,function(y){m(_f(f,r,y),y)}):q(o,m),{inlineValues:p,inlineValueTypes:v,blocks:g}}(p,i,r,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,w=S.inlineValues[0]}else if(d){var M=u.getDimensionInfo(f[0]);w=m=_f(u,r,f[0]),y=M.type}else w=m=v?p[0]:p;var x=Ad(i),T=x&&i.name||"",P=u.getName(r),I=s?T:P;return Ei("section",{header:T,noHeader:s||!x,sortParam:w,blocks:[Ei("nameValue",{markerType:"item",markerColor:g,name:I,noName:!Tu(I),value:m,valueType:y})].concat(b||[])})}var yf=nn();function sC(o,i){return o.getName(i)||o.getId(i)}var lC=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return he(i,o),i.prototype.init=function(r,s,u){this.seriesIndex=this.componentIndex,this.dataTask=$m({count:_4,reset:y4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,u),(yf(this).sourceManager=new nC(this)).prepareSource();var d=this.getInitialData(r,u);eR(d,this),this.dataTask.context.data=d,yf(this).dataBeforeProcessed=d,JI(this),this._initSelectedMapFromData(d)},i.prototype.mergeDefaultAndTheme=function(r,s){var u=pf(this),f=u?Zd(r):{},d=this.subType;Qt.hasClass(d)&&(d+="Series"),yt(r,s.getTheme().get(this.subType)),yt(r,this.getDefaultOption()),Fp(r,"label",["show"]),this.fillDataTextStyle(r.data),u&&Ho(r,f,u)},i.prototype.mergeOption=function(r,s){r=yt(this.option,r,!0),this.fillDataTextStyle(r.data);var u=pf(this);u&&Ho(this.option,r,u);var f=yf(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(r,s);eR(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,yf(this).dataBeforeProcessed=d,JI(this),this._initSelectedMapFromData(d)},i.prototype.fillDataTextStyle=function(r){if(r&&!wo(r))for(var s=["show"],u=0;uthis.getShallow("animationThreshold")&&(r=!1),!!r},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(r,s,u){var f=this.ecModel,d=re.prototype.getColorFromPalette.call(this,r,s,u);return d||(d=f.getColorFromPalette(r,s,u)),d},i.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(r,s){this._innerSelect(this.getData(s),r)},i.prototype.unselect=function(r,s){var u=this.option.selectedMap;if(u)for(var f=this.getData(s),d=0;d=0&&u.push(d)}return u},i.prototype.isSelected=function(r,s){var u=this.option.selectedMap;return u&&u[sC(this.getData(s),r)]||!1},i.prototype._innerSelect=function(r,s){var u,f,d=this.option.selectedMode,p=s.length;if(d&&p)if("multiple"===d)for(var v=this.option.selectedMap||(this.option.selectedMap={}),g=0;g0&&this._innerSelect(r,s)}},i.registerClass=function(r){return Qt.registerClass(r)},i.protoInitialize=function(){var r=i.prototype;r.type="series.__base__",r.seriesIndex=0,r.useColorPaletteOnData=!1,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),i}(Qt);function JI(o){var i=o.name;Ad(o)||(o.name=function(o){var i=o.getRawData(),r=i.mapDimensionsAll("seriesName"),s=[];return q(r,function(u){var f=i.getDimensionInfo(u);f.displayName&&s.push(f.displayName)}),s.join(" ")}(o)||i)}function _4(o){return o.model.getRawData().count()}function y4(o){var i=o.model;return i.setData(i.getRawData().cloneShallow()),b4}function b4(o,i){i.outputData&&o.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function eR(o,i){q(eo(o.CHANGABLE_METHODS,o.DOWNSAMPLE_METHODS),function(r){o.wrapMethod(r,bt(C4,i))})}function C4(o,i){var r=rx(o);return r&&r.setOutputEnd((i||this).count()),i}function rx(o){var i=(o.ecModel||{}).scheduler,r=i&&i.getPipeline(o.uid);if(r){var s=r.currentTask;if(s){var u=s.agentStubMap;u&&(s=u.get(o.uid))}return s}}br(lC,J0),br(lC,re),eO(lC,Qt);var ir=lC,ix=function(){function o(){this.group=new ut,this.uid=ov("viewComponent")}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){},o.prototype.updateLayout=function(i,r,s,u){},o.prototype.updateVisual=function(i,r,s,u){},o.prototype.blurSeries=function(i,r){},o}();fk(ix),$c(ix);var gr=ix;function mv(){var o=nn();return function(i){var r=o(i),s=i.pipelineContext,u=!!r.large,f=!!r.progressiveRender,d=r.large=!(!s||!s.large),p=r.progressiveRender=!(!s||!s.progressiveRender);return(u!==d||f!==p)&&"reset"}}var ax=nn(),tR=mv(),uC=function(){function o(){this.group=new ut,this.uid=ov("viewChart"),this.renderTask=$m({plan:nR,reset:rR}),this.renderTask.context={view:this}}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.highlight=function(i,r,s,u){sx(i.getData(),u,"emphasis")},o.prototype.downplay=function(i,r,s,u){sx(i.getData(),u,"normal")},o.prototype.remove=function(i,r){this.group.removeAll()},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateLayout=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateVisual=function(i,r,s,u){this.render(i,r,s,u)},o.markUpdateMethod=function(i,r){ax(i).updateMethod=r},o.protoInitialize=void(o.prototype.type="chart"),o}();function ox(o,i,r){o&&("emphasis"===i?rl:ha)(o,r)}function sx(o,i,r){var s=Ed(o,i),u=i&&null!=i.highlightKey?function(o){var i=Fd[o];return null==i&&xO<=32&&(i=Fd[o]=xO++),i}(i.highlightKey):null;null!=s?q(pr(s),function(f){ox(o.getItemGraphicEl(f),r,u)}):o.eachItemGraphicEl(function(f){ox(f,r,u)})}function nR(o){return tR(o.model)}function rR(o){var i=o.model,r=o.ecModel,s=o.api,u=o.payload,f=i.pipelineContext.progressiveRender,d=o.view,p=u&&ax(u).updateMethod,v=f?"incrementalPrepareRender":p&&d[p]?p:"render";return"render"!==v&&d[v](i,r,s,u),iR[v]}fk(uC),$c(uC);var iR={incrementalPrepareRender:{progress:function(i,r){r.view.incrementalRender(i,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(i,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},Vn=uC,qi="\0__throttleOriginMethod",_v="\0__throttleRate",bf="\0__throttleType";function cC(o,i,r){var s,p,v,g,m,u=0,f=0,d=null;function y(){f=(new Date).getTime(),d=null,o.apply(v,g||[])}i=i||0;var b=function(){for(var S=[],M=0;M=0?y():d=setTimeout(y,-p),u=s};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(w){m=w},b}function e_(o,i,r,s){var u=o[i];if(u){var f=u[qi]||u;if(u[_v]!==r||u[bf]!==s){if(null==r||!s)return o[i]=f;(u=o[i]=cC(f,r,"debounce"===s))[qi]=f,u[bf]=s,u[_v]=r}return u}}var w4=nn(),ga={itemStyle:Iu(R0,!0),lineStyle:Iu(mM,!0)},xX={lineStyle:"stroke",itemStyle:"fill"};function lx(o,i){return o.visualStyleMapper||ga[i]||(console.warn("Unkown style type '"+i+"'."),ga.itemStyle)}function ux(o,i){return o.visualDrawType||xX[i]||(console.warn("Unkown style type '"+i+"'."),"fill")}var TX={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=i.getModel(u),p=lx(i,u)(f),v=f.getShallow("decal");v&&(s.setVisual("decal",v),v.dirty=!0);var g=ux(i,u),m=p[g],y=Mn(m)?m:null;if(!p[g]||y||"auto"===p.fill||"auto"===p.stroke){var w=i.getColorFromPalette(i.name,null,r.getSeriesCount());p[g]||(p[g]=w,s.setVisual("colorFromPalette",!0)),p.fill="auto"===p.fill||"function"==typeof p.fill?w:p.fill,p.stroke="auto"===p.stroke||"function"==typeof p.stroke?w:p.stroke}if(s.setVisual("style",p),s.setVisual("drawType",g),!r.isSeriesFiltered(i)&&y)return s.setVisual("colorFromPalette",!1),{dataEach:function(M,x){var T=i.getDataParams(x),P=Me({},p);P[g]=y(T),M.setItemVisual(x,"style",P)}}}},ar=new Ln,S4={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(!i.ignoreStyleOnData&&!r.isSeriesFiltered(i)){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=lx(i,u),d=s.getVisual("drawType");return{dataEach:s.hasItemOption?function(p,v){var g=p.getRawDataItem(v);if(g&&g[u]){ar.option=g[u];var m=f(ar);Me(p.ensureUniqueItemVisual(v,"style"),m),ar.option.decal&&(p.setItemVisual(v,"decal",ar.option.decal),ar.option.decal.dirty=!0),d in m&&p.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},k4={performRawSeries:!0,overallReset:function(i){var r=st();i.eachSeries(function(s){if(s.useColorPaletteOnData){var u=r.get(s.type);u||r.set(s.type,u={}),w4(s).scope=u}}),i.eachSeries(function(s){if(s.useColorPaletteOnData&&!i.isSeriesFiltered(s)){var u=s.getRawData(),f={},d=s.getData(),p=w4(s).scope,g=ux(s,s.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var w=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",M=u.count();w[g]=s.getColorFromPalette(S,p,M)}})}})}},fC=Math.PI,M4=function(){function o(i,r,s,u){this._stageTaskMap=st(),this.ecInstance=i,this.api=r,s=this._dataProcessorHandlers=s.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=s.concat(u)}return o.prototype.restoreData=function(i,r){i.restoreData(r),this._stageTaskMap.each(function(s){var u=s.overallTask;u&&u.dirty()})},o.prototype.getPerformArgs=function(i,r){if(i.__pipeline){var s=this._pipelineMap.get(i.__pipeline.id),u=s.context,d=!r&&s.progressiveEnabled&&(!u||u.progressiveRender)&&i.__idxInPipeline>s.blockIndex?s.step:null,p=u&&u.modDataCount;return{step:d,modBy:null!=p?Math.ceil(p/d):null,modDataCount:p}}},o.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},o.prototype.updateStreamModes=function(i,r){var s=this._pipelineMap.get(i.uid),f=i.getData().count(),d=s.progressiveEnabled&&r.incrementalPrepareRender&&f>=s.threshold,p=i.get("large")&&f>=i.get("largeThreshold"),v="mod"===i.get("progressiveChunkMode")?f:null;i.pipelineContext=s.context={progressiveRender:d,modDataCount:v,large:p}},o.prototype.restorePipelines=function(i){var r=this,s=r._pipelineMap=st();i.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;s.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),r._pipe(u,u.dataTask)})},o.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,r=this.api.getModel(),s=this.api;q(this._allHandlers,function(u){var f=i.get(u.uid)||i.set(u.uid,{});ra(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,r,s),u.overallReset&&this._createOverallStageTask(u,f,r,s)},this)},o.prototype.prepareView=function(i,r,s,u){var f=i.renderTask,d=f.context;d.model=r,d.ecModel=s,d.api=u,f.__block=!i.incrementalPrepareRender,this._pipe(r,f)},o.prototype.performDataProcessorTasks=function(i,r){this._performStageTasks(this._dataProcessorHandlers,i,r,{block:!0})},o.prototype.performVisualTasks=function(i,r,s){this._performStageTasks(this._visualHandlers,i,r,s)},o.prototype._performStageTasks=function(i,r,s,u){u=u||{};var f=!1,d=this;function p(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(i,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var w,S=b.agentStubMap;S.each(function(x){p(u,x)&&(x.dirty(),w=!0)}),w&&b.dirty(),d.updatePayload(b,s);var M=d.getPerformArgs(b,u.block);S.each(function(x){x.perform(M)}),b.perform(M)&&(f=!0)}else y&&y.each(function(x,T){p(u,x)&&x.dirty();var P=d.getPerformArgs(x,u.block);P.skip=!v.performRawSeries&&r.isSeriesFiltered(x.context.model),d.updatePayload(x,s),x.perform(P)&&(f=!0)})}}),this.unfinished=f||this.unfinished},o.prototype.performSeriesTasks=function(i){var r;i.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},o.prototype.plan=function(){this._pipelineMap.each(function(i){var r=i.tail;do{if(r.__block){i.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},o.prototype.updatePayload=function(i,r){"remain"!==r&&(i.context.payload=r)},o.prototype._createSeriesStageTask=function(i,r,s,u){var f=this,d=r.seriesTaskMap,p=r.seriesTaskMap=st(),v=i.seriesType,g=i.getTargetSeries;function m(y){var b=y.uid,w=p.set(b,d&&d.get(b)||$m({plan:aR,reset:cx,count:oR}));w.context={model:y,ecModel:s,api:u,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:f},f._pipe(y,w)}i.createOnAllSeries?s.eachRawSeries(m):v?s.eachRawSeriesByType(v,m):g&&g(s,u).each(m)},o.prototype._createOverallStageTask=function(i,r,s,u){var f=this,d=r.overallTask=r.overallTask||$m({reset:hC});d.context={ecModel:s,api:u,overallReset:i.overallReset,scheduler:f};var p=d.agentStubMap,v=d.agentStubMap=st(),g=i.seriesType,m=i.getTargetSeries,y=!0,b=!1;function S(M){var x=M.uid,T=v.set(x,p&&p.get(x)||(b=!0,$m({reset:pC,onDirty:DX})));T.context={model:M,overallProgress:y},T.agent=d,T.__block=y,f._pipe(M,T)}ra(!i.createOnAllSeries,""),g?s.eachRawSeriesByType(g,S):m?m(s,u).each(S):(y=!1,q(s.getSeries(),S)),b&&d.dirty()},o.prototype._pipe=function(i,r){var u=this._pipelineMap.get(i.uid);!u.head&&(u.head=r),u.tail&&u.tail.pipe(r),u.tail=r,r.__idxInPipeline=u.count++,r.__pipeline=u},o.wrapStageHandler=function(i,r){return Mn(i)&&(i={overallReset:i,seriesType:sR(i)}),i.uid=ov("stageHandler"),r&&(i.visualType=r),i},o}();function hC(o){o.overallReset(o.ecModel,o.api,o.payload)}function pC(o){return o.overallProgress&&Uo}function Uo(){this.agent.dirty(),this.getDownstream().dirty()}function DX(){this.agent&&this.agent.dirty()}function aR(o){return o.plan?o.plan(o.model,o.ecModel,o.api,o.payload):null}function cx(o){o.useClearVisual&&o.data.clearAllVisual();var i=o.resetDefines=pr(o.reset(o.model,o.ecModel,o.api,o.payload));return i.length>1?Ie(i,function(r,s){return fx(s)}):x4}var x4=fx(0);function fx(o){return function(i,r){var s=r.data,u=r.resetDefines[o];if(u&&u.dataEach)for(var f=i.start;f0&&w===g.length-b.length){var S=g.slice(0,w);"data"!==S&&(r.mainType=S,r[b.toLowerCase()]=v,m=!0)}}p.hasOwnProperty(g)&&(s[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:r,dataQuery:s,otherQuery:u}},o.prototype.filter=function(i,r){var s=this.eventInfo;if(!s)return!0;var u=s.targetEl,f=s.packedEvent,d=s.model,p=s.view;if(!d||!p)return!0;var v=r.cptQuery,g=r.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!p.filterForExposedEvent||p.filterForExposedEvent(i,r.otherQuery,u,f));function m(y,b,w,S){return null==y[w]||b[S||w]===y[w]}},o.prototype.afterTrigger=function(){this.eventInfo=null},o}(),i_={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData();if(i.legendIcon&&s.setVisual("legendIcon",i.legendIcon),i.hasSymbolVisual){var u=i.get("symbol"),f=i.get("symbolSize"),d=i.get("symbolKeepAspect"),p=i.get("symbolRotate"),v=i.get("symbolOffset"),g=Mn(u),m=Mn(f),y=Mn(p),b=Mn(v),w=g||m||y||b,S=!g&&u?u:i.defaultSymbol;if(s.setVisual({legendIcon:i.legendIcon||S,symbol:S,symbolSize:m?null:f,symbolKeepAspect:d,symbolRotate:y?null:p,symbolOffset:b?null:v}),!r.isSeriesFiltered(i))return{dataEach:w?function(I,R){var B=i.getRawValue(R),V=i.getDataParams(R);g&&I.setItemVisual(R,"symbol",u(B,V)),m&&I.setItemVisual(R,"symbolSize",f(B,V)),y&&I.setItemVisual(R,"symbolRotate",p(B,V)),b&&I.setItemVisual(R,"symbolOffset",v(B,V))}:null}}}};function px(o,i,r){switch(r){case"color":return o.getItemVisual(i,"style")[o.getVisual("drawType")];case"opacity":return o.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getItemVisual(i,r)}}function a_(o,i){switch(i){case"color":return o.getVisual("style")[o.getVisual("drawType")];case"opacity":return o.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getVisual(i)}}function vx(o,i,r,s){switch(r){case"color":o.ensureUniqueItemVisual(i,"style")[o.getVisual("drawType")]=s,o.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":o.ensureUniqueItemVisual(i,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":o.setItemVisual(i,r,s)}}var wv=2*Math.PI,Cf=Lo.CMD,E4=["top","right","bottom","left"];function fR(o,i,r,s,u){var f=r.width,d=r.height;switch(o){case"top":s.set(r.x+f/2,r.y-i),u.set(0,-1);break;case"bottom":s.set(r.x+f/2,r.y+d+i),u.set(0,1);break;case"left":s.set(r.x-i,r.y+d/2),u.set(-1,0);break;case"right":s.set(r.x+f+i,r.y+d/2),u.set(1,0)}}function P4(o,i,r,s,u,f,d,p,v){d-=o,p-=i;var g=Math.sqrt(d*d+p*p),m=(d/=g)*r+o,y=(p/=g)*r+i;if(Math.abs(s-u)%wv<1e-4)return v[0]=m,v[1]=y,g-r;if(f){var b=s;s=Pr(u),u=Pr(b)}else s=Pr(s),u=Pr(u);s>u&&(u+=wv);var w=Math.atan2(p,d);if(w<0&&(w+=wv),w>=s&&w<=u||w+wv>=s&&w+wv<=u)return v[0]=m,v[1]=y,g-r;var S=r*Math.cos(s)+o,M=r*Math.sin(s)+i,x=r*Math.cos(u)+o,T=r*Math.sin(u)+i,P=(S-d)*(S-d)+(M-p)*(M-p),I=(x-d)*(x-d)+(T-p)*(T-p);return P0){i=i/180*Math.PI,bs.fromArray(o[0]),Gn.fromArray(o[1]),ri.fromArray(o[2]),Nt.sub(nu,bs,Gn),Nt.sub(fl,ri,Gn);var r=nu.len(),s=fl.len();if(!(r<.001||s<.001)){nu.scale(1/r),fl.scale(1/s);var u=nu.dot(fl);if(Math.cos(i)1&&Nt.copy(Ha,ri),Ha.toArray(o[1])}}}}function I4(o,i,r){if(r<=180&&r>0){r=r/180*Math.PI,bs.fromArray(o[0]),Gn.fromArray(o[1]),ri.fromArray(o[2]),Nt.sub(nu,Gn,bs),Nt.sub(fl,ri,Gn);var s=nu.len(),u=fl.len();if(!(s<.001||u<.001)&&(nu.scale(1/s),fl.scale(1/u),nu.dot(i)=v)Nt.copy(Ha,ri);else{Ha.scaleAndAdd(fl,p/Math.tan(Math.PI/2-m));var y=ri.x!==Gn.x?(Ha.x-Gn.x)/(ri.x-Gn.x):(Ha.y-Gn.y)/(ri.y-Gn.y);if(isNaN(y))return;y<0?Nt.copy(Ha,Gn):y>1&&Nt.copy(Ha,ri)}Ha.toArray(o[1])}}}function hR(o,i,r,s){var u="normal"===r,f=u?o:o.ensureState(r);f.ignore=i;var d=s.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var p=s.getModel("lineStyle").getLineStyle();u?o.useStyle(p):f.style=p}function pR(o,i){var r=i.smooth,s=i.points;if(s)if(o.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var u=Rl(s[0],s[1]),f=Rl(s[1],s[2]);if(!u||!f)return o.lineTo(s[1][0],s[1][1]),void o.lineTo(s[2][0],s[2][1]);var d=Math.min(u,f)*r,p=zg([],s[1],s[0],d/u),v=zg([],s[1],s[2],d/f),g=zg([],p,v,.5);o.bezierCurveTo(p[0],p[1],p[0],p[1],g[0],g[1]),o.bezierCurveTo(v[0],v[1],v[0],v[1],s[2][0],s[2][1])}else for(var m=1;m0&&f&&V(-y/d,0,d);var P,I,x=o[0],T=o[d-1];return R(),P<0&&G(-P,.8),I<0&&G(I,.8),R(),B(P,I,1),B(I,P,-1),R(),P<0&&W(-P),I<0&&W(I),g}function R(){P=x.rect[i]-s,I=u-T.rect[i]-T.rect[r]}function B(K,J,Z){if(K<0){var ne=Math.min(J,-K);if(ne>0){V(ne*Z,0,d);var te=ne+K;te<0&&G(-te*Z,1)}else G(-K*Z,1)}}function V(K,J,Z){0!==K&&(g=!0);for(var ne=J;ne0)for(te=0;te0;te--)V(-Z[te-1]*de,te,d)}}function W(K){var J=K<0?-1:1;K=Math.abs(K);for(var Z=Math.ceil(K/(d-1)),ne=0;ne0?V(Z,0,ne+1):V(-Z,d-ne-1,d),(K-=Z)<=0)return}}function mR(o,i,r,s){return vR(o,"y","height",i,r,s)}function R4(o){if(o){for(var i=[],r=0;r=0&&s.attr(f.oldLayoutSelect),zt(b,"emphasis")>=0&&s.attr(f.oldLayoutEmphasis)),un(s,g,r,v)}else if(s.attr(g),!av(s).valueAnimation){var y=Yt(s.style.opacity,1);s.style.opacity=0,Or(s,{style:{opacity:y}},r,v)}if(f.oldLayout=g,s.states.select){var w=f.oldLayoutSelect={};o_(w,g,_C),o_(w,s.states.select,_C)}if(s.states.emphasis){var S=f.oldLayoutEmphasis={};o_(S,g,_C),o_(S,s.states.emphasis,_C)}gM(s,v,m,r,r)}if(u&&!u.ignore&&!u.invisible){var f=CR(u),M={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),un(u,{shape:M},r)):(u.setShape(M),u.style.strokePercent=0,Or(u,{style:{strokePercent:1}},r)),f.oldLayout=M}},o}();function yC(o,i){function r(s,u){var f=[];return s.eachComponent({mainType:"series",subType:o,query:u},function(d){f.push(d.seriesIndex)}),f}q([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(s){i(s[0],function(u,f,d){u=Me({},u),d.dispatchAction(Me(u,{type:s[1],seriesIndex:r(f,u)}))})})}function Mv(o,i,r,s,u){var f=o+i;r.isSilent(f)||s.eachComponent({mainType:"series",subType:"pie"},function(d){for(var p=d.seriesIndex,v=u.selected,g=0;g0?(i=i||1,"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:Ac(o)?[o]:ke(o)?o:null):null}var yx=new Lo(!0);function SC(o){var i=o.stroke;return!(null==i||"none"===i||!(o.lineWidth>0))}function kC(o){var i=o.fill;return null!=i&&"none"!==i}function MC(o,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var r=o.globalAlpha;o.globalAlpha=i.fillOpacity*i.opacity,o.fill(),o.globalAlpha=r}else o.fill()}function TR(o,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var r=o.globalAlpha;o.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(),o.globalAlpha=r}else o.stroke()}function Xe(o,i,r){var s=vk(i.image,i.__image,r);if(Jc(s)){var u=o.createPattern(s,i.repeat||"repeat");if("function"==typeof DOMMatrix&&u.setTransform){var f=new DOMMatrix;f.rotateSelf(0,0,(i.rotation||0)/Math.PI*180),f.scaleSelf(i.scaleX||1,i.scaleY||1),f.translateSelf(i.x||0,i.y||0),u.setTransform(f)}return u}}var bx=["shadowBlur","shadowOffsetX","shadowOffsetY"],X4=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function AR(o,i,r,s,u){var f=!1;if(!s&&i===(r=r||{}))return!1;if(s||i.opacity!==r.opacity){f||(Ua(o,u),f=!0);var d=Math.max(Math.min(i.opacity,1),0);o.globalAlpha=isNaN(d)?ef.opacity:d}(s||i.blend!==r.blend)&&(f||(Ua(o,u),f=!0),o.globalCompositeOperation=i.blend||ef.blend);for(var p=0;p0&&wC(r.lineDash,r.lineWidth),V=r.lineDashOffset,G=!!o.setLineDash,W=i.getGlobalScale();if(g.setScale(W[0],W[1],i.segmentIgnoreThreshold),B){var K=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;K&&1!==K&&(B=Ie(B,function(Z){return Z/K}),V/=K)}var J=!0;(v||4&i.__dirty||B&&!G&&u)&&(g.setDPR(o.dpr),p?g.setContext(null):(g.setContext(o),J=!1),g.reset(),B&&!G&&(g.setLineDash(B),g.setLineDashOffset(V)),i.buildPath(g,i.shape,s),g.toStatic(),i.pathUpdated()),J&&g.rebuildPath(o,p?d:1),B&&G&&(o.setLineDash(B),o.lineDashOffset=V),s||(r.strokeFirst?(u&&TR(o,r),f&&MC(o,r)):(f&&MC(o,r),u&&TR(o,r))),B&&G&&o.setLineDash([])}(o,i,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):i instanceof Wp?(3!==r.lastDrawType&&(v=!0,r.lastDrawType=3),dl(o,i,g,v,r),function(o,i,r){var s=r.text;if(null!=s&&(s+=""),s){o.font=r.font||kd,o.textAlign=r.textAlign,o.textBaseline=r.textBaseline;var u=void 0;if(o.setLineDash){var f=r.lineDash&&r.lineWidth>0&&wC(r.lineDash,r.lineWidth),d=r.lineDashOffset;if(f){var p=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;p&&1!==p&&(f=Ie(f,function(v){return v/p}),d/=p),o.setLineDash(f),o.lineDashOffset=d,u=!0}}r.strokeFirst?(SC(r)&&o.strokeText(s,r.x,r.y),kC(r)&&o.fillText(s,r.x,r.y)):(kC(r)&&o.fillText(s,r.x,r.y),SC(r)&&o.strokeText(s,r.x,r.y)),u&&o.setLineDash([])}}(o,i,y)):i instanceof di?(2!==r.lastDrawType&&(v=!0,r.lastDrawType=2),function(o,i,r,s,u){AR(o,TC(i,u.inHover),r&&TC(r,u.inHover),s,u)}(o,i,g,v,r),function(o,i,r){var s=i.__image=vk(r.image,i.__image,i,i.onload);if(s&&Jc(s)){var u=r.x||0,f=r.y||0,d=i.getWidth(),p=i.getHeight(),v=s.width/s.height;if(null==d&&null!=p?d=p*v:null==p&&null!=d?p=d/v:null==d&&null==p&&(d=s.width,p=s.height),r.sWidth&&r.sHeight)o.drawImage(s,g=r.sx||0,m=r.sy||0,r.sWidth,r.sHeight,u,f,d,p);else if(r.sx&&r.sy){var g,m;o.drawImage(s,g=r.sx,m=r.sy,d-g,p-m,u,f,d,p)}else o.drawImage(s,u,f,d,p)}}(o,i,y)):i instanceof A0&&(4!==r.lastDrawType&&(v=!0,r.lastDrawType=4),function(o,i,r){var s=i.getDisplayables(),u=i.getTemporalDisplayables();o.save();var d,p,f={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(d=i.getCursor(),p=s.length;d=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=p&&null!=v&&(y=GR(m,{x:0,y:0,width:p,height:v}),!r.ignoreViewBox)){var w=u;(u=new ut).add(w),w.scaleX=w.scaleY=y.scale,w.x=y.x,w.y=y.y}return!r.ignoreRootClip&&null!=p&&null!=v&&u.setClipPath(new Bt({shape:{x:0,y:0,width:p,height:v}})),{root:u,width:p,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},o.prototype._parseNode=function(i,r,s,u,f,d){var v,p=i.nodeName.toLowerCase(),g=u;if("defs"===p&&(f=!0),"text"===p&&(d=!0),"defs"===p||"switch"===p)v=r;else{if(!f){var m=Cx[p];if(m&&Ke(Cx,p)){v=m.call(this,i,r);var y=i.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:p,el:v};s.push(b),"g"===p&&(g=b)}else u&&s.push({name:u.name,namedFrom:u,svgNodeTagLower:p,el:v});r.add(v)}}var w=BR[p];if(w&&Ke(BR,p)){var S=w.call(this,i),M=i.getAttribute("id");M&&(this._defs[M]=S)}}if(v&&v.isGroup)for(var x=i.firstChild;x;)1===x.nodeType?this._parseNode(x,v,s,g,f,d):3===x.nodeType&&d&&this._parseText(x,v),x=x.nextSibling},o.prototype._parseText=function(i,r){var s=new Wp({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ws(r,s),Vi(i,s,this._defsUsePending,!1,!1),function(o,i){var r=i.__selfStyle;if(r){var s=r.textBaseline,u=s;s&&"auto"!==s&&"baseline"!==s?"before-edge"===s||"text-before-edge"===s?u="top":"after-edge"===s||"text-after-edge"===s?u="bottom":("central"===s||"mathematical"===s)&&(u="middle"):u="alphabetic",o.style.textBaseline=u}var f=i.__inheritedStyle;if(f){var d=f.textAlign,p=d;d&&("middle"===d&&(p="center"),o.style.textAlign=p)}}(s,r);var u=s.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,s.scaleX*=f/9,s.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var p=s.getBoundingRect();return this._textX+=p.width,r.add(s),s},o.internalField=void(Cx={g:function(r,s){var u=new ut;return ws(s,u),Vi(r,u,this._defsUsePending,!1,!1),u},rect:function(r,s){var u=new Bt;return ws(s,u),Vi(r,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(r.getAttribute("x")||"0"),y:parseFloat(r.getAttribute("y")||"0"),width:parseFloat(r.getAttribute("width")||"0"),height:parseFloat(r.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(r,s){var u=new gs;return ws(s,u),Vi(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),r:parseFloat(r.getAttribute("r")||"0")}),u.silent=!0,u},line:function(r,s){var u=new Ai;return ws(s,u),Vi(r,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(r.getAttribute("x1")||"0"),y1:parseFloat(r.getAttribute("y1")||"0"),x2:parseFloat(r.getAttribute("x2")||"0"),y2:parseFloat(r.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(r,s){var u=new Am;return ws(s,u),Vi(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),rx:parseFloat(r.getAttribute("rx")||"0"),ry:parseFloat(r.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(r,s){var f,u=r.getAttribute("points");u&&(f=xx(u));var d=new ni({shape:{points:f||[]},silent:!0});return ws(s,d),Vi(r,d,this._defsUsePending,!1,!1),d},polyline:function(r,s){var f,u=r.getAttribute("points");u&&(f=xx(u));var d=new Fa({shape:{points:f||[]},silent:!0});return ws(s,d),Vi(r,d,this._defsUsePending,!1,!1),d},image:function(r,s){var u=new di;return ws(s,u),Vi(r,u,this._defsUsePending,!1,!1),u.setStyle({image:r.getAttribute("xlink:href"),x:+r.getAttribute("x"),y:+r.getAttribute("y"),width:+r.getAttribute("width"),height:+r.getAttribute("height")}),u.silent=!0,u},text:function(r,s){var u=r.getAttribute("x")||"0",f=r.getAttribute("y")||"0",d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(p);var v=new ut;return ws(s,v),Vi(r,v,this._defsUsePending,!1,!0),v},tspan:function(r,s){var u=r.getAttribute("x"),f=r.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0",v=new ut;return ws(s,v),Vi(r,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(p),v},path:function(r,s){var f=Jk(r.getAttribute("d")||"");return ws(s,f),Vi(r,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),o}(),BR={lineargradient:function(i){var r=parseInt(i.getAttribute("x1")||"0",10),s=parseInt(i.getAttribute("y1")||"0",10),u=parseInt(i.getAttribute("x2")||"10",10),f=parseInt(i.getAttribute("y2")||"0",10),d=new Zl(r,s,u,f);return Mx(i,d),Cs(i,d),d},radialgradient:function(i){var r=parseInt(i.getAttribute("cx")||"0",10),s=parseInt(i.getAttribute("cy")||"0",10),u=parseInt(i.getAttribute("r")||"0",10),f=new sM(r,s,u);return Mx(i,f),Cs(i,f),f}};function Mx(o,i){"userSpaceOnUse"===o.getAttribute("gradientUnits")&&(i.global=!0)}function Cs(o,i){for(var r=o.firstChild;r;){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var u,s=r.getAttribute("offset");u=s&&s.indexOf("%")>0?parseInt(s,10)/100:s?parseFloat(s):0;var f={};UR(r,f,f);var d=f.stopColor||r.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:u,color:d})}r=r.nextSibling}}function ws(o,i){o&&o.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),tt(i.__inheritedStyle,o.__inheritedStyle))}function xx(o){for(var i=PC(o),r=[],s=0;s0;f-=2){var p=s[f-1],v=PC(s[f]);switch(u=u||[1,0,0,1,0,0],p){case"translate":Eo(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":QS(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":Vl(u,u,-parseFloat(v[0])*Tx);break;case"skewX":Mi(u,[1,0,Math.tan(parseFloat(v[0])*Tx),1,0,0],u);break;case"skewY":Mi(u,[1,Math.tan(parseFloat(v[0])*Tx),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}i.setLocalTransform(u)}}(o,i),UR(o,d,p),s||function(o,i,r){for(var s=0;s>1^-(1&p),v=v>>1^-(1&v),u=p+=u,f=v+=f,s.push([p/r,v/r])}return s}function Dx(o,i){return Ie(sr((o=function(o){if(!o.UTF8Encoding)return o;var i=o,r=i.UTF8Scale;null==r&&(r=1024);for(var s=i.features,u=0;u0}),function(r){var d,s=r.properties,u=r.geometry,f=[];"Polygon"===u.type&&f.push({type:"polygon",exterior:(d=u.coordinates)[0],interiors:d.slice(1)}),"MultiPolygon"===u.type&&q(d=u.coordinates,function(g){g[0]&&f.push({type:"polygon",exterior:g[0],interiors:g.slice(1)})});var p=new YR(s[i||"name"],f,s.cp);return p.properties=s,p})}for(var Ax=[126,25],wf=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ju=0;Ju0&&r.unfinished);r.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(r,s,u){if(!this._disposed){var f,d,p;if(Ga(s)&&(u=s.lazyUpdate,f=s.silent,d=s.replaceMerge,p=s.transition,s=s.notMerge),this[Ms]=!0,!this._model||s){var v=new $z(this._api),g=this._theme,m=this._model=new RI;m.scheduler=this._scheduler,m.init(null,null,null,g,this._locale,v)}this._model.setOption(r,{replaceMerge:d},f2),m8(this,p),u?(this[ja]={silent:f},this[Ms]=!1,this.getZr().wakeUp()):(Sf(this),Dt.update.call(this),this._zr.flush(),this[ja]=!1,this[Ms]=!1,g_.call(this,f),m_.call(this,f))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||h_&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(r){if(Ot.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},i.prototype.getSvgDataURL=function(){if(Ot.svgSupported){var r=this._zr;return q(r.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),r.painter.toDataURL()}},i.prototype.getDataURL=function(r){if(!this._disposed){var u=this._model,f=[],d=this;ai((r=r||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var p="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return ai(f,function(v){v.group.ignore=!1}),p}},i.prototype.getConnectedDataURL=function(r){if(!this._disposed&&Ot.canvasSupported){var s="svg"===r.type,u=this.group,f=Math.min,d=Math.max,p=1/0;if(HC[u]){var v=p,g=p,m=-p,y=-p,b=[],w=r&&r.pixelRatio||this.getDevicePixelRatio();q(lh,function(I,R){if(I.group===u){var B=s?I.getZr().painter.getSvgDom().innerHTML:I.getRenderedCanvas(it(r)),V=I.getDom().getBoundingClientRect();v=f(V.left,v),g=f(V.top,g),m=d(V.right,m),y=d(V.bottom,y),b.push({dom:B,left:V.left,top:V.top})}});var S=(m*=w)-(v*=w),M=(y*=w)-(g*=w),x=Tc(),T=qc(x,{renderer:s?"svg":"canvas"});if(T.resize({width:S,height:M}),s){var P="";return ai(b,function(I){P+=''+I.dom+""}),T.painter.getSvgRoot().innerHTML=P,r.connectedBackgroundColor&&T.painter.setBackgroundColor(r.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return r.connectedBackgroundColor&&T.add(new Bt({shape:{x:0,y:0,width:S,height:M},style:{fill:r.connectedBackgroundColor}})),ai(b,function(I){var R=new di({style:{x:I.left*w-v,y:I.top*w-g,image:I.dom}});T.add(R)}),T.refreshImmediately(),x.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},i.prototype.convertToPixel=function(r,s){return r2(this,"convertToPixel",r,s)},i.prototype.convertFromPixel=function(r,s){return r2(this,"convertFromPixel",r,s)},i.prototype.containPixel=function(r,s){var f;if(!this._disposed)return q(Ul(this._model,r),function(p,v){v.indexOf("Models")>=0&&q(p,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(s);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(s,g))}},this)},this),!!f},i.prototype.getVisual=function(r,s){var f=Ul(this._model,r,{defaultMainType:"series"}),p=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?p.indexOfRawIndex(f.dataIndex):null;return null!=v?px(p,v,s):a_(p,s)},i.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},i.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},i.prototype._initEvents=function(){var r=this;ai(_8,function(s){var u=function(d){var g,p=r.getModel(),v=d.target;if("globalout"===s?g={}:v&&xv(v,function(M){var x=gt(M);if(x&&null!=x.dataIndex){var T=x.dataModel||p.getSeriesByIndex(x.seriesIndex);return g=T&&T.getDataParams(x.dataIndex,x.dataType)||{},!0}if(x.eventData)return g=Me({},x.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var w=y&&null!=b&&p.getComponent(y,b),S=w&&r["series"===w.mainType?"_chartsMap":"_componentsMap"][w.__viewId];g.event=d,g.type=s,r._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:w,view:S},r.trigger(s,g)}};u.zrEventfulCallAtLast=!0,r._zr.on(s,u,r)}),ai(Av,function(s,u){r._messageCenter.on(u,function(f){this.trigger(u,f)},r)}),ai(["selectchanged"],function(s){r._messageCenter.on(s,function(u){this.trigger(s,u)},r)}),function(o,i,r){o.on("selectchanged",function(s){var u=r.getModel();s.isFromClick?(Mv("map","selectchanged",i,u,s),Mv("pie","selectchanged",i,u,s)):"select"===s.fromAction?(Mv("map","selected",i,u,s),Mv("pie","selected",i,u,s)):"unselect"===s.fromAction&&(Mv("map","unselected",i,u,s),Mv("pie","unselected",i,u,s))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,JP(this.getDom(),Wx,"");var r=this._api,s=this._model;ai(this._componentsViews,function(u){u.dispose(s,r)}),ai(this._chartsViews,function(u){u.dispose(s,r)}),this._zr.dispose(),delete lh[this.id]}},i.prototype.resize=function(r){if(!this._disposed){this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),s){var u=s.resetOption("media"),f=r&&r.silent;this[ja]&&(null==f&&(f=this[ja].silent),u=!0,this[ja]=!1),this[Ms]=!0,u&&Sf(this),Dt.update.call(this,{type:"resize",animation:Me({duration:0},r&&r.animation)}),this[Ms]=!1,g_.call(this,f),m_.call(this,f)}}},i.prototype.showLoading=function(r,s){if(!this._disposed&&(Ga(r)&&(s=r,r=""),r=r||"default",this.hideLoading(),jx[r])){var u=jx[r](this._api,s),f=this._zr;this._loadingFX=u,f.add(u)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(r){var s=Me({},r);return s.type=Av[r.type],s},i.prototype.dispatchAction=function(r,s){if(!this._disposed&&(Ga(s)||(s={silent:!!s}),__[r.type]&&this._model)){if(this[Ms])return void this._pendingActions.push(r);var u=s.silent;Hx.call(this,r,u);var f=s.flush;f?this._zr.flush():!1!==f&&Ot.browser.weChat&&this._throttledZrFlush(),g_.call(this,u),m_.call(this,u)}},i.prototype.updateLabelLayout=function(){var r=this._labelManager;r.updateLayoutConfig(this._api),r.layout(this._api),r.processLabelsOverall()},i.prototype.appendData=function(r){if(!this._disposed){var s=r.seriesIndex;this.getModel().getSeriesByIndex(s).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function r(g){for(var m=[],y=g.currentStates,b=0;b0?{duration:w,delay:y.get("delay"),easing:y.get("easing")}:null;m.group.traverse(function(M){if(M.states&&M.states.emphasis){if(tv(M))return;if(M instanceof an&&function(o){var i=nl(o);i.normalFill=o.style.fill,i.normalStroke=o.style.stroke;var r=o.states.select||{};i.selectFill=r.style&&r.style.fill||null,i.selectStroke=r.style&&r.style.stroke||null}(M),M.__dirty){var x=M.prevStates;x&&M.useStates(x)}if(b){M.stateTransition=S;var T=M.getTextContent(),P=M.getTextGuideLine();T&&(T.stateTransition=S),P&&(P.stateTransition=S)}M.__dirty&&r(M)}})}Sf=function(m){var y=m._scheduler;y.restorePipelines(m._model),y.prepareStageTasks(),n2(m,!0),n2(m,!1),y.plan()},n2=function(m,y){for(var b=m._model,w=m._scheduler,S=y?m._componentsViews:m._chartsViews,M=y?m._componentsMap:m._chartsMap,x=m._zr,T=m._api,P=0;Pm.get("hoverLayerThreshold")&&!Ot.node&&!Ot.worker&&m.eachSeries(function(S){if(!S.preventUsingHoverLayer){var M=g._chartsMap[S.__viewId];M.__alive&&M.group.traverse(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(m,y)},sh=function(m,y){ai(Ux,function(b){b(m,y)})},pl=function(m){m[p_]=!0,m.getZr().wakeUp()},l2=function(m){!m[p_]||(m.getZr().storage.traverse(function(y){tv(y)||r(y)}),m[p_]=!1)},o2=function(m){return new(function(y){function b(){return null!==y&&y.apply(this,arguments)||this}return he(b,y),b.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},b.prototype.getComponentByElement=function(w){for(;w;){var S=w.__ecComponentInfo;if(null!=S)return m._model.getComponent(S.mainType,S.index);w=w.parent}},b.prototype.enterEmphasis=function(w,S){rl(w,S),pl(m)},b.prototype.leaveEmphasis=function(w,S){ha(w,S),pl(m)},b.prototype.enterBlur=function(w){qk(w),pl(m)},b.prototype.leaveBlur=function(w){Xk(w),pl(m)},b.prototype.enterSelect=function(w){IO(w),pl(m)},b.prototype.leaveSelect=function(w){Mm(w),pl(m)},b.prototype.getModel=function(){return m.getModel()},b.prototype.getViewOfComponentModel=function(w){return m.getViewOfComponentModel(w)},b.prototype.getViewOfSeriesModel=function(w){return m.getViewOfSeriesModel(w)},b}(Y0))(m)},s2=function(m){function y(b,w){for(var S=0;S=0)){v2.push(r);var f=Cv.wrapStageHandler(r,u);f.__prio=i,f.__raw=r,o.push(f)}}function $x(o,i){jx[o]=i}function T8(o){xc("createCanvas",o)}function Jx(o,i,r){!function(i,r,s){if(r.svg){var u=new qR(i,r.svg);hl.set(i,u)}else{var f=r.geoJson||r.geoJSON;f&&!r.features?s=r.specialAreas:f=r,u=new FX(i,f,s),hl.set(i,u)}}(o,i,r)}function eT(o){return function(i){var r=hl.get(i);return r&&"geoJSON"===r.type&&r.getMapForUser()}(o)}var g2=function(o){var i=(o=it(o)).type;i||_n("");var s=i.split(":");2!==s.length&&_n("");var u=!1;"echarts"===s[0]&&(i=s[1],u=!0),o.__isBuiltIn=u,ZM.set(i,o)};kf(2e3,TX),kf(4500,S4),kf(4500,k4),kf(2e3,i_),kf(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(i.hasSymbolVisual&&!r.isSeriesFiltered(i))return{dataEach:i.getData().hasItemOption?function(f,d){var p=f.getItemModel(d),v=p.getShallow("symbol",!0),g=p.getShallow("symbolSize",!0),m=p.getShallow("symbolRotate",!0),y=p.getShallow("symbolOffset",!0),b=p.getShallow("symbolKeepAspect",!0);null!=v&&f.setItemVisual(d,"symbol",v),null!=g&&f.setItemVisual(d,"symbolSize",g),null!=m&&f.setItemVisual(d,"symbolRotate",m),null!=y&&f.setItemVisual(d,"symbolOffset",y),null!=b&&f.setItemVisual(d,"symbolKeepAspect",b)}:null}}}),kf(7e3,function(o,i){o.eachRawSeries(function(r){if(!o.isSeriesFiltered(r)){var s=r.getData();s.hasItemVisual()&&s.each(function(d){var p=s.getItemVisual(d,"decal");p&&(s.ensureUniqueItemVisual(d,"style").decal=l_(p,i))});var u=s.getVisual("decal");u&&(s.getVisual("style").decal=l_(u,i))}})}),zC(Z0),Zx(900,function(o){var i=st();o.eachSeries(function(r){var s=r.get("stack");if(s){var u=i.get(s)||i.set(s,[]),f=r.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:r};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),i.each(E)}),$x("default",function(o,i){tt(i=i||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ut,s=new Bt({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});r.add(s);var d,u=new on({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),f=new Bt({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return r.add(f),i.showSpinner&&((d=new T0({shape:{startAngle:-fC/2,endAngle:-fC/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*fC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*fC/2}).delay(300).start("circularInOut"),r.add(d)),r.resize=function(){var p=u.getBoundingRect().width,v=i.showSpinner?i.spinnerRadius:0,g=(o.getWidth()-2*v-(i.showSpinner&&p?10:0)-p)/2-(i.showSpinner&&p?0:5+p/2)+(i.showSpinner?0:p/2)+(p?0:v),m=o.getHeight()/2;i.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},r.resize(),r}),ru({type:Nd,event:Nd,update:Nd},ln),ru({type:wm,event:wm,update:wm},ln),ru({type:Uu,event:Uu,update:Uu},ln),ru({type:Sm,event:Sm,update:Sm},ln),ru({type:Yp,event:Yp,update:Yp},ln),Xx("light",T4),Xx("dark",D4);var Ev={},Zi=[],m2={registerPreprocessor:zC,registerProcessor:Zx,registerPostInit:h2,registerPostUpdate:M8,registerAction:ru,registerCoordinateSystem:x8,registerLayout:p2,registerVisual:kf,registerTransform:g2,registerLoading:$x,registerMap:Jx,PRIORITY:Lx,ComponentModel:Qt,ComponentView:gr,SeriesModel:ir,ChartView:Vn,registerComponentModel:function(i){Qt.registerClass(i)},registerComponentView:function(i){gr.registerClass(i)},registerSeriesModel:function(i){ir.registerClass(i)},registerChartView:function(i){Vn.registerClass(i)},registerSubTypeDefaulter:function(i,r){Qt.registerSubTypeDefaulter(i,r)},registerPainter:function(i,r){ik(i,r)}};function wt(o){ke(o)?q(o,function(i){wt(i)}):zt(Zi,o)>=0||(Zi.push(o),Mn(o)&&(o={install:o}),o.install(m2))}function uh(o){return null==o?0:o.length||1}function _2(o){return o}var ec=function(){function o(i,r,s,u,f,d){this._old=i,this._new=r,this._oldKeyGetter=s||_2,this._newKeyGetter=u||_2,this.context=f,this._diffModeMultiple="multiple"===d}return o.prototype.add=function(i){return this._add=i,this},o.prototype.update=function(i){return this._update=i,this},o.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},o.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},o.prototype.remove=function(i){return this._remove=i,this},o.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},o.prototype._executeOneToOne=function(){var i=this._old,r=this._new,s={},u=new Array(i.length),f=new Array(r.length);this._initIndexMap(i,null,u,"_oldKeyGetter"),this._initIndexMap(r,s,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(s[p]=v[0]),this._update&&this._update(m,d)}else 1===g?(s[p]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,s)},o.prototype._executeMultiple=function(){var r=this._new,s={},u={},f=[],d=[];this._initIndexMap(this._old,s,f,"_oldKeyGetter"),this._initIndexMap(r,u,d,"_newKeyGetter");for(var p=0;p1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1)for(var w=0;w1)for(var p=0;pP[1]&&(P[1]=T)}r&&(this._nameList[S]=r[M],this._dontMakeIdFromName||iT(this,S))}this._rawCount=this._count=v,this._extent={},C_(this)},o.prototype._initDataFromProvider=function(i,r,s){if(!(i>=r)){for(var u=this._rawData,f=this._storage,d=this.dimensions,p=d.length,v=this._dimensionInfos,g=this._nameList,m=this._idList,y=this._rawExtent,w=u.getSource().sourceFormat===zo,S=0;SG[1]&&(G[1]=V)}if(w&&!u.pure&&P){var W=P.name;null==g[I]&&null!=W&&(g[I]=xi(W,null));var K=P.id;null==m[I]&&null!=K&&(m[I]=xi(K,null))}this._dontMakeIdFromName||iT(this,I)}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=r,this._extent={},C_(this)}},o.prototype.count=function(){return this._count},o.prototype.getIndices=function(){var i,r=this._indices;if(r){var u=this._count;if((s=r.constructor)===Array){i=new s(u);for(var f=0;f=0&&r=0&&r=0&&rv&&(v=y)}return this._extent[i]=d=[p,v],d},o.prototype.getApproximateExtent=function(i){return i=this.getDimension(i),this._approximateExtent[i]||this.getDataExtent(i)},o.prototype.setApproximateExtent=function(i,r){r=this.getDimension(r),this._approximateExtent[r]=i.slice()},o.prototype.getCalculationInfo=function(i){return this._calculationInfo[i]},o.prototype.setCalculationInfo=function(i,r){b_(i)?Me(this._calculationInfo,i):this._calculationInfo[i]=r},o.prototype.getSum=function(i){var s=0;if(this._storage[i])for(var u=0,f=this.count();u=this._rawCount||i<0)return-1;if(!this._indices)return i;var r=this._indices,s=r[i];if(null!=s&&si))return d;f=d-1}}return-1},o.prototype.indicesOfNearest=function(i,r,s){var f=this._storage[i],d=[];if(!f)return d;null==s&&(s=1/0);for(var p=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(p=S,v=w,g=0),w===v&&(d[g++]=m))}return d.length=g,d},o.prototype.getRawDataItem=function(i){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(i));for(var r=[],s=0;s=w&&R<=S||isNaN(R))&&(g[m++]=T),T++;x=!0}else if(2===d){P=M[b[0]];var B=M[b[1]],V=i[u[1]][0],G=i[u[1]][1];for(I=0;I=w&&R<=S||isNaN(R))&&(W>=V&&W<=G||isNaN(W))&&(g[m++]=T),T++}x=!0}}if(!x)if(1===d)for(I=0;I=w&&R<=S||isNaN(R))&&(g[m++]=K)}else for(I=0;Ii[ne][1])&&(J=!1)}J&&(g[m++]=this.getRawIndex(I))}return mB[1]&&(B[1]=R)}}}return p},o.prototype.downSample=function(i,r,s,u){for(var f=S_(this,[i]),d=f._storage,p=[],v=A8(1/r),g=d[i],m=this.count(),y=f._rawExtent[i],b=new(Pv(this))(m),w=0,S=0;Sm-S&&(p.length=v=m-S);for(var M=0;My[1]&&(y[1]=T),b[w++]=P}return f._count=w,f._indices=b,f.getRawIndex=ch,f},o.prototype.lttbDownSample=function(i,r){var y,b,w,s=S_(this,[]),f=s._storage[i],d=this.count(),p=new(Pv(this))(d),v=0,g=A8(1/r),m=this.getRawIndex(0);p[v++]=m;for(var S=1;Sy&&(y=b,w=R)}p[v++]=w,m=w}return p[v++]=this.getRawIndex(d-1),s._count=v,s._indices=p,s.getRawIndex=ch,s},o.prototype.getItemModel=function(i){var r=this.hostModel,s=this.getRawDataItem(i);return new Ln(s,r,r&&r.ecModel)},o.prototype.diff=function(i){var r=this;return new ec(i?i.getIndices():[],this.getIndices(),function(s){return jC(i,s)},function(s){return jC(r,s)})},o.prototype.getVisual=function(i){var r=this._visual;return r&&r[i]},o.prototype.setVisual=function(i,r){this._visual=this._visual||{},b_(i)?Me(this._visual,i):this._visual[i]=r},o.prototype.getItemVisual=function(i,r){var s=this._itemVisuals[i],u=s&&s[r];return null==u?this.getVisual(r):u},o.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},o.prototype.ensureUniqueItemVisual=function(i,r){var s=this._itemVisuals,u=s[i];u||(u=s[i]={});var f=u[r];return null==f&&(ke(f=this.getVisual(r))?f=f.slice():b_(f)&&(f=Me({},f)),u[r]=f),f},o.prototype.setItemVisual=function(i,r,s){var u=this._itemVisuals[i]||{};this._itemVisuals[i]=u,b_(r)?Me(u,r):u[r]=s},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(i,r){if(b_(i))for(var s in i)i.hasOwnProperty(s)&&this.setLayout(s,i[s]);else this._layout[i]=r},o.prototype.getLayout=function(i){return this._layout[i]},o.prototype.getItemLayout=function(i){return this._itemLayouts[i]},o.prototype.setItemLayout=function(i,r,s){this._itemLayouts[i]=s?Me(this._itemLayouts[i]||{},r):r},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(i,r){var s=this.hostModel;if(r){var u=gt(r);u.dataIndex=i,u.dataType=this.dataType,u.seriesIndex=s&&s.seriesIndex,"group"===r.type&&r.traverse(aT,r)}this._graphicEls[i]=r},o.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},o.prototype.eachItemGraphicEl=function(i,r){q(this._graphicEls,function(s,u){s&&i&&i.call(r,s,u)})},o.prototype.cloneShallow=function(i){if(i||(i=new o(Ts(this.dimensions,this.getDimensionInfo,this),this.hostModel)),i._storage=this._storage,i._storageArr=this._storageArr,WC(i,this),this._indices){var s=this._indices.constructor;if(s===Array){var u=this._indices.length;i._indices=new s(u);for(var f=0;f65535?HX:O8},rT=function(u,f,d,p){var v=P8[f.type],g=f.name;if(p){var m=u[g],y=m&&m.length;if(y!==d){for(var b=new v(d),w=0;w=0?this._indices[u]:-1},jC=function(u,f){var d=u._idList[f];return null==d&&null!=u._idDimIdx&&(d=w_(u,u._idDimIdx,u._idOrdinalMeta,f)),null==d&&(d="e\0\0"+f),d},Mf=function(u){return ke(u)||(u=null!=u?[u]:[]),u},S_=function(u,f){var d=u.dimensions,p=new o(Ts(d,u.getDimensionInfo,u),u.hostModel);WC(p,u);for(var v=p._storage={},g=u._storage,m=p._storageArr=[],y=0;y=0?(v[b]=r(g[b]),p._rawExtent[b]=Iv(),p._extent[b]=null):v[b]=g[b],m.push(v[b]))}return p},Iv=function(){return[1/0,-1/0]},aT=function(u){var f=gt(u),d=gt(this);f.seriesIndex=d.seriesIndex,f.dataIndex=d.dataIndex,f.dataType=d.dataType},WC=function(u,f){q(nT.concat(f.__wrappedMethods||[]),function(d){f.hasOwnProperty(d)&&(u[d]=f[d])}),u.__wrappedMethods=f.__wrappedMethods,q(GC,function(d){u[d]=it(f[d])}),u._calculationInfo=Me({},f._calculationInfo)},iT=function(u,f){var d=u._nameList,p=u._idList,v=u._nameDimIdx,g=u._idDimIdx,m=d[f],y=p[f];if(null==m&&null!=v&&(d[f]=m=w_(u,v,u._nameOrdinalMeta,f)),null==y&&null!=g&&(p[f]=y=w_(u,g,u._idOrdinalMeta,f)),null==y&&null!=m){var b=u._nameRepeatCount,w=b[m]=(b[m]||0)+1;y=m,w>1&&(y+="__ec__"+w),p[f]=y}}}(),o}();function M2(o,i,r){if(r||null!=i.get(o)){for(var s=0;null!=i.get(o+s);)s++;o+=s}return i.set(o,!0),o}function Lv(o,i){return function(o,i,r){_e(i)||(i=HM(i)),r=r||{},o=(o||[]).slice();for(var s=(r.dimsDef||[]).slice(),u=st(),f=st(),d=[],p=function(o,i,r,s){var u=Math.max(o.dimensionsDetectedCount||1,i.length,r.length,s||0);return q(i,function(f){var d;pt(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(i,o,s,r.dimCount),v=0;vr[1]&&(r[1]=i[1])},o.prototype.unionExtentFromData=function(i,r){this.unionExtent(i.getApproximateExtent(r))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(i,r){var s=this._extent;isNaN(i)||(s[0]=i),isNaN(r)||(s[1]=r)},o.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(i){this._isBlank=i},o}();$c(x2);var ou=x2;function V8(o){return pt(o)&&null!=o.value?o.value:o+""}var sT=function(){function o(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication}return o.createByAxisModel=function(i){var r=i.option,s=r.data,u=s&&Ie(s,V8);return new o({categories:u,needCollect:!u,deduplication:!1!==r.dedplication})},o.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},o.prototype.parseAndCollect=function(i){var r,s=this._needCollect;if("string"!=typeof i&&!s)return i;if(s&&!this._deduplication)return this.categories[r=this.categories.length]=i,r;var u=this._getOrCreateMap();return null==(r=u.get(i))&&(s?(this.categories[r=this.categories.length]=i,u.set(i,r)):r=NaN),r},o.prototype._getOrCreateMap=function(){return this._map||(this._map=st(this.categories))},o}(),T2=Wr;function D2(o){return Ks(o)+2}function lT(o,i,r){o[i]=Math.max(Math.min(o[i],r[1]),r[0])}function Le(o,i){return o>=i[0]&&o<=i[1]}function dt(o,i){return i[1]===i[0]?.5:(o-i[0])/(i[1]-i[0])}function Wt(o,i){return o*(i[1]-i[0])+i[0]}var Fe=function(o){function i(r){var s=o.call(this,r)||this;s.type="ordinal";var u=s.getSetting("ordinalMeta");return u||(u=new sT({})),ke(u)&&(u=new sT({categories:Ie(u,function(f){return pt(f)?f.value:f})})),s._ordinalMeta=u,s._extent=s.getSetting("extent")||[0,u.categories.length-1],s}return he(i,o),i.prototype.parse=function(r){return"string"==typeof r?this._ordinalMeta.getOrdinal(r):Math.round(r)},i.prototype.contain=function(r){return Le(r=this.parse(r),this._extent)&&null!=this._ordinalMeta.categories[r]},i.prototype.normalize=function(r){return dt(r=this._getTickNumber(this.parse(r)),this._extent)},i.prototype.scale=function(r){return r=Math.round(Wt(r,this._extent)),this.getRawOrdinalNumber(r)},i.prototype.getTicks=function(){for(var r=[],s=this._extent,u=s[0];u<=s[1];)r.push({value:u}),u++;return r},i.prototype.getMinorTicks=function(r){},i.prototype.setSortInfo=function(r){if(null!=r){for(var s=r.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,p=this._ordinalMeta.categories.length,v=Math.min(p,s.length);d=0&&r=0&&r=r},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(ou);ou.registerClass(Fe);var cT=Fe,Df=Wr,fT=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return he(i,o),i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return Le(r,this._extent)},i.prototype.normalize=function(r){return dt(r,this._extent)},i.prototype.scale=function(r){return Wt(r,this._extent)},i.prototype.setExtent=function(r,s){var u=this._extent;isNaN(r)||(u[0]=parseFloat(r)),isNaN(s)||(u[1]=parseFloat(s))},i.prototype.unionExtent=function(r){var s=this._extent;r[0]s[1]&&(s[1]=r[1]),this.setExtent(s[0],s[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=D2(r)},i.prototype.getTicks=function(r){var s=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,p=[];if(!s)return p;u[0]1e4)return[];var m=p.length?p[p.length-1].value:f[1];return u[1]>m&&p.push(r?{value:Df(m+s,d)}:{value:u[1]}),p},i.prototype.getMinorTicks=function(r){for(var s=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&ws&&(d=u.interval=s);var p=u.intervalPrecision=D2(d);return function(o,i){!isFinite(o[0])&&(o[0]=i[0]),!isFinite(o[1])&&(o[1]=i[1]),lT(o,0,i),lT(o,1,i),o[0]>o[1]&&(o[0]=o[1])}(u.niceTickExtent=[T2(Math.ceil(o[0]/d)*d,p),T2(Math.floor(o[1]/d)*d,p)],o),u}(f,r,s,u);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},i.prototype.niceExtent=function(r){var s=this._extent;if(s[0]===s[1])if(0!==s[0]){var u=s[0];r.fixMax||(s[1]+=u/2),s[0]-=u/2}else s[1]=1;isFinite(s[1]-s[0])||(s[0]=0,s[1]=1),this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var d=this._interval;r.fixMin||(s[0]=Df(Math.floor(s[0]/d)*d)),r.fixMax||(s[1]=Df(Math.ceil(s[1]/d)*d))},i.type="interval",i}(ou);ou.registerClass(fT);var Fv=fT,YC="__ec_stack_",dT="undefined"!=typeof Float32Array?Float32Array:Array;function Ki(o){return o.get("stack")||YC+o.seriesIndex}function Af(o){return o.dim+o.index}function A2(o,i){var r=[];return i.eachSeriesByType(o,function(s){I2(s)&&!R2(s)&&r.push(s)}),r}function fh(o){var i=function(o){var i={};q(o,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,w=y.mapDimension(m.dim),S=0,M=y.count();S0&&(f=null===f?p:Math.min(f,p))}r[s]=f}}return r}(o),r=[];return q(o,function(s){var p,f=s.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)p=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=i[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);p=g?m/b*g:m}else{var w=s.getData();p=Math.abs(d[1]-d[0])/w.count()}var S=Ae(s.get("barWidth"),p),M=Ae(s.get("barMaxWidth"),p),x=Ae(s.get("barMinWidth")||1,p),T=s.get("barGap"),P=s.get("barCategoryGap");r.push({bandWidth:p,barWidth:S,barMaxWidth:M,barMinWidth:x,barGap:T,barCategoryGap:P,axisKey:Af(f),stackId:Ki(s)})}),E2(r)}function E2(o){var i={};q(o,function(s,u){var f=s.axisKey,d=s.bandWidth,p=i[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=p.stacks;i[f]=p;var g=s.stackId;v[g]||p.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=s.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(p.remainedWidth,m),p.remainedWidth-=m);var y=s.barMaxWidth;y&&(v[g].maxWidth=y);var b=s.barMinWidth;b&&(v[g].minWidth=b);var w=s.barGap;null!=w&&(p.gap=w);var S=s.barCategoryGap;null!=S&&(p.categoryGap=S)});var r={};return q(i,function(s,u){r[u]={};var f=s.stacks,d=s.bandWidth,p=s.categoryGap;if(null==p){var v=kn(f).length;p=Math.max(35-4*v,15)+"%"}var g=Ae(p,d),m=Ae(s.gap,1),y=s.remainedWidth,b=s.autoWidthCount,w=(y-g)/(b+(b-1)*m);w=Math.max(w,0),q(f,function(T){var P=T.maxWidth,I=T.minWidth;if(T.width){var R=T.width;P&&(R=Math.min(R,P)),I&&(R=Math.max(R,I)),T.width=R,y-=R+m*R,b--}else R=w,P&&PR&&(R=I),R!==w&&(T.width=R,y-=R+m*R,b--)}),w=(y-g)/(b+(b-1)*m),w=Math.max(w,0);var M,S=0;q(f,function(T,P){T.width||(T.width=w),M=T,S+=T.width*(1+m)}),M&&(S-=M.width*m);var x=-S/2;q(f,function(T,P){r[u][P]=r[u][P]||{bandWidth:d,offset:x,width:T.width},x+=T.width*(1+m)})}),r}function qC(o,i,r){if(o&&i){var s=o[Af(i)];return null!=s&&null!=r?s[Ki(r)]:s}}function P2(o,i){var r=A2(o,i),s=fh(r),u={};q(r,function(f){var d=f.getData(),p=f.coordinateSystem,v=p.getBaseAxis(),g=Ki(f),m=s[Af(v)][g],y=m.offset,b=m.width,w=p.getOtherAxis(v),S=f.get("barMinHeight")||0;u[g]=u[g]||[],d.setLayout({bandWidth:m.bandWidth,offset:y,size:b});for(var M=d.mapDimension(w.dim),x=d.mapDimension(v.dim),T=tc(d,M),P=w.isHorizontal(),I=XC(0,w),R=0,B=d.count();R=0?"p":"n",K=I;T&&(u[g][G]||(u[g][G]={p:I,n:I}),K=u[g][G][W]);var se,J=void 0,Z=void 0,ne=void 0,te=void 0;P?(J=K,Z=(se=p.dataToPoint([V,G]))[1]+y,ne=se[0]-I,te=b,Math.abs(ne).5||(y=.5),{progress:function(w,S){for(var I,M=w.count,x=new dT(2*M),T=new dT(2*M),P=new dT(M),R=[],B=[],V=0,G=0;null!=(I=w.next());)B[m]=S.get(p,I),B[1-m]=S.get(v,I),R=s.dataToPoint(B,null),T[V]=g?u.x+u.width:R[0],x[V++]=R[0],T[V]=g?R[1]:u.y+u.height,x[V++]=R[1],P[G++]=I;S.setLayout({largePoints:x,largeDataIndices:P,largeBackgroundPoints:T,barWidth:y,valueAxisStart:XC(0,d),backgroundStart:g?u.x:u.y,valueAxisHorizontal:g})}}}}};function I2(o){return o.coordinateSystem&&"cartesian2d"===o.coordinateSystem.type}function R2(o){return o.pipelineContext&&o.pipelineContext.large}function XC(o,i,r){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}var hT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="time",s}return he(i,o),i.prototype.getLabel=function(r){var s=this.getSetting("useUTC");return Um(r.value,N0[function(o){switch(o){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(uv(this._minLevelUnit))]||N0.second,s,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(r,s,u){var f=this.getSetting("useUTC");return function(o,i,r,s,u){var f=null;if("string"==typeof r)f=r;else if("function"==typeof r)f=r(o.value,i,{level:o.level});else{var d=Me({},F0);if(o.level>0)for(var p=0;p=0;--p)if(v[g]){f=v[g];break}f=f||d.none}if(ke(f)){var y=null==o.level?0:o.level>=0?o.level:f.length+o.level;f=f[y=Math.min(y,f.length-1)]}}return Um(new Date(o.value),f,u,s)}(r,s,u,this.getSetting("locale"),f)},i.prototype.getTicks=function(r){var u=this._extent,f=[];if(!this._interval)return f;f.push({value:u[0],level:0});var d=this.getSetting("useUTC"),p=function(o,i,r,s){var f=Pz,d=0;function p(J,Z,ne,te,se,le,de){for(var pe=new Date(Z),me=Z,Ce=pe[te]();me1&&0===le&&ne.unshift({value:ne[0].value-me})}}for(le=0;le=s[0]&&P<=s[1]&&y++)}var I=(s[1]-s[0])/i;if(y>1.5*I&&b>I/1.5||(g.push(x),y>I||o===f[w]))break}m=[]}}var R=sr(Ie(g,function(J){return sr(J,function(Z){return Z.value>=s[0]&&Z.value<=s[1]&&!Z.notAdd})}),function(J){return J.length>0}),B=[],V=R.length-1;for(w=0;wu&&(this._approxInterval=u);var p=dh.length,v=Math.min(function(i,r,s,u){for(;s>>1;i[f][1]16?16:o>7.5?7:o>3.5?4:o>1.5?2:1}function F2(o){return(o/=2592e6)>6?6:o>3?3:o>2?2:1}function z8(o){return(o/=lv)>12?12:o>6?6:o>3.5?4:o>2?2:1}function vT(o,i){return(o/=i?6e4:1e3)>30?30:o>20?20:o>15?15:o>10?10:o>5?5:o>2?2:1}function ZC(o){return Zc(o,!0)}function N2(o,i,r){var s=new Date(o);switch(uv(i)){case"year":case"month":s[bI(r)](0);case"day":s[Lz(r)](1);case"hour":s[wM(r)](0);case"minute":s[Fz(r)](0);case"second":s[CI(r)](0),s[wI(r)](0)}return s.getTime()}ou.registerClass(hT);var KC=hT,QC=ou.prototype,x_=Fv.prototype,G8=Wr,V2=Math.floor,B2=Math.ceil,T_=Math.pow,As=Math.log,$C=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Fv,r._interval=0,r}return he(i,o),i.prototype.getTicks=function(r){var u=this._extent,f=this._originalScale.getExtent();return Ie(x_.getTicks.call(this,r),function(p){var v=p.value,g=Wr(T_(this.base,v));return g=v===u[0]&&this._fixMin?JC(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?JC(g,f[1]):g}},this)},i.prototype.setExtent=function(r,s){var u=this.base;r=As(r)/As(u),s=As(s)/As(u),x_.setExtent.call(this,r,s)},i.prototype.getExtent=function(){var r=this.base,s=QC.getExtent.call(this);s[0]=T_(r,s[0]),s[1]=T_(r,s[1]);var f=this._originalScale.getExtent();return this._fixMin&&(s[0]=JC(s[0],f[0])),this._fixMax&&(s[1]=JC(s[1],f[1])),s},i.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var s=this.base;r[0]=As(r[0])/As(s),r[1]=As(r[1])/As(s),QC.unionExtent.call(this,r)},i.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},i.prototype.niceTicks=function(r){r=r||10;var s=this._extent,u=s[1]-s[0];if(!(u===1/0||u<=0)){var f=uk(u);for(r/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var p=[Wr(B2(s[0]/f)*f),Wr(V2(s[1]/f)*f)];this._interval=f,this._niceExtent=p}},i.prototype.niceExtent=function(r){x_.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return Le(r=As(r)/As(this.base),this._extent)},i.prototype.normalize=function(r){return dt(r=As(r)/As(this.base),this._extent)},i.prototype.scale=function(r){return r=Wt(r,this._extent),T_(this.base,r)},i.type="log",i}(ou),gT=$C.prototype;function JC(o,i){return G8(o,Ks(i))}gT.getMinorTicks=x_.getMinorTicks,gT.getLabel=x_.getLabel,ou.registerClass($C);var j8=$C,H2=function(){function o(i,r,s){this._prepareParams(i,r,s)}return o.prototype._prepareParams=function(i,r,s){s[1]v&&(p=NaN,v=NaN);var y=Rg(p)||Rg(v)||i&&!u;this._needCrossZero&&(p>0&&v>0&&!g&&(p=0),p<0&&v<0&&!m&&(v=0));var b=this._determinedMin,w=this._determinedMax;return null!=b&&(p=b,g=!0),null!=w&&(v=w,m=!0),{min:p,max:v,minFixed:g,maxFixed:m,isBlank:y}},o.prototype.modifyDataMinMax=function(i,r){this[z2[i]]=r},o.prototype.setDeterminedMinMax=function(i,r){this[W8[i]]=r},o.prototype.freeze=function(){this.frozen=!0},o}(),W8={min:"_determinedMin",max:"_determinedMax"},z2={min:"_dataMin",max:"_dataMax"};function mT(o,i,r){var s=o.rawExtentInfo;return s||(s=new H2(o,i,r),o.rawExtentInfo=s,s)}function hh(o,i){return null==i?null:Rg(i)?NaN:o.parse(i)}function _T(o,i){var r=o.type,s=mT(o,i,o.getExtent()).calculate();o.setBlank(s.isBlank);var u=s.min,f=s.max,d=i.ecModel;if(d&&"time"===r){var p=A2("bar",d),v=!1;if(q(p,function(y){v=v||y.getBaseAxis()===i.axis}),v){var g=fh(p),m=function(o,i,r,s){var u=r.axis.getExtent(),f=u[1]-u[0],d=qC(s,r.axis);if(void 0===d)return{min:o,max:i};var p=1/0;q(d,function(w){p=Math.min(w.offset,p)});var v=-1/0;q(d,function(w){v=Math.max(w.offset+w.width,v)}),p=Math.abs(p),v=Math.abs(v);var g=p+v,m=i-o,b=m/(1-(p+v)/f)-m;return{min:o-=b*(p/g),max:i+=b*(v/g)}}(u,f,i,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:s.minFixed,fixMax:s.maxFixed}}function Ef(o,i){var r=_T(o,i),s=r.extent,u=i.get("splitNumber");o instanceof j8&&(o.base=i.get("logBase"));var f=o.type;o.setExtent(s[0],s[1]),o.niceExtent({splitNumber:u,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:"interval"===f||"time"===f?i.get("minInterval"):null,maxInterval:"interval"===f||"time"===f?i.get("maxInterval"):null});var d=i.get("interval");null!=d&&o.setInterval&&o.setInterval(d)}function D_(o,i){if(i=i||o.get("type"))switch(i){case"category":return new cT({ordinalMeta:o.getOrdinalMeta?o.getOrdinalMeta():o.getCategories(),extent:[1/0,-1/0]});case"time":return new KC({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new(ou.getClass(i)||Fv)}}function A_(o){var s,i=o.getLabelModel().get("formatter"),r="category"===o.type?o.scale.getExtent()[0]:null;return"time"===o.scale.type?(s=i,function(u,f){return o.scale.getFormattedLabel(u,f,s)}):"string"==typeof i?function(s){return function(u){var f=o.scale.getLabel(u);return s.replace("{value}",null!=f?f:"")}}(i):"function"==typeof i?function(s){return function(u,f){return null!=r&&(f=u.value-r),s(yT(o,u),f,null!=u.level?{level:u.level}:null)}}(i):function(s){return o.scale.getLabel(s)}}function yT(o,i){return"category"===o.type?o.scale.getLabel(i):i.value}function X8(o,i){var r=i*Math.PI/180,s=o.width,u=o.height,f=s*Math.abs(Math.cos(r))+Math.abs(u*Math.sin(r)),d=s*Math.abs(Math.sin(r))+Math.abs(u*Math.cos(r));return new Vt(o.x,o.y,f,d)}function bT(o){var i=o.get("interval");return null==i?"auto":i}function Z8(o){return"category"===o.type&&0===bT(o.getLabelModel())}function ew(o,i){var r={};return q(o.mapDimensionsAll(i),function(s){r[nc(o,s)]=!0}),kn(r)}var E_=function(){function o(){}return o.prototype.getNeedCrossZero=function(){return!this.option.scale},o.prototype.getCoordSysModel=function(){},o}();function jX(o){return au(o.getSource(),o)}var WX={isDimensionStacked:tc,enableDataStack:ye,getStackedDimension:nc};function YX(o,i){var r=i;i instanceof Ln||(r=new Ln(i));var s=D_(r);return s.setExtent(o[0],o[1]),Ef(s,r),s}function qX(o){br(o,E_)}function XX(o,i){return Ir(o,null,null,"normal"!==(i=i||{}).state)}function ZX(o,i,r,s,u,f,d,p){return new on({style:{text:o,font:i,align:r,verticalAlign:s,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:p}}).getBoundingRect()}var tw=nn();function G2(o,i){var f,d,r=J8(o,"labels"),s=bT(i);return j2(r,s)||(Mn(s)?f=iU(o,s):(d="auto"===s?function(o){var i=tw(o).autoInterval;return null!=i?i:tw(o).autoInterval=o.calculateCategoryInterval()}(o):s,f=rU(o,d)),W2(r,s,{labels:f,labelCategoryInterval:d}))}function J8(o,i){return tw(o)[i]||(tw(o)[i]=[])}function j2(o,i){for(var r=0;r1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=Z8(o),b=d.get("showMinLabel")||y,w=d.get("showMaxLabel")||y;b&&g!==f[0]&&M(f[0]);for(var S=g;S<=f[1];S+=v)M(S);function M(x){var T={value:x};p.push(r?x:{formattedLabel:s(T),rawLabel:u.getLabel(T),tickValue:x})}return w&&S-v!==f[1]&&M(f[1]),p}function iU(o,i,r){var s=o.scale,u=A_(o),f=[];return q(s.getTicks(),function(d){var p=s.getLabel(d),v=d.value;i(d.value,p)&&f.push(r?v:{formattedLabel:u(d),rawLabel:p,tickValue:v})}),f}var Y2=[0,1];function q2(o,i){var u=(o[1]-o[0])/i/2;o[0]+=u,o[1]-=u}var Qi=function(){function o(i,r,s){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=r,this._extent=s||[0,0]}return o.prototype.contain=function(i){var r=this._extent,s=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return i>=s&&i<=u},o.prototype.containData=function(i){return this.scale.contain(i)},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.getPixelPrecision=function(i){return jb(i||this.scale.getExtent(),this._extent)},o.prototype.setExtent=function(i,r){var s=this._extent;s[0]=i,s[1]=r},o.prototype.dataToCoord=function(i,r){var s=this._extent,u=this.scale;return i=u.normalize(i),this.onBand&&"ordinal"===u.type&&q2(s=s.slice(),u.count()),wn(i,Y2,s,r)},o.prototype.coordToData=function(i,r){var s=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&q2(s=s.slice(),u.count());var f=wn(i,s,Y2,r);return this.scale.scale(f)},o.prototype.pointToData=function(i,r){},o.prototype.getTicksCoords=function(i){var r=(i=i||{}).tickModel||this.getTickModel(),f=Ie(function(o,i){return"category"===o.type?function(o,i){var f,d,r=J8(o,"ticks"),s=bT(i),u=j2(r,s);if(u)return u;if((!i.get("show")||o.scale.isBlank())&&(f=[]),Mn(s))f=iU(o,s,!0);else if("auto"===s){var p=G2(o,o.getLabelModel());d=p.labelCategoryInterval,f=Ie(p.labels,function(v){return v.tickValue})}else f=rU(o,d=s,!0);return W2(r,s,{ticks:f,tickCategoryInterval:d})}(o,i):{ticks:Ie(o.scale.getTicks(),function(r){return r.value})}}(this,r).ticks,function(p){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(p):p),tickValue:p}},this);return function(o,i,r,s){var u=i.length;if(o.onBand&&!r&&u){var d,f=o.getExtent();if(1===u)i[0].coord=f[0],d=i[1]={coord:f[0]};else{var g=(i[u-1].coord-i[0].coord)/(i[u-1].tickValue-i[0].tickValue);q(i,function(w){w.coord-=g/2});var m=o.scale.getExtent();i.push(d={coord:i[u-1].coord+g*(1+m[1]-i[u-1].tickValue)})}var y=f[0]>f[1];b(i[0].coord,f[0])&&(s?i[0].coord=f[0]:i.shift()),s&&b(f[0],i[0].coord)&&i.unshift({coord:f[0]}),b(f[1],d.coord)&&(s?d.coord=f[1]:i.pop()),s&&b(d.coord,f[1])&&i.push({coord:f[1]})}function b(w,S){return w=Wr(w),S=Wr(S),y?w>S:w0&&r<100||(r=5),Ie(this.scale.getMinorTicks(r),function(f){return Ie(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},o.prototype.getViewLabels=function(){return function(o){return"category"===o.type?function(o){var i=o.getLabelModel(),r=G2(o,i);return!i.get("show")||o.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}(o):function(o){var i=o.scale.getTicks(),r=A_(o);return{labels:Ie(i,function(s,u){return{formattedLabel:r(s,u),rawLabel:o.scale.getLabel(s),tickValue:s.value}})}}(o)}(this).labels},o.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},o.prototype.getTickModel=function(){return this.model.getModel("axisTick")},o.prototype.getBandWidth=function(){var i=this._extent,r=this.scale.getExtent(),s=r[1]-r[0]+(this.onBand?1:0);0===s&&(s=1);var u=Math.abs(i[1]-i[0]);return Math.abs(u)/s},o.prototype.calculateCategoryInterval=function(){return function(o){var i=function(o){var i=o.getLabelModel();return{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(o),r=A_(o),s=(i.axisRotate-i.labelRotate)/180*Math.PI,u=o.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=1;d>40&&(p=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=o.dataToCoord(v+1)-o.dataToCoord(v),m=Math.abs(g*Math.cos(s)),y=Math.abs(g*Math.sin(s)),b=0,w=0;v<=f[1];v+=p){var M,x=em(r({value:v}),i.font,"center","top");M=1.3*x.height,b=Math.max(b,1.3*x.width,7),w=Math.max(w,M,7)}var T=b/m,P=w/y;isNaN(T)&&(T=1/0),isNaN(P)&&(P=1/0);var I=Math.max(0,Math.floor(Math.min(T,P))),R=tw(o.model),B=o.getExtent(),V=R.lastAutoInterval,G=R.lastTickCount;return null!=V&&null!=G&&Math.abs(V-I)<=1&&Math.abs(G-d)<=1&&V>I&&R.axisExtent0===B[0]&&R.axisExtent1===B[1]?I=V:(R.lastTickCount=d,R.lastAutoInterval=I,R.axisExtent0=B[0],R.axisExtent1=B[1]),I}(this)},o}();function O_(o){var i=Qt.extend(o);return Qt.registerClass(i),i}function aU(o){var i=gr.extend(o);return gr.registerClass(i),i}function oU(o){var i=ir.extend(o);return ir.registerClass(i),i}function CT(o){var i=Vn.extend(o);return Vn.registerClass(i),i}function X2(){return!1}function ph(o,i,r){var s=Tc(),u=i.getWidth(),f=i.getHeight(),d=s.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",s.setAttribute("data-zr-dom-id",o)),s.width=u*r,s.height=f*r,s}var K2=function(o){function i(r,s,u){var d,f=o.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||Bb,"string"==typeof r?d=ph(r,s,u):pt(r)&&(r=(d=r).id),f.id=r,f.dom=d;var p=d.style;return p&&(d.onselectstart=X2,p.webkitUserSelect="none",p.userSelect="none",p.webkitTapHighlightColor="rgba(0,0,0,0)",p["-webkit-touch-callout"]="none",p.padding="0",p.margin="0",p.borderWidth="0"),f.domBack=null,f.ctxBack=null,f.painter=s,f.config=null,f.dpr=u,f}return at(i,o),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=ph("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},i.prototype.createRepaintRects=function(r,s,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var x,d=[],p=this.maxRepaintRectCount,v=!1,g=new Vt(0,0,0,0);function m(P){if(P.isFinite()&&!P.isZero())if(0===d.length)(I=new Vt(0,0,0,0)).copy(P),d.push(I);else{for(var R=!1,B=1/0,V=0,G=0;G=p)}}for(var y=this.__startIndex;y15)break}de.prevElClipPaths&&P.restore()};if(I)if(0===I.length)K=T.__endIndex;else for(var Z=w.dpr,ne=0;ne0&&i>u[0]){for(v=0;vi);v++);p=s[u[v]]}if(u.splice(v+1,0,i),s[i]=r,!r.virtual)if(p){var g=p.dom;g.nextSibling?d.insertBefore(r.dom,g.nextSibling):d.appendChild(r.dom)}else d.firstChild?d.insertBefore(r.dom,d.firstChild):d.appendChild(r.dom);r.__painter=this}else He("Layer of zlevel "+i+" is not valid")},o.prototype.eachLayer=function(i,r){for(var s=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||He("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,r(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}r(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},o.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},o.prototype._clearLayer=function(i){i.clear()},o.prototype.setBackgroundColor=function(i){this._backgroundColor=i,q(this._layers,function(r){r.setUnpainted()})},o.prototype.configLayer=function(i,r){if(r){var s=this._layerConfig;s[i]?yt(s[i],r,!0):s[i]=r;for(var u=0;u-1e-4}function ST(o,i){i&&Sr(o,"transform","matrix("+iw(i[0])+","+iw(i[1])+","+iw(i[2])+","+iw(i[3])+","+rc(i[4])+","+rc(i[5])+")")}function Sr(o,i,r){(!r||"linear"!==r.type&&"radial"!==r.type)&&o.setAttribute(i,r)}function N_(o,i,r){var s=null==i.opacity?1:i.opacity;if(r instanceof di)o.style.opacity=s+"";else{if(function(o){var i=o.fill;return null!=i&&i!==L_}(i)){var u=i.fill;Sr(o,"fill",u="transparent"===u?L_:u),Sr(o,"fill-opacity",(null!=i.fillOpacity?i.fillOpacity*s:s)+"")}else Sr(o,"fill",L_);if(function(o){var i=o.stroke;return null!=i&&i!==L_}(i)){var f=i.stroke;Sr(o,"stroke",f="transparent"===f?L_:f);var d=i.lineWidth,p=i.strokeNoScale?r.getLineScale():1;Sr(o,"stroke-width",(p?d/p:0)+""),Sr(o,"paint-order",i.strokeFirst?"stroke":"fill"),Sr(o,"stroke-opacity",(null!=i.strokeOpacity?i.strokeOpacity*s:s)+"");var v=i.lineDash&&d>0&&wC(i.lineDash,d);if(v){var g=i.lineDashOffset;p&&1!==p&&(v=Ie(v,function(m){return m/p}),g&&(g=F_(g/=p))),Sr(o,"stroke-dasharray",v.join(",")),Sr(o,"stroke-dashoffset",(g||0)+"")}else Sr(o,"stroke-dasharray","");i.lineCap&&Sr(o,"stroke-linecap",i.lineCap),i.lineJoin&&Sr(o,"stroke-linejoin",i.lineJoin),i.miterLimit&&Sr(o,"stroke-miterlimit",i.miterLimit+"")}else Sr(o,"stroke",L_)}}var tL=function(){function o(){}return o.prototype.reset=function(){this._d=[],this._str=""},o.prototype.moveTo=function(i,r){this._add("M",i,r)},o.prototype.lineTo=function(i,r){this._add("L",i,r)},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){this._add("C",i,r,s,u,f,d)},o.prototype.quadraticCurveTo=function(i,r,s,u){this._add("Q",i,r,s,u)},o.prototype.arc=function(i,r,s,u,f,d){this.ellipse(i,r,s,s,0,u,f,d)},o.prototype.ellipse=function(i,r,s,u,f,d,p,v){var g=0===this._d.length,m=p-d,y=!v,b=Math.abs(m),w=aw(b-Of)||(y?m>=Of:-m>=Of),S=m>0?m%Of:m%Of+Of,M=!1;M=!!w||!aw(b)&&S>=J2==!!y;var x=rc(i+s*fU(d)),T=rc(r+u*$2(d));w&&(m=y?Of-1e-4:1e-4-Of,M=!0,g&&this._d.push("M",x,T));var P=rc(i+s*fU(d+m)),I=rc(r+u*$2(d+m));if(isNaN(x)||isNaN(T)||isNaN(s)||isNaN(u)||isNaN(f)||isNaN(If)||isNaN(P)||isNaN(I))return"";this._d.push("A",rc(s),rc(u),F_(f*If),+M,+y,P,I)},o.prototype.rect=function(i,r,s,u){this._add("M",i,r),this._add("L",i+s,r),this._add("L",i+s,r+u),this._add("L",i,r+u),this._add("L",i,r)},o.prototype.closePath=function(){this._d.length>0&&this._add("Z")},o.prototype._add=function(i,r,s,u,f,d,p,v,g){this._d.push(i);for(var m=1;m=0;--p)if(d[p]===f)return!0;return!1}),u}return null}return s[0]},o.prototype.doUpdate=function(i,r){if(i){var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))"function"==typeof r&&r(i);else{var u=this.add(i);u&&(i[this._domName]=u)}}},o.prototype.add=function(i){return null},o.prototype.addDom=function(i){var r=this.getDefs(!0);i.parentNode!==r&&r.appendChild(i)},o.prototype.removeDom=function(i){var r=this.getDefs(!1);r&&i[this._domName]&&(r.removeChild(i[this._domName]),i[this._domName]=null)},o.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var r=[];return q(this._tagNames,function(s){for(var u=i.getElementsByTagName(s),f=0;f-1){var g=io(v)[3],m=OP(v);p.setAttribute("stop-color","#"+m),p.setAttribute("stop-opacity",g+"")}else p.setAttribute("stop-color",u[f].color);s.appendChild(p)}r.__dom=s},i.prototype.markUsed=function(r){if(r.style){var s=r.style.fill;s&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom),(s=r.style.stroke)&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom)}},i}(B_);function H_(o){return o&&(!!o.image||!!o.svgElement)}var lw=new SR,mU=function(o){function i(r,s){return o.call(this,r,s,["pattern"],"__pattern_in_use__")||this}return at(i,o),i.prototype.addWithoutUpdate=function(r,s){if(s&&s.style){var u=this;q(["fill","stroke"],function(f){var d=s.style[f];if(H_(d)){var p=u.getDefs(!0),v=lw.get(d);v?p.contains(v)||u.addDom(v):v=u.add(d),u.markUsed(s);var g=v.getAttribute("id");r.setAttribute(f,"url(#"+g+")")}})}},i.prototype.add=function(r){if(H_(r)){var s=this.createElement("pattern");return r.id=null==r.id?this.nextId++:r.id,s.setAttribute("id","zr"+this._zrId+"-pattern-"+r.id),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(r,s),this.addDom(s),s}},i.prototype.update=function(r){if(H_(r)){var s=this;this.doUpdate(r,function(){var u=lw.get(r);s.updateDom(r,u)})}},i.prototype.updateDom=function(r,s){var u=r.svgElement;if(u instanceof SVGElement)u.parentNode!==s&&(s.innerHTML="",s.appendChild(u),s.setAttribute("width",r.svgWidth+""),s.setAttribute("height",r.svgHeight+""));else{var f=void 0,d=s.getElementsByTagName("image");if(d.length){if(!r.image)return void s.removeChild(d[0]);f=d[0]}else r.image&&(f=this.createElement("image"));if(f){var p=void 0,v=r.image;if("string"==typeof v?p=v:v instanceof HTMLImageElement?p=v.src:v instanceof HTMLCanvasElement&&(p=v.toDataURL()),p){f.setAttribute("href",p),f.setAttribute("x","0"),f.setAttribute("y","0");var m=vk(p,f,{dirty:function(){}},function(T){s.setAttribute("width",T.width+""),s.setAttribute("height",T.height+"")});m&&m.width&&m.height&&(s.setAttribute("width",m.width+""),s.setAttribute("height",m.height+"")),s.appendChild(f)}}}var w=(r.rotation||0)/Math.PI*180;s.setAttribute("patternTransform","translate("+(r.x||0)+", "+(r.y||0)+") rotate("+w+") scale("+(r.scaleX||1)+", "+(r.scaleY||1)+")"),lw.set(r,s)},i.prototype.markUsed=function(r){r.style&&(H_(r.style.fill)&&o.prototype.markDomUsed.call(this,lw.get(r.style.fill)),H_(r.style.stroke)&&o.prototype.markDomUsed.call(this,lw.get(r.style.stroke)))},i}(B_);function yU(o){var i=o.__clipPaths;return i&&i.length>0}var lL=function(o){function i(r,s){var u=o.call(this,r,s,"clipPath","__clippath_in_use__")||this;return u._refGroups={},u._keyDuplicateCount={},u}return at(i,o),i.prototype.markAllUnused=function(){for(var r in o.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[r]);this._keyDuplicateCount={}},i.prototype._getClipPathGroup=function(r,s){if(yU(r)){var u=r.__clipPaths,f=this._keyDuplicateCount,d=function(o){var i=[];if(o)for(var r=0;r0){var u=this.getDefs(!0),f=s[0],d=void 0,p=void 0;f._dom?(p=f._dom.getAttribute("id"),u.contains(d=f._dom)||u.appendChild(d)):(p="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(d=this.createElement("clipPath")).setAttribute("id",p),u.appendChild(d),f._dom=d),this.getSvgProxy(f).brush(f);var g=this.getSvgElement(f);d.innerHTML="",d.appendChild(g),r.setAttribute("clip-path","url(#"+p+")"),s.length>1&&this.updateDom(d,s.slice(1))}else r&&r.setAttribute("clip-path","none")},i.prototype.markUsed=function(r){var s=this;r.__clipPaths&&q(r.__clipPaths,function(u){u._dom&&o.prototype.markDomUsed.call(s,u._dom)})},i.prototype.removeUnused=function(){o.prototype.removeUnused.call(this);var r={};for(var s in this._refGroups){var u=this._refGroups[s];this.isDomUnused(u)?u.parentNode&&u.parentNode.removeChild(u):r[s]=u}this._refGroups=r},i}(B_),CU=function(o){function i(r,s){var u=o.call(this,r,s,["filter"],"__filter_in_use__","_shadowDom")||this;return u._shadowDomMap={},u._shadowDomPool=[],u}return at(i,o),i.prototype._getFromPool=function(){var r=this._shadowDomPool.pop();if(!r){(r=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var s=this.createElement("feDropShadow");r.appendChild(s),this.addDom(r)}return r},i.prototype.update=function(r,s){if(function(o){return o&&(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)}(s.style)){var f=function(o){var i=o.style,r=o.getGlobalScale();return[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(s),d=s._shadowDom=this._shadowDomMap[f];d||(d=this._getFromPool(),this._shadowDomMap[f]=d),this.updateDom(r,s,d)}else this.remove(r,s)},i.prototype.remove=function(r,s){null!=s._shadowDom&&(s._shadowDom=null,r.style.filter="")},i.prototype.updateDom=function(r,s,u){var f=u.children[0],d=s.style,p=s.getGlobalScale(),v=p[0],g=p[1];if(v&&g){var y=d.shadowOffsetY||0,b=d.shadowBlur,w=d.shadowColor;f.setAttribute("dx",(d.shadowOffsetX||0)/v+""),f.setAttribute("dy",y/g+""),f.setAttribute("flood-color",w),f.setAttribute("stdDeviation",b/2/v+" "+b/2/g),u.setAttribute("x","-100%"),u.setAttribute("y","-100%"),u.setAttribute("width","300%"),u.setAttribute("height","300%"),s._shadowDom=u;var T=u.getAttribute("id");r.style.filter="url(#"+T+")"}},i.prototype.removeUnused=function(){if(this.getDefs(!1)){var s=this._shadowDomPool;for(var u in this._shadowDomMap)s.push(this._shadowDomMap[u]);this._shadowDomMap={}}},i}(B_);function xT(o){return parseInt(o,10)}function TT(o){return o instanceof an?V_:o instanceof di?nL:o instanceof Wp?iL:V_}function DT(o,i){return i&&o&&i.parentNode!==o}function cL(o,i,r){if(DT(o,i)&&r){var s=r.nextSibling;s?o.insertBefore(i,s):o.appendChild(i)}}function fL(o,i){if(DT(o,i)){var r=o.firstChild;r?o.insertBefore(i,r):o.appendChild(i)}}function dL(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function Rf(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function vh(o){return o.__svgEl}function AT(o){return function(){He('In SVG mode painter not support method "'+o+'"')}}var uw=function(){function o(i,r,s,u){this.type="svg",this.refreshHover=AT("refreshHover"),this.pathToImage=AT("pathToImage"),this.configLayer=AT("configLayer"),this.root=i,this.storage=r,this._opts=s=Me({},s||{});var f=Pf("svg");f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("version","1.1"),f.setAttribute("baseProfile","full"),f.style.cssText="user-select:none;position:absolute;left:0;top:0;";var d=Pf("g");f.appendChild(d);var p=Pf("g");f.appendChild(p),this._gradientManager=new aZ(u,p),this._patternManager=new mU(u,p),this._clipPathManager=new lL(u,p),this._shadowManager=new CU(u,p);var v=document.createElement("div");v.style.cssText="overflow:hidden;position:relative",this._svgDom=f,this._svgRoot=p,this._backgroundRoot=d,this._viewport=v,i.appendChild(v),v.appendChild(f),this.resize(s.width,s.height),this._visibleList=[]}return o.prototype.getType=function(){return"svg"},o.prototype.getViewportRoot=function(){return this._viewport},o.prototype.getSvgDom=function(){return this._svgDom},o.prototype.getSvgRoot=function(){return this._svgRoot},o.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},o.prototype.refresh=function(){var i=this.storage.getDisplayList(!0);this._paintList(i)},o.prototype.setBackgroundColor=function(i){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=Pf("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0),r.style.fill=i,this._backgroundRoot.appendChild(r),this._backgroundNode=r},o.prototype.createSVGElement=function(i){return Pf(i)},o.prototype.paintOne=function(i){var r=TT(i);return r&&r.brush(i),vh(i)},o.prototype._paintList=function(i){var r=this._gradientManager,s=this._patternManager,u=this._clipPathManager,f=this._shadowManager;r.markAllUnused(),s.markAllUnused(),u.markAllUnused(),f.markAllUnused();for(var d=this._svgRoot,p=this._visibleList,v=i.length,g=[],m=0;m=s&&v+1>=u){for(var g=[],m=0;m=s&&T+1>=u)return iZ(S.components);p[w]=S}else p[w]=void 0}f++}for(;f<=d;){var b=y();if(b)return b}}(o,i,r)}(p,g);for(m=0;m\n\r<"))},o}(),lZ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r){return au(this.getSource(),this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(r){var s=new ut,u=ii("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(u),u.setStyle(r.lineStyle);var f=this.getData().getVisual("symbol"),d=this.getData().getVisual("symbolRotate"),p="none"===f?"circle":f,v=.8*r.itemHeight,g=ii(p,(r.itemWidth-v)/2,(r.itemHeight-v)/2,v,v,r.itemStyle.fill);return s.add(g),g.setStyle(r.itemStyle),g.rotation=("inherit"===r.iconRotate?d:r.iconRotate||0)*Math.PI/180,g.setOrigin([r.itemWidth/2,r.itemHeight/2]),p.indexOf("empty")>-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),s},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},i}(ir);function gh(o,i){var r=o.mapDimensionsAll("defaultedLabel"),s=r.length;if(1===s){var u=_f(o,i,r[0]);return null!=u?u+"":null}if(s){for(var f=[],d=0;d0?r=s[0]:s[1]<0&&(r=s[1]),r}(u,r),d=s.dim,p=u.dim,v=i.mapDimension(p),g=i.mapDimension(d),m="x"===p||"radius"===p?1:0,y=Ie(o.dimensions,function(S){return i.mapDimension(S)}),b=!1,w=i.getCalculationInfo("stackResultDimension");return tc(i,y[0])&&(b=!0,y[0]=w),tc(i,y[1])&&(b=!0,y[1]=w),{dataDimsForPoint:y,valueStart:f,valueAxisDim:p,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function TU(o,i,r,s){var u=NaN;o.stacked&&(u=r.get(r.getCalculationInfo("stackedOverDimension"),s)),isNaN(u)&&(u=o.valueStart);var f=o.baseDataOffset,d=[];return d[f]=r.get(o.baseDim,s),d[1-f]=u,i.dataToPoint(d)}var vL="undefined"!=typeof Float32Array,DU=vL?Float32Array:Array;function Nv(o){return ke(o)?vL?new Float32Array(o):o:new DU(o)}var Lf=Math.min,mh=Math.max;function jo(o,i){return isNaN(o)||isNaN(i)}function fw(o,i,r,s,u,f,d,p,v){for(var g,m,y,b,w,S,M=r,x=0;x=u||M<0)break;if(jo(T,P)){if(v){M+=f;continue}break}if(M===r)o[f>0?"moveTo":"lineTo"](T,P),y=T,b=P;else{var I=T-g,R=P-m;if(I*I+R*R<.5){M+=f;continue}if(d>0){var B=M+f,V=i[2*B],G=i[2*B+1],W=x+1;if(v)for(;jo(V,G)&&W=s||jo(V,G))w=T,S=P;else{J=V-g,Z=G-m;var se=T-g,le=V-T,de=P-m,pe=G-P,me=void 0,Ce=void 0;"x"===p?(me=Math.abs(se),Ce=Math.abs(le),w=T-me*d,S=P,ne=T+me*d,te=P):"y"===p?(me=Math.abs(de),Ce=Math.abs(pe),w=T,S=P-me*d,ne=T,te=P+me*d):(me=Math.sqrt(se*se+de*de),w=T-J*d*(1-(K=(Ce=Math.sqrt(le*le+pe*pe))/(Ce+me))),S=P-Z*d*(1-K),te=P+Z*d*K,ne=Lf(ne=T+J*d*K,mh(V,T)),te=Lf(te,mh(G,P)),ne=mh(ne,Lf(V,T)),S=P-(Z=(te=mh(te,Lf(G,P)))-P)*me/Ce,w=Lf(w=T-(J=ne-T)*me/Ce,mh(g,T)),S=Lf(S,mh(m,P)),ne=T+(J=T-(w=mh(w,Lf(g,T))))*Ce/me,te=P+(Z=P-(S=mh(S,Lf(m,P))))*Ce/me)}o.bezierCurveTo(y,b,w,S,T,P),y=ne,b=te}else o.lineTo(T,P)}g=T,m=P,M+=f}return x}var dw=function(){this.smooth=0,this.smoothConstraint=!0},LT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polyline",s}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new dw},i.prototype.buildPath=function(r,s){var u=s.points,f=0,d=u.length/2;if(s.connectNulls){for(;d>0&&jo(u[2*d-2],u[2*d-1]);d--);for(;f=0){var R=g?(S-v)*I+v:(w-p)*I+p;return g?[r,R]:[R,r]}p=w,v=S;break;case d.C:w=f[y++],S=f[y++],M=f[y++],x=f[y++],T=f[y++],P=f[y++];var B=g?Up(p,w,M,T,r,m):Up(v,S,x,P,r,m);if(B>0)for(var V=0;V=0)return R=g?Br(v,S,x,P,G):Br(p,w,M,T,G),g?[r,R]:[R,r]}p=T,v=P}}},i}(an),cZ=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i}(dw),U_=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polygon",s}return he(i,o),i.prototype.getDefaultShape=function(){return new cZ},i.prototype.buildPath=function(r,s){var u=s.points,f=s.stackedOnPoints,d=0,p=u.length/2,v=s.smoothMonotone;if(s.connectNulls){for(;p>0&&jo(u[2*p-2],u[2*p-1]);p--);for(;ds)return!1;return!0}(f,i))){var d=i.mapDimension(f.dim),p={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);p[g]=1}),function(v){return!p.hasOwnProperty(i.get(d,v))}}}}(r,v,d),K=this._data;K&&K.eachItemGraphicEl(function(Qe,mt){Qe.__temp&&(p.remove(Qe),K.setItemGraphicEl(mt,null))}),G||S.remove(),p.add(T);var Z,J=!b&&r.get("step");d&&d.getArea&&r.get("clip",!0)&&(null!=(Z=d.getArea()).width?(Z.x-=.1,Z.y-=.1,Z.width+=.2,Z.height+=.2):Z.r0&&(Z.r0-=.5,Z.r+=.5)),this._clipShapeForSymbol=Z;var ne=function(o,i){var r=o.getVisual("visualMeta");if(r&&r.length&&o.count()&&"cartesian2d"===i.type){for(var s,u,f=r.length-1;f>=0;f--){var v=o.getDimensionInfo(o.dimensions[r[f].dimension]);if("x"===(s=v&&v.coordDim)||"y"===s){u=r[f];break}}if(u){var g=i.getAxis(s),m=Ie(u.stops,function(P){return{offset:0,coord:g.toGlobalCoord(g.dataToCoord(P.value,!0)),color:P.color}}),y=m.length,b=u.outerColors.slice();y&&m[0].coord>m[y-1].coord&&(m.reverse(),b.reverse());var S=m[0].coord-10,M=m[y-1].coord+10,x=M-S;if(x<.001)return"transparent";q(m,function(P){P.offset=(P.coord-S)/x}),m.push({offset:y?m[y-1].offset:.5,color:b[1]||"transparent"}),m.unshift({offset:y?m[0].offset:.5,color:b[0]||"transparent"});var T=new Zl(0,0,0,0,m,!0);return T[s]=S,T[s+"2"]=M,T}}}(v,d)||v.getVisual("style")[v.getVisual("drawType")];M&&w.type===d.type&&J===this._step?(I&&!x?x=this._newPolygon(y,V):x&&!I&&(T.remove(x),x=this._polygon=null),b||this._initOrUpdateEndLabel(r,d,hf(ne)),T.setClipPath(bL(this,d,!1,r)),G&&S.updateData(v,{isIgnore:W,clipShape:Z,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),(!AU(this._stackedOnPoints,V)||!AU(this._points,y))&&(P?this._doUpdateAnimation(v,V,d,u,J,R):(J&&(y=_h(y,d,J),V&&(V=_h(V,d,J))),M.setShape({points:y}),x&&x.setShape({points:y,stackedOnPoints:V})))):(G&&S.updateData(v,{isIgnore:W,clipShape:Z,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),P&&this._initSymbolLabelAnimation(v,d,Z),J&&(y=_h(y,d,J),V&&(V=_h(V,d,J))),M=this._newPolyline(y),I&&(x=this._newPolygon(y,V)),b||this._initOrUpdateEndLabel(r,d,hf(ne)),T.setClipPath(bL(this,d,!0,r)));var te=r.get(["emphasis","focus"]),se=r.get(["emphasis","blurScope"]);M.useStyle(tt(g.getLineStyle(),{fill:"none",stroke:ne,lineJoin:"bevel"})),Wi(M,r,"lineStyle"),M.style.lineWidth>0&&"bolder"===r.get(["emphasis","lineStyle","width"])&&(M.getState("emphasis").style.lineWidth=+M.style.lineWidth+1),gt(M).seriesIndex=r.seriesIndex,Un(M,te,se);var de=EU(r.get("smooth")),pe=r.get("smoothMonotone"),me=r.get("connectNulls");if(M.setShape({smooth:de,smoothMonotone:pe,connectNulls:me}),x){var Ce=v.getCalculationInfo("stackedOnSeries"),Te=0;x.useStyle(tt(m.getAreaStyle(),{fill:ne,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),Ce&&(Te=EU(Ce.get("smooth"))),x.setShape({smooth:de,stackedOnSmooth:Te,smoothMonotone:pe,connectNulls:me}),Wi(x,r,"areaStyle"),gt(x).seriesIndex=r.seriesIndex,Un(x,te,se)}var ze=function(mt){f._changePolyState(mt)};v.eachItemGraphicEl(function(Qe){Qe&&(Qe.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=v,this._coordSys=d,this._stackedOnPoints=V,this._points=y,this._step=J,this._valueOrigin=R},i.prototype.dispose=function(){},i.prototype.highlight=function(r,s,u,f){var d=r.getData(),p=Ed(d,f);if(this._changePolyState("emphasis"),!(p instanceof Array)&&null!=p&&p>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(p);if(!g){var m=v[2*p],y=v[2*p+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=r.get("zlevel"),w=r.get("z");(g=new z_(d,p)).x=m,g.y=y,g.setZ(b,w);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=w,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(p,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Vn.prototype.highlight.call(this,r,s,u,f)},i.prototype.downplay=function(r,s,u,f){var d=r.getData(),p=Ed(d,f);if(this._changePolyState("normal"),null!=p&&p>=0){var v=d.getItemGraphicEl(p);v&&(v.__temp?(d.setItemGraphicEl(p,null),this.group.remove(v)):v.downplay())}else Vn.prototype.downplay.call(this,r,s,u,f)},i.prototype._changePolyState=function(r){var s=this._polygon;f0(this._polyline,r),s&&f0(s,r)},i.prototype._newPolyline=function(r){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new LT({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},i.prototype._newPolygon=function(r,s){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new U_({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},i.prototype._initSymbolLabelAnimation=function(r,s,u){var f,d,p=s.getBaseAxis(),v=p.inverse;"cartesian2d"===s.type?(f=p.isHorizontal(),d=!1):"polar"===s.type&&(f="angle"===p.dim,d=!0);var g=r.hostModel,m=g.get("animationDuration");"function"==typeof m&&(m=m(null));var y=g.get("animationDelay")||0,b="function"==typeof y?y(null):y;r.eachItemGraphicEl(function(w,S){var M=w;if(M){var T=void 0,P=void 0,I=void 0;if(u)if(d){var R=u,B=s.pointToCoord([w.x,w.y]);f?(T=R.startAngle,P=R.endAngle,I=-B[1]/180*Math.PI):(T=R.r0,P=R.r,I=B[0])}else f?(T=u.x,P=u.x+u.width,I=w.x):(T=u.y+u.height,P=u.y,I=w.y);var G=P===T?0:(I-T)/(P-T);v&&(G=1-G);var W="function"==typeof y?y(S):m*G+b,K=M.getSymbolPath(),J=K.getTextContent();M.attr({scaleX:0,scaleY:0}),M.animateTo({scaleX:1,scaleY:1},{duration:200,delay:W}),J&&J.animateFrom({style:{opacity:0}},{duration:300,delay:W}),K.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(r,s,u){var f=r.getModel("endLabel");if(f.get("show")){var d=r.getData(),p=this._polyline,v=this._endLabel;v||((v=this._endLabel=new on({z2:200})).ignoreClip=!0,p.setTextContent(this._endLabel),p.disableLabelAnimation=!0);var g=function(o){for(var i=o.length/2;i>0&&OU(o[2*i-2],o[2*i-1]);i--);return i-1}(d.getLayout("points"));g>=0&&(Li(p,Fi(r,"endLabel"),{inheritColor:u,labelFetcher:r,labelDataIndex:g,defaultText:function(y,b,w){return null!=w?ET(d,w):gh(d,y)},enableTextSetter:!0},function(o,i){var r=i.getBaseAxis(),s=r.isHorizontal(),u=r.inverse,f=s?u?"right":"left":"center",d=s?"middle":u?"top":"bottom";return{normal:{align:o.get("align")||f,verticalAlign:o.get("verticalAlign")||d}}}(f,s)),p.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(r,s,u,f,d,p,v){var g=this._endLabel,m=this._polyline;if(g){r<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,w=b.get("connectNulls"),S=p.get("precision"),M=p.get("distance")||0,x=v.getBaseAxis(),T=x.isHorizontal(),P=x.inverse,I=s.shape,R=P?T?I.x:I.y+I.height:T?I.x+I.width:I.y,B=(T?M:0)*(P?-1:1),V=(T?0:-M)*(P?-1:1),G=T?"x":"y",W=function(o,i,r){for(var f,d,s=o.length/2,u="x"===r?0:1,p=0,v=-1,g=0;g=i||f>=i&&d<=i){v=g;break}p=g,f=d}return{range:[p,v],t:(i-f)/(d-f)}}(y,R,G),K=W.range,J=K[1]-K[0],Z=void 0;if(J>=1){if(J>1&&!w){var ne=yL(y,K[0]);g.attr({x:ne[0]+B,y:ne[1]+V}),d&&(Z=b.getRawValue(K[0]))}else{(ne=m.getPointOn(R,G))&&g.attr({x:ne[0]+B,y:ne[1]+V});var te=b.getRawValue(K[0]),se=b.getRawValue(K[1]);d&&(Z=lo(u,S,te,se,W.t))}f.lastFrameIndex=K[0]}else{var le=1===r||f.lastFrameIndex>0?K[0]:0;ne=yL(y,le),d&&(Z=b.getRawValue(le)),g.attr({x:ne[0]+B,y:ne[1]+V})}d&&av(g).setLabelText(Z)}},i.prototype._doUpdateAnimation=function(r,s,u,f,d,p){var v=this._polyline,g=this._polygon,m=r.hostModel,y=function(o,i,r,s,u,f,d,p){for(var v=function(o,i){var r=[];return i.diff(o).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,u){r.push({cmd:"=",idx:u,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}(o,i),g=[],m=[],y=[],b=[],w=[],S=[],M=[],x=xU(u,i,d),T=o.getLayout("points")||[],P=i.getLayout("points")||[],I=0;I3e3||g&&_L(w,M)>3e3)return v.setShape({points:S}),void(g&&g.setShape({points:S,stackedOnPoints:M}));v.shape.__points=y.current,v.shape.points=b;var x={shape:{points:S}};y.current!==b&&(x.shape.__points=y.next),v.stopAnimation(),un(v,x,m),g&&(g.setShape({points:b,stackedOnPoints:w}),g.stopAnimation(),un(g,{shape:{stackedOnPoints:M}},m),v.shape.points!==g.shape.points&&(g.shape.points=v.shape.points));for(var T=[],P=y.status,I=0;Ir&&(r=i[s]);return isFinite(r)?r:NaN},min:function(i){for(var r=1/0,s=0;s10&&"cartesian2d"===p.type&&d){var g=p.getBaseAxis(),m=p.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),w=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/w);if(S>1){"lttb"===d&&r.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var M=void 0;"string"==typeof d?M=pZ[d]:"function"==typeof d&&(M=d),M&&r.setData(f.downSample(f.mapDimension(m.dim),1/S,M,vZ))}}}}}var wL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(r,s){return au(this.getSource(),this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(r){var s=this.coordinateSystem;if(s){var u=s.dataToPoint(s.clampData(r)),f=this.getData(),d=f.getLayout("offset"),p=f.getLayout("size");return u[s.getBaseAxis().isHorizontal()?0:1]+=d+p/2,u}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(ir);ir.registerClass(wL);var pw=wL,vl=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(){return au(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>r&&(r=s),r},i.prototype.brushSelector=function(r,s,u){return u.rect(s.getItemLayout(r))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=Ql(pw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),i}(pw),HU=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},NT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="sausage",s}return he(i,o),i.prototype.getDefaultShape=function(){return new HU},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r0||0,0),p=Math.max(s.r,0),v=.5*(p-d),g=d+v,m=s.startAngle,y=s.endAngle,b=s.clockwise,w=Math.cos(m),S=Math.sin(m),M=Math.cos(y),x=Math.sin(y);(b?y-m<2*Math.PI:m-y<2*Math.PI)&&(r.moveTo(w*d+u,S*d+f),r.arc(w*g+u,S*g+f,v,-Math.PI+m,m,!b)),r.arc(u,f,p,m,y,!b),r.moveTo(M*p+u,x*p+f),r.arc(M*g+u,x*g+f,v,y-2*Math.PI,y-Math.PI,!b),0!==d&&(r.arc(u,f,d,y,m,b),r.moveTo(w*d+u,x*d+f)),r.closePath()},i}(an),vw=[0,0],SL=Math.max,VT=Math.min,GU=function(o){function i(){var r=o.call(this)||this;return r.type=i.type,r._isFirstFrame=!0,r}return he(i,o),i.prototype.render=function(r,s,u,f){this._model=r,this._removeOnRenderedListener(u),this._updateDrawMode(r);var d=r.get("coordinateSystem");("cartesian2d"===d||"polar"===d)&&(this._isLargeDraw?this._renderLarge(r,s,u):this._renderNormal(r,s,u,f))},i.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},i.prototype.incrementalRender=function(r,s){this._incrementalRenderLarge(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r,s,u,f){var y,d=this.group,p=r.getData(),v=this._data,g=r.coordinateSystem,m=g.getBaseAxis();"cartesian2d"===g.type?y=m.isHorizontal():"polar"===g.type&&(y="angle"===m.dim);var b=r.isAnimationEnabled()?r:null,w=function(o,i){var r=o.get("realtimeSort",!0),s=i.getBaseAxis();if(r&&"category"===s.type&&"cartesian2d"===i.type)return{baseAxis:s,otherAxis:i.getOtherAxis(s)}}(r,g);w&&this._enableRealtimeSort(w,p,u);var S=r.get("clip",!0)||w,M=function(o,i){var r=o.getArea&&o.getArea();if(su(o,"cartesian2d")){var s=o.getBaseAxis();if("category"!==s.type||!s.onBand){var u=i.getLayout("bandWidth");s.isHorizontal()?(r.x-=u,r.width+=2*u):(r.y-=u,r.height+=2*u)}}return r}(g,p);d.removeClipPath();var x=r.get("roundCap",!0),T=r.get("showBackground",!0),P=r.getModel("backgroundStyle"),I=P.get("borderRadius")||0,R=[],B=this._backgroundEls,V=f&&f.isInitSort,G=f&&"changeAxisOrder"===f.type;function W(Z){var ne=HT[g.type](p,Z),te=function(o,i,r){return new("polar"===o.type?No:Bt)({shape:Ps(i,r,o),silent:!0,z2:0})}(g,y,ne);return te.useStyle(P.getItemStyle()),"cartesian2d"===g.type&&te.setShape("r",I),R[Z]=te,te}p.diff(v).add(function(Z){var ne=p.getItemModel(Z),te=HT[g.type](p,Z,ne);if(T&&W(Z),p.hasValue(Z)){var se=!1;S&&(se=Vv[g.type](M,te));var le=BT[g.type](r,p,Z,te,y,b,m.model,!1,x);jU(le,p,Z,ne,te,r,y,"polar"===g.type),V?le.attr({shape:te}):w?kL(w,b,le,te,Z,y,!1,!1):Or(le,{shape:te},r,Z),p.setItemGraphicEl(Z,le),d.add(le),le.ignore=se}}).update(function(Z,ne){var te=p.getItemModel(Z),se=HT[g.type](p,Z,te);if(T){var le=void 0;0===B.length?le=W(ne):((le=B[ne]).useStyle(P.getItemStyle()),"cartesian2d"===g.type&&le.setShape("r",I),R[Z]=le);var de=HT[g.type](p,Z);un(le,{shape:Ps(y,de,g)},b,Z)}var me=v.getItemGraphicEl(ne);if(!p.hasValue(Z))return d.remove(me),void(me=null);var Ce=!1;S&&(Ce=Vv[g.type](M,se))&&d.remove(me),me||(me=BT[g.type](r,p,Z,se,y,b,m.model,!!me,x)),G||jU(me,p,Z,te,se,r,y,"polar"===g.type),V?me.attr({shape:se}):w?kL(w,b,me,se,Z,y,!0,G):un(me,{shape:se},r,Z,null),p.setItemGraphicEl(Z,me),me.ignore=Ce,d.add(me)}).remove(function(Z){var ne=v.getItemGraphicEl(Z);ne&&ev(ne,r,Z)}).execute();var K=this._backgroundGroup||(this._backgroundGroup=new ut);K.removeAll();for(var J=0;Jp)return!0;p=y}return!1},i.prototype._isOrderDifferentInView=function(r,s){for(var u=s.scale,f=u.getExtent(),d=Math.max(0,f[0]),p=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=p;++d)if(r.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},i.prototype._updateSortWithinSameData=function(r,s,u,f){if(this._isOrderChangedWithinSameData(r,s,u)){var d=this._dataSort(r,u,s);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},i.prototype._dispatchInitSort=function(r,s,u){var f=s.baseAxis,d=this._dataSort(r,f,function(p){return r.get(r.mapDimension(s.otherAxis.dim),p)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d,animation:{duration:0}})},i.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},i.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},i.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(r){var s=this.group,u=this._data;r&&r.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){ev(f,r,gt(f).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Vn),Vv={cartesian2d:function(i,r){var s=r.width<0?-1:1,u=r.height<0?-1:1;s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height);var f=i.x+i.width,d=i.y+i.height,p=SL(r.x,i.x),v=VT(r.x+r.width,f),g=SL(r.y,i.y),m=VT(r.y+r.height,d),y=vf?v:p,r.y=b&&g>d?m:g,r.width=y?0:v-p,r.height=b?0:m-g,s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height),y||b},polar:function(i,r){var s=r.r0<=r.r?1:-1;if(s<0){var u=r.r;r.r=r.r0,r.r0=u}var f=VT(r.r,i.r),d=SL(r.r0,i.r0);r.r=f,r.r0=d;var p=f-d<0;return s<0&&(u=r.r,r.r=r.r0,r.r0=u),p}},BT={cartesian2d:function(i,r,s,u,f,d,p,v,g){var m=new Bt({shape:Me({},u),z2:1});return m.__dataIndex=s,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(i,r,s,u,f,d,p,v,g){var b=new(!f&&g?NT:No)({shape:tt({clockwise:u.startAngle0?1:-1,p=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+p*f/2,width:u.width-d*f,height:u.height-p*f}},polar:function(i,r,s){var u=i.getItemLayout(r);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle}}};function jU(o,i,r,s,u,f,d,p){var v=i.getItemVisual(r,"style");p||o.setShape("r",s.get(["itemStyle","borderRadius"])||0),o.useStyle(v);var g=s.getShallow("cursor");if(g&&o.attr("cursor",g),!p){var m=d?u.height>0?"bottom":"top":u.width>0?"left":"right",y=Fi(s);Li(o,y,{labelFetcher:f,labelDataIndex:r,defaultText:gh(f.getData(),r),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m}),vM(o.getTextContent(),y,f.getRawValue(r),function(S){return ET(i,S)})}var w=s.getModel(["emphasis"]);Un(o,w.get("focus"),w.get("blurScope")),Wi(o,s),function(o){return null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle}(u)&&(o.style.fill="none",o.style.stroke="none",q(o.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}var WU=function(){},ML=function(o){function i(r){var s=o.call(this,r)||this;return s.type="largeBar",s}return he(i,o),i.prototype.getDefaultShape=function(){return new WU},i.prototype.buildPath=function(r,s){for(var u=s.points,f=this.__startPoint,d=this.__baseDimIdx,p=0;p=y&&x<=b&&(v<=T?m>=v&&m<=T:m>=T&&m<=v))return d[w]}return-1}(this,o.offsetX,o.offsetY);gt(this).dataIndex=r>=0?r:null},30,!1);function Ps(o,i,r){if(su(r,"cartesian2d")){var s=i,u=r.getArea();return{x:o?s.x:u.x,y:o?u.y:s.y,width:o?s.width:u.width,height:o?u.height:s.height}}return{cx:(u=r.getArea()).cx,cy:u.cy,r0:o?u.r0:i.r0,r:o?u.r:i.r,startAngle:o?i.startAngle:0,endAngle:o?i.endAngle:2*Math.PI}}var TL=GU,j_=2*Math.PI,UT=Math.PI/180;function GT(o,i,r){i.eachSeriesByType(o,function(s){var u=s.getData(),f=u.mapDimension("value"),d=function(o,i){return pi(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(s,r),p=s.get("center"),v=s.get("radius");ke(v)||(v=[0,v]),ke(p)||(p=[p,p]);var g=Ae(d.width,r.getWidth()),m=Ae(d.height,r.getHeight()),y=Math.min(g,m),b=Ae(p[0],g)+d.x,w=Ae(p[1],m)+d.y,S=Ae(v[0],y/2),M=Ae(v[1],y/2),x=-s.get("startAngle")*UT,T=s.get("minAngle")*UT,P=0;u.each(f,function(se){!isNaN(se)&&P++});var I=u.getSum(f),R=Math.PI/(I||P)*2,B=s.get("clockwise"),V=s.get("roseType"),G=s.get("stillShowZeroSum"),W=u.getDataExtent(f);W[0]=0;var K=j_,J=0,Z=x,ne=B?1:-1;if(u.setLayout({viewRect:d,r:M}),u.each(f,function(se,le){var de;if(isNaN(se))u.setItemLayout(le,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:B,cx:b,cy:w,r0:S,r:V?NaN:M});else{(de="area"!==V?0===I&&G?R:se*R:j_/P)r?T:x,B=Math.abs(I.label.y-r);if(B>R.maxY){var V=I.label.x-i-I.len2*u,G=s+I.len,W=Math.abs(V)0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":Qe>0?"left":"right"}var si,wi=ne.get("rotate");if(si="number"==typeof wi?wi*(Math.PI/180):wi?Qe<0?-ze+Math.PI:-ze:0,f=!!si,K.x=En,K.y=It,K.rotation=si,K.setStyle({verticalAlign:"middle"}),yn){K.setStyle({align:Bn});var cS=K.states.select;cS&&(cS.x+=K.x,cS.y+=K.y)}else{var cp=K.getBoundingRect().clone();cp.applyTransform(K.getComputedTransform());var uS=(K.style.margin||0)+2.1;cp.y-=uS/2,cp.height+=uS,r.push({label:K,labelLine:J,position:te,len:Ce,len2:Te,minTurnAngle:me.get("minTurnAngle"),maxSurfaceAngle:me.get("maxSurfaceAngle"),surfaceNormal:new Nt(Qe,mt),linePoints:At,textAlign:Bn,labelDistance:se,labelAlignTo:le,edgeDistance:de,bleedMargin:pe,rect:cp})}G.setTextConfig({inside:yn})}}),!f&&o.get("avoidLabelOverlap")&&function(o,i,r,s,u,f,d,p){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},i.type="pie",i}(Vn);function Hv(o,i,r){i=ke(i)&&{coordDimensions:i}||Me({},i);var s=o.getSource(),u=Lv(s,i),f=new _a(u,o);return f.initData(s,r),f}var bh=function(){function o(i,r){this._getDataWithEncodedVisual=i,this._getRawData=r}return o.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},o.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},o.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},o.prototype.getItemVisual=function(i,r){return this._getDataWithEncodedVisual().getItemVisual(i,r)},o}(),Ya=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.useColorPaletteOnData=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new bh(qe(this.getData,this),qe(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.mergeOption=function(){o.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return Hv(this,{coordDimensions:["value"],encodeDefaulter:bt(U0,this)})},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=[];return s.each(s.mapDimension("value"),function(d){f.push(d)}),u.percent=ok(f,r,s.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},i.prototype._defaultLabelLine=function(r){Fp(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.type="series.pie",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(ir),PL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){return au(this.getSource(),this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?5e3:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?1e4:this.get("progressiveThreshold"):r},i.prototype.brushSelector=function(r,s,u){return u.point(s.getItemLayout(r))},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},i}(ir),YT=function(){},_w=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultShape=function(){return new YT},i.prototype.buildPath=function(r,s){var u=s.points,f=s.size,d=this.symbolProxy,p=d.shape,v=r.getContext?r.getContext():r;if(v&&f[0]<4)this._ctx=v;else{this._ctx=null;for(var m=0;m=0;g--){var m=2*g,y=f[m]-p/2,b=f[m+1]-v/2;if(r>=y&&s>=b&&r<=y+p&&s<=b+v)return g}return-1},i}(an),tG=function(){function o(){this.group=new ut}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i,r){this.group.removeAll();var s=new _w({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("points")}),this._setCommon(s,i,!1,r),this.group.add(s),this._incremental=null},o.prototype.updateLayout=function(i){if(!this._incremental){var r=i.getLayout("points");this.group.eachChild(function(s){null!=s.startIndex&&(r=new Float32Array(r.buffer,4*s.startIndex*2,2*(s.endIndex-s.startIndex))),s.setShape("points",r)})}},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new A0({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r,s){var u;this._incremental?(u=new _w,this._incremental.addDisplayable(u,!0)):((u=new _w({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end})).incremental=!0,this.group.add(u)),u.setShape({points:r.getLayout("points")}),this._setCommon(u,r,!!this._incremental,s)},o.prototype._setCommon=function(i,r,s,u){var f=r.hostModel;u=u||{};var d=r.getVisual("symbolSize");i.setShape("size",d instanceof Array?d:[d,d]),i.softClipShape=u.clipShape||null,i.symbolProxy=ii(r.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var p=i.shape.size[0]<4;i.useStyle(f.getModel("itemStyle").getItemStyle(p?["color","shadowBlur","shadowColor"]:["color"]));var v=r.getVisual("style"),g=v&&v.fill;if(g&&i.setColor(g),!s){var m=gt(i);m.seriesIndex=f.seriesIndex,i.on("mousemove",function(y){m.dataIndex=null;var b=i.findDataIndex(y.offsetX,y.offsetY);b>=0&&(m.dataIndex=b+(i.startIndex||0))})}},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),rG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).updateData(f,{clipShape:this._getClipShape(r)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).incrementalPrepareUpdate(f),this._finished=!1},i.prototype.incrementalRender=function(r,s,u){this._symbolDraw.incrementalUpdate(r,s.getData(),{clipShape:this._getClipShape(s)}),this._finished=r.end===s.getData().count()},i.prototype.updateTransform=function(r,s,u){var f=r.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var d=G_("").reset(r,s,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},i.prototype._getClipShape=function(r){var s=r.coordinateSystem,u=s&&s.getArea&&s.getArea();return r.get("clip",!0)?u:null},i.prototype._updateSymbolDraw=function(r,s){var u=this._symbolDraw,d=s.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new tG:new cw,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},i.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Vn),OL=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(Qt),XT=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cr).models[0]},i.type="cartesian2dAxis",i}(Qt);br(XT,E_);var IL={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Ff=yt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},IL),Ch=yt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},IL),RL={category:Ff,value:Ch,time:yt({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ch),log:tt({scale:!0,logBase:10},Ch)},oG={value:1,category:1,time:1,log:1};function Nf(o,i,r,s){q(oG,function(u,f){var d=yt(yt({},RL[f],!0),s,!0),p=function(v){function g(){for(var m=[],y=0;ys[1]&&s.reverse(),s},i.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r["x"===this.dim?0:1]),s)},i.prototype.setCategorySortInfo=function(r){if("category"!==this.type)return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},i}(Qi);function Uv(o,i,r){r=r||{};var s=o.coordinateSystem,u=i.axis,f={},d=u.getAxesOnZeroOf()[0],p=u.position,v=d?"onZero":p,g=u.dim,m=s.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,S="x"===g?[y[2]-w,y[3]+w]:[y[0]-w,y[1]+w];if(d){var M=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(M,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[p],f.labelOffset=d?S[b[p]]-S[b.onZero]:0,i.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),jr(r.labelInside,i.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var T=i.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-T:T,f.z2=1,f}function wh(o){return"cartesian2d"===o.get("coordinateSystem")}function BL(o){var i={xAxisModel:null,yAxisModel:null};return q(i,function(r,s){var u=s.replace(/Model$/,""),f=o.getReferringComponents(u,cr).models[0];i[s]=f}),i}function QT(o,i){return o.getCoordSysModel()===i}function $T(o,i,r,s){r.getAxesOnZeroOf=function(){return f?[f]:[]};var f,u=o[i],d=r.model,p=d.get(["axisLine","onZero"]),v=d.get(["axisLine","onZeroAxisIndex"]);if(p){if(null!=v)JT(u[v])&&(f=u[v]);else for(var g in u)if(u.hasOwnProperty(g)&&JT(u[g])&&!s[m(u[g])]){f=u[g];break}f&&(s[m(f)]=!0)}function m(y){return y.dim+"_"+y.index}}function JT(o){return o&&"category"!==o.type&&"time"!==o.type&&function(o){var i=o.scale.getExtent(),r=i[0],s=i[1];return!(r>0&&s>0||r<0&&s<0)}(o)}var zL=function(){function o(i,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=KT,this._initCartesian(i,r,s),this.model=i}return o.prototype.getRect=function(){return this._rect},o.prototype.update=function(i,r){var s=this._axesMap;this._updateScale(i,this.model),q(s.x,function(f){Ef(f.scale,f.model)}),q(s.y,function(f){Ef(f.scale,f.model)});var u={};q(s.x,function(f){$T(s,"y",f,u)}),q(s.y,function(f){$T(s,"x",f,u)}),this.resize(this.model,r)},o.prototype.resize=function(i,r,s){var u=i.getBoxLayoutParams(),f=!s&&i.get("containLabel"),d=pi(u,{width:r.getWidth(),height:r.getHeight()});this._rect=d;var p=this._axesList;function v(){q(p,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function(o,i){var r=o.getExtent(),s=r[0]+r[1];o.toGlobalCoord="x"===o.dim?function(u){return u+i}:function(u){return s-u+i},o.toLocalCoord="x"===o.dim?function(u){return u-i}:function(u){return s-u+i}}(g,m?d.x:d.y)})}v(),f&&(q(p,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function(o){var r=o.scale;if(o.model.get(["axisLabel","show"])&&!r.isBlank()){var s,u,f=r.getExtent();u=r instanceof cT?r.count():(s=r.getTicks()).length;var v,d=o.getLabelModel(),p=A_(o),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0?"top":"bottom",f="center"):Xc(u-lu)?(d=s>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u0?"right":"left":s>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},o.makeAxisEventDataBase=function(i){var r={componentType:i.mainType,componentIndex:i.componentIndex};return r[i.mainType+"Index"]=i.componentIndex,r},o.isLabelSilent=function(i){var r=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||r&&r.show)},o}(),uG={axisLine:function(i,r,s,u){var f=r.get(["axisLine","show"]);if("auto"===f&&i.handleAutoShown&&(f=i.handleAutoShown("axisLine")),f){var d=r.axis.getExtent(),p=u.transform,v=[d[0],0],g=[d[1],0];p&&(St(v,v,p),St(g,g,p));var m=Me({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Ai({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",s.add(y);var b=r.get(["axisLine","symbol"]),w=r.get(["axisLine","symbolSize"]),S=r.get(["axisLine","symbolOffset"])||0;if("number"==typeof S&&(S=[S,S]),null!=b){"string"==typeof b&&(b=[b,b]),("string"==typeof w||"number"==typeof w)&&(w=[w,w]);var M=w[0],x=w[1];q([{rotate:i.rotation+Math.PI/2,offset:S[0],r:0},{rotate:i.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(T,P){if("none"!==b[P]&&null!=b[P]){var I=ii(b[P],-M/2,-x/2,M,x,m.stroke,!0),R=T.r+T.offset;I.attr({rotation:T.rotate,x:v[0]+R*Math.cos(i.rotation),y:v[1]-R*Math.sin(i.rotation),silent:!0,z2:11}),s.add(I)}})}}},axisTickLabel:function(i,r,s,u){var f=function(o,i,r,s){var u=r.axis,f=r.getModel("axisTick"),d=f.get("show");if("auto"===d&&s.handleAutoShown&&(d=s.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var p=f.getModel("lineStyle"),v=s.tickDirection*f.get("length"),m=fG(u.getTicksCoords(),i.transform,v,tt(p.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,cG(d)?i.labelOffset+p*g:0],S=r.get("nameRotate");null!=S&&(S=S*lu/180),cG(d)?w=Gv.innerTextLayout(i.rotation,null!=S?S:i.rotation,p):(w=function(o,i,r,s){var f,d,u=lk(r-o),p=s[0]>s[1],v="start"===i&&!p||"start"!==i&&p;return Xc(u-lu/2)?(d=v?"bottom":"top",f="center"):Xc(u-1.5*lu)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*lu&&u>lu/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(i.rotation,d,S||0,m),null!=(M=i.axisNameAvailableWidth)&&(M=Math.abs(M/Math.sin(w.rotation)),!isFinite(M)&&(M=null)));var x=v.getFont(),T=r.get("nameTruncate",!0)||{},P=T.ellipsis,I=jr(i.nameTruncateMaxWidth,T.maxWidth,M),R=new on({x:b[0],y:b[1],rotation:w.rotation,silent:Gv.isLabelSilent(r),style:Ir(v,{text:f,font:x,overflow:"truncate",width:I,ellipsis:P,fill:v.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(ff({el:R,componentModel:r,itemName:f}),R.__fullText=f,R.anid="name",r.get("triggerEvent")){var B=Gv.makeAxisEventDataBase(r);B.targetType="axisName",B.name=f,gt(R).eventData=B}u.add(R),R.updateTransform(),s.add(R),R.decomposeTransform()}}};function Os(o){o&&(o.ignore=!0)}function UL(o,i){var r=o&&o.getBoundingRect().clone(),s=i&&i.getBoundingRect().clone();if(r&&s){var u=Hc([]);return Vl(u,u,-o.rotation),r.applyTransform(Mi([],u,o.getLocalTransform())),s.applyTransform(Mi([],u,i.getLocalTransform())),r.intersect(s)}}function cG(o){return"middle"===o||"center"===o}function fG(o,i,r,s,u){for(var f=[],d=[],p=[],v=0;v=0||o===i}function DZ(o){var i=GL(o);if(i){var r=i.axisPointerModel,s=i.axis.scale,u=r.option,f=r.get("status"),d=r.get("value");null!=d&&(d=s.parse(d));var p=jL(r);null==f&&(u.status=p?"show":"hide");var v=s.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var M=v;null!=S.color&&(M=tt({color:S.color},v));var x=yt(it(S),{boundaryGap:r,splitNumber:s,scale:u,axisLine:f,axisTick:d,axisLabel:p,name:S.text,nameLocation:"end",nameGap:y,nameTextStyle:M,triggerEvent:b},!1);if(g||(x.name=""),"string"==typeof m){var T=x.name;x.name=m.replace("{value}",null!=T?T:"")}else"function"==typeof m&&(x.name=m(x.name,x));var P=new Ln(x,null,this.ecModel);return br(P,E_.prototype),P.mainType="radar",P.componentIndex=this.componentIndex,P},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:yt({lineStyle:{color:"#bbb"}},Bi.axisLine),axisLabel:or(Bi.axisLabel,!1),axisTick:or(Bi.axisTick,!1),splitLine:or(Bi.splitLine,!0),splitArea:or(Bi.splitArea,!0),indicator:[]},i}(Qt),PZ=["axisLine","axisTickLabel","axisName"],yG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},i.prototype._buildAxes=function(r){var s=r.coordinateSystem;q(Ie(s.getIndicatorAxes(),function(d){return new Vf(d.model,{position:[s.cx,s.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(PZ,d.add,d),this.group.add(d.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(r){var s=r.coordinateSystem,u=s.getIndicatorAxes();if(u.length){var f=r.get("shape"),d=r.getModel("splitLine"),p=r.getModel("splitArea"),v=d.getModel("lineStyle"),g=p.getModel("areaStyle"),m=d.get("show"),y=p.get("show"),b=v.get("color"),w=g.get("color"),S=ke(b)?b:[b],M=ke(w)?w:[w],x=[],T=[];if("circle"===f)for(var I=u[0].getTicksCoords(),R=s.cx,B=s.cy,V=0;Vg[0]&&isFinite(x)&&isFinite(g[0]))}else y.getTicks().length-1>f&&(S=d(S)),x=Wr((M=Math.ceil(g[1]/S)*S)-S*f),y.setExtent(x,M),y.setInterval(S)})},o.prototype.convertToPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.convertFromPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.containPoint=function(i){return console.warn("Not implemented."),!1},o.create=function(i,r){var s=[];return i.eachComponent("radar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeriesByType("radar",function(u){"radar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("radarIndex")||0])}),s},o.dimensions=[],o}();function IZ(o){o.registerCoordinateSystem("radar",OZ),o.registerComponentModel(mi),o.registerComponentView(yG),o.registerVisual({seriesType:"radar",reset:function(r){var s=r.getData();s.each(function(u){s.setItemVisual(u,"legendIcon","roundRect")}),s.setVisual("legendIcon","roundRect")}})}var K_="\0_ec_interaction_mutex";function Cw(o,i){return!!$L(o)[i]}function $L(o){return o[K_]||(o[K_]={})}function JL(o,i,r,s,u){o.pointerChecker&&o.pointerChecker(s,u.originX,u.originY)&&(Se(s.event),eF(o,i,r,s,u))}function eF(o,i,r,s,u){u.isAvailableBehavior=qe(ww,null,r,s),o.trigger(i,u)}function ww(o,i,r){var s=r[o];return!o||s&&(!tn(s)||i.event[s+"Key"])}ru({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var jv=function(o){function i(r){var s=o.call(this)||this;s._zr=r;var u=qe(s._mousedownHandler,s),f=qe(s._mousemoveHandler,s),d=qe(s._mouseupHandler,s),p=qe(s._mousewheelHandler,s),v=qe(s._pinchHandler,s);return s.enable=function(g,m){this.disable(),this._opt=tt(it(m)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==g&&(g=!0),(!0===g||"move"===g||"pan"===g)&&(r.on("mousedown",u),r.on("mousemove",f),r.on("mouseup",d)),(!0===g||"scale"===g||"zoom"===g)&&(r.on("mousewheel",p),r.on("pinch",v))},s.disable=function(){r.off("mousedown",u),r.off("mousemove",f),r.off("mouseup",d),r.off("mousewheel",p),r.off("pinch",v)},s}return he(i,o),i.prototype.isDragging=function(){return this._dragging},i.prototype.isPinching=function(){return this._pinching},i.prototype.setPointerChecker=function(r){this.pointerChecker=r},i.prototype.dispose=function(){this.disable()},i.prototype._mousedownHandler=function(r){if(!(VS(r)||r.target&&r.target.draggable)){var s=r.offsetX,u=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,u)&&(this._x=s,this._y=u,this._dragging=!0)}},i.prototype._mousemoveHandler=function(r){if(this._dragging&&ww("moveOnMouseMove",r,this._opt)&&"pinch"!==r.gestureEvent&&!Cw(this._zr,"globalPan")){var s=r.offsetX,u=r.offsetY,f=this._x,d=this._y,p=s-f,v=u-d;this._x=s,this._y=u,this._opt.preventDefaultMouseMove&&Se(r.event),eF(this,"pan","moveOnMouseMove",r,{dx:p,dy:v,oldX:f,oldY:d,newX:s,newY:u,isAvailableBehavior:null})}},i.prototype._mouseupHandler=function(r){VS(r)||(this._dragging=!1)},i.prototype._mousewheelHandler=function(r){var s=ww("zoomOnMouseWheel",r,this._opt),u=ww("moveOnMouseWheel",r,this._opt),f=r.wheelDelta,d=Math.abs(f),p=r.offsetX,v=r.offsetY;if(0!==f&&(s||u)){if(s){var g=d>3?1.4:d>1?1.2:1.1;JL(this,"zoom","zoomOnMouseWheel",r,{scale:f>0?g:1/g,originX:p,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);JL(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:p,originY:v,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(r){Cw(this._zr,"globalPan")||JL(this,"zoom",null,r,{scale:r.pinchScale>1?1.1:1/1.1,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})},i}(Ta);function oD(o,i,r){var s=o.target;s.x+=i,s.y+=r,s.dirty()}function sD(o,i,r,s){var u=o.target,f=o.zoomLimit,d=o.zoom=o.zoom||1;if(d*=i,f){var p=f.min||0;d=Math.max(Math.min(f.max||1/0,d),p)}var g=d/o.zoom;o.zoom=d,u.x-=(r-u.x)*(g-1),u.y-=(s-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var LZ={axisPointer:1,tooltip:1,brush:1};function qa(o,i,r){var s=i.getComponentByElement(o.topTarget),u=s&&s.coordinateSystem;return s&&s!==r&&!LZ.hasOwnProperty(s.mainType)&&u&&u.model!==r}var Q_=["rect","circle","line","ellipse","polygon","polyline","path"],SG=st(Q_),kG=st(Q_.concat(["g"])),MG=st(Q_.concat(["g"])),tF=nn();function zf(o){var i=o.getItemStyle(),r=o.get("areaColor");return null!=r&&(i.fill=r),i}function oc(o,i,r,s){var u=s.getModel("itemStyle"),f=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["blur","itemStyle"]),p=s.getModel(["select","itemStyle"]),v=zf(u),g=zf(f),m=zf(p),y=zf(d),b=o.data;if(b){var w=b.getItemVisual(r,"style"),S=b.getItemVisual(r,"decal");o.isVisualEncodedByVisualMap&&w.fill&&(v.fill=w.fill),S&&(v.decal=l_(S,o.api))}i.setStyle(v),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=g,i.ensureState("select").style=m,i.ensureState("blur").style=y,Bd(i)}function Xn(o,i,r,s,u,f,d){var p=o.data,v=o.isGeo,g=p&&isNaN(p.get(p.mapDimension("value"),f)),m=p&&p.getItemLayout(f);if(v||g||m&&m.showLabel){var y=v?r:f,b=void 0;(!p||f>=0)&&(b=u);var w=d?{normal:{align:"center",verticalAlign:"middle"}}:null;Li(i,Fi(s),{labelFetcher:b,labelDataIndex:y,defaultText:r},w);var S=i.getTextContent();if(S&&(tF(S).ignore=S.ignore,i.textConfig&&d)){var M=i.getBoundingRect().clone();i.textConfig.layoutRect=M,i.textConfig.position=[(d[0]-M.x)/M.width*100+"%",(d[1]-M.y)/M.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function Zn(o,i,r,s,u,f){o.data?o.data.setItemGraphicEl(f,i):gt(i).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:r,region:s&&s.option||{}}}function nF(o,i,r,s,u){o.data||ff({el:i,componentModel:u,itemName:r,itemTooltipOption:s.get("tooltip")})}function $_(o,i,r,s,u){i.highDownSilentOnTouch=!!u.get("selectedMode");var f=s.getModel("emphasis"),d=f.get("focus");return Un(i,d,f.get("blurScope")),o.isGeo&&function(o,i,r){var s=gt(o);s.componentMainType=i.mainType,s.componentIndex=i.componentIndex,s.componentHighDownName=r}(i,u,r),d}var uu=function(){function o(i){var r=new ut;this.uid=ov("ec_map_draw"),this._controller=new jv(i.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new ut),r.add(this._svgGroup=new ut)}return o.prototype.draw=function(i,r,s,u,f){var d="geo"===i.mainType,p=i.getData&&i.getData();d&&r.eachComponent({mainType:"series",subType:"map"},function(T){!p&&T.getHostGeoModel()===i&&(p=T.getData())});var v=i.coordinateSystem,g=this._regionsGroup,m=this.group,y=v.getTransformInfo(),b=y.raw,w=y.roam;!g.childAt(0)||f?(m.x=w.x,m.y=w.y,m.scaleX=w.scaleX,m.scaleY=w.scaleY,m.dirty()):un(m,w,i);var M=p&&p.getVisual("visualMeta")&&p.getVisual("visualMeta").length>0,x={api:s,geo:v,mapOrGeoModel:i,data:p,isVisualEncodedByVisualMap:M,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(x):"geoSVG"===v.resourceType&&this._buildSVG(x),this._updateController(i,r,s),this._updateMapSelectHandler(i,g,s,u)},o.prototype._buildGeoJSON=function(i){var r=this._regionsGroupByName=st(),s=st(),u=this._regionsGroup,f=i.transformInfoRaw,d=i.mapOrGeoModel,p=i.data,v=function(m){return[m[0]*f.scaleX+f.x,m[1]*f.scaleY+f.y]};u.removeAll(),q(i.geo.regions,function(g){var m=g.name,y=r.get(m),b=s.get(m)||{},w=b.dataIdx,S=b.regionModel;y||(y=r.set(m,new ut),u.add(y),w=p?p.indexOfName(m):null,S=i.isGeo?d.getRegionModel(m):p?p.getItemModel(w):null,s.set(m,{dataIdx:w,regionModel:S}));var M=new Gd({segmentIgnoreThreshold:1,shape:{paths:[]}});y.add(M),q(g.geometries,function(T){if("polygon"===T.type){for(var P=[],I=0;I-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},i}(ir);function kr(o){var i={};o.eachSeriesByType("map",function(r){var s=r.getHostGeoModel(),u=s?"o"+s.id:"i"+r.getMapType();(i[u]=i[u]||[]).push(r)}),q(i,function(r,s){for(var u=function(o,i){var r={};return q(o,function(s){s.each(s.mapDimension("value"),function(u,f){var d="ec-"+s.getName(f);r[d]=r[d]||[],isNaN(u)||r[d].push(u)})}),o[0].map(o[0].mapDimension("value"),function(s,u){for(var f="ec-"+o[0].getName(u),d=0,p=1/0,v=-1/0,g=r[f].length,m=0;m1?(S.width=w,S.height=w/m):(S.height=w,S.width=w*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var M=o.getBoxLayoutParams();M.aspect=m,S=pi(M,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(o.get("center")),this.setZoom(o.get("zoom"))}var oF=new(function(){function o(){this.dimensions=ny.prototype.dimensions}return o.prototype.create=function(i,r){var s=[];i.eachComponent("geo",function(f,d){var p=f.get("map"),v=new ny(p+d,p,{nameMap:f.get("nameMap"),nameProperty:f.get("nameProperty"),aspectScale:f.get("aspectScale")});v.zoomLimit=f.get("scaleLimit"),s.push(v),f.coordinateSystem=v,v.model=f,v.resize=iF,v.resize(f,r)}),i.eachSeries(function(f){if("geo"===f.get("coordinateSystem")){var p=f.get("geoIndex")||0;f.coordinateSystem=s[p]}});var u={};return i.eachSeriesByType("map",function(f){if(!f.getHostGeoModel()){var d=f.getMapType();u[d]=u[d]||[],u[d].push(f)}}),q(u,function(f,d){var p=Ie(f,function(g){return g.get("nameMap")}),v=new ny(d,d,{nameMap:Ht(p),nameProperty:f[0].get("nameProperty"),aspectScale:f[0].get("aspectScale")});v.zoomLimit=jr.apply(null,Ie(f,function(g){return g.get("scaleLimit")})),s.push(v),v.resize=iF,v.resize(f[0],r),q(f,function(g){g.coordinateSystem=v,function(o,i){q(i.get("geoCoord"),function(r,s){o.addGeoCoord(s,r)})}(v,g)})}),s},o.prototype.getFilledRegions=function(i,r,s,u){for(var f=(i||[]).slice(),d=st(),p=0;p=0;){var f=i[r];f.hierNode.prelim+=s,f.hierNode.modifier+=s,s+=f.hierNode.shift+(u+=f.hierNode.change)}}(o);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;u?(o.hierNode.prelim=u.hierNode.prelim+i(o,u),o.hierNode.modifier=o.hierNode.prelim-f):o.hierNode.prelim=f}else u&&(o.hierNode.prelim=u.hierNode.prelim+i(o,u));o.parentNode.hierNode.defaultAncestor=function(o,i,r,s){if(i){for(var u=o,f=o,d=f.parentNode.children[0],p=i,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=p.hierNode.modifier;p=ry(p),f=cD(f),p&&f;){u=ry(u),d=cD(d),u.hierNode.ancestor=o;var b=p.hierNode.prelim+y-f.hierNode.prelim-g+s(p,f);b>0&&(HG(BG(p,o,r),o,b),g+=b,v+=b),y+=p.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}p&&!ry(u)&&(u.hierNode.thread=p,u.hierNode.modifier+=y-v),f&&!cD(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,r=o)}return r}(o,u,o.parentNode.hierNode.defaultAncestor||s[0],i)}function uF(o){o.setLayout({x:o.hierNode.prelim+o.parentNode.hierNode.modifier},!0),o.hierNode.modifier+=o.parentNode.hierNode.modifier}function cF(o){return arguments.length?o:fD}function Th(o,i){return o-=Math.PI/2,{x:i*Math.cos(o),y:i*Math.sin(o)}}function ry(o){var i=o.children;return i.length&&o.isExpand?i[i.length-1]:o.hierNode.thread}function cD(o){var i=o.children;return i.length&&o.isExpand?i[0]:o.hierNode.thread}function BG(o,i,r){return o.hierNode.ancestor.parentNode===i.parentNode?o.hierNode.ancestor:r}function HG(o,i,r){var s=r/(i.hierNode.i-o.hierNode.i);i.hierNode.change-=s,i.hierNode.shift+=r,i.hierNode.modifier+=r,i.hierNode.prelim+=r,o.hierNode.change+=s}function fD(o,i){return o.parentNode===i.parentNode?1:2}var xw=function(){this.parentPoint=[],this.childPoints=[]},fF=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new xw},i.prototype.buildPath=function(r,s){var u=s.childPoints,f=u.length,d=s.parentPoint,p=u[0],v=u[f-1];if(1===f)return r.moveTo(d[0],d[1]),void r.lineTo(p[0],p[1]);var g=s.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Ae(s.forkPosition,1),w=[];w[m]=d[m],w[y]=d[y]+(v[y]-d[y])*b,r.moveTo(d[0],d[1]),r.lineTo(w[0],w[1]),r.moveTo(p[0],p[1]),w[m]=p[m],r.lineTo(w[0],w[1]),w[m]=v[m],r.lineTo(w[0],w[1]),r.lineTo(v[0],v[1]);for(var S=1;SP.x)||(R-=Math.PI);var G=B?"left":"right",W=p.getModel("label"),K=W.get("rotate"),J=K*(Math.PI/180),Z=x.getTextContent();Z&&(x.setTextConfig({position:W.get("position")||G,rotation:null==K?-R:J,origin:"center"}),Z.setStyle("verticalAlign","middle"))}var ne=p.get(["emphasis","focus"]),te="ancestor"===ne?d.getAncestorsIndices():"descendant"===ne?d.getDescendantIndices():null;te&&(gt(r).focus=te),function(o,i,r,s,u,f,d,p){var v=i.getModel(),g=o.get("edgeShape"),m=o.get("layout"),y=o.getOrient(),b=o.get(["lineStyle","curveness"]),w=o.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),M=s.__edge;if("curve"===g)i.parentNode&&i.parentNode!==r&&(M||(M=s.__edge=new Ud({shape:hD(m,y,b,u,u)})),un(M,{shape:hD(m,y,b,f,d)},o));else if("polyline"===g&&"orthogonal"===m&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var x=i.children,T=[],P=0;Pr&&(r=u.height)}this.height=r+1},o.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var r=0,s=this.children,u=s.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,r)},o.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},o.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},o.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},o.prototype.setVisual=function(i,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,r)},o.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},o.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},o.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},o.prototype.isAncestorOf=function(i){for(var r=i.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},o.prototype.isDescendantOf=function(i){return i!==this&&i.isAncestorOf(this)},o}(),gF=function(){function o(i){this.type="tree",this._nodes=[],this.hostModel=i}return o.prototype.eachNode=function(i,r,s){this.root.eachNode(i,r,s)},o.prototype.getNodeByDataIndex=function(i){var r=this.data.getRawIndex(i);return this._nodes[r]},o.prototype.getNodeById=function(i){return this.root.getNodeById(i)},o.prototype.update=function(){for(var i=this.data,r=this._nodes,s=0,u=r.length;s=0){var s=r.getData().tree.root,u=o.targetNode;if("string"==typeof u&&(u=s.getNodeById(u)),u&&s.contains(u))return{node:u};var f=o.targetNodeId;if(null!=f&&(u=s.getNodeById(f)))return{node:u}}}function mF(o){for(var i=[];o;)(o=o.parentNode)&&i.push(o);return i.reverse()}function gD(o,i){return zt(mF(o),i)>=0}function Dw(o,i){for(var r=[];o;){var s=o.dataIndex;r.push({name:o.name,dataIndex:s,value:i.getRawValue(s)}),o=o.parentNode}return r.reverse(),r}var _F=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r){var s={name:r.name,children:r.data},f=new Ln(r.leaves||{},this,this.ecModel),d=gF.createTree(s,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=d.getNodeByDataIndex(w);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=r.expandAndCollapse&&r.initialTreeDepth>=0?r.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},i.prototype.getOrient=function(){var r=this.get("orient");return"horizontal"===r?r="LR":"vertical"===r&&(r="TB"),r},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.formatTooltip=function(r,s,u){for(var f=this.getData().tree,d=f.root.children[0],p=f.getNodeByDataIndex(r),v=p.getValue(),g=p.name;p&&p!==d;)g=p.parentNode.name+"."+g,p=p.parentNode;return Ei("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=Dw(u,this),s},i.type="series.tree",i.layoutMode="box",i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},i}(ir);function iy(o,i){for(var s,r=[o];s=r.pop();)if(i(s),s.isExpand){var u=s.children;if(u.length)for(var f=u.length-1;f>=0;f--)r.push(u[f])}}function ZG(o,i){o.eachSeriesByType("tree",function(r){!function(o,i){var r=function(o,i){return pi(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(o,i);o.layoutInfo=r;var s=o.get("layout"),u=0,f=0,d=null;"radial"===s?(u=2*Math.PI,f=Math.min(r.height,r.width)/2,d=cF(function(I,R){return(I.parentNode===R.parentNode?1:2)/I.depth})):(u=r.width,f=r.height,d=cF());var p=o.getData().tree.root,v=p.children[0];if(v){(function(o){var i=o;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s,u,r=[i];s=r.pop();)if(u=s.children,s.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var p=u[d];p.hierNode={defaultAncestor:null,ancestor:p,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},r.push(p)}})(p),function(o,i,r){for(var f,s=[o],u=[];f=s.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var p=0;pm.getLayout().x&&(m=I),I.depth>y.depth&&(y=I)});var b=g===m?1:d(g,m)/2,w=b-g.getLayout().x,S=0,M=0,x=0,T=0;if("radial"===s)S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),iy(v,function(I){var R=Th(x=(I.getLayout().x+w)*S,T=(I.depth-1)*M);I.setLayout({x:R.x,y:R.y,rawX:x,rawY:T},!0)});else{var P=o.getOrient();"RL"===P||"LR"===P?(M=f/(m.getLayout().x+b+w),S=u/(y.depth-1||1),iy(v,function(I){T=(I.getLayout().x+w)*M,I.setLayout({x:x="LR"===P?(I.depth-1)*S:u-(I.depth-1)*S,y:T},!0)})):("TB"===P||"BT"===P)&&(S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),iy(v,function(I){x=(I.getLayout().x+w)*S,I.setLayout({x:x,y:T="TB"===P?(I.depth-1)*M:f-(I.depth-1)*M},!0)}))}}}(r,i)})}function QG(o){o.eachSeriesByType("tree",function(i){var r=i.getData();r.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();Me(r.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var e6=function(){},yF=["treemapZoomToNode","treemapRender","treemapMove"];function mD(o){var i=o.getData(),s={};i.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=PM(o.ecModel,f.name||f.dataIndex+"",s);u.setVisual("decal",d)})}function CF(o){var i=0;q(o.children,function(s){CF(s);var u=s.value;ke(u)&&(u=u[0]),i+=u});var r=o.value;ke(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),ke(o.value)?o.value[0]=r:o.value=r}var r6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventUsingHoverLayer=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};CF(u);var f=r.levels||[],d=this.designatedVisualItemStyle={},p=new Ln({itemStyle:d},this,s),v=Ie((f=r.levels=function(o,i){var r=pr(i.get("color")),s=pr(i.get(["aria","decal","decals"]));if(r){var u,f;q(o=o||[],function(p){var v=new Ln(p),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=o[0]||(o[0]={});return u||(d.color=r.slice()),!f&&s&&(d.decal=s.slice()),o}}(f,s))||[],function(y){return new Ln(y,p,s)},this),g=gF.createTree(u,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=g.getNodeByDataIndex(w);return b.parentModel=(S?v[S.depth]:null)||p,b})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(r,s,u){var f=this.getData(),d=this.getRawValue(r);return Ei("nameValue",{name:f.getName(r),value:d})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=Dw(u,this),s},i.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Me(this.layoutInfo,r)},i.prototype.mapIdToIndex=function(r){var s=this._idIndexMap;s||(s=this._idIndexMap=st(),this._idIndexMapCount=0);var u=s.get(r);return null==u&&s.set(r,u=this._idIndexMapCount++),u},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){mD(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(ir);function Za(o,i,r,s,u,f){var d=[[u?o:o-5,i],[o+r,i],[o+r,i+s],[u?o:o-5,i+s]];return!f&&d.splice(2,0,[o+r+5,i+s/2]),!u&&d.push([o,i+s/2]),d}function wF(o,i,r){gt(o).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.componentIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Dw(r,i)}}var i6=function(){function o(i){this.group=new ut,i.add(this.group)}return o.prototype.render=function(i,r,s,u){var f=i.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&s){var p=f.getModel("itemStyle"),v=p.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(s,g,v),this._renderContent(i,g,p,v,u),z0(d,g.pos,g.box)}},o.prototype._prepare=function(i,r,s){for(var u=i;u;u=u.parentNode){var f=xi(u.getModel().get("name"),""),d=s.getTextRect(f),p=Math.max(d.width+16,r.emptyItemWidth);r.totalWidth+=p+8,r.renderList.push({node:u,text:f,width:p})}},o.prototype._renderContent=function(i,r,s,u,f){for(var d=0,p=r.emptyItemWidth,v=i.get(["breadcrumb","height"]),g=function(o,i,r){var s=i.width,u=i.height,f=Ae(o.left,s),d=Ae(o.top,u),p=Ae(o.right,s),v=Ae(o.bottom,u);return(isNaN(f)||isNaN(parseFloat(o.left)))&&(f=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=s),(isNaN(d)||isNaN(parseFloat(o.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(o.bottom)))&&(v=u),r=fv(r||0),{width:Math.max(p-f-r[1]-r[3],0),height:Math.max(v-d-r[0]-r[2],0)}}(r.pos,r.box),m=r.totalWidth,y=r.renderList,b=y.length-1;b>=0;b--){var w=y[b],S=w.node,M=w.width,x=w.text;m>g.width&&(m-=M-p,M=p,x=null);var T=new ni({shape:{points:Za(d,0,M,v,b===y.length-1,0===b)},style:tt(s.getItemStyle(),{lineJoin:"bevel"}),textContent:new on({style:{text:x,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:bt(f,S)});T.disableLabelAnimation=!0,this.group.add(T),wF(T,i,S),d+=M+8}},o.prototype.remove=function(){this.group.removeAll()},o}(),a6=function(){function o(){this._storage=[],this._elExistsMap={}}return o.prototype.add=function(i,r,s,u,f){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:r,duration:s,delay:u,easing:f}),!0)},o.prototype.finished=function(i){return this._finishedCallback=i,this},o.prototype.start=function(){for(var i=this,r=this._storage.length,s=function(){--r<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(r.dy)>3)){var s=this.seriesModel.getData().tree.root;if(!s)return;var u=s.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+r.dx,y:u.y+r.dy,width:u.width,height:u.height}})}},i.prototype._onZoom=function(r){var s=r.originX,u=r.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var p=new Vt(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];Eo(g,g,[-(s-=v.x),-(u-=v.y)]),QS(g,g,[r.scale,r.scale]),Eo(g,g,[s,u]),p.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:p.x,y:p.y,width:p.width,height:p.height}})}},i.prototype._initEvents=function(r){var s=this;r.on("click",function(u){if("ready"===s._state){var f=s.seriesModel.get("nodeClick",!0);if(f){var d=s.findTarget(u.offsetX,u.offsetY);if(d){var p=d.node;if(p.getLayout().isLeafRoot)s._rootToNode(d);else if("zoomToNode"===f)s._zoomToNode(d);else if("link"===f){var v=p.hostTree.data.getItemModel(p.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&H0(g,m)}}}}},this)},i.prototype._renderBreadcrumb=function(r,s,u){var f=this;u||(u=null!=r.get("leafDepth",!0)?{node:r.getViewRoot()}:this.findTarget(s.getWidth()/2,s.getHeight()/2))||(u={node:r.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new i6(this.group))).render(r,s,u.node,function(d){"animating"!==f._state&&(gD(r.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype.findTarget=function(r,s){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var p=this._storage.background[d.getRawIndex()];if(p){var v=p.transformCoordToLocal(r,s),g=p.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},i.type="treemap",i}(Vn),sy=q,MF=pt,CD=function(){function o(i){var r=i.mappingMethod,s=i.type,u=this.option=it(i);this.type=s,this.mappingMethod=r,this._normalizeData=TF[r];var f=o.visualHandlers[s];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[r],"piecewise"===r?(wD(u),function(o){var i=o.pieceList;o.hasSpecialVisual=!1,q(i,function(r,s){r.originIndex=s,null!=r.visual&&(o.hasSpecialVisual=!0)})}(u)):"category"===r?u.categories?function(o){var i=o.categories,r=o.categoryMap={},s=o.visual;if(sy(i,function(d,p){r[d]=p}),!ke(s)){var u=[];pt(s)?sy(s,function(d,p){var v=r[p];u[null!=v?v:-1]=d}):u[-1]=s,s=xF(o,u)}for(var f=i.length-1;f>=0;f--)null==s[f]&&(delete r[i[f]],i.pop())}(u):wD(u,!0):(ra("linear"!==r||u.dataExtent),wD(u))}return o.prototype.mapValueToVisual=function(i){var r=this._normalizeData(i);return this._normalizedToVisual(r,i)},o.prototype.getNormalizer=function(){return qe(this._normalizeData,this)},o.listVisualTypes=function(){return kn(o.visualHandlers)},o.isValidType=function(i){return o.visualHandlers.hasOwnProperty(i)},o.eachVisual=function(i,r,s){pt(i)?q(i,r,s):r.call(s,i)},o.mapVisual=function(i,r,s){var u,f=ke(i)?[]:pt(i)?{}:(u=!0,null);return o.eachVisual(i,function(d,p){var v=r.call(s,d,p);u?f=v:f[p]=v}),f},o.retrieveVisuals=function(i){var s,r={};return i&&sy(o.visualHandlers,function(u,f){i.hasOwnProperty(f)&&(r[f]=i[f],s=!0)}),s?r:null},o.prepareVisualTypes=function(i){if(ke(i))i=i.slice();else{if(!MF(i))return[];var r=[];sy(i,function(s,u){r.push(u)}),i=r}return i.sort(function(s,u){return"color"===u&&"color"!==s&&0===s.indexOf("color")?1:-1}),i},o.dependsOn=function(i,r){return"color"===r?!(!i||0!==i.indexOf(r)):i===r},o.findPieceIndex=function(i,r,s){for(var u,f=1/0,d=0,p=r.length;dg[1]&&(g[1]=v);var m=i.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new $i(y);return y6(b).drColorMappingBy=m,b}}}(0,u,f,0,v,w);q(w,function(M,x){(M.depth>=r.length||M===r[M.depth])&&Xv(M,function(o,i,r,s,u,f){var d=Me({},i);if(u){var p=u.type,v="color"===p&&y6(u).drColorMappingBy,g="index"===v?s:"id"===v?f.mapIdToIndex(r.getId()):r.getValue(o.get("visualDimension"));d[p]=u.mapValueToVisual(g)}return d}(u,v,M,x,S,s),r,s)})}else b=Fw(v),g.fill=b}}function Fw(o){var i=Eh(o,"color");if(i){var r=Eh(o,"colorAlpha"),s=Eh(o,"colorSaturation");return s&&(i=Wg(i,null,null,s)),r&&(i=kp(i,r)),i}}function Eh(o,i){var r=o[i];if(null!=r&&"none"!==r)return r}function ly(o,i){var r=o.get(i);return ke(r)&&r.length?{name:i,range:r}:null}var Zv=Math.max,uy=Math.min,EF=jr,xD=q,PF=["itemStyle","borderWidth"],C6=["itemStyle","gapWidth"],Nw=["upperLabel","show"],OF=["upperLabel","height"],NZ={seriesType:"treemap",reset:function(i,r,s,u){var f=s.getWidth(),d=s.getHeight(),p=i.option,v=pi(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),g=p.size||[],m=Ae(EF(v.width,g[0]),f),y=Ae(EF(v.height,g[1]),d),b=u&&u.type,S=Xa(u,["treemapZoomToNode","treemapRootToNode"],i),M="treemapRender"===b||"treemapMove"===b?u.rootRect:null,x=i.getViewRoot(),T=mF(x);if("treemapMove"!==b){var P="treemapZoomToNode"===b?function(o,i,r,s,u){var f=(i||{}).node,d=[s,u];if(!f||f===r)return d;for(var p,v=s*u,g=v*o.option.zoomToNodeRatio;p=f.parentNode;){for(var m=0,y=p.children,b=0,w=y.length;bsk&&(g=sk),f=p}gp[1]&&(p[1]=g)})):p=[NaN,NaN],{sum:s,dataExtent:p}}(i,d,p);if(0===g.sum)return o.viewChildren=[];if(g.sum=function(o,i,r,s,u){if(!s)return r;for(var f=o.get("visibleMin"),d=u.length,p=d,v=d-1;v>=0;v--){var g=u["asc"===s?d-v-1:v].getValue();g/r*is&&(s=d));var v=o.area*o.area,g=i*i*r;return v?Zv(g*s/v,v/(g*u)):1/0}function RF(o,i,r,s,u){var f=i===r.width?0:1,d=1-f,p=["x","y"],v=["width","height"],g=r[p[f]],m=i?o.area/i:0;(u||m>r[v[d]])&&(m=r[v[d]]);for(var y=0,b=o.length;yu&&(u=r);var d=u%2?u+2:u+3;f=[];for(var p=0;p0&&(B[0]=-B[0],B[1]=-B[1]);var G=R[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var W=-Math.atan2(R[1],R[0]);y[0].8?"left":b[0]<-.8?"right":"center",M=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*T+m[0],f.y=-b[1]*P+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",M=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=T*G+m[0],f.y=m[1]+K,S=R[0]<0?"right":"left",f.originX=-T*G,f.originY=-K;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=V[0],f.y=V[1]+K,S="center",f.originY=-K;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-T*G+y[0],f.y=y[1]+K,S=R[0]>=0?"right":"left",f.originX=T*G,f.originY=-K}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||M,align:f.__align||S})}}}function w(J,Z){var ne=J.__specifiedRotation;if(null==ne){var te=v.tangentAt(Z);J.attr("rotation",(1===Z?-1:1)*Math.PI/2-Math.atan2(te[1],te[0]))}else J.attr("rotation",ne)}},i}(ut);function j6(o){var i=o.hostModel;return{lineStyle:i.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:i.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:i.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Fi(i)}}function W6(o){return isNaN(o[0])||isNaN(o[1])}function zF(o){return!W6(o[0])&&!W6(o[1])}var UF=function(){function o(i){this.group=new ut,this._LineCtor=i||HD}return o.prototype.isPersistent=function(){return!0},o.prototype.updateData=function(i){var r=this,s=this,u=s.group,f=s._lineData;s._lineData=i,f||u.removeAll();var d=j6(i);i.diff(f).add(function(p){r._doAdd(i,p,d)}).update(function(p,v){r._doUpdate(f,i,v,p,d)}).remove(function(p){u.remove(f.getItemGraphicEl(p))}).execute()},o.prototype.updateLayout=function(){var i=this._lineData;!i||i.eachItemGraphicEl(function(r,s){r.updateLayout(i,s)},this)},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=j6(i),this._lineData=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r){function s(p){!p.isGroup&&!function(o){return o.animators&&o.animators.length>0}(p)&&(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var u=i.start;u=0?p+=g:p-=g:S>=0?p-=g:p+=g}return p}function Bw(o,i){var r=[],s=hm,u=[[],[],[]],f=[[],[]],d=[];i/=2,o.eachEdge(function(p,v){var g=p.getLayout(),m=p.getVisual("fromSymbol"),y=p.getVisual("toSymbol");g.__original||(g.__original=[Du(g[0]),Du(g[1])],g[2]&&g.__original.push(Du(g[2])));var b=g.__original;if(null!=g[2]){if(ia(u[0],b[0]),ia(u[1],b[2]),ia(u[2],b[1]),m&&"none"!==m){var w=hy(p.node1),S=UD(u,b[0],w*i);s(u[0][0],u[1][0],u[2][0],S,r),u[0][0]=r[3],u[1][0]=r[4],s(u[0][1],u[1][1],u[2][1],S,r),u[0][1]=r[3],u[1][1]=r[4]}y&&"none"!==y&&(w=hy(p.node2),S=UD(u,b[1],w*i),s(u[0][0],u[1][0],u[2][0],S,r),u[1][0]=r[1],u[2][0]=r[2],s(u[0][1],u[1][1],u[2][1],S,r),u[1][1]=r[1],u[2][1]=r[2]),ia(g[0],u[0]),ia(g[1],u[2]),ia(g[2],u[1])}else ia(f[0],b[0]),ia(f[1],b[1]),zn(d,f[1],f[0]),bp(d,d),m&&"none"!==m&&(w=hy(p.node1),aa(f[0],f[0],d,w*i)),y&&"none"!==y&&(w=hy(p.node2),aa(f[1],f[1],d,-w*i)),ia(g[0],f[0]),ia(g[1],f[1])})}function Oh(o){return"view"===o.type}var q6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){var u=new cw,f=new UF,d=this.group;this._controller=new jv(s.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},i.prototype.render=function(r,s,u){var f=this,d=r.coordinateSystem;this._model=r;var p=this._symbolDraw,v=this._lineDraw,g=this.group;if(Oh(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):un(g,m,r)}Bw(r.getGraph(),Ph(r));var y=r.getData();p.updateData(y);var b=r.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(r,s,u),clearTimeout(this._layoutTimeout);var w=r.forceLayout,S=r.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,S),y.graph.eachNode(function(P){var I=P.dataIndex,R=P.getGraphicEl(),B=P.getModel();R.off("drag").off("dragend");var V=B.get("draggable");V&&R.on("drag",function(){w&&(w.warmUp(),!f._layouting&&f._startForceLayoutIteration(w,S),w.setFixed(I),y.setItemLayout(I,[R.x,R.y]))}).on("dragend",function(){w&&w.setUnfixed(I)}),R.setDraggable(V&&!!w),"adjacency"===B.get(["emphasis","focus"])&&(gt(R).focus=P.getAdjacentDataIndices())}),y.graph.eachEdge(function(P){var I=P.getGraphicEl();"adjacency"===P.getModel().get(["emphasis","focus"])&&(gt(I).focus={edge:[P.dataIndex],node:[P.node1.dataIndex,P.node2.dataIndex]})});var M="circular"===r.get("layout")&&r.get(["circular","rotateLabel"]),x=y.getLayout("cx"),T=y.getLayout("cy");y.eachItemGraphicEl(function(P,I){var B=y.getItemModel(I).get(["label","rotate"])||0,V=P.getSymbolPath();if(M){var G=y.getItemLayout(I),W=Math.atan2(G[1]-T,G[0]-x);W<0&&(W=2*Math.PI+W);var K=G[0]=0&&i.call(r,s[f],f)},o.prototype.eachEdge=function(i,r){for(var s=this.edges,u=s.length,f=0;f=0&&s[f].node1.dataIndex>=0&&s[f].node2.dataIndex>=0&&i.call(r,s[f],f)},o.prototype.breadthFirstTraverse=function(i,r,s,u){if(r instanceof Ls||(r=this._nodesMap[Ih(r)]),r){for(var f="out"===s?"outEdges":"in"===s?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[o][i].setItemVisual(this.dataIndex,s,u)},getVisual:function(s){return this[o][i].getItemVisual(this.dataIndex,s)},setLayout:function(s,u){this.dataIndex>=0&&this[o][i].setItemLayout(this.dataIndex,s,u)},getLayout:function(){return this[o][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[o][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[o][i].getRawIndex(this.dataIndex)}}}br(Ls,YF("hostGraph","data")),br(X6,YF("hostGraph","edgeData"));var Z6=WF;function GD(o,i,r,s,u){for(var f=new Z6(s),d=0;d "+b)),g++)}var S,w=r.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)S=au(o,r);else{var M=Xm.get(w),x=M&&M.dimensions||[];zt(x,"value")<0&&x.concat(["value"]);var T=Lv(o,{coordDimensions:x});(S=new _a(T,r)).initData(o)}var P=new _a(["value"],r);return P.initData(v,p),u&&u(S,P),vD({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:P},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var XF=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments);var s=this;function u(){return s._categoriesData}this.legendVisualProvider=new bh(u,u),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(r){o.prototype.mergeDefaultAndTheme.apply(this,arguments),Fp(r,"edgeLabel",["show"])},i.prototype.getInitialData=function(r,s){var u=r.edges||r.links||[],f=r.data||r.nodes||[],d=this;if(f&&u){!function(o){!fy(o)||(o.__curvenessList=[],o.__edgeMap={},FF(o))}(this);var p=GD(f,u,this,!0,function(g,m){g.wrapMethod("getItemModel",function(S){var T=d._categoriesModels[S.getShallow("category")];return T&&(T.parentModel=S.parentModel,S.parentModel=T),S});var y=Ln.prototype.getModel;function b(S,M){var x=y.call(this,S,M);return x.resolveParentPath=w,x}function w(S){if(S&&("label"===S[0]||"label"===S[1])){var M=S.slice();return"label"===S[0]?M[0]="edgeLabel":"label"===S[1]&&(M[1]="edgeLabel"),M}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=w,S.getModel=b,S})});return q(p.edges,function(g){!function(o,i,r,s){if(fy(r)){var u=dy(o,i,r),f=r.__edgeMap,d=f[ED(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(s)}}(g.node1,g.node2,this,g.dataIndex)},this),p.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(r,s,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(r,u),p=f.graph.getEdgeByIndex(r),v=f.getName(p.node1.dataIndex),g=f.getName(p.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),Ei("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return $I({series:this,dataIndex:r,multipleSeries:s})},i.prototype._updateCategoriesData=function(){var r=Ie(this.option.categories||[],function(u){return null!=u.value?u:Me({value:0},u)}),s=new _a(["value"],this);s.initData(r),this._categoriesData=s,this._categoriesModels=s.mapArray(function(u){return s.getItemModel(u)})},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.isAnimationEnabled=function(){return o.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(ir),K6={type:"graphRoam",event:"graphRoam",update:"none"},py=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Q6=function(o){function i(r){var s=o.call(this,r)||this;return s.type="pointer",s}return he(i,o),i.prototype.getDefaultShape=function(){return new py},i.prototype.buildPath=function(r,s){var u=Math.cos,f=Math.sin,d=s.r,p=s.width,v=s.angle,g=s.x-u(v)*p*(p>=d/3?1:2),m=s.y-f(v)*p*(p>=d/3?1:2);v=s.angle-Math.PI/2,r.moveTo(g,m),r.lineTo(s.x+u(v)*p,s.y+f(v)*p),r.lineTo(s.x+u(s.angle)*d,s.y+f(s.angle)*d),r.lineTo(s.x-u(v)*p,s.y-f(v)*p),r.lineTo(g,m)},i}(an);function vy(o,i){var r=null==o?"":o+"";return i&&("string"==typeof i?r=i.replace("{value}",r):"function"==typeof i&&(r=i(o))),r}var gy=2*Math.PI,QF=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll();var f=r.get(["axisLine","lineStyle","color"]),d=function(o,i){var r=o.get("center"),s=i.getWidth(),u=i.getHeight(),f=Math.min(s,u);return{cx:Ae(r[0],i.getWidth()),cy:Ae(r[1],i.getHeight()),r:Ae(o.get("radius"),f/2)}}(r,u);this._renderMain(r,s,u,f,d),this._data=r.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(r,s,u,f,d){for(var p=this.group,v=r.get("clockwise"),g=-r.get("startAngle")/180*Math.PI,m=-r.get("endAngle")/180*Math.PI,y=r.getModel("axisLine"),w=y.get("roundCap")?NT:No,S=y.get("show"),M=y.getModel("lineStyle"),x=M.get("width"),T=(m-g)%gy||m===g?(m-g)%gy:gy,P=g,I=0;S&&I=K&&(0===J?0:f[J-1][0]).8?"bottom":"middle",align:se<-.4?"left":se>.4?"right":"center"},{inheritColor:Te}),silent:!0}))}if(P.get("show")&&de!==R){pe=(pe=P.get("distance"))?pe+m:m;for(var ze=0;ze<=B;ze++){se=Math.cos(W),le=Math.sin(W);var Qe=new Ai({shape:{x1:se*(S-pe)+b,y1:le*(S-pe)+w,x2:se*(S-G-pe)+b,y2:le*(S-G-pe)+w},silent:!0,style:ne});"auto"===ne.stroke&&Qe.setStyle({stroke:f((de+ze/B)/R)}),y.add(Qe),W+=J}W-=J}else W+=K}},i.prototype._renderPointer=function(r,s,u,f,d,p,v,g,m){var y=this.group,b=this._data,w=this._progressEls,S=[],M=r.get(["pointer","show"]),x=r.getModel("progress"),T=x.get("show"),P=r.getData(),I=P.mapDimension("value"),R=+r.get("min"),B=+r.get("max"),V=[R,B],G=[p,v];function W(J,Z){var ze,te=P.getItemModel(J).getModel("pointer"),se=Ae(te.get("width"),d.r),le=Ae(te.get("length"),d.r),de=r.get(["pointer","icon"]),pe=te.get("offsetCenter"),me=Ae(pe[0],d.r),Ce=Ae(pe[1],d.r),Te=te.get("keepAspect");return(ze=de?ii(de,me-se/2,Ce-le,se,le,null,Te):new Q6({shape:{angle:-Math.PI/2,width:se,r:le,x:me,y:Ce}})).rotation=-(Z+Math.PI/2),ze.x=d.cx,ze.y=d.cy,ze}function K(J,Z){var te=x.get("roundCap")?NT:No,se=x.get("overlap"),le=se?x.get("width"):m/P.count(),me=new te({shape:{startAngle:p,endAngle:Z,cx:d.cx,cy:d.cy,clockwise:g,r0:se?d.r-le:d.r-(J+1)*le,r:se?d.r:d.r-J*le}});return se&&(me.z2=B-P.get(I,J)%B),me}(T||M)&&(P.diff(b).add(function(J){if(M){var Z=W(J,p);Or(Z,{rotation:-(wn(P.get(I,J),V,G,!0)+Math.PI/2)},r),y.add(Z),P.setItemGraphicEl(J,Z)}if(T){var ne=K(J,p),te=x.get("clip");Or(ne,{shape:{endAngle:wn(P.get(I,J),V,G,te)}},r),y.add(ne),S[J]=ne}}).update(function(J,Z){if(M){var ne=b.getItemGraphicEl(Z),te=ne?ne.rotation:p,se=W(J,te);se.rotation=te,un(se,{rotation:-(wn(P.get(I,J),V,G,!0)+Math.PI/2)},r),y.add(se),P.setItemGraphicEl(J,se)}if(T){var le=w[Z],pe=K(J,le?le.shape.endAngle:p),me=x.get("clip");un(pe,{shape:{endAngle:wn(P.get(I,J),V,G,me)}},r),y.add(pe),S[J]=pe}}).execute(),P.each(function(J){var Z=P.getItemModel(J),ne=Z.getModel("emphasis");if(M){var te=P.getItemGraphicEl(J),se=P.getItemVisual(J,"style"),le=se.fill;if(te instanceof di){var de=te.style;te.useStyle(Me({image:de.image,x:de.x,y:de.y,width:de.width,height:de.height},se))}else te.useStyle(se),"pointer"!==te.type&&te.setColor(le);te.setStyle(Z.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===te.style.fill&&te.setStyle("fill",f(wn(P.get(I,J),V,[0,1],!0))),te.z2EmphasisLift=0,Wi(te,Z),Un(te,ne.get("focus"),ne.get("blurScope"))}if(T){var pe=S[J];pe.useStyle(P.getItemVisual(J,"style")),pe.setStyle(Z.getModel(["progress","itemStyle"]).getItemStyle()),pe.z2EmphasisLift=0,Wi(pe,Z),Un(pe,ne.get("focus"),ne.get("blurScope"))}}),this._progressEls=S)},i.prototype._renderAnchor=function(r,s){var u=r.getModel("anchor");if(u.get("show")){var d=u.get("size"),p=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=ii(p,s.cx-d/2+Ae(v[0],s.r),s.cy-d/2+Ae(v[1],s.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},i.prototype._renderTitleAndDetail=function(r,s,u,f,d){var p=this,v=r.getData(),g=v.mapDimension("value"),m=+r.get("min"),y=+r.get("max"),b=new ut,w=[],S=[],M=r.isAnimationEnabled();v.diff(this._data).add(function(x){w[x]=new on({silent:!0}),S[x]=new on({silent:!0})}).update(function(x,T){w[x]=p._titleEls[T],S[x]=p._detailEls[T]}).execute(),v.each(function(x){var T=v.getItemModel(x),P=v.get(g,x),I=new ut,R=f(wn(P,[m,y],[0,1],!0)),B=T.getModel("title");if(B.get("show")){var V=B.get("offsetCenter"),G=d.cx+Ae(V[0],d.r),W=d.cy+Ae(V[1],d.r);(K=w[x]).attr({style:Ir(B,{x:G,y:W,text:v.getName(x),align:"center",verticalAlign:"middle"},{inheritColor:R})}),I.add(K)}var J=T.getModel("detail");if(J.get("show")){var Z=J.get("offsetCenter"),ne=d.cx+Ae(Z[0],d.r),te=d.cy+Ae(Z[1],d.r),se=Ae(J.get("width"),d.r),le=Ae(J.get("height"),d.r),de=r.get(["progress","show"])?v.getItemVisual(x,"style").fill:R,K=S[x],pe=J.get("formatter");K.attr({style:Ir(J,{x:ne,y:te,text:vy(P,pe),width:isNaN(se)?null:se,height:isNaN(le)?null:le,align:"center",verticalAlign:"middle"},{inheritColor:de})}),vM(K,{normal:J},P,function(Ce){return vy(Ce,pe)}),M&&gM(K,x,v,r,{getFormattedLabel:function(Te,ze,Qe,mt,En,It){return vy(It?It.interpolatedValue:P,pe)}}),I.add(K)}b.add(I)}),this.group.add(b),this._titleEls=w,this._detailEls=S},i.type="gauge",i}(Vn),$6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.visualStyleAccessPath="itemStyle",r.useColorPaletteOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){return Hv(this,["value"])},i.type="series.gauge",i.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},i}(ir),jZ=["itemStyle","opacity"],WZ=function(o){function i(r,s){var u=o.call(this)||this,f=u,d=new Fa,p=new on;return f.setTextContent(p),u.setTextGuideLine(d),u.updateData(r,s,!0),u}return he(i,o),i.prototype.updateData=function(r,s,u){var f=this,d=r.hostModel,p=r.getItemModel(s),v=r.getItemLayout(s),g=p.getModel("emphasis"),m=p.get(jZ);m=null==m?1:m,f.useStyle(r.getItemVisual(s,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,Or(f,{style:{opacity:m}},d,s)):un(f,{style:{opacity:m},shape:{points:v.points}},d,s),Wi(f,p),this._updateLabel(r,s),Un(this,g.get("focus"),g.get("blurScope"))},i.prototype._updateLabel=function(r,s){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),p=r.hostModel,v=r.getItemModel(s),m=r.getItemLayout(s).label,y=r.getItemVisual(s,"style"),b=y.fill;Li(d,Fi(v),{labelFetcher:r.hostModel,labelDataIndex:s,defaultOpacity:y.opacity,defaultText:r.getName(s)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var w=m.linePoints;f.setShape({points:w}),u.textGuideLineConfig={anchor:w?new Nt(w[0][0],w[0][1]):null},un(d,{style:{x:m.x,y:m.y}},p,s),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),gx(u,mx(v),{stroke:b})},i}(ni),qZ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreLabelLineUpdate=!0,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this._data,p=this.group;f.diff(d).add(function(v){var g=new WZ(f,v);f.setItemGraphicEl(v,g),p.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),p.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){ev(d.getItemGraphicEl(v),r,v)}).execute(),this._data=f},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Vn),ZZ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.useColorPaletteOnData=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new bh(qe(this.getData,this),qe(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.getInitialData=function(r,s){return Hv(this,{coordDimensions:["value"],encodeDefaulter:bt(U0,this)})},i.prototype._defaultLabelLine=function(r){Fp(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=s.mapDimension("value"),d=s.getSum(f);return u.percent=d?+(s.get(f,r)/d*100).toFixed(2):0,u.$vars.push("percent"),u},i.type="series.funnel",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(ir);function YD(o,i){o.eachSeriesByType("funnel",function(r){var s=r.getData(),u=s.mapDimension("value"),f=r.get("sort"),d=function(o,i){return pi(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i),p=r.get("orient"),v=d.width,g=d.height,m=function(o,i){for(var r=o.mapDimension("value"),s=o.mapArray(r,function(v){return v}),u=[],f="ascending"===i,d=0,p=o.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(i){if(!this._mouseDownPoint&&mr(this,"mousemove")){var r=this._model,s=r.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]),u=s.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(r.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:s.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function mr(o,i){var r=o._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===i}var Uw=fj,_y=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(r){r&&yt(this.option,r,!0),this._initDimensions()},i.prototype.contains=function(r,s){var u=r.get("parallelIndex");return null!=u&&s.getComponent("parallel",u)===this},i.prototype.setAxisExpand=function(r){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(s){r.hasOwnProperty(s)&&(this.option[s]=r[s])},this)},i.prototype._initDimensions=function(){var r=this.dimensions=[],s=this.parallelAxisIndex=[];q(sr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){r.push("dim"+f.get("dim")),s.push(f.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},i}(Qt),hj=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.type=f||"value",p.axisIndex=d,p}return he(i,o),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(Qi);function Rh(o,i,r,s,u,f){o=o||0;var d=r[1]-r[0];if(null!=u&&(u=Lh(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===s){var p=Math.abs(i[1]-i[0]);p=Lh(p,[0,d]),u=f=Lh(p,[u,f]),s=0}i[0]=Lh(i[0],r),i[1]=Lh(i[1],r);var v=KD(i,s);i[s]+=o;var y,g=u||0,m=r.slice();return v.sign<0?m[0]+=g:m[1]-=g,i[s]=Lh(i[s],m),y=KD(i,s),null!=u&&(y.sign!==v.sign||y.spanf&&(i[1-s]=i[s]+y.sign*f),i}function KD(o,i){var r=o[i]-o[1-i];return{span:Math.abs(r),sign:r>0?-1:r<0?1:i?-1:1}}function Lh(o,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,o))}var Kn=q,rN=Math.min,iN=Math.max,Zr=Math.floor,aN=Math.ceil,oN=Wr,pj=Math.PI;function Gw(o,i){return rN(iN(o,i[0]),i[1])}function vj(o,i){var r=i.layoutLength/(i.axisCount-1);return{position:r*o,axisNameAvailableWidth:r,axisLabelShow:!0}}function QD(o,i){var p,m,s=i.axisExpandWidth,f=i.axisCollapseWidth,d=i.winInnerIndices,v=f,g=!1;return o=s&&d<=s+r.axisLength&&p>=u&&p<=u+r.layoutLength},o.prototype.getModel=function(){return this._model},o.prototype._updateAxesFromSeries=function(i,r){r.eachSeries(function(s){if(i.contains(s,r)){var u=s.getData();Kn(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),Ef(d.scale,d.model)},this)}},this)},o.prototype.resize=function(i,r){this._rect=pi(i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},o.prototype.getRect=function(){return this._rect},o.prototype._makeLayoutInfo=function(){var S,i=this._model,r=this._rect,s=["x","y"],u=["width","height"],f=i.get("layout"),d="horizontal"===f?0:1,p=r[u[d]],v=[0,p],g=this.dimensions.length,m=Gw(i.get("axisExpandWidth"),v),y=Gw(i.get("axisExpandCount")||0,[0,g]),b=i.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&p>0,w=i.get("axisExpandWindow");w?(S=Gw(w[1]-w[0],v),w[1]=w[0]+S):(S=Gw(m*(y-1),v),(w=[m*(i.get("axisExpandCenter")||Zr(g/2))-S/2])[1]=w[0]+S);var x=(p-S)/(g-y);x<3&&(x=0);var T=[Zr(oN(w[0]/m,1))+1,aN(oN(w[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:r[s[d]],layoutLength:p,axisBase:r[s[1-d]],axisLength:r[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:x,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:x/m*w[0]}},o.prototype._layoutAxes=function(){var i=this._rect,r=this._axesMap,s=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;r.each(function(d){var p=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(p[v],p[1-v])}),Kn(s,function(d,p){var v=(u.axisExpandable?QD:vj)(p,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+i.x,g[f].y+i.y],b={horizontal:pj/2,vertical:0}[f],w=[1,0,0,1,0,0];Vl(w,w,b),Eo(w,w,y),this._axesLayout[d]={position:y,rotation:b,transform:w,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},o.prototype.getAxis=function(i){return this._axesMap.get(i)},o.prototype.dataToPoint=function(i,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(i),r)},o.prototype.eachActiveState=function(i,r,s,u){null==s&&(s=0),null==u&&(u=i.count());var f=this._axesMap,d=this.dimensions,p=[],v=[];q(d,function(x){p.push(i.mapDimension(x)),v.push(f.get(x).model)});for(var g=this.hasAxisBrushed(),m=s;mf*(1-y[0])?(g="jump",v=p-f*(1-y[2])):(v=p-f*y[1])>=0&&(v=p-f*(1-y[1]))<=0&&(v=0),(v*=r.axisExpandWidth/m)?Rh(v,u,d,"all"):g="none";else{var w=u[1]-u[0];(u=[iN(0,d[1]*p/w-w/2)])[1]=rN(d[1],u[0]+w),u[0]=u[1]-w}return{axisExpandWindow:u,behavior:g}},o}(),_j={create:function(o,i){var r=[];return o.eachComponent("parallel",function(s,u){var f=new gj(s,o,i);f.name="parallel_"+u,f.resize(s,i),s.coordinateSystem=f,f.model=s,r.push(f)}),o.eachSeries(function(s){if("parallel"===s.get("coordinateSystem")){var u=s.getReferringComponents("parallel",cr).models[0];s.coordinateSystem=u.coordinateSystem}}),r}},lN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.activeIntervals=[],r}return he(i,o),i.prototype.getAreaSelectStyle=function(){return Iu([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},i.prototype.setActiveIntervals=function(r){var s=this.activeIntervals=it(r);if(s)for(var u=s.length-1;u>=0;u--)ca(s[u])},i.prototype.getActiveState=function(r){var s=this.activeIntervals;if(!s.length)return"normal";if(null==r||isNaN(+r))return"inactive";if(1===s.length){var u=s[0];if(u[0]<=r&&r<=u[1])return"active"}else for(var f=0,d=s.length;f6}(o)||u){if(f&&!u){"single"===d.brushMode&&nA(o);var v=it(d);v.brushType=yl(v.brushType,f),v.panelId=f===Wf?null:f.panelId,u=o._creatingCover=jw(o,v),o._covers.push(u)}if(u){var g=by[yl(o._brushType,f)];u.__brushOption.range=g.getCreatingRange(Fs(o,u,o._track)),s&&(eg(o,u),g.updateCommon(o,u)),$D(o,u),p={isEnd:s}}}else s&&"single"===d.brushMode&&d.removeOnClick&&tA(o,i,r)&&nA(o)&&(p={isEnd:s,removeOnClick:!0});return p}function yl(o,i){return"auto"===o?i.defaultBrushType:o}var kj={mousedown:function(i){if(this._dragging)kN(this,i);else if(!i.target||!i.target.draggable){Yw(i);var r=this.group.transformCoordToLocal(i.offsetX,i.offsetY);this._creatingCover=null,(this._creatingPanel=tA(this,i,r))&&(this._dragging=!0,this._track=[r.slice()])}},mousemove:function(i){var u=this.group.transformCoordToLocal(i.offsetX,i.offsetY);if(function(o,i,r){if(o._brushType&&!function(o,i,r){var s=o._zr;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}(o,i.offsetX,i.offsetY)){var s=o._zr,u=o._covers,f=tA(o,i,r);if(!o._dragging)for(var d=0;d=0&&(p[d[v].depth]=new Ln(d[v],this,s));if(f&&u)return GD(f,u,this,!0,function(y,b){y.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,x=M.getData().getItemLayout(S);if(x){var P=M.levelModels[x.depth];P&&(w.parentModel=P)}return w}),b.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,T=M.getGraph().getEdgeByIndex(S).node1.getLayout();if(T){var I=M.levelModels[T.depth];I&&(w.parentModel=I)}return w})}).data},i.prototype.setNodePosition=function(r,s){var u=this.option.data[r];u.localX=s[0],u.localY=s[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(r,s,u){function f(w){return isNaN(w)||null==w}if("edge"===u){var d=this.getDataParams(r,u),p=d.data,v=d.value;return Ei("nameValue",{name:p.source+" -- "+p.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(r).getLayout().value,b=this.getDataParams(r,u).data.name;return Ei("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(r,s){var u=o.prototype.getDataParams.call(this,r,s);if(null==u.value&&"node"===s){var d=this.getGraph().getNodeByIndex(r).getLayout().value;u.value=d}return u},i.type="series.sankey",i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},i}(ir);function Aj(o,i){o.eachSeriesByType("sankey",function(r){var s=r.get("nodeWidth"),u=r.get("nodeGap"),f=function(o,i){return pi(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i);r.layoutInfo=f;var d=f.width,p=f.height,v=r.getGraph(),g=v.nodes,m=v.edges;!function(o){q(o,function(i){var r=Cl(i.outEdges,Qw),s=Cl(i.inEdges,Qw),u=i.getValue()||0,f=Math.max(r,s,u);i.setLayout({value:f},!0)})}(g),function(o,i,r,s,u,f,d,p,v){(function(o,i,r,s,u,f,d){for(var p=[],v=[],g=[],m=[],y=0,b=0;b=0;T&&x.depth>w&&(w=x.depth),M.setLayout({depth:T?x.depth:y},!0),M.setLayout("vertical"===f?{dy:r}:{dx:r},!0);for(var P=0;Py-1?w:y-1;d&&"left"!==d&&function(o,i,r,s){if("right"===i){for(var u=[],f=o,d=0;f.length;){for(var p=0;p0;f--)ky(p,v*=.99,d),bl(p,u,r,s,d),FN(p,v,d),bl(p,u,r,s,d)}(o,i,f,u,s,d,p),function(o,i){var r="vertical"===i?"x":"y";q(o,function(s){s.outEdges.sort(function(u,f){return u.node2.getLayout()[r]-f.node2.getLayout()[r]}),s.inEdges.sort(function(u,f){return u.node1.getLayout()[r]-f.node1.getLayout()[r]})}),q(o,function(s){var u=0,f=0;q(s.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(s.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(o,p)}(g,m,s,u,d,p,0!==sr(g,function(M){return 0===M.getLayout().value}).length?0:r.get("layoutIterations"),r.get("orient"),r.get("nodeAlign"))})}function ON(o){var i=o.hostGraph.data.getRawDataItem(o.dataIndex);return null!=i.depth&&i.depth>=0}function bl(o,i,r,s,u){var f="vertical"===u?"x":"y";q(o,function(d){d.sort(function(M,x){return M.getLayout()[f]-x.getLayout()[f]});for(var p,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",w=0;w0&&(p=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]+v.getLayout()[b]+i;if((g=m-i-("vertical"===u?s:r))>0)for(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0),m=p,w=y-2;w>=0;--w)(g=(v=d[w]).getLayout()[f]+v.getLayout()[b]+i-m)>0&&(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]})}function ky(o,i,r){q(o.slice().reverse(),function(s){q(s,function(u){if(u.outEdges.length){var f=Cl(u.outEdges,RN,r)/Cl(u.outEdges,Qw);if(isNaN(f)){var d=u.outEdges.length;f=d?Cl(u.outEdges,LN,r)/d:0}if("vertical"===r){var p=u.getLayout().x+(f-lc(u,r))*i;u.setLayout({x:p},!0)}else{var v=u.getLayout().y+(f-lc(u,r))*i;u.setLayout({y:v},!0)}}})})}function RN(o,i){return lc(o.node2,i)*o.getValue()}function LN(o,i){return lc(o.node2,i)}function Fj(o,i){return lc(o.node1,i)*o.getValue()}function Mr(o,i){return lc(o.node1,i)}function lc(o,i){return"vertical"===i?o.getLayout().x+o.getLayout().dx/2:o.getLayout().y+o.getLayout().dy/2}function Qw(o){return o.getValue()}function Cl(o,i,r){for(var s=0,u=o.length,f=-1;++ff&&(f=p)}),q(s,function(d){var v=new $i({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:i.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var $w=function(){function o(){}return o.prototype.getInitialData=function(i,r){var s,v,u=r.getComponent("xAxis",this.get("xAxisIndex")),f=r.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),p=f.get("type");"category"===d?(i.layout="horizontal",s=u.getOrdinalMeta(),v=!0):"category"===p?(i.layout="vertical",s=f.getOrdinalMeta(),v=!0):i.layout=i.layout||"horizontal";var g=["x","y"],m="horizontal"===i.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],w=[u,f],S=w[m].get("type"),M=w[1-m].get("type"),x=i.data;if(x&&v){var T=[];q(x,function(R,B){var V;ke(R)?(V=R.slice(),R.unshift(B)):ke(R.value)?(V=R.value.slice(),R.value.unshift(B)):V=R,T.push(V)}),i.data=T}var P=this.defaultValueDimensions,I=[{name:y,type:UC(S),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:UC(M),dimsDef:P.slice()}];return Hv(this,{coordDimensions:I,dimensionsCount:P.length+1,encodeDefaulter:bt($d,I,this)})},o.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},o}(),VN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return he(i,o),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},i}(ir);br(VN,$w,!0);var Jw=VN,BN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this.group,p=this._data;this._data||d.removeAll();var v="horizontal"===r.get("layout")?1:0;f.diff(p).add(function(g){if(f.hasValue(g)){var y=HN(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=p.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?My(b,y,f,g):y=HN(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=p.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},i.prototype.remove=function(r){var s=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&s.remove(f)})},i.type="boxplot",i}(Vn),Nj=function(){},Vj=function(o){function i(r){var s=o.call(this,r)||this;return s.type="boxplotBoxPath",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Nj},i.prototype.buildPath=function(r,s){var u=s.points,f=0;for(r.moveTo(u[f][0],u[f][1]),f++;f<4;f++)r.lineTo(u[f][0],u[f][1]);for(r.closePath();fM)&&s.push([T,I])}}return{boxData:r,outliers:s}}(r.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},Gj=["color","borderColor"],vA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeClipPath(),this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},i.prototype.incrementalPrepareRender=function(r,s,u){this._clear(),this._updateDrawMode(r)},i.prototype.incrementalRender=function(r,s,u,f){this._isLargeDraw?this._incrementalRenderLarge(r,s):this._incrementalRenderNormal(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r){var s=r.getData(),u=this._data,f=this.group,d=s.getLayout("isSimpleBox"),p=r.get("clip",!0),v=r.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),s.diff(u).add(function(m){if(s.hasValue(m)){var y=s.getItemLayout(m);if(p&&jN(g,y))return;var b=t1(y,0,!0);Or(b,{shape:{points:y.ends}},r,m),gA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(s.hasValue(m)){var w=s.getItemLayout(m);p&&jN(g,w)?f.remove(b):(b?un(b,{shape:{points:w.ends}},r,m):b=t1(w),gA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=s},i.prototype._renderLarge=function(r){this._clear(),uc(r,this.group);var s=r.get("clip",!0)?FT(r.coordinateSystem,!1,r):null;s?this.group.setClipPath(s):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(r,s){for(var d,u=s.getData(),f=u.getLayout("isSimpleBox");null!=(d=r.next());){var v=t1(u.getItemLayout(d));gA(v,u,d,f),v.incremental=!0,this.group.add(v)}},i.prototype._incrementalRenderLarge=function(r,s){uc(s,this.group,!0)},i.prototype.remove=function(r){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Vn),jj=function(){},GN=function(o){function i(r){var s=o.call(this,r)||this;return s.type="normalCandlestickBox",s}return he(i,o),i.prototype.getDefaultShape=function(){return new jj},i.prototype.buildPath=function(r,s){var u=s.points;this.__simpleBox?(r.moveTo(u[4][0],u[4][1]),r.lineTo(u[6][0],u[6][1])):(r.moveTo(u[0][0],u[0][1]),r.lineTo(u[1][0],u[1][1]),r.lineTo(u[2][0],u[2][1]),r.lineTo(u[3][0],u[3][1]),r.closePath(),r.moveTo(u[4][0],u[4][1]),r.lineTo(u[5][0],u[5][1]),r.moveTo(u[6][0],u[6][1]),r.lineTo(u[7][0],u[7][1]))},i}(an);function t1(o,i,r){var s=o.ends;return new GN({shape:{points:r?WN(s,o):s},z2:100})}function jN(o,i){for(var r=!0,s=0;s0?"borderColor":"borderColor0"])||r.get(["itemStyle",o>0?"color":"color0"]),f=r.getModel("itemStyle").getItemStyle(Gj);i.useStyle(f),i.style.fill=null,i.style.stroke=u}var Vh=vA,qN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return he(i,o),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(r,s,u){var f=s.getItemLayout(r);return f&&u.rect(f.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},i}(ir);br(qN,$w,!0);var Yj=qN;function qj(o){!o||!ke(o.series)||q(o.series,function(i){pt(i)&&"k"===i.type&&(i.type="candlestick")})}var Xj=["itemStyle","borderColor"],Ty=["itemStyle","borderColor0"],Dy=["itemStyle","color"],XN=["itemStyle","color0"],Zj={seriesType:"candlestick",plan:mv(),performRawSeries:!0,reset:function(i,r){function s(d,p){return p.get(d>0?Dy:XN)}function u(d,p){return p.get(d>0?Xj:Ty)}if(!r.isSeriesFiltered(i))return!i.pipelineContext.large&&{progress:function(p,v){for(var g;null!=(g=p.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=s(y,m),b.stroke=u(y,m)||b.fill,Me(v.ensureUniqueItemVisual(g,"style"),b)}}}}},Kj="undefined"!=typeof Float32Array?Float32Array:Array;function qo(o,i,r,s,u){return r>s?-1:r0?o.get(u,i-1)<=s?1:-1:1}var QN={seriesType:"candlestick",plan:mv(),reset:function(i){var r=i.coordinateSystem,s=i.getData(),u=function(o,i){var s,r=o.getBaseAxis(),u="category"===r.type?r.getBandWidth():(s=r.getExtent(),Math.abs(s[1]-s[0])/i.count()),f=Ae(Yt(o.get("barMaxWidth"),u),u),d=Ae(Yt(o.get("barMinWidth"),1),u),p=o.get("barWidth");return null!=p?Ae(p,u):Math.max(Math.min(u/2,f),d)}(i,s),p=["x","y"],v=s.mapDimension(p[0]),g=s.mapDimensionsAll(p[1]),m=g[0],y=g[1],b=g[2],w=g[3];if(s.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(null==v||g.length<4))return{progress:i.pipelineContext.large?function(x,T){for(var R,G,P=new Kj(4*x.count),I=0,B=[],V=[];null!=(G=x.next());){var W=T.get(v,G),K=T.get(m,G),J=T.get(y,G),Z=T.get(b,G),ne=T.get(w,G);isNaN(W)||isNaN(Z)||isNaN(ne)?(P[I++]=NaN,I+=3):(P[I++]=qo(T,G,K,J,y),B[0]=W,B[1]=Z,R=r.dataToPoint(B,null,V),P[I++]=R?R[0]:NaN,P[I++]=R?R[1]:NaN,B[1]=ne,R=r.dataToPoint(B,null,V),P[I++]=R?R[1]:NaN)}T.setLayout("largePoints",P)}:function(x,T){for(var P;null!=(P=x.next());){var I=T.get(v,P),R=T.get(m,P),B=T.get(y,P),V=T.get(b,P),G=T.get(w,P),W=Math.min(R,B),K=Math.max(R,B),J=le(W,I),Z=le(K,I),ne=le(V,I),te=le(G,I),se=[];de(se,Z,0),de(se,J,1),se.push(me(te),me(Z),me(ne),me(J)),T.setItemLayout(P,{sign:qo(T,P,R,B,y),initBaseline:R>B?Z[1]:J[1],ends:se,brushRect:(Ce=V,Te=G,ze=I,Qe=void 0,mt=void 0,Qe=le(Ce,ze),mt=le(Te,ze),Qe[0]-=u/2,mt[0]-=u/2,{x:Qe[0],y:Qe[1],width:u,height:mt[1]-Qe[1]})})}var Ce,Te,ze,Qe,mt;function le(Ce,Te){var ze=[];return ze[0]=Te,ze[1]=Ce,isNaN(Te)||isNaN(Ce)?[NaN,NaN]:r.dataToPoint(ze)}function de(Ce,Te,ze){var Qe=Te.slice(),mt=Te.slice();Qe[0]=Rm(Qe[0]+u/2,1,!1),mt[0]=Rm(mt[0]-u/2,1,!0),ze?Ce.push(Qe,mt):Ce.push(mt,Qe)}function me(Ce){return Ce[0]=Rm(Ce[0],1),Ce}}}}};function $N(o,i){var r=i.rippleEffectColor||i.color;o.eachChild(function(s){s.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?r:null,fill:"fill"===i.brushType?r:null}})})}var Jj=function(o){function i(r,s){var u=o.call(this)||this,f=new z_(r,s),d=new ut;return u.add(f),u.add(d),u.updateData(r,s),u}return he(i,o),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(r){for(var s=r.symbolType,u=r.color,f=this.childAt(1),d=0;d<3;d++){var p=ii(s,-1,-1,2,2,u);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var v=-d/3*r.period+r.effectOffset;p.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(v).start(),p.animateStyle(!0).when(r.period,{opacity:0}).delay(v).start(),f.add(p)}$N(f,r)},i.prototype.updateEffectAnimation=function(r){for(var s=this._effectCfg,u=this.childAt(1),f=["symbolType","period","rippleScale"],d=0;d0&&(v=this._getLineLength(f)/m*1e3),(v!==this._period||g!==this._loop)&&(f.stopAnimation(),v>0)){var b=void 0;b="function"==typeof y?y(u):y,f.__t>0&&(b=-v*f.__t),f.__t=0;var w=f.animate("",g).when(v,{__t:1}).delay(b).during(function(){d._updateSymbolPosition(f)});g||w.done(function(){d.remove(f)}),w.start()}this._period=v,this._loop=g}},i.prototype._getLineLength=function(r){return Rl(r.__p1,r.__cp1)+Rl(r.__cp1,r.__p2)},i.prototype._updateAnimationPoints=function(r,s){r.__p1=s[0],r.__p2=s[1],r.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},i.prototype.updateData=function(r,s,u){this.childAt(0).updateData(r,s,u),this._updateEffectSymbol(r,s)},i.prototype._updateSymbolPosition=function(r){var s=r.__p1,u=r.__p2,f=r.__cp1,d=r.__t,p=[r.x,r.y],v=p.slice(),g=Hr,m=Sk;p[0]=g(s[0],f[0],u[0],d),p[1]=g(s[1],f[1],u[1],d);var y=m(s[0],f[0],u[0],d),b=m(s[1],f[1],u[1],d);r.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==r.__lastT&&r.__lastT=0&&!(f[v]<=s);v--);v=Math.min(v,d-2)}else{for(v=p;vs);v++);v=Math.min(v-1,d-2)}var m=(s-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];r.x=y[0]*(1-m)+m*b[0],r.y=y[1]*(1-m)+m*b[1],r.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=s,r.ignore=!1}},i}(_A),r7=function(){this.polyline=!1,this.curveness=0,this.segs=[]},o1=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new r7},i.prototype.buildPath=function(r,s){var u=s.segs,f=s.curveness;if(s.polyline)for(var d=0;d0){r.moveTo(u[d++],u[d++]);for(var v=1;v0?r.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):r.lineTo(y,b)}},i.prototype.findDataIndex=function(r,s){var u=this.shape,f=u.segs,d=u.curveness,p=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],w=1;w0){if(gO(y,b,(y+S)/2-(b-M)*d,(b+M)/2-(S-y)*d,S,M,p,r,s))return v}else if(zu(y,b,S,M,p,r,s))return v;v++}return-1},i}(an),r3=function(){function o(){this.group=new ut}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i){this.group.removeAll();var r=new o1({rectHover:!0,cursor:"default"});r.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(r,i),this.group.add(r),this._incremental=null},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>5e5?(this._incremental||(this._incremental=new A0({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r){var s=new o1;s.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(s,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=i.start,this.group.add(s))},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._setCommon=function(i,r,s){var u=r.hostModel;i.setShape({polyline:u.get("polyline"),curveness:u.get(["lineStyle","curveness"])}),i.useStyle(u.getModel("lineStyle").getLineStyle()),i.style.strokeNoScale=!0;var f=r.getVisual("style");if(f&&f.stroke&&i.setStyle("stroke",f.stroke),i.setStyle("fill",null),!s){var d=gt(i);d.seriesIndex=u.seriesIndex,i.on("mousemove",function(p){d.dataIndex=null;var v=i.findDataIndex(p.offsetX,p.offsetY);v>0&&(d.dataIndex=v+i.__startIndex)})}},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),i3={seriesType:"lines",plan:mv(),reset:function(i){var r=i.coordinateSystem,s=i.get("polyline"),u=i.pipelineContext.large;return{progress:function(d,p){var v=[];if(u){var g=void 0,m=d.end-d.start;if(s){for(var y=0,b=d.start;b ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?1e4:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?2e4:this.get("progressiveThreshold"):r},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},i}(ir);function u1(o){return o instanceof Array||(o=[o,o]),o}var u7={seriesType:"lines",reset:function(i){var r=u1(i.get("symbol")),s=u1(i.get("symbolSize")),u=i.getData();return u.setVisual("fromSymbol",r&&r[0]),u.setVisual("toSymbol",r&&r[1]),u.setVisual("fromSymbolSize",s&&s[0]),u.setVisual("toSymbolSize",s&&s[1]),{dataEach:u.hasItemOption?function(d,p){var v=d.getItemModel(p),g=u1(v.getShallow("symbol",!0)),m=u1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(p,"fromSymbol",g[0]),g[1]&&d.setItemVisual(p,"toSymbol",g[1]),m[0]&&d.setItemVisual(p,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(p,"toSymbolSize",m[1])}:null}}},h7=function(){function o(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=Tc();this.canvas=i}return o.prototype.update=function(i,r,s,u,f,d){var p=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),w=i.length;y.width=r,y.height=s;for(var S=0;S0){var ne=d(I)?v:g;I>0&&(I=I*J+W),B[V++]=ne[Z],B[V++]=ne[Z+1],B[V++]=ne[Z+2],B[V++]=ne[Z+3]*I*256}else V+=4}return b.putImageData(R,0,0),y},o.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=Tc()),r=this.pointSize+this.blurSize,s=2*r;i.width=s,i.height=s;var u=i.getContext("2d");return u.clearRect(0,0,s,s),u.shadowOffsetX=s,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-r,r,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),i},o.prototype._getGradient=function(i,r){for(var s=this._gradientPixels,u=s[r]||(s[r]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,p=0;p<256;p++)i[r](p/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},o}();function yA(o){var i=o.dimensions;return"lng"===i[0]&&"lat"===i[1]}var m7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f;s.eachComponent("visualMap",function(p){p.eachTargetSeries(function(v){v===r&&(f=p)})}),this.group.removeAll(),this._incrementalDisplayable=null;var d=r.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(r,u,0,r.getData().count()):yA(d)&&this._renderOnGeo(d,r,f,u)},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll()},i.prototype.incrementalRender=function(r,s,u,f){var d=s.coordinateSystem;d&&(yA(d)?this.render(s,u,f):this._renderOnCartesianAndCalendar(s,f,r.start,r.end,!0))},i.prototype._renderOnCartesianAndCalendar=function(r,s,u,f,d){var v,g,m,y,p=r.coordinateSystem;if(su(p,"cartesian2d")){var b=p.getAxis("x"),w=p.getAxis("y");v=b.getBandWidth(),g=w.getBandWidth(),m=b.scale.getExtent(),y=w.scale.getExtent()}for(var S=this.group,M=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),T=r.getModel(["blur","itemStyle"]).getItemStyle(),P=r.getModel(["select","itemStyle"]).getItemStyle(),I=Fi(r),R=r.get(["emphasis","focus"]),B=r.get(["emphasis","blurScope"]),V=su(p,"cartesian2d")?[M.mapDimension("x"),M.mapDimension("y"),M.mapDimension("value")]:[M.mapDimension("time"),M.mapDimension("value")],G=u;Gm[1]||Zy[1])continue;var ne=p.dataToPoint([J,Z]);W=new Bt({shape:{x:Math.floor(Math.round(ne[0])-v/2),y:Math.floor(Math.round(ne[1])-g/2),width:Math.ceil(v),height:Math.ceil(g)},style:K})}else{if(isNaN(M.get(V[1],G)))continue;W=new Bt({z2:1,shape:p.dataToRect([M.get(V[0],G)]).contentShape,style:K})}var te=M.getItemModel(G);if(M.hasItemOption){var se=te.getModel("emphasis");x=se.getModel("itemStyle").getItemStyle(),T=te.getModel(["blur","itemStyle"]).getItemStyle(),P=te.getModel(["select","itemStyle"]).getItemStyle(),R=se.get("focus"),B=se.get("blurScope"),I=Fi(te)}var le=r.getRawValue(G),de="-";le&&null!=le[2]&&(de=le[2]+""),Li(W,I,{labelFetcher:r,labelDataIndex:G,defaultOpacity:K.opacity,defaultText:de}),W.ensureState("emphasis").style=x,W.ensureState("blur").style=T,W.ensureState("select").style=P,Un(W,R,B),W.incremental=d,d&&(W.states.emphasis.hoverLayer=!0),S.add(W),M.setItemGraphicEl(G,W)}},i.prototype._renderOnGeo=function(r,s,u,f){var d=u.targetVisuals.inRange,p=u.targetVisuals.outOfRange,v=s.getData(),g=this._hmLayer||this._hmLayer||new h7;g.blurSize=s.get("blurSize"),g.pointSize=s.get("pointSize"),g.minOpacity=s.get("minOpacity"),g.maxOpacity=s.get("maxOpacity");var m=r.getViewRect().clone(),y=r.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),w=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),M=Math.min(m.height+m.y,f.getHeight()),x=S-b,T=M-w,P=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],I=v.mapArray(P,function(G,W,K){var J=r.dataToPoint([G,W]);return J[0]-=b,J[1]-=w,J.push(K),J}),R=u.getExtent(),B="visualMap.continuous"===u.type?function(o,i){var r=o[1]-o[0];return i=[(i[0]-o[0])/r,(i[1]-o[0])/r],function(s){return s>=i[0]&&s<=i[1]}}(R,u.option.range):function(o,i,r){var s=o[1]-o[0],u=(i=Ie(i,function(d){return{interval:[(d.interval[0]-o[0])/s,(d.interval[1]-o[0])/s]}})).length,f=0;return function(d){var p;for(p=f;p=0;p--){var v;if((v=i[p].interval)[0]<=d&&d<=v[1]){f=p;break}}return p>=0&&p0?1:m<0?-1:0})(r,f,u,s,b),function(o,i,r,s,u,f,d,p,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(r[y.wh]),w=o.getItemVisual(i,"symbolSize");(S=ke(w)?w.slice():null==w?["100%","100%"]:[w,w])[y.index]=Ae(S[y.index],b),S[m.index]=Ae(S[m.index],s?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/p,S[1]/p])[m.index]*=(v.isHorizontal?-1:1)*d}(o,i,u,f,0,b.boundingLength,b.pxSign,m,s,b),function(o,i,r,s,u){var f=o.get(o3)||0;f&&(c1.attr({scaleX:i[0],scaleY:i[1],rotation:r}),c1.updateTransform(),f/=c1.getLineScale(),f*=i[s.valueDim.index]),u.valueLineWidth=f}(r,b.symbolScale,g,s,b);var w=b.symbolSize,S=r.get("symbolOffset");return ke(S)&&(S=[Ae(S[0],w[0]),Ae(S[1],w[1])]),function(o,i,r,s,u,f,d,p,v,g,m,y){var b=m.categoryDim,w=m.valueDim,S=y.pxSign,M=Math.max(i[w.index]+p,0),x=M;if(s){var T=Math.abs(v),P=jr(o.get("symbolMargin"),"15%")+"",I=!1;P.lastIndexOf("!")===P.length-1&&(I=!0,P=P.slice(0,P.length-1));var R=Ae(P,i[w.index]),B=Math.max(M+2*R,0),V=I?0:2*R,G=Kc(s),W=G?s:m3((T+V)/B);B=M+2*(R=(T-W*M)/2/(I?W:W-1)),V=I?0:2*R,!G&&"fixed"!==s&&(W=g?m3((Math.abs(g)+V)/B):0),x=W*B-V,y.repeatTimes=W,y.symbolMargin=R}var J=S*(x/2),Z=y.pathPosition=[];Z[b.index]=r[b.wh]/2,Z[w.index]="start"===d?J:"end"===d?v-J:v/2,f&&(Z[0]+=f[0],Z[1]+=f[1]);var ne=y.bundlePosition=[];ne[b.index]=r[b.xy],ne[w.index]=r[w.xy];var te=y.barRectShape=Me({},r);te[w.wh]=S*Math.max(Math.abs(r[w.wh]),Math.abs(Z[w.index]+J)),te[b.wh]=r[b.wh];var se=y.clipShape={};se[b.xy]=-r[b.xy],se[b.wh]=m.ecSize[b.wh],se[w.xy]=0,se[w.wh]=r[w.wh]}(r,w,u,f,0,S,p,b.valueLineWidth,b.boundingLength,b.repeatCutLength,s,b),b}function CA(o,i){return o.toGlobalCoord(o.dataToCoord(o.scale.parse(i)))}function u3(o){var i=o.symbolPatternSize,r=ii(o.symbolType,-i/2,-i/2,i,i);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function f1(o,i,r,s){var u=o.__pictorialBundle,p=r.pathPosition,v=i.valueDim,g=r.repeatTimes||0,m=0,y=r.symbolSize[i.valueDim.index]+r.valueLineWidth+2*r.symbolMargin;for(wA(o,function(M){M.__pictorialAnimationIndex=m,M.__pictorialRepeatTimes=g,m0:T<0)&&(P=g-1-M),x[v.index]=y*(P-g/2+.5)+p[v.index],{x:x[0],y:x[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function c3(o,i,r,s){var u=o.__pictorialBundle,f=o.__pictorialMainPath;f?Hh(f,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,s):(f=o.__pictorialMainPath=u3(r),u.add(f),Hh(f,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,s))}function f3(o,i,r){var s=Me({},i.barRectShape),u=o.__pictorialBarRect;u?Hh(u,null,{shape:s},i,r):(u=o.__pictorialBarRect=new Bt({z2:2,shape:s,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.add(u))}function d3(o,i,r,s){if(r.symbolClip){var u=o.__pictorialClipPath,f=Me({},r.clipShape),d=i.valueDim,p=r.animationModel,v=r.dataIndex;if(u)un(u,{shape:f},p,v);else{f[d.wh]=0,u=new Bt({shape:f}),o.__pictorialBundle.setClipPath(u),o.__pictorialClipPath=u;var g={};g[d.wh]=r.clipShape[d.wh],F[s?"updateProps":"initProps"](u,{shape:g},p,v)}}}function d1(o,i){var r=o.getItemModel(i);return r.getAnimationDelayParams=h3,r.isAnimationEnabled=M7,r}function h3(o){return{index:o.__pictorialAnimationIndex,count:o.__pictorialRepeatTimes}}function M7(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Bh(o,i,r,s){var u=new ut,f=new ut;return u.add(f),u.__pictorialBundle=f,f.x=r.bundlePosition[0],f.y=r.bundlePosition[1],r.symbolRepeat?f1(u,i,r):c3(u,0,r),f3(u,r,s),d3(u,i,r,s),u.__pictorialShapeStr=v3(o,r),u.__pictorialSymbolMeta=r,u}function p3(o,i,r,s){var u=s.__pictorialBarRect;u&&u.removeTextContent();var f=[];wA(s,function(d){f.push(d)}),s.__pictorialMainPath&&f.push(s.__pictorialMainPath),s.__pictorialClipPath&&(r=null),q(f,function(d){qu(d,{scaleX:0,scaleY:0},r,i,function(){s.parent&&s.parent.remove(s)})}),o.setItemGraphicEl(i,null)}function v3(o,i){return[o.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function wA(o,i,r){q(o.__pictorialBundle.children(),function(s){s!==o.__pictorialBarRect&&i.call(r,s)})}function Hh(o,i,r,s,u,f){i&&o.attr(i),s.symbolClip&&!u?r&&o.attr(r):r&&F[u?"updateProps":"initProps"](o,r,s.animationModel,s.dataIndex,f)}function g3(o,i,r){var s=r.dataIndex,u=r.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),p=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");wA(o,function(M){if(M instanceof di){var x=M.style;M.useStyle(Me({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},r.style))}else M.useStyle(r.style);var T=M.ensureState("emphasis");T.style=d,b&&(T.scaleX=1.1*M.scaleX,T.scaleY=1.1*M.scaleY),M.ensureState("blur").style=p,M.ensureState("select").style=v,g&&(M.cursor=g),M.z2=r.z2});var w=i.valueDim.posDesc[+(r.boundingLength>0)];Li(o.__pictorialBarRect,Fi(u),{labelFetcher:i.seriesModel,labelDataIndex:s,defaultText:gh(i.seriesModel.getData(),s),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:w}),Un(o,m,y)}function m3(o){var i=Math.round(o);return Math.abs(o-i)<1e-4?i:Math.ceil(o)}var Qa=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group,d=r.getData(),p=this._data,v=r.coordinateSystem,m=v.getBaseAxis().isHorizontal(),y=v.master.getRect(),b={ecSize:{width:u.getWidth(),height:u.getHeight()},seriesModel:r,coordSys:v,coordSysExtent:[[y.x,y.x+y.width],[y.y,y.y+y.height]],isHorizontal:m,valueDim:C7[+m],categoryDim:C7[1-+m]};return d.diff(p).add(function(w){if(d.hasValue(w)){var S=d1(d,w),M=bA(d,w,S,b),x=Bh(d,b,M);d.setItemGraphicEl(w,x),f.add(x),g3(x,b,M)}}).update(function(w,S){var M=p.getItemGraphicEl(S);if(d.hasValue(w)){var x=d1(d,w),T=bA(d,w,x,b),P=v3(d,T);M&&P!==M.__pictorialShapeStr&&(f.remove(M),d.setItemGraphicEl(w,null),M=null),M?function(o,i,r){un(o.__pictorialBundle,{x:r.bundlePosition[0],y:r.bundlePosition[1]},r.animationModel,r.dataIndex),r.symbolRepeat?f1(o,i,r,!0):c3(o,0,r,!0),f3(o,r,!0),d3(o,i,r,!0)}(M,b,T):M=Bh(d,b,T,!0),d.setItemGraphicEl(w,M),M.__pictorialSymbolMeta=T,f.add(M),g3(M,b,T)}else f.remove(M)}).remove(function(w){var S=p.getItemGraphicEl(w);S&&p3(p,w,S.__pictorialSymbolMeta.animationModel,S)}).execute(),this._data=d,this.group},i.prototype.remove=function(r,s){var u=this.group,f=this._data;r.get("animation")?f&&f.eachItemGraphicEl(function(d){p3(f,gt(d).dataIndex,r,d)}):u.removeAll()},i.type="pictorialBar",i}(Vn),h1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return he(i,o),i.prototype.getInitialData=function(r){return r.stack=null,o.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=Ql(pw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(pw),A7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._layers=[],r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this,p=this.group,v=r.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(x){return x.name}p.x=0,p.y=m.y+y[0];var w=new ec(this._layersSeries||[],v,b,b),S=[];function M(x,T,P){var I=d._layers;if("remove"!==x){for(var V,R=[],B=[],G=v[T].indices,W=0;Wf&&(f=p),s.push(p)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(p),g=v.y0,m=r/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):ne&&"center"!==ne?"left"===ne?(J=d.r0+Z,v>Math.PI/2&&(ne="right")):"right"===ne&&(J=d.r-Z,v>Math.PI/2&&(ne="left")):(J=(d.r+d.r0)/2,ne="center"),R.style.align=ne,R.style.verticalAlign=x(P,"verticalAlign")||"middle",R.x=J*g+d.cx,R.y=J*m+d.cy;var te=x(P,"rotate"),se=0;"radial"===te?(se=-v)<-Math.PI/2&&(se+=Math.PI):"tangential"===te?(se=Math.PI/2-v)>Math.PI/2?se-=Math.PI:se<-Math.PI/2&&(se+=Math.PI):"number"==typeof te&&(se=te*Math.PI/180),R.rotation=se}),b.dirtyStyle()},i}(No),MA="sunburstRootToNode",w3="sunburstHighlight",R7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this;this.seriesModel=r,this.api=u,this.ecModel=s;var P,I,p=r.getData(),v=p.tree.root,g=r.getViewRoot(),m=this.group,y=r.get("renderLabelForZeroData"),b=[];g.eachNode(function(P){b.push(P)}),function(P,I){function R(V){return V.getId()}function B(V,G){!function(P,I){if(!y&&P&&!P.getValue()&&(P=null),P!==v&&I!==v)if(I&&I.piece)P?(I.piece.updateData(!1,P,r,s,u),p.setItemGraphicEl(P.dataIndex,I.piece)):function(P){!P||P.piece&&(m.remove(P.piece),P.piece=null)}(I);else if(P){var R=new C3(P,r,s,u);m.add(R),p.setItemGraphicEl(P.dataIndex,R)}}(null==V?null:P[V],null==G?null:I[G])}0===P.length&&0===I.length||new ec(I,P,R,R).add(B).update(B).remove(bt(B,null)).execute()}(b,this._oldChildren||[]),P=v,(I=g).depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,P,r,s,u):(d.virtualPiece=new C3(P,r,s,u),m.add(d.virtualPiece)),I.piece.off("click"),d.virtualPiece.on("click",function(R){d._rootToNode(I.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null),this._initEvents(),this._oldChildren=b},i.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(s){var u=!1;r.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===s.target){var p=d.getModel().get("nodeClick");if("rootToNode"===p)r._rootToNode(d);else if("link"===p){var v=d.getModel(),g=v.get("link");g&&H0(g,v.get("target",!0)||"_blank")}u=!0}})})},i.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:MA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},i.prototype.containPoint=function(r,s){var f=s.getData().getItemLayout(0);if(f){var d=r[0]-f.cx,p=r[1]-f.cy,v=Math.sqrt(d*d+p*p);return v<=f.r&&v>=f.r0}},i.type="sunburst",i}(Vn);function M3(o){var i=0;q(o.children,function(s){M3(s);var u=s.value;ke(u)&&(u=u[0]),i+=u});var r=o.value;ke(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),ke(o.value)?o.value[0]=r:o.value=r}var L7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};M3(u);var f=Ie(r.levels||[],function(v){return new Ln(v,this,s)},this),d=gF.createTree(u,this,function(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=Dw(u,this),s},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){mD(this)},i.type="series.sunburst",i.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},i}(ir),x3=Math.PI/180;function xA(o,i,r){i.eachSeriesByType(o,function(s){var u=s.get("center"),f=s.get("radius");ke(f)||(f=[0,f]),ke(u)||(u=[u,u]);var d=r.getWidth(),p=r.getHeight(),v=Math.min(d,p),g=Ae(u[0],d),m=Ae(u[1],p),y=Ae(f[0],v/2),b=Ae(f[1],v/2),w=-s.get("startAngle")*x3,S=s.get("minAngle")*x3,M=s.getData().tree.root,x=s.getViewRoot(),T=x.depth,P=s.get("sort");null!=P&&T3(x,P);var I=0;q(x.children,function(de){!isNaN(de.getValue())&&I++});var R=x.getValue(),B=Math.PI/(R||I)*2,V=x.depth>0,W=(b-y)/(x.height-(V?-1:1)||1),K=s.get("clockwise"),J=s.get("stillShowZeroSum"),Z=K?1:-1;if(V){var le=2*Math.PI;M.setLayout({angle:le,startAngle:w,endAngle:w+le,clockwise:K,cx:g,cy:m,r0:y,r:y+W})}!function de(pe,me){if(pe){var Ce=me;if(pe!==M){var Te=pe.getValue(),ze=0===R&&J?B:Te*B;ze1;)d=d.parentNode;var p=u.getColorFromPalette(d.name||d.dataIndex+"",i);return s.depth>1&&"string"==typeof p&&(p=PP(p,(s.depth-1)/(f-1)*.5)),p}(d,s,f.root.height)),Me(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}function JZ(o,i){return i=i||[0,0],Ie(["x","y"],function(r,s){var u=this.getAxis(r),f=i[s],d=o[s]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function $e(o,i){return i=i||[0,0],Ie([0,1],function(r){var s=i[r],u=o[r]/2,f=[],d=[];return f[r]=s-u,d[r]=s+u,f[1-r]=d[1-r]=i[1-r],Math.abs(this.dataToPoint(f)[r]-this.dataToPoint(d)[r])},this)}function A3(o,i){var r=this.getAxis(),s=i instanceof Array?i[0]:i,u=(o instanceof Array?o[0]:o)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(s-u)-r.dataToCoord(s+u))}function yi(o,i){return i=i||[0,0],Ie(["Radius","Angle"],function(r,s){var f=this["get"+r+"Axis"](),d=i[s],p=o[s]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-p)-f.dataToCoord(d+p));return"Angle"===r&&(v=v*Math.PI/180),v},this)}function Ns(o,i,r,s){return o&&(o.legacy||!1!==o.legacy&&!r&&!s&&"tspan"!==i&&("text"===i||Ke(o,"text")))}function TA(o,i,r){var u,f,d,s=o;if("text"===i)d=s;else{d={},Ke(s,"text")&&(d.text=s.text),Ke(s,"rich")&&(d.rich=s.rich),Ke(s,"textFill")&&(d.fill=s.textFill),Ke(s,"textStroke")&&(d.stroke=s.textStroke),f={type:"text",style:d,silent:!0},u={};var p=Ke(s,"textPosition");r?u.position=p?s.textPosition:"inside":p&&(u.position=s.textPosition),Ke(s,"textPosition")&&(u.position=s.textPosition),Ke(s,"textOffset")&&(u.offset=s.textOffset),Ke(s,"textRotation")&&(u.rotation=s.textRotation),Ke(s,"textDistance")&&(u.distance=s.textDistance)}return P3(d,o),q(d.rich,function(v){P3(v,v)}),{textConfig:u,textContent:f}}function P3(o,i){!i||(i.font=i.textFont||i.font,Ke(i,"textStrokeWidth")&&(o.lineWidth=i.textStrokeWidth),Ke(i,"textAlign")&&(o.align=i.textAlign),Ke(i,"textVerticalAlign")&&(o.verticalAlign=i.textVerticalAlign),Ke(i,"textLineHeight")&&(o.lineHeight=i.textLineHeight),Ke(i,"textWidth")&&(o.width=i.textWidth),Ke(i,"textHeight")&&(o.height=i.textHeight),Ke(i,"textBackgroundColor")&&(o.backgroundColor=i.textBackgroundColor),Ke(i,"textPadding")&&(o.padding=i.textPadding),Ke(i,"textBorderColor")&&(o.borderColor=i.textBorderColor),Ke(i,"textBorderWidth")&&(o.borderWidth=i.textBorderWidth),Ke(i,"textBorderRadius")&&(o.borderRadius=i.textBorderRadius),Ke(i,"textBoxShadowColor")&&(o.shadowColor=i.textBoxShadowColor),Ke(i,"textBoxShadowBlur")&&(o.shadowBlur=i.textBoxShadowBlur),Ke(i,"textBoxShadowOffsetX")&&(o.shadowOffsetX=i.textBoxShadowOffsetX),Ke(i,"textBoxShadowOffsetY")&&(o.shadowOffsetY=i.textBoxShadowOffsetY))}function O3(o,i,r){var s=o;s.textPosition=s.textPosition||r.position||"inside",null!=r.offset&&(s.textOffset=r.offset),null!=r.rotation&&(s.textRotation=r.rotation),null!=r.distance&&(s.textDistance=r.distance);var u=s.textPosition.indexOf("inside")>=0,f=o.fill||"#000";I3(s,i);var d=null==s.textFill;return u?d&&(s.textFill=r.insideFill||"#fff",!s.textStroke&&r.insideStroke&&(s.textStroke=r.insideStroke),!s.textStroke&&(s.textStroke=f),null==s.textStrokeWidth&&(s.textStrokeWidth=2)):(d&&(s.textFill=o.fill||r.outsideFill||"#000"),!s.textStroke&&r.outsideStroke&&(s.textStroke=r.outsideStroke)),s.text=i.text,s.rich=i.rich,q(i.rich,function(p){I3(p,p)}),s}function I3(o,i){!i||(Ke(i,"fill")&&(o.textFill=i.fill),Ke(i,"stroke")&&(o.textStroke=i.fill),Ke(i,"lineWidth")&&(o.textStrokeWidth=i.lineWidth),Ke(i,"font")&&(o.font=i.font),Ke(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Ke(i,"fontWeight")&&(o.fontWeight=i.fontWeight),Ke(i,"fontSize")&&(o.fontSize=i.fontSize),Ke(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Ke(i,"align")&&(o.textAlign=i.align),Ke(i,"verticalAlign")&&(o.textVerticalAlign=i.verticalAlign),Ke(i,"lineHeight")&&(o.textLineHeight=i.lineHeight),Ke(i,"width")&&(o.textWidth=i.width),Ke(i,"height")&&(o.textHeight=i.height),Ke(i,"backgroundColor")&&(o.textBackgroundColor=i.backgroundColor),Ke(i,"padding")&&(o.textPadding=i.padding),Ke(i,"borderColor")&&(o.textBorderColor=i.borderColor),Ke(i,"borderWidth")&&(o.textBorderWidth=i.borderWidth),Ke(i,"borderRadius")&&(o.textBorderRadius=i.borderRadius),Ke(i,"shadowColor")&&(o.textBoxShadowColor=i.shadowColor),Ke(i,"shadowBlur")&&(o.textBoxShadowBlur=i.shadowBlur),Ke(i,"shadowOffsetX")&&(o.textBoxShadowOffsetX=i.shadowOffsetX),Ke(i,"shadowOffsetY")&&(o.textBoxShadowOffsetY=i.shadowOffsetY),Ke(i,"textShadowColor")&&(o.textShadowColor=i.textShadowColor),Ke(i,"textShadowBlur")&&(o.textShadowBlur=i.textShadowBlur),Ke(i,"textShadowOffsetX")&&(o.textShadowOffsetX=i.textShadowOffsetX),Ke(i,"textShadowOffsetY")&&(o.textShadowOffsetY=i.textShadowOffsetY))}var Xo=Lo.CMD,R3=2*Math.PI,L3=["x","y"],v1=["width","height"],du=[];function F3(o,i){return Math.abs(o-i)<1e-5}function B7(o){var u,te,se,le,de,pe,me,Ce,Te,ze,Qe,mt,En,It,yn,nr,kt,Lr,i=o.data,r=o.len(),s=[],f=0,d=0,p=0,v=0;function g(te,se){u&&u.length>2&&s.push(u),u=[te,se]}function m(te,se,le,de){F3(te,le)&&F3(se,de)||u.push(te,se,le,de,le,de)}for(var b,w,S,M,x=0;xW:Z2&&s.push(u),s}function H7(o,i){var r=o.length,s=i.length;if(r===s)return[o,i];for(var u=rs.width?1:0,f=v1[u],d=L3[u],p=s[f]/i,v=s[d],g=0;gs[1]&&s.reverse(),{coordSys:{type:"polar",cx:o.cx,cy:o.cy,r:s[1],r0:s[0]},api:{coord:function(f){var d=i.dataToRadius(f[0]),p=r.dataToAngle(f[1]),v=o.coordToPoint([d,p]);return v.push(d,p*Math.PI/180),v},size:qe(yi,o)}}},calendar:function(o){var i=o.getRect(),r=o.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:o.getCellWidth(),cellHeight:o.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(u,f){return o.dataToPoint(u,f)}}}}},NA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(r,s){return au(this.getSource(),this)},i.prototype.getDataParams=function(r,s,u){var f=o.prototype.getDataParams.call(this,r,s);return u&&(f.info=Vs(u).info),f},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},i}(ir),cn=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this._data,p=r.getData(),v=this.group,g=k1(r,p,s,u);d||v.removeAll();var m=r.__transientTransitionOpt;if(!m||null!=m.from&&null!=m.to){var y=new oK(r,m),b=m?"multiple":"oneToOne";new ec(d?d.getIndices():[],p.getIndices(),og(d,b,m&&m.from),og(p,b,m&&m.to),null,b).add(function(S){Vy(u,null,S,g(S,f),r,v,p,null)}).remove(function(S){Ca(d.getItemGraphicEl(S),r,v)}).update(function(S,M){y.reset("oneToOne");var x=d.getItemGraphicEl(M);y.findAndAddFrom(x),y.hasFrom()&&(By(x,v),x=null),Vy(u,x,S,g(S,f),r,v,p,y),y.applyMorphing()}).updateManyToOne(function(S,M){y.reset("manyToOne");for(var x=0;x=0){!v&&(v=u[o]={});var M=kn(p);for(y=0;y=0){var M=o.getAnimationStyleProps(),x=M?M.style:null;if(x){!v&&(v=u.style={});var T=kn(s);for(y=0;y=y;b--)Ca(i.childAt(b),u,i)}}(o,i,r,s,u,p),v>=0?f.replaceAt(i,v):f.add(i),i}function Qf(o,i){var r=Vs(o),s=i.type,u=i.shape,f=i.style;return null!=s&&s!==r.customGraphicType||"path"===s&&function(o){return o&&(Ke(o,"pathData")||Ke(o,"d"))}(u)&&j3(u)!==r.customPathData||"image"===s&&Ke(f,"image")&&f.image!==r.customImagePath}function VA(o,i,r){var s=i?x1(o,i):o,u=i?BA(o,s,hu):o.style,f=o.type,d=s?s.textConfig:null,p=o.textContent,v=p?i?x1(p,i):p:null;if(u&&(r.isLegacy||Ns(u,f,!!d,!!v))){r.isLegacy=!0;var g=TA(u,f,!i);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!i&&v&&!v.type&&(v.type="text");var y=i?r[i]:r.normal;y.cfg=d,y.conOpt=v}function x1(o,i){return i?o?o[i]:null:o}function BA(o,i,r){var s=i&&i.style;return null==s&&r===hu&&o&&(s=o.styleEmphasis),s}function Kh(o,i){var r=o&&o.name;return null!=r?r:"e\0\0"+i}function HA(o,i){var r=this.context;M1(r.api,null!=i?r.oldChildren[i]:null,r.dataIndex,null!=o?r.newChildren[o]:null,r.seriesModel,r.group,0,r.morphPreparation)}function aW(o){var i=this.context;Ca(i.oldChildren[o],i.seriesModel,i.group)}function Ca(o,i,r){if(o){var s=Vs(o).leaveToProps;s?un(o,s,i,{cb:function(){r.remove(o)}}):r.remove(o)}}function j3(o){return o&&(o.pathData||o.d)}function W3(o){return o&&o instanceof an}function By(o,i){o&&i.remove(o)}var oK=function(){function o(i,r){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=i,this._transOpt=r}return o.prototype.hasFrom=function(){return!!this._fromList.length},o.prototype.findAndAddFrom=function(i){if(i&&(Vs(i).canMorph&&this._fromList.push(i),i.isGroup))for(var r=i.childrenRef(),s=0;s=f?null:v,d+1>=u?f-v:p);else if("oneToMany"===i)for(var m=Math.max(1,Math.floor(u/f)),y=0,b=0;y=u?u-y:m,b>=f?null:b)},o.prototype._oneToOneForSingleTo=function(i,r){var s=this._toList[i],u=this._toElOptionList[i],f=this._toDataIndices[i],d=this._allPropsFinalList[i],p=this._fromList[r],v=this._getOrCreateMorphConfig(f),g=v.duration;if(p&&ag(p)){if(sg(s,d,u.style),g){var m=Uh([p],s,v,fc);this._processResultIndividuals(m,i,null)}}else{var y=g&&p&&(p!==s||function(o){return _1(o)||ag(o)}(p))?p:null,b={};w1("shape",s,y,u,b,!1),w1("extra",s,y,u,b,!1),lg(s,y,u,b,!1),S1(s,y,u,u.style,b,!1),sg(s,d,u.style),y&&AA(y,s,v),Yh(s,f,u,this._seriesModel,b,!1)}},o.prototype._manyToOneForSingleTo=function(i,r,s){var u=this._toList[i];sg(u,this._allPropsFinalList[i],this._toElOptionList[i].style);var p=this._getOrCreateMorphConfig(this._toDataIndices[i]);if(p.duration&&null!=r){for(var v=[],g=r;gp)return!0;if(d){var v=GL(i).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>p}return!1}return!0===s},o.prototype.makeElOption=function(i,r,s,u,f){},o.prototype.createPointerEl=function(i,r,s,u){var f=r.pointer;if(f){var d=cg(i).pointerEl=new F[f.type](sW(r.pointer));i.add(d)}},o.prototype.createLabelEl=function(i,r,s,u){if(r.label){var f=cg(i).labelEl=new on(sW(r.label));i.add(f),T1(f,u)}},o.prototype.updatePointerEl=function(i,r,s){var u=cg(i).pointerEl;u&&r.pointer&&(u.setStyle(r.pointer.style),s(u,{shape:r.pointer.shape}))},o.prototype.updateLabelEl=function(i,r,s,u){var f=cg(i).labelEl;f&&(f.setStyle(r.label.style),s(f,{x:r.label.x,y:r.label.y}),T1(f,u))},o.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var p,r=this._axisPointerModel,s=this._api.getZr(),u=this._handle,f=r.getModel("handle"),d=r.get("status");if(!f.get("show")||!d||"hide"===d)return u&&s.remove(u),void(this._handle=null);this._handle||(p=!0,u=this._handle=Fm(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){Se(m.event)},onmousedown:Y3(this._onHandleDragMove,this,0,0),drift:Y3(this._onHandleDragMove,this),ondragend:Y3(this._onHandleDragEnd,this)}),s.add(u)),Bs(u,r,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");ke(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,e_(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,p)}},o.prototype._moveHandleToValue=function(i,r){lW(this._axisPointerModel,!r&&this._moveAnimation,this._handle,vu(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},o.prototype._onHandleDragMove=function(i,r){var s=this._handle;if(s){this._dragging=!0;var u=this.updateHandleTransform(vu(s),[i,r],this._axisModel,this._axisPointerModel);this._payloadInfo=u,s.stopAnimation(),s.attr(vu(u)),cg(s).lastProp=null,this._doDispatchAxisPointer()}},o.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},o.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},o.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var r=i.getZr(),s=this._group,u=this._handle;r&&s&&(this._lastGraphicKey=null,s&&r.remove(s),u&&r.remove(u),this._group=null,this._handle=null,this._payloadInfo=null)},o.prototype.doClear=function(){},o.prototype.buildLabel=function(i,r,s){return{x:i[s=s||0],y:i[1-s],width:r[s],height:r[1-s]}},o}();function fg(o){var s,i=o.get("type"),r=o.getModel(i+"Style");return"line"===i?(s=r.getLineStyle()).fill=null:"shadow"===i&&((s=r.getAreaStyle()).stroke=null),s}function cW(o,i,r,s,u){var d=fW(r.get("value"),i.axis,i.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),p=r.getModel("label"),v=fv(p.get("padding")||0),g=p.getFont(),m=em(d,g),y=u.position,b=m.width+v[1]+v[3],w=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var M=u.verticalAlign;"bottom"===M&&(y[1]-=w),"middle"===M&&(y[1]-=w/2),function(o,i,r,s){var u=s.getWidth(),f=s.getHeight();o[0]=Math.min(o[0]+i,u)-i,o[1]=Math.min(o[1]+r,f)-r,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0)}(y,b,w,s);var x=p.get("backgroundColor");(!x||"auto"===x)&&(x=i.get(["axisLine","lineStyle","color"])),o.label={x:y[0],y:y[1],style:Ir(p,{text:d,font:g,fill:p.getTextColor(),padding:v,backgroundColor:x}),z2:10}}function fW(o,i,r,s,u){o=i.scale.parse(o);var f=i.scale.getLabel({value:o},{precision:u.precision}),d=u.formatter;if(d){var p={value:yT(i,{value:o}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};q(s,function(v){var g=r.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&p.seriesData.push(y)}),tn(d)?f=d.replace("{value}",f):Mn(d)&&(f=d(p))}return f}function Hy(o,i,r){var s=[1,0,0,1,0,0];return Vl(s,s,r.rotation),Eo(s,s,r.position),ms([o.dataToCoord(i),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function dW(o,i,r,s,u,f){var d=Vf.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=u.get(["label","margin"]),cW(i,s,u,f,{position:Hy(s.axis,o,r),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function vo(o,i,r){return{x1:o[r=r||0],y1:o[1-r],x2:i[r],y2:i[1-r]}}function hW(o,i,r){return{x:o[r=r||0],y:o[1-r],width:i[r],height:i[1-r]}}function Qh(o,i,r,s,u,f){return{cx:o,cy:i,r0:r,r:s,startAngle:u,endAngle:f,clockwise:!0}}var lK=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.grid,g=f.get("type"),m=X3(v,p).getOtherAxis(p).getGlobalExtent(),y=p.toGlobalCoord(p.dataToCoord(s,!0));if(g&&"none"!==g){var b=fg(f),w=pW[g](p,y,m);w.style=b,r.graphicKey=w.type,r.pointer=w}dW(s,r,Uv(v.model,u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=Uv(s.axis.grid.model,s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=Hy(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.grid,v=d.getGlobalExtent(!0),g=X3(p,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[r.x,r.y];y[m]+=s[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,w=[b,b];return w[m]=y[m],{x:y[0],y:y[1],rotation:r.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},i}(UA);function X3(o,i){var r={};return r[i.dim+"AxisIndex"]=i.index,o.getCartesian(r)}var pW={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:vo([r,s[0]],[r,s[1]],Z3(i))}},shadow:function(i,r,s){var u=Math.max(1,i.getBandWidth());return{type:"Rect",shape:hW([r-u/2,s[0]],[u,s[1]-s[0]],Z3(i))}}};function Z3(o){return"x"===o.dim?0:1}var uK=lK,GA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="axisPointer",i.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(Qt),$f=nn(),Ko=q;function K3(o,i,r){if(!Ot.node){var s=i.getZr();$f(s).records||($f(s).records={}),function(o,i){function r(s,u){o.on(s,function(f){var d=function(o){var i={showTip:[],hideTip:[]};return{dispatchAction:function s(u){var f=i[u.type];f?f.push(u):(u.dispatchAction=s,o.dispatchAction(u))},pendings:i}}(i);Ko($f(o).records,function(p){p&&u(p,f,d.dispatchAction)}),function(o,i){var u,r=o.showTip.length,s=o.hideTip.length;r?u=o.showTip[r-1]:s&&(u=o.hideTip[s-1]),u&&(u.dispatchAction=null,i.dispatchAction(u))}(d.pendings,i)})}$f(o).initialized||($f(o).initialized=!0,r("click",bt(mW,"click")),r("mousemove",bt(mW,"mousemove")),r("globalout",cK))}(s,i),($f(s).records[o]||($f(s).records[o]={})).handler=r}}function cK(o,i,r){o.handler("leave",null,r)}function mW(o,i,r,s){i.handler(o,r,s)}function go(o,i){if(!Ot.node){var r=i.getZr();($f(r).records||{})[o]&&($f(r).records[o]=null)}}var WA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=s.getComponent("tooltip"),d=r.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";K3("axisPointer",u,function(p,v,g){"none"!==d&&("leave"===p||d.indexOf(p)>=0)&&g({type:"updateAxisPointer",currTrigger:p,x:v&&v.offsetX,y:v&&v.offsetY})})},i.prototype.remove=function(r,s){go("axisPointer",s)},i.prototype.dispose=function(r,s){go("axisPointer",s)},i.type="axisPointer",i}(gr);function $h(o,i){var u,r=[],s=o.seriesIndex;if(null==s||!(u=i.getSeriesByIndex(s)))return{point:[]};var f=u.getData(),d=Ed(f,o);if(null==d||d<0||ke(d))return{point:[]};var p=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)r=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(o.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,w="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),M=[];M[w]=f.get(S,d),M[1-w]=f.get(f.getCalculationInfo("stackResultDimension"),d),r=v.dataToPoint(M)||[]}else r=v.dataToPoint(f.getValues(Ie(v.dimensions,function(T){return f.mapDimension(T)}),d))||[];else if(p){var x=p.getBoundingRect().clone();x.applyTransform(p.transform),r=[x.x+x.width/2,x.y+x.height/2]}return{point:r,el:p}}var Jh=nn();function dc(o,i,r){var s=o.currTrigger,u=[o.x,o.y],f=o,d=o.dispatchAction||qe(r.dispatchAction,r),p=i.getComponent("axisPointer").coordSysAxesInfo;if(p){YA(u)&&(u=$h({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},i).point);var v=YA(u),g=f.axesInfo,m=p.axesInfo,y="leave"===s||YA(u),b={},w={},S={list:[],map:{}},M={showPointer:bt(pc,w),showTooltip:bt(fK,S)};q(p.coordSysMap,function(T,P){var I=v||T.containPoint(u);q(p.coordSysAxesInfo[P],function(R,B){var V=R.axis,G=function(o,i){for(var r=0;r<(o||[]).length;r++){var s=o[r];if(i.axis.dim===s.axisDim&&i.axis.model.componentIndex===s.axisIndex)return s}}(g,R);if(!y&&I&&(!g||G)){var W=G&&G.value;null==W&&!v&&(W=V.pointToData(u)),null!=W&&Sl(R,W,M,!1,b)}})});var x={};return q(m,function(T,P){var I=T.linkGroup;I&&!w[P]&&q(I.axesInfo,function(R,B){var V=w[B];if(R!==T&&V){var G=V.value;I.mapper&&(G=T.axis.scale.parse(I.mapper(G,yW(R),yW(T)))),x[T.key]=G}})}),q(x,function(T,P){Sl(m[P],T,M,!0,b)}),function(o,i,r){var s=r.axesInfo=[];q(i,function(u,f){var d=u.axisPointerModel.option,p=o[f];p?(!u.useHandle&&(d.status="show"),d.value=p.value,d.seriesDataIndices=(p.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&s.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(w,m,b),function(o,i,r,s){if(!YA(i)&&o.list.length){var u=((o.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:o.list})}else s({type:"hideTip"})}(S,u,o,d),function(o,i,r){var s=r.getZr(),u="axisPointerLastHighlights",f=Jh(s)[u]||{},d=Jh(s)[u]={};q(o,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var p=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&p.push(g)}),v.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),p.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:p})}(m,0,r),b}}function Sl(o,i,r,s,u){var f=o.axis;if(!f.scale.isBlank()&&f.containData(i)){if(!o.involveSeries)return void r.showPointer(o,i);var d=function(o,i){var r=i.axis,s=r.dim,u=o,f=[],d=Number.MAX_VALUE,p=-1;return q(i.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(s);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(m,o,r);b=w.dataIndices,y=w.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],o,"category"===r.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=o-y,M=Math.abs(S);M<=d&&((M=0&&p<0)&&(d=M,p=S,u=y,f.length=0),q(b,function(x){f.push({seriesIndex:v.seriesIndex,dataIndexInside:x,dataIndex:v.getData().getRawIndex(x)})}))}}),{payloadBatch:f,snapToValue:u}}(i,o),p=d.payloadBatch,v=d.snapToValue;p[0]&&null==u.seriesIndex&&Me(u,p[0]),!s&&o.snap&&f.containData(v)&&null!=v&&(i=v),r.showPointer(o,i,p),r.showTooltip(o,d,v)}}function pc(o,i,r,s){o[i.key]={value:r,payloadBatch:s}}function fK(o,i,r,s){var u=r.payloadBatch,f=i.axis,d=f.model,p=i.axisPointerModel;if(i.triggerTooltip&&u.length){var v=i.coordSys.model,g=Bf(v),m=o.map[g];m||(m=o.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},o.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:s,valueLabelOpt:{precision:p.get(["label","precision"]),formatter:p.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function yW(o){var i=o.axis.model,r={},s=r.axisDim=o.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=i.componentIndex,r.axisName=r[s+"AxisName"]=i.name,r.axisId=r[s+"AxisId"]=i.id,r}function YA(o){return!o||null==o[0]||isNaN(o[0])||null==o[1]||isNaN(o[1])}function A1(o){kh.registerAxisPointerClass("CartesianAxisPointer",uK),o.registerComponentModel(GA),o.registerComponentView(WA),o.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var r=i.axisPointer.link;r&&!ke(r)&&(i.axisPointer.link=[r])}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,function(i,r){i.getComponent("axisPointer").coordSysAxesInfo=function(o,i){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(o,i,r){var s=i.getComponent("tooltip"),u=i.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(r.getCoordinateSystems(),function(p){if(p.axisPointerEnabled){var v=Bf(p.model),g=o.coordSysAxesInfo[v]={};o.coordSysMap[v]=p;var y=p.model.getModel("tooltip",s);if(q(p.getAxes(),bt(M,!1,null)),p.getTooltipAxes&&s&&y.get("show")){var b="axis"===y.get("trigger"),w="cross"===y.get(["axisPointer","type"]),S=p.getTooltipAxes(y.get(["axisPointer","axis"]));(b||w)&&q(S.baseAxes,bt(M,!w||"cross",b)),w&&q(S.otherAxes,bt(M,"cross",!1))}}function M(x,T,P){var I=P.model.getModel("axisPointer",u),R=I.get("show");if(R&&("auto"!==R||x||jL(I))){null==T&&(T=I.get("triggerTooltip"));var B=(I=x?function(o,i,r,s,u,f){var d=i.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=it(d.get(b))}),v.snap="category"!==o.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&tt(g,y.textStyle)}}return o.model.getModel("axisPointer",new Ln(v,r,s))}(P,y,u,i,x,T):I).get("snap"),V=Bf(P.model),G=T||B||"category"===P.type,W=o.axesInfo[V]={key:V,axis:P,coordSys:p,axisPointerModel:I,triggerTooltip:T,involveSeries:G,snap:B,useHandle:jL(I),seriesModels:[],linkGroup:null};g[V]=W,o.seriesInvolved=o.seriesInvolved||G;var K=function(o,i){for(var r=i.model,s=i.dim,u=0;ux?"left":"right",y=Math.abs(g[1]-T)/M<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(s,u,0,v,f.get(["label","margin"]));cW(r,u,f,d,x)},i}(UA),mK={line:function(i,r,s,u){return"angle"===i.dim?{type:"Line",shape:vo(r.coordToPoint([u[0],s]),r.coordToPoint([u[1],s]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:s}}},shadow:function(i,r,s,u){var f=Math.max(1,i.getBandWidth()),d=Math.PI/180;return"angle"===i.dim?{type:"Sector",shape:Qh(r.cx,r.cy,u[0],u[1],(-s-f/2)*d,(f/2-s)*d)}:{type:"Sector",shape:Qh(r.cx,r.cy,s-f/2,s+f/2,0,2*Math.PI)}}},_K=vK,yK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.findAxisModel=function(r){var s;return this.ecModel.eachComponent(r,function(f){f.getCoordSysModel()===this&&(s=f)},this),s},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},i}(Qt),J3=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",cr).models[0]},i.type="polarAxis",i}(Qt);br(J3,E_);var bK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="angleAxis",i}(J3),CK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="radiusAxis",i}(J3),zy=function(o){function i(r,s){return o.call(this,"radius",r,s)||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i}(Qi);zy.prototype.dataToRadius=Qi.prototype.dataToCoord,zy.prototype.radiusToData=Qi.prototype.coordToData;var wK=zy,SK=nn(),eV=function(o){function i(r,s){return o.call(this,"angle",r,s||[0,360])||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var r=this,s=r.getLabelModel(),u=r.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=f[0],v=r.dataToCoord(p+1)-r.dataToCoord(p),g=Math.abs(v),m=em(null==p?"":p+"",s.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(b)),S=SK(r.model),M=S.lastAutoInterval,x=S.lastTickCount;return null!=M&&null!=x&&Math.abs(M-w)<=1&&Math.abs(x-d)<=1&&M>w?w=M:(S.lastTickCount=d,S.lastAutoInterval=w),w},i}(Qi);eV.prototype.dataToAngle=Qi.prototype.dataToCoord,eV.prototype.angleToData=Qi.prototype.coordToData;var kK=eV;function bW(o){var i=o.seriesModel,r=o.polarModel;return r&&r.coordinateSystem||i&&i.coordinateSystem}var CW=function(){function o(i){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new wK,this._angleAxis=new kK,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return o.prototype.containPoint=function(i){var r=this.pointToCoord(i);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},o.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},o.prototype.getAxis=function(i){return this["_"+i+"Axis"]},o.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},o.prototype.getAxesByScale=function(i){var r=[],s=this._angleAxis,u=this._radiusAxis;return s.scale.type===i&&r.push(s),u.scale.type===i&&r.push(u),r},o.prototype.getAngleAxis=function(){return this._angleAxis},o.prototype.getRadiusAxis=function(){return this._radiusAxis},o.prototype.getOtherAxis=function(i){var r=this._angleAxis;return i===r?this._radiusAxis:r},o.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},o.prototype.getTooltipAxes=function(i){var r=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},o.prototype.dataToPoint=function(i,r){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],r),this._angleAxis.dataToAngle(i[1],r)])},o.prototype.pointToData=function(i,r){var s=this.pointToCoord(i);return[this._radiusAxis.radiusToData(s[0],r),this._angleAxis.angleToData(s[1],r)]},o.prototype.pointToCoord=function(i){var r=i[0]-this.cx,s=i[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]);u.inverse?d=p-360:p=d+360;var v=Math.sqrt(r*r+s*s);r/=v,s/=v;for(var g=Math.atan2(-s,r)/Math.PI*180,m=gp;)g+=360*m;return[v,g]},o.prototype.coordToPoint=function(i){var r=i[0],s=i[1]/180*Math.PI;return[Math.cos(s)*r+this.cx,-Math.sin(s)*r+this.cy]},o.prototype.getArea=function(){var i=this.getAngleAxis(),s=this.getRadiusAxis().getExtent().slice();s[0]>s[1]&&s.reverse();var u=i.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:s[0],r:s[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:i.inverse,contain:function(p,v){var g=p-this.cx,m=v-this.cy,y=g*g+m*m,b=this.r,w=this.r0;return y<=b*b&&y>=w*w}}},o.prototype.convertToPixel=function(i,r,s){return bW(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return bW(r)===this?this.pointToData(s):null},o}();function TK(o,i){var r=this,s=r.getAngleAxis(),u=r.getRadiusAxis();if(s.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),o.eachSeries(function(p){if(p.coordinateSystem===r){var v=p.getData();q(ew(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(ew(v,"angle"),function(g){s.scale.unionExtentFromData(v,g)})}}),Ef(s.scale,s.model),Ef(u.scale,u.model),"category"===s.type&&!s.onBand){var f=s.getExtent(),d=360/s.scale.count();s.inverse?f[1]+=d:f[1]-=d,s.setExtent(f[0],f[1])}}function wW(o,i){if(o.type=i.get("type"),o.scale=D_(i),o.onBand=i.get("boundaryGap")&&"category"===o.type,o.inverse=i.get("inverse"),function(o){return"angleAxis"===o.mainType}(i)){o.inverse=o.inverse!==i.get("clockwise");var r=i.get("startAngle");o.setExtent(r,r+(o.inverse?-360:360))}i.axis=o,o.model=i}var EK={dimensions:CW.prototype.dimensions,create:function(i,r){var s=[];return i.eachComponent("polar",function(u,f){var d=new CW(f+"");d.update=TK;var p=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");wW(p,g),wW(v,m),function(o,i,r){var s=i.get("center"),u=r.getWidth(),f=r.getHeight();o.cx=Ae(s[0],u),o.cy=Ae(s[1],f);var d=o.getRadiusAxis(),p=Math.min(u,f)/2,v=i.get("radius");null==v?v=[0,"100%"]:ke(v)||(v=[0,v]);var g=[Ae(v[0],p),Ae(v[1],p)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,r),s.push(d),u.coordinateSystem=d,d.model=u}),i.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",cr).models[0];u.coordinateSystem=f.coordinateSystem}}),s}},PK=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function qA(o,i,r){i[1]>i[0]&&(i=i.slice().reverse());var s=o.coordToPoint([i[0],r]),u=o.coordToPoint([i[1],r]);return{x1:s[0],y1:s[1],x2:u[0],y2:u[1]}}function XA(o){return o.getRadiusAxis().inverse?0:1}function SW(o){var i=o[0],r=o[o.length-1];i&&r&&Math.abs(Math.abs(i.coord-r.coord)-360)<1e-4&&o.pop()}var OK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.axisPointerClass="PolarAxisPointer",r}return he(i,o),i.prototype.render=function(r,s){if(this.group.removeAll(),r.get("show")){var u=r.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),p=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Ie(u.getViewLabels(),function(m){m=it(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});SW(g),SW(p),q(PK,function(m){r.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&IK[m](this.group,r,f,p,v,d,g)},this)}},i.type="angleAxis",i}(kh),IK={axisLine:function(i,r,s,u,f,d){var m,p=r.getModel(["axisLine","lineStyle"]),v=XA(s),g=v?0:1;(m=0===d[g]?new gs({shape:{cx:s.cx,cy:s.cy,r:d[v]},style:p.getLineStyle(),z2:1,silent:!0}):new M0({shape:{cx:s.cx,cy:s.cy,r:d[v],r0:d[g]},style:p.getLineStyle(),z2:1,silent:!0})).style.fill=null,i.add(m)},axisTick:function(i,r,s,u,f,d){var p=r.getModel("axisTick"),v=(p.get("inside")?-1:1)*p.get("length"),g=d[XA(s)],m=Ie(u,function(y){return new Ai({shape:qA(s,[g,g+v],y.coord)})});i.add(co(m,{style:tt(p.getModel("lineStyle").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})}))},minorTick:function(i,r,s,u,f,d){if(f.length){for(var p=r.getModel("axisTick"),v=r.getModel("minorTick"),g=(p.get("inside")?-1:1)*v.get("length"),m=d[XA(s)],y=[],b=0;bP?"left":"right",B=Math.abs(T[1]-I)/x<.3?"middle":T[1]>I?"top":"bottom";if(v&&v[M]){var V=v[M];pt(V)&&V.textStyle&&(S=new Ln(V.textStyle,g,g.ecModel))}var G=new on({silent:Vf.isLabelSilent(r),style:Ir(S,{x:T[0],y:T[1],fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:R,verticalAlign:B})});if(i.add(G),y){var W=Vf.makeAxisEventDataBase(r);W.targetType="axisLabel",W.value=b.rawLabel,gt(G).eventData=W}},this)},splitLine:function(i,r,s,u,f,d){var v=r.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",te=G;B&&(s[m][Z]||(s[m][Z]={p:G,n:G}),te=s[m][Z][ne]);var se=void 0,le=void 0,de=void 0,pe=void 0;if("radius"===S.dim){var me=S.dataToCoord(J)-G,Ce=v.dataToCoord(Z);Math.abs(me)=r.y&&i[1]<=r.y+r.height:s.contain(s.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},o.prototype.pointToData=function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i["horizontal"===r.orient?0:1]))]},o.prototype.dataToPoint=function(i){var r=this.getAxis(),s=this.getRect(),u=[],f="horizontal"===r.orient?0:1;return i instanceof Array&&(i=i[0]),u[f]=r.toGlobalCoord(r.dataToCoord(+i)),u[1-f]=0===f?s.y+s.height/2:s.x+s.width/2,u},o.prototype.convertToPixel=function(i,r,s){return DW(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return DW(r)===this?this.pointToData(s):null},o}(),nQ={create:function(o,i){var r=[];return o.eachComponent("singleAxis",function(s,u){var f=new AW(s,o,i);f.name="single_"+u,f.resize(s,i),s.coordinateSystem=f,r.push(f)}),o.eachSeries(function(s){if("singleAxis"===s.get("coordinateSystem")){var u=s.getReferringComponents("singleAxis",cr).models[0];s.coordinateSystem=u&&u.coordinateSystem}}),r},dimensions:AW.prototype.dimensions},EW=["x","y"],rQ=["width","height"],iQ=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.coordinateSystem,g=iV(v,1-ZA(p)),m=v.dataToPoint(s)[0],y=f.get("type");if(y&&"none"!==y){var b=fg(f),w=aQ[y](p,m,g);w.style=b,r.graphicKey=w.type,r.pointer=w}dW(s,r,nV(u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=nV(s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=Hy(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.coordinateSystem,v=ZA(d),g=iV(p,v),m=[r.x,r.y];m[v]+=s[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=iV(p,1-v),b=(y[1]+y[0])/2,w=[b,b];return w[v]=m[v],{x:m[0],y:m[1],rotation:r.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(UA),aQ={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:vo([r,s[0]],[r,s[1]],ZA(i))}},shadow:function(i,r,s){var u=i.getBandWidth();return{type:"Rect",shape:hW([r-u/2,s[0]],[u,s[1]-s[0]],ZA(i))}}};function ZA(o){return o.isHorizontal()?0:1}function iV(o,i){var r=o.getRect();return[r[EW[i]],r[EW[i]]+r[rQ[i]]]}var oQ=iQ,sQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="single",i}(gr);function PW(o,i){var s,r=o.cellSize;1===(s=ke(r)?r:o.cellSize=[r,r]).length&&(s[1]=s[0]);var u=Ie([0,1],function(f){return function(o,i){return null!=o[xe[i][0]]||null!=o[xe[i][1]]&&null!=o[xe[i][2]]}(i,f)&&(s[f]="auto"),null!=s[f]&&"auto"!==s[f]});Ho(o,i,{type:"box",ignoreSize:u})}var cQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s,u){var f=Zd(r);o.prototype.init.apply(this,arguments),PW(r,f)},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),PW(this.option,r)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(Qt),fQ={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},dQ={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},pQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group;f.removeAll();var d=r.coordinateSystem,p=d.getRangeInfo(),v=d.getOrient();this._renderDayRect(r,p,f),this._renderLines(r,p,v,f),this._renderYearText(r,p,v,f),this._renderMonthText(r,v,f),this._renderWeekText(r,p,v,f)},i.prototype._renderDayRect=function(r,s,u){for(var f=r.coordinateSystem,d=r.getModel("itemStyle").getItemStyle(),p=f.getCellWidth(),v=f.getCellHeight(),g=s.start.time;g<=s.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new Bt({shape:{x:m[0],y:m[1],width:p,height:v},cursor:"default",style:d});u.add(y)}},i.prototype._renderLines=function(r,s,u,f){var d=this,p=r.coordinateSystem,v=r.getModel(["splitLine","lineStyle"]).getLineStyle(),g=r.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=s.start,b=0;y.time<=s.end.time;b++){S(y.formatedDate),0===b&&(y=p.getDateInfo(s.start.y+"-"+s.start.m));var w=y.date;w.setMonth(w.getMonth()+1),y=p.getDateInfo(w)}function S(M){d._firstDayOfMonth.push(p.getDateInfo(M)),d._firstDayPoints.push(p.dataToRect([M],!1).tl);var x=d._getLinePointsOfOneWeek(r,M,u);d._tlpoints.push(x[0]),d._blpoints.push(x[x.length-1]),g&&d._drawSplitline(x,v,f)}S(p.getNextNDay(s.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},i.prototype._getEdgesPoints=function(r,s,u){var f=[r[0].slice(),r[r.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-s/2,f[1][d]=f[1][d]+s/2,f},i.prototype._drawSplitline=function(r,s,u){var f=new Fa({z2:20,shape:{points:r},style:s});u.add(f)},i.prototype._getLinePointsOfOneWeek=function(r,s,u){for(var f=r.coordinateSystem,d=f.getDateInfo(s),p=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);p[2*g.day]=m.tl,p[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return p},i.prototype._formatterLabel=function(r,s){return"string"==typeof r&&r?function(o,i,r){return q(i,function(s,u){o=o.replace("{"+u+"}",s)}),o}(r,s):"function"==typeof r?r(s):s.nameMap},i.prototype._yearTextPositionControl=function(r,s,u,f,d){var p=s[0],v=s[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?p-=d:"right"===f?(p+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:p,y:v,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(r,s,u,f){var d=r.getModel("yearLabel");if(d.get("show")){var p=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,w={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=s.start.y;+s.end.y>+s.start.y&&(S=S+"-"+s.end.y);var M=d.get("formatter"),T=this._formatterLabel(M,{start:s.start.y,end:s.end.y,nameMap:S}),P=new on({z2:30,style:Ir(d,{text:T})});P.attr(this._yearTextPositionControl(P,w[v],u,v,p)),f.add(P)}},i.prototype._monthTextPositionControl=function(r,s,u,f,d){var p="left",v="top",g=r[0],m=r[1];return"horizontal"===u?(m+=d,s&&(p="center"),"start"===f&&(v="bottom")):(g+=d,s&&(v="middle"),"start"===f&&(p="right")),{x:g,y:m,align:p,verticalAlign:v}},i.prototype._renderMonthText=function(r,s,u){var f=r.getModel("monthLabel");if(f.get("show")){var d=f.get("nameMap"),p=f.get("margin"),v=f.get("position"),g=f.get("align"),m=[this._tlpoints,this._blpoints];tn(d)&&(d=fQ[d.toUpperCase()]||[]);var y="start"===v?0:1,b="horizontal"===s?0:1;p="start"===v?-p:p;for(var w="center"===g,S=0;S=u.start.time&&s.timep.end.time&&r.reverse(),r},o.prototype._getRangeInfo=function(i){var s,r=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];r[0].time>r[1].time&&(s=!0,r.reverse());var u=Math.floor(r[1].time/aV)-Math.floor(r[0].time/aV)+1,f=new Date(r[0].time),d=f.getDate(),p=r[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==p)for(var g=f.getTime()-r[1].time>0?1:-1;(v=f.getDate())!==p&&(f.getTime()-r[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+r[0].day+6)/7),y=s?1-m:m-1;return s&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:u,weeks:m,nthWeek:y,fweek:r[0].day,lweek:r[1].day}},o.prototype._getDateByWeeksAndDay=function(i,r,s){var u=this._getRangeInfo(s);if(i>u.weeks||0===i&&ru.lweek)return null;var f=7*(i-1)-u.fweek+r,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},o.create=function(i,r){var s=[];return i.eachComponent("calendar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("calendarIndex")||0])}),s},o.dimensions=["time","value"],o}(),Uy=nn(),OW={path:null,compoundPath:null,group:ut,image:di,text:on},_Q=function(i){var r=i.graphic;ke(r)?i.graphic=r[0]&&r[0].elements?[i.graphic[0]]:[{elements:r}]:r&&!r.elements&&(i.graphic=[{elements:[r]}])},yQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventAutoZ=!0,r}return he(i,o),i.prototype.mergeOption=function(r,s){var u=this.option.elements;this.option.elements=null,o.prototype.mergeOption.call(this,r,s),this.option.elements=u},i.prototype.optionUpdated=function(r,s){var u=this.option,f=(s?u:r).elements,d=u.elements=s?[]:u.elements,p=[];this._flatten(f,p,null);var v=Ee(d,p,"normalMerge"),g=this._elOptionsToUpdate=[];q(v,function(y,b){var w=y.newOption;!w||(g.push(w),function(o,i){var r=o.existing;if(i.id=o.keyInfo.id,!i.type&&r&&(i.type=r.type),null==i.parentId){var s=i.parentOption;s?i.parentId=s.id:r&&(i.parentId=r.parentId)}i.parentOption=null}(y,w),function(o,i,r){var s=Me({},r),u=o[i],f=r.$action||"merge";"merge"===f?u?(yt(u,s,!0),Ho(u,s,{ignoreSize:!0}),vf(r,u)):o[i]=s:"replace"===f?o[i]=s:"remove"===f&&u&&(o[i]=null)}(d,b,w),function(o,i){if(o&&(o.hv=i.hv=[KA(i,["left","right"]),KA(i,["top","bottom"])],"group"===o.type)){var r=o,s=i;null==r.width&&(r.width=s.width=0),null==r.height&&(r.height=s.height=0)}}(d[b],w))},this);for(var m=d.length-1;m>=0;m--)null==d[m]?d.splice(m,1):delete d[m].$action},i.prototype._flatten=function(r,s,u){q(r,function(f){if(f){u&&(f.parentOption=u),s.push(f);var d=f.children;"group"===f.type&&d&&this._flatten(d,s,f),delete f.children}},this)},i.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},i.type="graphic",i.defaultOption={elements:[]},i}(Qt),bQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this._elMap=st()},i.prototype.render=function(r,s,u){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,u)},i.prototype._updateElements=function(r){var s=r.useElOptionsToUpdate();if(s){var u=this._elMap,f=this.group;q(s,function(d){var p=xi(d.id,null),v=null!=p?u.get(p):null,g=xi(d.parentId,null),m=null!=g?u.get(g):f,y=d.type,b=d.style;"text"===y&&b&&d.hv&&d.hv[1]&&(b.textVerticalAlign=b.textBaseline=b.verticalAlign=b.align=null);var w=d.textContent,S=d.textConfig;if(b&&Ns(b,y,!!S,!!w)){var M=TA(b,y,!0);!S&&M.textConfig&&(S=d.textConfig=M.textConfig),!w&&M.textContent&&(w=M.textContent)}var x=function(o){return o=Me({},o),q(["id","parentId","$action","hv","bounding","textContent"].concat(TM),function(i){delete o[i]}),o}(d),T=d.$action||"merge";"merge"===T?v?v.attr(x):IW(p,m,x,u):"replace"===T?(E1(v,u),IW(p,m,x,u)):"remove"===T&&E1(v,u);var P=u.get(p);if(P&&w)if("merge"===T){var I=P.getTextContent();I?I.attr(w):P.setTextContent(new on(w))}else"replace"===T&&P.setTextContent(new on(w));if(P){var R=Uy(P);R.__ecGraphicWidthOption=d.width,R.__ecGraphicHeightOption=d.height,function(o,i,r){var s=gt(o).eventData;!o.silent&&!o.ignore&&!s&&(s=gt(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}),s&&(s.info=r.info)}(P,r,d),ff({el:P,componentModel:r,itemName:P.name,itemTooltipOption:d.tooltip})}})}},i.prototype._relocate=function(r,s){for(var u=r.option.elements,f=this.group,d=this._elMap,p=s.getWidth(),v=s.getHeight(),g=0;g=0;g--){var m,y,b,w;if(b=null!=(y=xi((m=u[g]).id,null))?d.get(y):null)x=Uy(w=b.parent),z0(b,m,w===f?{width:p,height:v}:{width:x.__ecGraphicWidth,height:x.__ecGraphicHeight},null,{hv:m.hv,boundingMode:m.bounding})}},i.prototype._clear=function(){var r=this._elMap;r.each(function(s){E1(s,r)}),this._elMap=st()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(gr);function IW(o,i,r,s){var u=r.type,d=new(Ke(OW,u)?OW[u]:E0(u))(r);i.add(d),s.set(o,d),Uy(d).__ecGraphicId=o}function E1(o,i){var r=o&&o.parent;r&&("group"===o.type&&o.traverse(function(s){E1(s,i)}),i.removeKey(Uy(o).__ecGraphicId),r.remove(o))}function KA(o,i){var r;return q(i,function(s){null!=o[s]&&"auto"!==o[s]&&(r=!0)}),r}var $A=["x","y","radius","angle","single"],FW=["cartesian2d","polar","singleAxis"];function mo(o){return o+"Axis"}function BW(o){var i=o.ecModel,r={infoList:[],infoMap:st()};return o.eachTargetAxis(function(s,u){var f=i.getComponent(mo(s),u);if(f){var d=f.getCoordSysModel();if(d){var p=d.uid,v=r.infoMap.get(p);v||(r.infoList.push(v={model:d,axisModels:[]}),r.infoMap.set(p,v)),v.axisModels.push(f)}}}),r}var lV=function(){function o(){this.indexList=[],this.indexMap=[]}return o.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},o}();function cV(o){var i={};return q(["start","end","startValue","endValue","throttle"],function(r){o.hasOwnProperty(r)&&(i[r]=o[r])}),i}var Gy=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return he(i,o),i.prototype.init=function(r,s,u){var f=cV(r);this.settledOption=f,this.mergeDefaultAndTheme(r,u),this._doInit(f)},i.prototype.mergeOption=function(r){var s=cV(r);yt(this.option,r,!0),yt(this.settledOption,s,!0),this._doInit(s)},i.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(s[f[0]]=u[f[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=st();this._fillSpecifiedTargetAxis(s)?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return q($A,function(u){var f=this.getReferringComponents(mo(u),$P);if(f.specified){s=!0;var d=new lV;q(f.models,function(p){d.add(p.componentIndex)}),r.set(u,d)}},this),s},i.prototype._fillAutoTargetAxisByOrient=function(r,s){var u=this.ecModel,f=!0;if(f){var d="vertical"===s?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new lV;if(b.add(y.componentIndex),r.set(m,b),f=!1,"x"===m||"y"===m){var w=y.getReferringComponents("grid",cr).models[0];w&&q(g,function(S){y.componentIndex!==S.componentIndex&&w===S.getReferringComponents("grid",cr).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===s}}),"single"),f&&q($A,function(g){if(f){var m=u.findComponents({mainType:mo(g),filter:function(w){return"category"===w.get("type",!0)}});if(m[0]){var y=new lV;y.add(m[0].componentIndex),r.set(g,y),f=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),"y"===r?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(r){var s=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var p=null!=r[f[0]],v=null!=r[f[1]];p&&!v?s[d]="percent":!p&&v?s[d]="value":u?s[d]=u[d]:p&&(s[d]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,u){null==r&&(r=this.ecModel.getComponent(mo(s),u))},this),r},i.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){r.call(s,f,d)})})},i.prototype.getAxisProxy=function(r,s){var u=this.getAxisModel(r,s);if(u)return u.__dzAxisProxy},i.prototype.getAxisModel=function(r,s){var u=this._targetAxisInfoMap.get(r);if(u&&u.indexMap[s])return this.ecModel.getComponent(mo(r),s)},i.prototype.setRawRange=function(r){var s=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=r[f[0]]||null!=r[f[1]])&&(s[f[0]]=u[f[0]]=r[f[0]],s[f[1]]=u[f[1]]=r[f[1]])},this),this._updateRangeUse(r)},i.prototype.setCalculatedRange=function(r){var s=this.option;q(["start","startValue","end","endValue"],function(u){s[u]=r[u]})},i.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},i.prototype.getValueRange=function(r,s){if(null!=r||null!=s)return this.getAxisProxy(r,s).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var s,u=this._targetAxisInfoMap.keys(),f=0;f=0}(r)){var s=mo(this._dimName),u=r.getReferringComponents(s,cr).models[0];u&&this._axisIndex===u.componentIndex&&i.push(r)}},this),i},o.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},o.prototype.getMinMaxSpan=function(){return it(this._minMaxSpan)},o.prototype.calculateDataWindow=function(i){var g,r=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],p=[],v=[];td(["start","end"],function(b,w){var S=i[b],M=i[b+"Value"];"percent"===f[w]?(null==S&&(S=d[w]),M=u.parse(wn(S,d,r))):(g=!0,S=wn(M=null==M?r[w]:u.parse(M),r,d)),v[w]=M,p[w]=S}),nd(v),nd(p);var m=this._minMaxSpan;function y(b,w,S,M,x){var T=x?"Span":"ValueSpan";Rh(0,b,S,"all",m["min"+T],m["max"+T]);for(var P=0;P<2;P++)w[P]=wn(b[P],S,M,!0),x&&(w[P]=u.parse(w[P]))}return g?y(v,p,r,d,!1):y(p,v,d,r,!0),{valueWindow:v,percentWindow:p}},o.prototype.reset=function(i){if(i===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=function(o,i,r){var s=[1/0,-1/0];td(r,function(d){!function(o,i,r){i&&q(ew(i,r),function(s){var u=i.getApproximateExtent(s);u[0]o[1]&&(o[1]=u[1])})}(s,d.getData(),i)});var u=o.getAxisModel(),f=mT(u.axis.scale,u,s).calculate();return[f.min,f.max]}(this,this._dimName,r),this._updateMinMaxSpan();var s=this.calculateDataWindow(i.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},o.prototype.filterData=function(i,r){if(i===this._dataZoomModel){var s=this._dimName,u=this.getTargetSeriesModels(),f=i.get("filterMode"),d=this._valueWindow;"none"!==f&&td(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(s);!m.length||("weakFilter"===f?g.filterSelf(function(y){for(var b,w,S,M=0;Md[1];if(T&&!P&&!I)return!0;T&&(S=!0),P&&(b=!0),I&&(w=!0)}return S&&b&&w}):td(m,function(y){if("empty"===f)v.setData(g=g.map(y,function(w){return function(v){return v>=d[0]&&v<=d[1]}(w)?w:NaN}));else{var b={};b[y]=d,g.selectRange(b)}}),td(m,function(y){g.setApproximateExtent(d,y)}))})}},o.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,s=this._dataExtent;td(["min","max"],function(u){var f=r.get(u+"Span"),d=r.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=wn(s[0]+d,s,[0,100],!0):null!=f&&(d=wn(f,[0,100],s,!0)-s[0]),i[u+"Span"]=f,i[u+"ValueSpan"]=d},this)},o.prototype._setAxisModel=function(){var i=this.getAxisModel(),r=this._percentWindow,s=this._valueWindow;if(r){var u=jb(s,[0,500]);u=Math.min(u,20);var f=i.axis.scale.rawExtentInfo;0!==r[0]&&f.setDeterminedMinMax("min",+s[0].toFixed(u)),100!==r[1]&&f.setDeterminedMinMax("max",+s[1].toFixed(u)),f.freeze()}},o}(),UW={getTargetSeries:function(i){function r(f){i.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(p,v){var g=i.getComponent(mo(p),v);f(p,v,g,d)})})}r(function(f,d,p,v){p.__dzAxisProxy=null});var s=[];r(function(f,d,p,v){p.__dzAxisProxy||(p.__dzAxisProxy=new zW(f,d,v,i),s.push(p.__dzAxisProxy))});var u=st();return q(s,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(i,r){i.eachComponent("dataZoom",function(s){s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).reset(s)}),s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).filterData(s,r)})}),i.eachComponent("dataZoom",function(s){var u=s.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();s.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},gV=!1;function bi(o){gV||(gV=!0,o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,UW),function(o){o.registerAction("dataZoom",function(i,r){q(function(o,i){var f,r=st(),s=[],u=st();o.eachComponent({mainType:"dataZoom",query:i},function(m){u.get(m.uid)||p(m)});do{f=!1,o.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function(m){var y=!1;return m.eachTargetAxis(function(b,w){var S=r.get(b);S&&S[w]&&(y=!0)}),y}(m)&&(p(m),f=!0)}function p(m){u.set(m.uid,!0),s.push(m),function(m){m.eachTargetAxis(function(y,b){(r.get(y)||r.set(y,[]))[b]=!0})}(m)}return s}(r,i),function(u){u.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(o),o.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function jW(o){o.registerComponentModel(fV),o.registerComponentView(HW),bi(o)}var Qo=function(){},mV={};function ep(o,i){mV[o]=i}function _V(o){return mV[o]}var tp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){o.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;q(this.option.feature,function(s,u){var f=_V(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(r)),yt(s,f.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},i}(Qt);function P1(o,i){var r=fv(i.get("padding")),s=i.getItemStyle(["color","opacity"]);return s.fill=i.get("backgroundColor"),new Bt({shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[1]+r[3],height:o.height+r[0]+r[2],r:i.get("borderRadius")},style:s,silent:!0,z2:-1})}var XW=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this.group;if(d.removeAll(),r.get("show")){var p=+r.get("itemSize"),v=r.get("feature")||{},g=this._features||(this._features={}),m=[];q(v,function(w,S){m.push(S)}),new ec(this._featureNames||[],m).add(y).update(y).remove(bt(y,null)).execute(),this._featureNames=m,function(o,i,r){var s=i.getBoxLayoutParams(),u=i.get("padding"),f={width:r.getWidth(),height:r.getHeight()},d=pi(s,f,u);Zu(i.get("orient"),o,i.get("itemGap"),d.width,d.height),z0(o,s,f,u)}(d,r,u),d.add(P1(d.getBoundingRect(),r)),d.eachChild(function(w){var S=w.__title,M=w.ensureState("emphasis"),x=M.textConfig||(M.textConfig={}),T=w.getTextContent(),P=T&&T.states.emphasis;if(P&&!Mn(P)&&S){var I=P.style||(P.style={}),R=em(S,on.makeFont(I)),B=w.x+d.x,G=!1;w.y+d.y+p+R.height>u.getHeight()&&(x.position="top",G=!0);var W=G?-5-R.height:p+8;B+R.width/2>u.getWidth()?(x.position=["100%",W],I.align="right"):B-R.width/2<0&&(x.position=[0,W],I.align="left")}})}function y(w,S){var I,M=m[w],x=m[S],T=v[M],P=new Ln(T,r,r.ecModel);if(f&&null!=f.newTitle&&f.featureName===M&&(T.title=f.newTitle),M&&!x){if(function(o){return 0===o.indexOf("my")}(M))I={onclick:P.option.onclick,featureName:M};else{var R=_V(M);if(!R)return;I=new R}g[M]=I}else if(!(I=g[x]))return;I.uid=ov("toolbox-feature"),I.model=P,I.ecModel=s,I.api=u;var B=I instanceof Qo;M||!x?!P.get("show")||B&&I.unusable?B&&I.remove&&I.remove(s,u):(function(w,S,M){var R,B,x=w.getModel("iconStyle"),T=w.getModel(["emphasis","iconStyle"]),P=S instanceof Qo&&S.getIcons?S.getIcons():w.get("icon"),I=w.get("title")||{};"string"==typeof P?(R={})[M]=P:R=P,"string"==typeof I?(B={})[M]=I:B=I;var V=w.iconPaths={};q(R,function(G,W){var K=Fm(G,{},{x:-p/2,y:-p/2,width:p,height:p});K.setStyle(x.getItemStyle()),K.ensureState("emphasis").style=T.getItemStyle();var Z=new on({style:{text:B[W],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});K.setTextContent(Z),ff({el:K,componentModel:r,itemName:W,formatterParamsExtra:{title:B[W]}}),K.__title=B[W],K.on("mouseover",function(){var ne=T.getItemStyle(),te="vertical"===r.get("orient")?null==r.get("right")?"right":"left":null==r.get("bottom")?"bottom":"top";Z.setStyle({fill:T.get("textFill")||ne.fill||ne.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),K.setTextConfig({position:T.get("textPosition")||te}),Z.ignore=!r.get("showTitle"),rl(this)}).on("mouseout",function(){"emphasis"!==w.get(["iconStatus",W])&&ha(this),Z.hide()}),("emphasis"===w.get(["iconStatus",W])?rl:ha)(K),d.add(K),K.on("click",qe(S.onclick,S,s,u,W)),V[W]=K})}(P,I,M),P.setIconStatus=function(V,G){var W=this.option,K=this.iconPaths;W.iconStatus=W.iconStatus||{},W.iconStatus[V]=G,K[V]&&("emphasis"===G?rl:ha)(K[V])},I instanceof Qo&&I.render&&I.render(P,s,u,f)):B&&I.dispose&&I.dispose(s,u)}},i.prototype.updateView=function(r,s,u,f){q(this._features,function(d){d instanceof Qo&&d.updateView&&d.updateView(d.model,s,u,f)})},i.prototype.remove=function(r,s){q(this._features,function(u){u instanceof Qo&&u.remove&&u.remove(r,s)}),this.group.removeAll()},i.prototype.dispose=function(r,s){q(this._features,function(u){u instanceof Qo&&u.dispose&&u.dispose(r,s)})},i.type="toolbox",i}(gr),eE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.onclick=function(r,s){var u=this.model,f=u.get("name")||r.get("title.0.text")||"echarts",d="svg"===s.getZr().painter.getType(),p=d?"svg":u.get("type",!0)||"png",v=s.getConnectedDataURL({type:p,backgroundColor:u.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if("function"!=typeof MouseEvent||!Ot.browser.newEdge&&(Ot.browser.ie||Ot.browser.edge))if(window.navigator.msSaveOrOpenBlob||d){var y=v.split(","),b=y[0].indexOf("base64")>-1,w=d?decodeURIComponent(y[1]):y[1];b&&(w=window.atob(w));var S=f+"."+p;if(window.navigator.msSaveOrOpenBlob){for(var M=w.length,x=new Uint8Array(M);M--;)x[M]=w.charCodeAt(M);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,S)}else{var P=document.createElement("iframe");document.body.appendChild(P);var I=P.contentWindow,R=I.document;R.open("image/svg+xml","replace"),R.write(w),R.close(),I.focus(),R.execCommand("SaveAs",!0,S),document.body.removeChild(P)}}else{var B=u.get("lang"),V='',G=window.open();G.document.write(V),G.document.title=f}else{var g=document.createElement("a");g.download=f+"."+p,g.target="_blank",g.href=v;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},i.getDefaultOption=function(r){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocale(["toolbox","saveAsImage","lang"])}},i}(Qo);eE.prototype.unusable=!Ot.canvasSupported;var ZW=eE,yV="__ec_magicType_stack__",Wy=[["line","bar"],["stack"]],Yy=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getIcons=function(){var r=this.model,s=r.get("icon"),u={};return q(r.get("type"),function(f){s[f]&&(u[f]=s[f])}),u},i.getDefaultOption=function(r){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(r,s,u){var f=this.model,d=f.get(["seriesIndex",u]);if(tE[u]){var p={series:[]};q(Wy,function(y){zt(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),r.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var M=tE[u](b.subType,b.id,b,f);M&&(tt(M,b.option),p.series.push(M));var x=b.coordinateSystem;if(x&&"cartesian2d"===x.type&&("line"===u||"bar"===u)){var T=x.getAxesByScale("ordinal")[0];if(T){var I=T.dim+"Axis",B=b.getReferringComponents(I,cr).models[0].componentIndex;p[I]=p[I]||[];for(var V=0;V<=B;V++)p[I][B]=p[I][B]||{};p[I][B].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=yt({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),s.dispatchAction({type:"changeMagicType",currentType:m,newOption:p,newTitle:g,featureName:"magicType"})}},i}(Qo),tE={line:function(i,r,s,u){if("bar"===i)return yt({id:r,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(i,r,s,u){if("line"===i)return yt({id:r,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(i,r,s,u){var f=s.get("stack")===yV;if("line"===i||"bar"===i)return u.setIconStatus("stack",f?"normal":"emphasis"),yt({id:r,stack:f?"":yV},u.get(["option","stack"])||{},!0)}};ru({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,i){i.mergeOption(o.newOption)});var QW=Yy,O1=new Array(60).join("-");function wV(o){var i=[];return q(o,function(r,s){var u=r.categoryAxis,d=r.valueAxis.dim,p=[" "].concat(Ie(r.series,function(w){return w.name})),v=[u.model.getCategories()];q(r.series,function(w){var S=w.getRawData();v.push(w.getRawData().mapArray(S.mapDimension(d),function(M){return M}))});for(var g=[p.join("\t")],m=0;m=0)return!0}(u)){var d=function(o){for(var i=o.split(/\n+/g),s=[],u=Ie($o(i.shift()).split(R1),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return o.prototype.setOutputRanges=function(i,r){return this.matchOutputRanges(i,r,function(s,u,f){if((s.coordRanges||(s.coordRanges=[])).push(u),!s.coordRange){s.coordRange=u;var d=PV[s.brushType](0,f,u);s.__rangeOffset={offset:sY[s.brushType](d.values,s.range,[1,1]),xyMinMax:d.xyMinMax}}}),i},o.prototype.matchOutputRanges=function(i,r,s){q(i,function(u){var f=this.findTargetInfo(u,r);f&&!0!==f&&q(f.coordSyses,function(d){var p=PV[u.brushType](1,d,u.range,!0);s(u,p.values,d,r)})},this)},o.prototype.setInputRanges=function(i,r){q(i,function(s){var u=this.findTargetInfo(s,r);if(s.range=s.range||[],u&&!0!==u){s.panelId=u.panelId;var f=PV[s.brushType](0,u.coordSys,s.coordRange),d=s.__rangeOffset;s.range=d?sY[s.brushType](f.values,d.offset,function(o,i){var r=IV(o),s=IV(i),u=[r[0]/s[0],r[1]/s[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},o.prototype.makePanelOpts=function(i,r){return Ie(this._targetInfoList,function(s){var u=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:r?r(s):null,clipPath:TN(u),isTargetByCursor:oA(u,i,s.coordSysModel),getLinearBrushOtherExtent:aA(u)}})},o.prototype.controlSeries=function(i,r,s){var u=this.findTargetInfo(i,s);return!0===u||u&&zt(u.coordSyses,r.coordinateSystem)>=0},o.prototype.findTargetInfo=function(i,r){for(var s=this._targetInfoList,u=AV(r,i),f=0;fo[1]&&o.reverse(),o}function AV(o,i){return Ul(o,i,{includeMainTypes:DV})}var aY={grid:function(i,r){var s=i.xAxisModels,u=i.yAxisModels,f=i.gridModels,d=st(),p={},v={};!s&&!u&&!f||(q(s,function(g){var m=g.axis.grid.model;d.set(m.id,m),p[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),p[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,w){(zt(s,b.getAxis("x").model)>=0||zt(u,b.getAxis("y").model)>=0)&&y.push(b)}),r.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:EV.grid,xAxisDeclared:p[g.id],yAxisDeclared:v[g.id]})}))},geo:function(i,r){q(i.geoModels,function(s){var u=s.coordinateSystem;r.push({panelId:"geo--"+s.id,geoModel:s,coordSysModel:s,coordSys:u,coordSyses:[u],getPanelRect:EV.geo})})}},oE=[function(o,i){var r=o.xAxisModel,s=o.yAxisModel,u=o.gridModel;return!u&&r&&(u=r.axis.grid.model),!u&&s&&(u=s.axis.grid.model),u&&u===i.gridModel},function(o,i){var r=o.geoModel;return r&&r===i.geoModel}],EV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var i=this.coordSys,r=i.getBoundingRect().clone();return r.applyTransform(cf(i)),r}},PV={lineX:bt(oY,0),lineY:bt(oY,1),rect:function(i,r,s,u){var f=i?r.pointToData([s[0][0],s[1][0]],u):r.dataToPoint([s[0][0],s[1][0]],u),d=i?r.pointToData([s[0][1],s[1][1]],u):r.dataToPoint([s[0][1],s[1][1]],u),p=[aE([f[0],d[0]]),aE([f[1],d[1]])];return{values:p,xyMinMax:p}},polygon:function(i,r,s,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Ie(s,function(p){var v=i?r.pointToData(p,u):r.dataToPoint(p,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function oY(o,i,r,s){var u=r.getAxis(["x","y"][o]),f=aE(Ie([0,1],function(p){return i?u.coordToData(u.toLocalCoord(s[p]),!0):u.toGlobalCoord(u.dataToCoord(s[p]))})),d=[];return d[o]=f,d[1-o]=[NaN,NaN],{values:f,xyMinMax:d}}var sY={lineX:bt(OV,0),lineY:bt(OV,1),rect:function(i,r,s){return[[i[0][0]-s[0]*r[0][0],i[0][1]-s[0]*r[0][1]],[i[1][0]-s[1]*r[1][0],i[1][1]-s[1]*r[1][1]]]},polygon:function(i,r,s){return Ie(i,function(u,f){return[u[0]-s[0]*r[f][0],u[1]-s[1]*r[f][1]]})}};function OV(o,i,r,s){return[i[0]-s[o]*r[0],i[1]-s[o]*r[1]]}function IV(o){return o?[o[0][1]-o[0][0],o[1][1]-o[1][0]]:[NaN,NaN]}var RV=iY,LV=q,sE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){this._brushController||(this._brushController=new qw(u.getZr()),this._brushController.on("brush",qe(this._onBrush,this)).mount()),function(o,i,r,s,u){var f=r._isZoomActive;s&&"takeGlobalCursor"===s.type&&(f="dataZoomSelect"===s.key&&s.dataZoomSelectActive),r._isZoomActive=f,o.setIconStatus("zoom",f?"emphasis":"normal");var p=new RV(lE(o),i,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(p).enableBrush(!(!f||!p.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()})}(r,s,this,f,u),function(o,i){o.setIconStatus("back",function(o){return iE(o).length}(i)>1?"emphasis":"normal")}(r,s)},i.prototype.onclick=function(r,s,u){NV[u].call(this)},i.prototype.remove=function(r,s){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(r,s){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(r){var s=r.areas;if(r.isEnd&&s.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new RV(lE(this.model),f,{include:["grid"]}).matchOutputRanges(s,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(p("x",y,m[0]),p("y",y,m[1])):p({lineX:"x",lineY:"y"}[b],y,m)}}),function(o,i){var r=iE(o);rE(i,function(s,u){for(var f=r.length-1;f>=0&&!r[f][u];f--);if(f<0){var p=o.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(p){var v=p.getPercentRange();r[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),r.push(i)}(f,u),this._dispatchZoomAction(u)}function p(g,m,y){var b=m.getAxis(g),w=b.model,S=function(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,m.componentIndex)&&(b=w)}),b}(g,w,f),M=S.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=M.minValueSpan||null!=M.maxValueSpan)&&(y=Rh(0,y.slice(),b.scale.getExtent(),0,M.minValueSpan,M.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},i.prototype._dispatchZoomAction=function(r){var s=[];LV(r,function(u,f){s.push(it(u))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},i.getDefaultOption=function(r){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(Qo),NV={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(o){var i=iE(o),r=i[i.length-1];i.length>1&&i.pop();var s={};return rE(r,function(u,f){for(var d=i.length-1;d>=0;d--)if(u=i[d][f]){s[f]=u;break}}),s}(this.ecModel))}};function lE(o){var i={xAxisIndex:o.get("xAxisIndex",!0),yAxisIndex:o.get("yAxisIndex",!0),xAxisId:o.get("xAxisId",!0),yAxisId:o.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function(o,i){ra(null==j0.get(o)&&i),j0.set(o,i)}("dataZoom",function(o){var i=o.getComponent("toolbox",0),r=["feature","dataZoom"];if(i&&null!=i.get(r)){var s=i.getModel(r),u=[],d=Ul(o,lE(s));return LV(d.xAxisModels,function(v){return p(v,"xAxis","xAxisIndex")}),LV(d.yAxisModels,function(v){return p(v,"yAxis","yAxisIndex")}),u}function p(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+g+y};b[m]=y,u.push(b)}});var BV=sE,zV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},i}(Qt);function qy(o){var i=o.get("confine");return null!=i?!!i:"richText"===o.get("renderMode")}function UV(o){if(Ot.domSupported)for(var i=document.documentElement.style,r=0,s=o.length;r-1?(u+="top:50%",f+="translateY(-50%) rotate("+("left"===s?-225:-45)+"deg)"):(u+="left:50%",f+="translateX(-50%) rotate("+("top"===s?225:45)+"deg)");var d=i+" solid 1px;";return'
'}(s.get("backgroundColor"),u,f)),tn(i))d.innerHTML=i;else if(i){d.innerHTML="",ke(i)||(i=[i]);for(var p=0;p=0;f--){var d=o[f];d&&(d instanceof Ln&&(d=d.get("tooltip",!0)),tn(d)&&(d={formatter:d}),d&&(u=new Ln(d,u,s)))}return u}function np(o,i){return o.dispatchAction||qe(i.dispatchAction,i)}function B1(o){return"center"===o||"middle"===o}var KV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){if(!Ot.node){var u=r.getComponent("tooltip"),f=u.get("renderMode");this._renderMode=function(o){return"auto"===o?Ot.domSupported?"html":"richText":o||"html"}(f),this._tooltipContent="richText"===this._renderMode?new Wn(s):new xQ(s.getDom(),s,{appendToBody:u.get("appendToBody",!0)})}},i.prototype.render=function(r,s,u){if(!Ot.node){this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=u,this._alwaysShowContent=r.get("alwaysShowContent");var f=this._tooltipContent;f.update(r),f.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var s=this._tooltipModel.get("triggerOn");K3("itemTooltip",this._api,fY(function(u,f,d){"none"!==s&&(s.indexOf(u)>=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},i.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==r.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(r,s,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(r,s,u,f){if(f.from!==this.uid&&!Ot.node){var d=np(f,u);this._ticket="";var p=f.dataByCoordSys,v=function(o,i,r){var s=Ou(o).queryOptionMap,u=s.keys()[0];if(u&&"series"!==u){var v,d=lm(i,u,s.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(r.getViewOfComponentModel(d).group.traverse(function(g){var m=gt(g).tooltipConfig;if(m&&m.name===o.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,s,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=qV;m.x=f.x,m.y=f.y,m.update(),gt(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(p)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:p,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(r,s,u,f))return;var y=$h(f,s),b=y.point[0],w=y.point[1];null!=b&&null!=w&&this._tryShow({offsetX:b,offsetY:w,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},i.prototype.manuallyHideTip=function(r,s,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(np(f,u))},i.prototype._manuallyAxisShowTip=function(r,s,u,f){var d=f.seriesIndex,p=f.dataIndex,v=s.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=p&&null!=v){var g=s.getSeriesByIndex(d);if(g&&"axis"===Xy([g.getData().getItemModel(p),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:p,position:f.position}),!0}},i.prototype._tryShow=function(r,s){var u=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var d=r.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,r);else if(u){var p,v;this._lastDataByCoordSys=null,xv(u,function(g){return null!=gt(g).dataIndex?(p=g,!0):null!=gt(g).tooltipConfig?(v=g,!0):void 0},!0),p?this._showSeriesItemTooltip(r,p,s):v?this._showComponentItemTooltip(r,v,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},i.prototype._showOrMove=function(r,s){var u=r.get("showDelay");s=qe(s,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(s,u):s()},i.prototype._showAxisTooltip=function(r,s){var u=this._ecModel,d=[s.offsetX,s.offsetY],p=Xy([s.tooltipOption],this._tooltipModel),v=this._renderMode,g=[],m=Ei("section",{blocks:[],noHeader:!0}),y=[],b=new oC;hg(r,function(P){hg(P.dataByAxis,function(I){var R=u.getComponent(I.axisDim+"Axis",I.axisIndex),B=I.value;if(R&&null!=B){var V=fW(B,R.axis,u,I.seriesDataIndices,I.valueLabelOpt),G=Ei("section",{header:V,noHeader:!Tu(V),sortBlocks:!0,blocks:[]});m.blocks.push(G),q(I.seriesDataIndices,function(W){var K=u.getSeriesByIndex(W.seriesIndex),J=W.dataIndexInside,Z=K.getDataParams(J);Z.axisDim=I.axisDim,Z.axisIndex=I.axisIndex,Z.axisType=I.axisType,Z.axisId=I.axisId,Z.axisValue=yT(R.axis,{value:B}),Z.axisValueLabel=V,Z.marker=b.makeTooltipMarker("item",hf(Z.color),v);var ne=o4(K.formatTooltip(J,!0,null));ne.markupFragment&&G.blocks.push(ne.markupFragment),ne.markupText&&y.push(ne.markupText),g.push(Z)})}})}),m.blocks.reverse(),y.reverse();var w=s.position,S=p.get("order"),M=Ve(m,b,v,S,u.get("useUTC"),p.get("textStyle"));M&&y.unshift(M);var T=y.join("richText"===v?"\n\n":"
");this._showOrMove(p,function(){this._updateContentNotChangedOnAxis(r)?this._updatePosition(p,w,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(p,T,g,Math.random()+"",d[0],d[1],w,null,b)})},i.prototype._showSeriesItemTooltip=function(r,s,u){var f=this._ecModel,d=gt(s),p=d.seriesIndex,v=f.getSeriesByIndex(p),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),w=this._renderMode,S=r.positionDefault,M=Xy([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),x=M.get("trigger");if(null==x||"item"===x){var T=g.getDataParams(m,y),P=new oC;T.marker=P.makeTooltipMarker("item",hf(T.color),w);var I=o4(g.formatTooltip(m,!1,y)),R=M.get("order"),B=I.markupFragment?Ve(I.markupFragment,P,w,R,f.get("useUTC"),M.get("textStyle")):I.markupText,V="item_"+g.name+"_"+m;this._showOrMove(M,function(){this._showTooltipContent(M,B,T,V,r.offsetX,r.offsetY,r.position,r.target,P)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:p,from:this.uid})}},i.prototype._showComponentItemTooltip=function(r,s,u){var f=gt(s),p=f.tooltipConfig.option||{};tn(p)&&(p={content:p,formatter:p});var g=[p],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:p.content});var y=r.positionDefault,b=Xy(g,this._tooltipModel,y?{position:y}:null),w=b.get("content"),S=Math.random()+"",M=new oC;this._showOrMove(b,function(){var x=it(b.get("formatterParams")||{});this._showTooltipContent(b,w,x,S,r.offsetX,r.offsetY,r.position,s,M)}),u({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(r,s,u,f,d,p,v,g,m){if(this._ticket="",r.get("showContent")&&r.get("show")){var y=this._tooltipContent,b=r.get("formatter");v=v||r.get("position");var w=s,M=this._getNearestPoint([d,p],u,r.get("trigger"),r.get("borderColor")).color;if(b&&tn(b)){var x=r.ecModel.get("useUTC"),T=ke(u)?u[0]:u;w=b,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=Um(T.axisValue,w,x)),w=MM(w,u,!0)}else if(Mn(b)){var I=fY(function(R,B){R===this._ticket&&(y.setContent(B,m,r,M,v),this._updatePosition(r,v,d,p,y,u,g))},this);this._ticket=f,w=b(u,f,I)}y.setContent(w,m,r,M,v),y.show(r,M),this._updatePosition(r,v,d,p,y,u,g)}},i.prototype._getNearestPoint=function(r,s,u,f){return"axis"===u||ke(s)?{color:f||("html"===this._renderMode?"#fff":"none")}:ke(s)?void 0:{color:f||s.color||s.borderColor}},i.prototype._updatePosition=function(r,s,u,f,d,p,v){var g=this._api.getWidth(),m=this._api.getHeight();s=s||r.get("position");var y=d.getSize(),b=r.get("align"),w=r.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),Mn(s)&&(s=s([u,f],p,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),ke(s))u=dY(s[0],g),f=dY(s[1],m);else if(pt(s)){var M=s;M.width=y[0],M.height=y[1];var x=pi(M,{width:g,height:m});u=x.x,f=x.y,b=null,w=null}else if(tn(s)&&v)u=(T=function(o,i,r){var s=r[0],u=r[1],p=0,v=0,g=i.width,m=i.height;switch(o){case"inside":p=i.x+g/2-s/2,v=i.y+m/2-u/2;break;case"top":p=i.x+g/2-s/2,v=i.y-u-10;break;case"bottom":p=i.x+g/2-s/2,v=i.y+m+10;break;case"left":p=i.x-s-10-5,v=i.y+m/2-u/2;break;case"right":p=i.x+g+10+5,v=i.y+m/2-u/2}return[p,v]}(s,S,y))[0],f=T[1];else{var T;u=(T=function(o,i,r,s,u,f,d){var p=r.getOuterSize(),v=p.width,g=p.height;return null!=f&&(o+v+f+2>s?o-=v+f:o+=f),null!=d&&(i+g+d>u?i-=g+d:i+=d),[o,i]}(u,f,d,g,m,b?null:20,w?null:20))[0],f=T[1]}b&&(u-=B1(b)?y[0]/2:"right"===b?y[0]:0),w&&(f-=B1(w)?y[1]/2:"bottom"===w?y[1]:0),qy(r)&&(u=(T=function(o,i,r,s,u){var f=r.getOuterSize(),d=f.width,p=f.height;return o=Math.min(o+d,s)-d,i=Math.min(i+p,u)-p,[o=Math.max(o,0),i=Math.max(i,0)]}(u,f,d,g,m))[0],f=T[1]),d.moveTo(u,f)},i.prototype._updateContentNotChangedOnAxis=function(r){var s=this._lastDataByCoordSys,u=!!s&&s.length===r.length;return u&&hg(s,function(f,d){var p=f.dataByAxis||[],g=(r[d]||{}).dataByAxis||[];(u=u&&p.length===g.length)&&hg(p,function(m,y){var b=g[y]||{},w=m.seriesDataIndices||[],S=b.seriesDataIndices||[];(u=u&&m.value===b.value&&m.axisType===b.axisType&&m.axisId===b.axisId&&w.length===S.length)&&hg(w,function(M,x){var T=S[x];u=u&&M.seriesIndex===T.seriesIndex&&M.dataIndex===T.dataIndex})})}),this._lastDataByCoordSys=r,!!u},i.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},i.prototype.dispose=function(r,s){Ot.node||(this._tooltipContent.dispose(),go("itemTooltip",s))},i.type="tooltip",i}(gr),vE=["rect","polygon","keep","clear"];function gE(o,i){var r=pr(o?o.brush:[]);if(r.length){var s=[];q(r,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(s=s.concat(g))});var u=o&&o.toolbox;ke(u)&&(u=u[0]),u||(o.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),p=d.type||(d.type=[]);p.push.apply(p,s),function(o){var i={};q(o,function(r){i[r]=1}),o.length=0,q(i,function(r,s){o.push(s)})}(p),i&&!p.length&&p.push.apply(p,vE)}}var mE=q;function H1(o){if(o)for(var i in o)if(o.hasOwnProperty(i))return!0}function QV(o,i,r){var s={};return mE(i,function(f){var d=s[f]=function(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();mE(o[f],function(p,v){if($i.isValidType(v)){var g={type:v,visual:p};r&&r(g,f),d[v]=new $i(g),"opacity"===v&&((g=it(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new $i(g))}})}),s}function z1(o,i,r){var s;q(r,function(u){i.hasOwnProperty(u)&&H1(i[u])&&(s=!0)}),s&&q(r,function(u){i.hasOwnProperty(u)&&H1(i[u])?o[u]=it(i[u]):delete o[u]})}var _E={lineX:JV(0),lineY:JV(1),rect:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])},rect:function(i,r,s){return i&&s.boundingRect.intersect(i)}},polygon:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])&&Dn(s.range,i[0],i[1])},rect:function(i,r,s){var u=s.range;if(!i||u.length<=1)return!1;var f=i.x,d=i.y,p=i.width,v=i.height,g=u[0];return!!(Dn(u,f,d)||Dn(u,f+p,d)||Dn(u,f,d+v)||Dn(u,f+p,d+v)||Vt.create(i).contain(g[0],g[1])||nv(f,d,f+p,d,u)||nv(f,d,f,d+v,u)||nv(f+p,d,f+p,d+v,u)||nv(f,d+v,f+p,d+v,u))||void 0}}};function JV(o){var i=["x","y"],r=["width","height"];return{point:function(u,f,d){if(u)return kl(u[o],d.range)},rect:function(u,f,d){if(u){var p=d.range,v=[u[i[o]],u[i[o]]+u[r[o]]];return v[1]r[0][1]&&(r[0][1]=d[0]),d[1]r[1][1]&&(r[1][1]=d[1])}return r&&rB(r)}};function rB(o){return new Vt(o[0][0],o[1][0],o[0][1]-o[0][0],o[1][1]-o[1][0])}var CE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.ecModel=r,this.api=s,(this._brushController=new qw(s.getZr())).on("brush",qe(this._onBrush,this)).mount()},i.prototype.render=function(r,s,u,f){this.model=r,this._updateController(r,s,u,f)},i.prototype.updateTransform=function(r,s,u,f){G1(s),this._updateController(r,s,u,f)},i.prototype.updateVisual=function(r,s,u,f){this.updateTransform(r,s,u,f)},i.prototype.updateView=function(r,s,u,f){this._updateController(r,s,u,f)},i.prototype._updateController=function(r,s,u,f){(!f||f.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(u)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(r){var s=this.model.id,u=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:s,areas:it(u),$from:s}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:s,areas:it(u),$from:s})},i.type="brush",i}(gr);function Ky(o,i){return yt({brushType:o.brushType,brushMode:o.brushMode,transformable:o.transformable,brushStyle:new Ln(o.brushStyle).getItemStyle(),removeOnClick:o.removeOnClick,z:o.z},i,!0)}var W1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.areas=[],r.brushOption={},r}return he(i,o),i.prototype.optionUpdated=function(r,s){var u=this.option;!s&&z1(u,r,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},i.prototype.setAreas=function(r){!r||(this.areas=Ie(r,function(s){return Ky(this.option,s)},this))},i.prototype.setBrushOption=function(r){this.brushOption=Ky(this.option,r),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},i}(Qt),aB=["rect","polygon","lineX","lineY","keep","clear"],rp=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u){var f,d,p;s.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",p=p||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(r.get("type",!0),function(v){r.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?p:v===f)?"emphasis":"normal")})},i.prototype.updateView=function(r,s,u){this.render(r,s,u)},i.prototype.getIcons=function(){var r=this.model,s=r.get("icon",!0),u={};return q(r.get("type",!0),function(f){s[f]&&(u[f]=s[f])}),u},i.prototype.onclick=function(r,s,u){var f=this._brushType,d=this._brushMode;"clear"===u?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},i.getDefaultOption=function(r){return{show:!0,type:aB.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocale(["toolbox","brush","title"])}},i}(Qo),Y1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode={type:"box",ignoreSize:!0},r}return he(i,o),i.type="title",i.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},i}(Qt),vY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){if(this.group.removeAll(),r.get("show")){var f=this.group,d=r.getModel("textStyle"),p=r.getModel("subtextStyle"),v=r.get("textAlign"),g=Yt(r.get("textBaseline"),r.get("textVerticalAlign")),m=new on({style:Ir(d,{text:r.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=r.get("subtext"),w=new on({style:Ir(p,{text:b,fill:p.getTextColor(),y:y.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=r.get("link"),M=r.get("sublink"),x=r.get("triggerEvent",!0);m.silent=!S&&!x,w.silent=!M&&!x,S&&m.on("click",function(){H0(S,"_"+r.get("target"))}),M&&w.on("click",function(){H0(M,"_"+r.get("subtarget"))}),gt(m).eventData=gt(w).eventData=x?{componentType:"title",componentIndex:r.componentIndex}:null,f.add(m),b&&f.add(w);var T=f.getBoundingRect(),P=r.getBoxLayoutParams();P.width=T.width,P.height=T.height;var I=pi(P,{width:u.getWidth(),height:u.getHeight()},r.get("padding"));v||("middle"===(v=r.get("left")||r.get("right"))&&(v="center"),"right"===v?I.x+=I.width:"center"===v&&(I.x+=I.width/2)),g||("center"===(g=r.get("top")||r.get("bottom"))&&(g="middle"),"bottom"===g?I.y+=I.height:"middle"===g&&(I.y+=I.height/2),g=g||"top"),f.x=I.x,f.y=I.y,f.markRedraw();var R={align:v,verticalAlign:g};m.setStyle(R),w.setStyle(R),T=f.getBoundingRect();var B=I.margin,V=r.getItemStyle(["color","opacity"]);V.fill=r.get("backgroundColor");var G=new Bt({shape:{x:T.x-B[3],y:T.y-B[0],width:T.width+B[1]+B[3],height:T.height+B[0]+B[2],r:r.get("borderRadius")},style:V,subPixelOptimize:!0,silent:!0});f.add(G)}},i.type="title",i}(gr),mc=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode="box",r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u),this._initData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(r){null==r&&(r=this.option.currentIndex);var s=this._data.count();this.option.loop?r=(r%s+s)%s:(r>=s&&(r=s-1),r<0&&(r=0)),this.option.currentIndex=r},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(r){this.option.autoPlay=!!r},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var d,r=this.option,s=r.data||[],u=r.axisType,f=this._names=[];"category"===u?(d=[],q(s,function(g,m){var b,y=xi(sm(g),"");pt(g)?(b=it(g)).value=m:b=m,d.push(b),f.push(y)})):d=s,(this._data=new _a([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},i}(Qt),kE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline.slider",i.defaultOption=Ql(mc.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),i}(mc);br(kE,J0.prototype);var oB=kE,ip=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline",i}(gr),gY=function(o){function i(r,s,u,f){var d=o.call(this,r,s,u)||this;return d.type=f||"value",d}return he(i,o),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(Qi),$y=Math.PI,ME=nn();function sB(o,i,r,s,u,f){var d=i.get("color");u?(u.setColor(d),r.add(u),f&&f.onUpdate(u)):((u=ii(o.get("symbol"),-1,-1,2,2,d)).setStyle("strokeNoScale",!0),r.add(u),f&&f.onCreate(u));var v=i.getItemStyle(["color"]);u.setStyle(v),s=yt({rectHover:!0,z2:100},s,!0);var g=o.get("symbolSize");g=g instanceof Array?g.slice():[+g,+g],s.scaleX=g[0]/2,s.scaleY=g[1]/2;var m=o.get("symbolOffset");m&&(s.x=s.x||0,s.y=s.y||0,s.x+=Ae(m[0],g[0]),s.y+=Ae(m[1],g[1]));var y=o.get("symbolRotate");return s.rotation=(y||0)*Math.PI/180||0,u.attr(s),u.updateTransform(),u}function TE(o,i,r,s,u,f){if(!o.dragging){var d=u.getModel("checkpointStyle"),p=s.dataToCoord(u.getData().get("value",r));if(f||!d.get("animation",!0))o.attr({x:p,y:0}),i&&i.attr({shape:{x2:p}});else{var v={duration:d.get("animationDuration",!0),easing:d.get("animationEasing",!0)};o.stopAnimation(null,!0),o.animateTo({x:p,y:0},v),i&&i.animateTo({shape:{x2:p}},v)}}}var lB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.api=s},i.prototype.render=function(r,s,u){if(this.model=r,this.api=u,this.ecModel=s,this.group.removeAll(),r.get("show",!0)){var f=this._layout(r,u),d=this._createGroup("_mainGroup"),p=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,r);r.formatTooltip=function(g){return Ei("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,r)},this),this._renderAxisLabel(f,p,v,r),this._position(f,r)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(r,s){var p,u=r.get(["label","position"]),f=r.get("orient"),d=function(o,i){return pi(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},o.get("padding"))}(r,s),v={horizontal:"center",vertical:(p=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===p?"left":"right"},g={horizontal:p>=0||"+"===p?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:$y/2},y="vertical"===f?d.height:d.width,b=r.getModel("controlStyle"),w=b.get("show",!0),S=w?b.get("itemSize"):0,M=w?b.get("itemGap"):0,x=S+M,T=r.get(["label","rotate"])||0;T=T*$y/180;var P,I,R,B=b.get("position",!0),V=w&&b.get("showPlayBtn",!0),G=w&&b.get("showPrevBtn",!0),W=w&&b.get("showNextBtn",!0),K=0,J=y;"left"===B||"bottom"===B?(V&&(P=[0,0],K+=x),G&&(I=[K,0],K+=x),W&&(R=[J-S,0],J-=x)):(V&&(P=[J-S,0],J-=x),G&&(I=[0,0],K+=x),W&&(R=[J-S,0],J-=x));var Z=[K,J];return r.get("inverse")&&Z.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:T,labelPosOpt:p,labelAlign:r.get(["label","align"])||v[f],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||g[f],playPosition:P,prevBtnPosition:I,nextBtnPosition:R,axisExtent:Z,controlSize:S,controlGap:M}},i.prototype._position=function(r,s){var u=this._mainGroup,f=this._labelGroup,d=r.viewRect;if("vertical"===r.orient){var p=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;Eo(p,p,[-v,-g]),Vl(p,p,-$y/2),Eo(p,p,[v,g]),(d=d.clone()).applyTransform(p)}var m=P(d),y=P(u.getBoundingRect()),b=P(f.getBoundingRect()),w=[u.x,u.y],S=[f.x,f.y];S[0]=w[0]=m[0][0];var x,M=r.labelPosOpt;function T(R){R.originX=m[0][0]-R.x,R.originY=m[1][0]-R.y}function P(R){return[[R.x,R.x+R.width],[R.y,R.y+R.height]]}function I(R,B,V,G,W){R[G]+=V[G][W]-B[G][W]}null==M||tn(M)?(I(w,y,m,1,x="+"===M?0:1),I(S,b,m,1,1-x)):(I(w,y,m,1,x=M>=0?0:1),S[1]=w[1]+M),u.setPosition(w),f.setPosition(S),u.rotation=f.rotation=r.rotation,T(u),T(f)},i.prototype._createAxis=function(r,s){var u=s.getData(),f=s.get("axisType"),d=function(o,i){if(i=i||o.get("type"))switch(i){case"category":return new cT({ordinalMeta:o.getCategories(),extent:[1/0,-1/0]});case"time":return new KC({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new Fv}}(s,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var p=u.getDataExtent("value");d.setExtent(p[0],p[1]),d.niceTicks();var v=new gY("value",d,r.axisExtent,f);return v.model=s,v},i.prototype._createGroup=function(r){var s=this[r]=new ut;return this.group.add(s),s},i.prototype._renderAxisLine=function(r,s,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var p=new Ai({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:Me({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});s.add(p);var v=this._progressLine=new Ai({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:tt({lineCap:"round",lineWidth:p.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});s.add(v)}},i.prototype._renderAxisTick=function(r,s,u,f){var d=this,p=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=p.getItemModel(g.value),b=y.getModel("itemStyle"),w=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),M={x:m,y:0,onclick:qe(d._changeTimeline,d,g.value)},x=sB(y,b,s,M);x.ensureState("emphasis").style=w.getItemStyle(),x.ensureState("progress").style=S.getItemStyle(),Un(x);var T=gt(x);y.get("tooltip")?(T.dataIndex=g.value,T.dataModel=f):T.dataIndex=T.dataModel=null,d._tickSymbols.push(x)})},i.prototype._renderAxisLabel=function(r,s,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),w=b.getModel("label"),S=b.getModel(["emphasis","label"]),M=b.getModel(["progress","label"]),x=u.dataToCoord(m.tickValue),T=new on({x:x,y:0,rotation:r.labelRotation-r.rotation,onclick:qe(d._changeTimeline,d,y),silent:!1,style:Ir(w,{text:m.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});T.ensureState("emphasis").style=Ir(S),T.ensureState("progress").style=Ir(M),s.add(T),Un(T),ME(T).dataIndex=y,d._tickLabels.push(T)})}},i.prototype._renderControl=function(r,s,u,f){var d=r.controlSize,p=r.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(w,S,M,x){if(w){var T=Pa(Yt(f.get(["controlStyle",S+"BtnSize"]),d),d),I=function(o,i,r,s){var u=s.style,f=Fm(o.get(["controlStyle",i]),s||{},new Vt(r[0],r[1],r[2],r[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:d/2,originY:0,rotation:x?-p:0,rectHover:!0,style:v,onclick:M});I.ensureState("emphasis").style=g,s.add(I),Un(I)}}b(r.nextBtnPosition,"next",qe(this._changeTimeline,this,y?"-":"+")),b(r.prevBtnPosition,"prev",qe(this._changeTimeline,this,y?"+":"-")),b(r.playPosition,m?"stop":"play",qe(this._handlePlayClick,this,!m),!0)},i.prototype._renderCurrentPointer=function(r,s,u,f){var d=f.getData(),p=f.getCurrentIndex(),v=d.getItemModel(p).getModel("checkpointStyle"),g=this;this._currentPointer=sB(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=qe(g._handlePointerDrag,g),b.ondragend=qe(g._handlePointerDragend,g),TE(b,g._progressLine,p,u,f,!0)},onUpdate:function(b){TE(b,g._progressLine,p,u,f)}})},i.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},i.prototype._handlePointerDrag=function(r,s,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},i.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},i.prototype._pointerChangeTimeline=function(r,s){var u=this._toAxisCoord(r)[0],d=ca(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var EE={min:bt(K1,"min"),max:bt(K1,"max"),average:bt(K1,"average"),median:bt(K1,"median")};function eb(o,i){var r=o.getData(),s=o.coordinateSystem;if(i&&!function(o){return!isNaN(parseFloat(o.x))&&!isNaN(parseFloat(o.y))}(i)&&!ke(i.coord)&&s){var u=s.dimensions,f=tb(i,r,s,o);if((i=it(i)).type&&EE[i.type]&&f.baseAxis&&f.valueAxis){var d=zt(u,f.baseAxis.dim),p=zt(u,f.valueAxis.dim),v=EE[i.type](r,f.baseDataDim,f.valueDataDim,d,p);i.coord=v[0],i.value=v[1]}else{for(var g=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis],m=0;m<2;m++)EE[g[m]]&&(g[m]=nb(r,r.mapDimension(u[m]),g[m]));i.coord=g}}return i}function tb(o,i,r,s){var u={};return null!=o.valueIndex||null!=o.valueDim?(u.valueDataDim=null!=o.valueIndex?i.getDimension(o.valueIndex):o.valueDim,u.valueAxis=r.getAxis(function(o,i){var r=o.getData(),s=r.dimensions;i=r.getDimension(i);for(var u=0;u=0&&"number"==typeof g&&(g=+g.toFixed(Math.min(x,20))),S.coord[b]=M.coord[b]=g,d=[S,M,{type:p,valueIndex:u.valueIndex,value:g}]}else d=[]}var T=[eb(i,d[0]),eb(i,d[1]),Me({},d[2])];return T[2].type=T[2].type||null,yt(T[2],T[0]),yt(T[2],T[1]),T};function ab(o){return!isNaN(o)&&!isFinite(o)}function pB(o,i,r,s){var u=1-o,f=s.dimensions[o];return ab(i[u])&&ab(r[u])&&i[o]===r[o]&&s.getAxis(f).containData(i[o])}function IQ(o,i){if("cartesian2d"===o.type){var r=i[0].coord,s=i[1].coord;if(r&&s&&(pB(1,r,s,o)||pB(0,r,s,o)))return!0}return Ml(o,i[0])&&Ml(o,i[1])}function ob(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Ae(d.get("x"),u.getWidth()),g=Ae(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(o.dimensions,i));else{var y=o.get((m=f.dimensions)[0],i),b=o.get(m[1],i);p=f.dataToPoint([y,b])}if(su(f,"cartesian2d")){var m,w=f.getAxis("x"),S=f.getAxis("y");ab(o.get((m=f.dimensions)[0],i))?p[0]=w.toGlobalCoord(w.getExtent()[r?0:1]):ab(o.get(m[1],i))&&(p[1]=S.toGlobalCoord(S.getExtent()[r?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];o.setItemLayout(i,p)}var AY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=ad.getMarkerModelFromSeries(f,"markLine");if(d){var p=d.getData(),v=ib(d).from,g=ib(d).to;v.each(function(m){ob(v,m,!0,f,u),ob(g,m,!1,f,u)}),p.each(function(m){p.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new UF);this.group.add(m.group);var y=function(o,i,r){var s;s=o?Ie(o&&o.dimensions,function(g){return tt({name:g},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{})}):[{name:"value",type:"float"}];var u=new _a(s,r),f=new _a(s,r),d=new _a([],r),p=Ie(r.get("data"),bt(TY,i,o,r));o&&(p=sr(p,bt(IQ,o)));var v=o?Q1:function(g){return g.value};return u.initData(Ie(p,function(g){return g[0]}),null,v),f.initData(Ie(p,function(g){return g[1]}),null,v),d.initData(Ie(p,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,r,s),b=y.from,w=y.to,S=y.line;ib(s).from=b,ib(s).to=w,s.setData(S);var M=s.get("symbol"),x=s.get("symbolSize"),T=s.get("symbolRotate"),P=s.get("symbolOffset");function I(R,B,V){var G=R.getItemModel(B);ob(R,B,V,r,f);var W=G.getModel("itemStyle").getItemStyle();null==W.fill&&(W.fill=a_(v,"color")),R.setItemVisual(B,{symbolKeepAspect:G.get("symbolKeepAspect"),symbolOffset:Yt(G.get("symbolOffset"),P[V?0:1]),symbolRotate:Yt(G.get("symbolRotate",!0),T[V?0:1]),symbolSize:Yt(G.get("symbolSize"),x[V?0:1]),symbol:Yt(G.get("symbol",!0),M[V?0:1]),style:W})}ke(M)||(M=[M,M]),ke(x)||(x=[x,x]),ke(T)||(T=[T,T]),ke(P)||(P=[P,P]),y.from.each(function(R){I(b,R,!0),I(w,R,!1)}),S.each(function(R){var B=S.getItemModel(R).getModel("lineStyle").getLineStyle();S.setItemLayout(R,[b.getItemLayout(R),w.getItemLayout(R)]),null==B.stroke&&(B.stroke=b.getItemVisual(R,"style").fill),S.setItemVisual(R,{fromSymbolKeepAspect:b.getItemVisual(R,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(R,"symbolOffset"),fromSymbolRotate:b.getItemVisual(R,"symbolRotate"),fromSymbolSize:b.getItemVisual(R,"symbolSize"),fromSymbol:b.getItemVisual(R,"symbol"),toSymbolKeepAspect:w.getItemVisual(R,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(R,"symbolOffset"),toSymbolRotate:w.getItemVisual(R,"symbolRotate"),toSymbolSize:w.getItemVisual(R,"symbolSize"),toSymbol:w.getItemVisual(R,"symbol"),style:B})}),m.updateData(S),y.line.eachItemGraphicEl(function(R,B){R.traverse(function(V){gt(V).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markLine",i}(PE),vB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markArea",i.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(ad),gg=nn(),gB=function(i,r,s,u){var f=eb(i,u[0]),d=eb(i,u[1]),p=f.coord,v=d.coord;p[0]=jr(p[0],-1/0),p[1]=jr(p[1],-1/0),v[0]=jr(v[0],1/0),v[1]=jr(v[1],1/0);var g=Ht([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function J1(o){return!isNaN(o)&&!isFinite(o)}function mB(o,i,r,s){var u=1-o;return J1(i[u])&&J1(r[u])}function OY(o,i){var r=i.coord[0],s=i.coord[1];return!!(su(o,"cartesian2d")&&r&&s&&(mB(1,r,s)||mB(0,r,s)))||Ml(o,{coord:r,x:i.x0,y:i.y0})||Ml(o,{coord:s,x:i.x1,y:i.y1})}function _B(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Ae(d.get(r[0]),u.getWidth()),g=Ae(d.get(r[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(r,i));else{var b=[m=o.get(r[0],i),y=o.get(r[1],i)];f.clampData&&f.clampData(b,b),p=f.dataToPoint(b,!0)}if(su(f,"cartesian2d")){var w=f.getAxis("x"),S=f.getAxis("y"),m=o.get(r[0],i),y=o.get(r[1],i);J1(m)?p[0]=w.toGlobalCoord(w.getExtent()["x0"===r[0]?0:1]):J1(y)&&(p[1]=S.toGlobalCoord(S.getExtent()["y0"===r[1]?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];return p}var yB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],RY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=ad.getMarkerModelFromSeries(f,"markArea");if(d){var p=d.getData();p.each(function(v){var g=Ie(yB,function(y){return _B(p,v,y,f,u)});p.setItemLayout(v,g),p.getItemGraphicEl(v).setShape("points",g)})}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,{group:new ut});this.group.add(m.group),this.markKeep(m);var y=function(o,i,r){var s,u;o?(s=Ie(o&&o.dimensions,function(v){var g=i.getData();return tt({name:v},g.getDimensionInfo(g.mapDimension(v))||{})}),u=new _a(Ie(["x0","y0","x1","y1"],function(v,g){return{name:v,type:s[g%2].type}}),r)):u=new _a(s=[{name:"value",type:"float"}],r);var d=Ie(r.get("data"),bt(gB,i,o,r));return o&&(d=sr(d,bt(OY,o))),u.initData(d,null,o?function(v,g,m,y){return v.coord[Math.floor(y/2)][y%2]}:function(v){return v.value}),u.hasItemOption=!0,u}(d,r,s);s.setData(y),y.each(function(b){var w=Ie(yB,function(W){return _B(y,b,W,r,f)}),S=d.getAxis("x").scale,M=d.getAxis("y").scale,x=S.getExtent(),T=M.getExtent(),P=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],I=[M.parse(y.get("y0",b)),M.parse(y.get("y1",b))];ca(P),ca(I),y.setItemLayout(b,{points:w,allClipped:!!(x[0]>P[1]||x[1]I[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},i}(Qt),mg=bt,SB=q,tS=ut;function nS(o,i,r,s){OE(o,i,r,s),r.dispatchAction({type:"legendToggleSelect",name:null!=o?o:i}),sb(o,i,r,s)}function _g(o){for(var r,i=o.getZr().storage.getDisplayList(),s=0,u=i.length;s0?2:0:g[b]=w}var S=i.getModel("lineStyle"),M=mM.concat([["inactiveColor"],["inactiveWidth"]]),x={};for(m=0;m0?2:0:x[b]=w}if("auto"===g.fill&&(g.fill=u.fill),"auto"===g.stroke&&(g.stroke=u.fill),"auto"===x.stroke&&(x.stroke=u.fill),!d){var T=i.get("inactiveBorderWidth"),P=g[o.indexOf("empty")>-1?"fill":"stroke"];g.lineWidth="auto"===T?u.lineWidth>0&&P?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),x.stroke=r.get("inactiveColor"),x.lineWidth=r.get("inactiveWidth")}return{itemStyle:g,lineStyle:x}}(m=T||m||"roundRect",f,d.getModel("lineStyle"),v,g,b,M),R=new tS,B=f.getModel("textStyle");if("function"!=typeof r.getLegendIcon||T&&"inherit"!==T){var V="inherit"===T&&r.getData().getVisual("symbol")?"inherit"===x?r.getData().getVisual("symbolRotate"):x:0;R.add(function(o){var i=o.icon||"roundRect",r=ii(i,0,0,o.itemWidth,o.itemHeight,o.itemStyle.fill);return r.setStyle(o.itemStyle),r.rotation=(o.iconRotate||0)*Math.PI/180,r.setOrigin([o.itemWidth/2,o.itemHeight/2]),i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}({itemWidth:w,itemHeight:S,icon:m,iconRotate:V,itemStyle:I.itemStyle,lineStyle:I.lineStyle}))}else R.add(r.getLegendIcon({itemWidth:w,itemHeight:S,icon:m,iconRotate:x,itemStyle:I.itemStyle,lineStyle:I.lineStyle}));var G="left"===p?w+5:-5,W=p,K=d.get("formatter"),J=s;"string"==typeof K&&K?J=K.replace("{name}",null!=s?s:""):"function"==typeof K&&(J=K(s));var Z=f.get("inactiveColor");R.add(new on({style:Ir(B,{text:J,x:G,y:S/2,fill:M?B.getTextColor():Z,align:W,verticalAlign:"middle"})}));var ne=new Bt({shape:R.getBoundingRect(),invisible:!0}),te=f.getModel("tooltip");return te.get("show")&&ff({el:ne,componentModel:d,itemName:s,itemTooltipOption:te.option}),R.add(ne),R.eachChild(function(se){se.silent=!0}),ne.silent=!y,this.getContentGroup().add(R),Un(R),R.__legendDataIndex=u,R},i.prototype.layoutInner=function(r,s,u,f,d,p){var v=this.getContentGroup(),g=this.getSelectorGroup();Zu(r.get("orient"),v,r.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Zu("horizontal",g,r.get("selectorItemGap",!0));var b=g.getBoundingRect(),w=[-b.x,-b.y],S=r.get("selectorButtonGap",!0),M=r.getOrient().index,x=0===M?"width":"height",T=0===M?"height":"width",P=0===M?"y":"x";"end"===p?w[M]+=m[x]+S:y[M]+=b[x]+S,w[1-M]+=m[T]/2-b[T]/2,g.x=w[0],g.y=w[1],v.x=y[0],v.y=y[1];var I={x:0,y:0};return I[x]=m[x]+S+b[x],I[T]=Math.max(m[T],b[T]),I[P]=Math.min(0,b[P]+w[1-M]),I}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(gr);function IE(o){var i=o.findComponents({mainType:"legend"});i&&i.length&&o.filterSeries(function(r){for(var s=0;su[d],x=[-w.x,-w.y];s||(x[f]=m[g]);var T=[0,0],P=[-S.x,-S.y],I=Yt(r.get("pageButtonGap",!0),r.get("itemGap",!0));M&&("end"===r.get("pageButtonPosition",!0)?P[f]+=u[d]-S[d]:T[f]+=S[d]+I),P[1-f]+=w[p]/2-S[p]/2,m.setPosition(x),y.setPosition(T),b.setPosition(P);var B={x:0,y:0};if(B[d]=M?u[d]:w[d],B[p]=Math.max(w[p],S[p]),B[v]=Math.min(0,S[v]+P[1-f]),y.__rectSize=u[d],M){var V={x:0,y:0};V[d]=Math.max(u[d]-S[d]-I,0),V[p]=B[p],y.setClipPath(new Bt({shape:V})),y.__rectSize=V[d]}else b.eachChild(function(W){W.attr({invisible:!0,silent:!0})});var G=this._getPageInfo(r);return null!=G.pageIndex&&un(m,{x:G.contentPosition[0],y:G.contentPosition[1]},M?r:null),this._updatePageInfoView(r,G),B},i.prototype._pageGo=function(r,s,u){var f=this._getPageInfo(s)[r];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:s.id})},i.prototype._updatePageInfoView=function(r,s){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=s[m+"DataIndex"],w=u.childOfName(m);w&&(w.setStyle("fill",r.get(b?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=r.get("pageFormatter"),p=s.pageIndex,v=null!=p?p+1:0,g=s.pageCount;f&&d&&f.setStyle("text",tn(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},i.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=r.getOrient().index,p=yg[d],v=TB[d],g=this._findTargetItemIndex(s),m=u.children(),y=m[g],b=m.length,w=b?1:0,S={contentPosition:[u.x,u.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var M=R(y);S.contentPosition[d]=-M.s;for(var x=g+1,T=M,P=M,I=null;x<=b;++x)(!(I=R(m[x]))&&P.e>T.s+f||I&&!B(I,T.s))&&(T=P.i>T.i?P:I)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=T.i),++S.pageCount),P=I;for(x=g-1,T=M,P=M,I=null;x>=-1;--x)(!(I=R(m[x]))||!B(P,I.s))&&T.i=G&&V.s<=G+f}},i.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(d,p){var v=d.__legendDataIndex;null==f&&null!=v&&(f=p),v===r&&(s=p)}),null!=s?s:f):0;var s,f},i.type="legend.scroll",i}(MB);function HY(o){wt(ub),o.registerComponentModel(xB),o.registerComponentView(bg),function(o){o.registerAction("legendScroll","legendscroll",function(i,r){var s=i.scrollDataIndex;null!=s&&r.eachComponent({mainType:"legend",subType:"scroll",query:i},function(u){u.setScrollDataIndex(s)})})}(o)}var AB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.inside",i.defaultOption=Ql(Gy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(Gy),Cg=nn();function EB(o,i,r){Cg(o).coordSysRecordMap.each(function(s){var u=s.dataZoomInfoMap.get(i.uid);u&&(u.getRange=r)})}function rS(o,i){if(i){o.removeKey(i.model.uid);var r=i.controller;r&&r.dispose()}}function jY(o,i){o.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function PB(o,i,r,s){return o.coordinateSystem.containPoint([r,s])}var YY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return he(i,o),i.prototype.render=function(r,s,u){o.prototype.render.apply(this,arguments),r.noTarget()?this._clear():(this.range=r.getPercentRange(),EB(u,r,{pan:qe(iS.pan,this),zoom:qe(iS.zoom,this),scrollMove:qe(iS.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function(o,i){for(var r=Cg(o).coordSysRecordMap,s=r.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Rh(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:IB(function(o,i,r,s,u,f){var d=FE[s]([f.oldX,f.oldY],[f.newX,f.newY],i,u,r);return d.signal*(o[1]-o[0])*d.pixel/d.pixelLength}),scrollMove:IB(function(o,i,r,s,u,f){return FE[s]([0,0],[f.scrollDelta,f.scrollDelta],i,u,r).signal*(o[1]-o[0])*f.scrollDelta})};function IB(o){return function(i,r,s,u){var f=this.range,d=f.slice(),p=i.axisModels[0];if(p&&(Rh(o(d,p,i,r,s,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var FE={grid:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem.getRect();return i=i||[0,0],"x"===d.dim?(p.pixel=r[0]-i[0],p.pixelLength=v.width,p.pixelStart=v.x,p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=v.height,p.pixelStart=v.y,p.signal=d.inverse?-1:1),p},polar:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return i=i?v.pointToCoord(i):[0,0],r=v.pointToCoord(r),"radiusAxis"===s.mainType?(p.pixel=r[0]-i[0],p.pixelLength=g[1]-g[0],p.pixelStart=g[0],p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=m[1]-m[0],p.pixelStart=m[0],p.signal=d.inverse?-1:1),p},singleAxis:function(i,r,s,u,f){var d=s.axis,p=f.model.coordinateSystem.getRect(),v={};return i=i||[0,0],"horizontal"===d.orient?(v.pixel=r[0]-i[0],v.pixelLength=p.width,v.pixelStart=p.x,v.signal=d.inverse?1:-1):(v.pixel=r[1]-i[1],v.pixelLength=p.height,v.pixelStart=p.y,v.signal=d.inverse?-1:1),v}},RB=YY;function aS(o){bi(o),o.registerComponentModel(AB),o.registerComponentView(RB),function(o){o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,function(i,r){var s=Cg(r),u=s.coordSysRecordMap||(s.coordSysRecordMap=st());u.each(function(f){f.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(BW(f).infoList,function(p){var v=p.model.uid,g=u.get(v)||u.set(v,function(o,i){var r={model:i,containsPoint:bt(PB,i),dispatchAction:bt(jY,o),dataZoomInfoMap:null,controller:null},s=r.controller=new jv(o.getZr());return q(["pan","zoom","scrollMove"],function(u){s.on(u,function(f){var d=[];r.dataZoomInfoMap.each(function(p){if(f.isAvailableBehavior(p.model.option)){var v=(p.getRange||{})[u],g=v&&v(p.dzReferCoordSysInfo,r.model.mainType,r.controller,f);!p.model.get("disabled",!0)&&g&&d.push({dataZoomId:p.model.id,start:g[0],end:g[1]})}}),d.length&&r.dispatchAction(d)})}),r}(r,p.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=st())).set(f.uid,{dzReferCoordSysInfo:p,model:f,getRange:null})})}),u.each(function(f){var p,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(p=v.get(g))}if(p){var m=function(o){var i,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return o.each(function(f){var d=f.model,p=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");s[r+p]>s[r+i]&&(i=p),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),e_(f,"dispatchAction",p.model.get("throttle",!0),"fixRate")}else rS(u,f)})})}(o)}var oS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=Ql(Gy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),i}(Gy),sp=Bt,cb="horizontal",VB="vertical",HB=["line","bar","candlestick","scatter"],XY={easing:"cubicOut",duration:100};function VE(o){return"vertical"===o?"ns-resize":"ew-resize"}var LQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._displayables={},r}return he(i,o),i.prototype.init=function(r,s){this.api=s,this._onBrush=qe(this._onBrush,this),this._onBrushEnd=qe(this._onBrushEnd,this)},i.prototype.render=function(r,s,u,f){if(o.prototype.render.apply(this,arguments),e_(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),!1!==r.get("show"))return r.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){!function(o,i){var r=o[i];r&&r[qi]&&(o[i]=r[qi])}(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new ut;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},i.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,f=r.get("brushSelect")?7:0,d=this._findCoordRect(),p={width:s.getWidth(),height:s.getHeight()},v=this._orient===cb?{right:p.width-d.x-d.width,top:p.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=Zd(r.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=pi(g,p);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===VB&&this._size.reverse()},i.prototype._positionGroup=function(){var r=this.group,s=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),p=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;p.attr(u!==cb||d?u===cb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==VB||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=r.getBoundingRect([p]);r.x=s.x-g.x,r.y=s.y-g.y,r.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,u=this._displayables.sliderGroup,f=r.get("brushSelect");u.add(new sp({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var d=new sp({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:qe(this._onClickPanel,this)}),p=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",p.on("mousemove",this._onBrush),p.on("mouseup",this._onBrushEnd)):(p.off("mousemove",this._onBrush),p.off("mouseup",this._onBrushEnd)),u.add(d)},i.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],r){var s=this._size,u=r.series,f=u.getRawData(),d=u.getShadowDim?u.getShadowDim():r.otherDim;if(null!=d){var p=f.getDataExtent(d),v=.3*(p[1]-p[0]);p=[p[0]-v,p[1]+v];var x,g=[0,s[1]],y=[[s[0],0],[0,0]],b=[],w=s[0]/(f.count()-1),S=0,M=Math.round(f.count()/s[0]);f.each([d],function(B,V){if(M>0&&V%M)S+=w;else{var G=null==B||isNaN(B)||""===B,W=G?0:wn(B,p,g,!0);G&&!x&&V?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!G&&x&&(y.push([S,0]),b.push([S,0])),y.push([S,W]),b.push([S,W]),S+=w,x=G}});for(var V,G,W,K,T=this.dataZoomModel,I=0;I<3;I++){var R=(V=void 0,G=void 0,void 0,void 0,V=T.getModel(1===I?"selectedDataBackground":"dataBackground"),G=new ut,W=new ni({shape:{points:y},segmentIgnoreThreshold:1,style:V.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),K=new Fa({shape:{points:b},segmentIgnoreThreshold:1,style:V.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),G.add(W),G.add(K),G);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}}}},i.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(!1!==s){var u,f=this.ecModel;return r.eachTargetAxis(function(d,p){q(r.getAxisProxy(d,p).getTargetSeriesModels(),function(g){if(!(u||!0!==s&&zt(HB,g.get("type"))<0)){var b,m=f.getComponent(mo(d),p).axis,y=function(o){return{x:"y",y:"x",radius:"angle",angle:"radius"}[o]}(d),w=g.coordinateSystem;null!=y&&w.getOtherAxis&&(b=w.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},i.prototype._renderHandle=function(){var r=this.group,s=this._displayables,u=s.handles=[null,null],f=s.handleLabels=[null,null],d=this._displayables.sliderGroup,p=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=s.filler=new sp({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new sp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:p[0],height:p[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(I){var R=v.get("handleIcon");!bC[R]&&R.indexOf("path://")<0&&R.indexOf("image://")<0&&(R="path://"+R);var B=ii(R,-1,0,2,2,null,!0);B.attr({cursor:VE(this._orient),draggable:!0,drift:qe(this._onDragMove,this,I),ondragend:qe(this._onDragEnd,this),onmouseover:qe(this._showDataInfo,this,!0),onmouseout:qe(this._showDataInfo,this,!1),z2:5});var V=B.getBoundingRect(),G=v.get("handleSize");this._handleHeight=Ae(G,this._size[1]),this._handleWidth=V.width/V.height*this._handleHeight,B.setStyle(v.getModel("handleStyle").getItemStyle()),B.style.strokeNoScale=!0,B.rectHover=!0,B.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),Un(B);var W=v.get("handleColor");null!=W&&(B.style.fill=W),d.add(u[I]=B);var K=v.getModel("textStyle");r.add(f[I]=new on({silent:!0,invisible:!0,style:Ir(K,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:K.getTextColor(),font:K.getFont()}),z2:10}))},this);var w=b;if(y){var S=Ae(v.get("moveHandleSize"),p[1]),M=s.moveHandle=new Bt({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:p[1]-.5,height:S}}),x=.8*S,T=s.moveHandleIcon=ii(v.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);T.silent=!0,T.y=p[1]+S/2-.5,M.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var P=Math.min(p[1]/2,Math.max(S,10));(w=s.moveZone=new Bt({invisible:!0,shape:{y:p[1]-P,height:S+P}})).on("mouseover",function(){g.enterEmphasis(M)}).on("mouseout",function(){g.leaveEmphasis(M)}),d.add(M),d.add(T),d.add(w)}w.attr({draggable:!0,cursor:VE(this._orient),drift:qe(this._onDragMove,this,"all"),ondragstart:qe(this._showDataInfo,this,!0),ondragend:qe(this._onDragEnd,this),onmouseover:qe(this._showDataInfo,this,!0),onmouseout:qe(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[wn(r[0],[0,100],s,!0),wn(r[1],[0,100],s,!0)]},i.prototype._updateInterval=function(r,s){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),p=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];Rh(s,f,d,u.get("zoomLock")?"all":r,null!=p.minSpan?wn(p.minSpan,v,d,!0):null,null!=p.maxSpan?wn(p.maxSpan,v,d,!0):null);var g=this._range,m=this._range=ca([wn(f[0],d,v,!0),wn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},i.prototype._updateView=function(r){var s=this._displayables,u=this._handleEnds,f=ca(u.slice()),d=this._size;q([0,1],function(w){var M=this._handleHeight;s.handles[w].attr({scaleX:M/2,scaleY:M/2,x:u[w]+(w?-1:1),y:d[1]/2-M/2})},this),s.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var p={x:f[0],width:f[1]-f[0]};s.moveHandle&&(s.moveHandle.setShape(p),s.moveZone.setShape(p),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",p.x+p.width/2));for(var v=s.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;ms[0]||u[1]<0||u[1]>s[1])){var f=this._handleEnds,p=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),p&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(r){this._brushStart=new Nt(r.offsetX,r.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(r){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,s){s.attr("ignore",!0);var u=s.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),p=[0,100];this._range=ca([wn(u.x,d,p,!0),wn(u.x+u.width,d,p,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(r){this._brushing&&(Se(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},i.prototype._updateBrushRect=function(r,s){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new sp({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var p=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(r,s),m=v.transformCoordToLocal(p.x,p.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},i.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?XY:null,start:s[0],end:s[1]})},i.prototype._findCoordRect=function(){var r,s=BW(this.dataZoomModel).infoList;if(!r&&s.length){var u=s[0].model.coordinateSystem;r=u.getRect&&u.getRect()}if(!r){var f=this.api.getWidth(),d=this.api.getHeight();r={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return r},i.type="dataZoom.slider",i}(JA);function BE(o){o.registerComponentModel(oS),o.registerComponentView(LQ),bi(o)}var $Y={get:function(i,r,s){var u=it((zB[i]||{})[r]);return s&&ke(u)?u[u.length-1]:u}},zB={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},UB=$Y,GB=$i.mapVisual,JY=$i.eachVisual,jB=ke,fb=q,WB=ca,e9=wn,sS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u)},i.prototype.optionUpdated=function(r,s){var u=this.option;Ot.canvasSupported||(u.realtime=!1),!s&&z1(u,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(r){var s=this.stateList;r=qe(r,this),this.controllerVisuals=QV(this.option.controller,s,r),this.targetVisuals=QV(this.option.target,s,r)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,s=[];return null==r||"all"===r?this.ecModel.eachSeries(function(u,f){s.push(f)}):s=pr(r),s},i.prototype.eachTargetSeries=function(r,s){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&r.call(s,f)},this)},i.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(u){u===r&&(s=!0)}),s},i.prototype.formatValueText=function(r,s,u){var g,f=this.option,d=f.precision,p=this.dataBound,v=f.formatter;u=u||["<",">"],ke(r)&&(r=r.slice(),g=!0);var m=s?r:g?[y(r[0]),y(r[1])]:y(r);return tn(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):Mn(v)?g?v(r[0],r[1]):v(r):g?r[0]===p[0]?u[0]+" "+m[1]:r[1]===p[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===p[0]?"min":b===p[1]?"max":(+b).toFixed(Math.min(d,20))}},i.prototype.resetExtent=function(){var r=this.option,s=WB([r.min,r.max]);this._dataExtent=s},i.prototype.getDataDimension=function(r){var s=this.option.dimension;if(null!=s||r.dimensions.length){if(null!=s)return r.getDimension(s);for(var f=r.dimensions,d=f.length-1;d>=0;d--){var p=f[d];if(!r.getDimensionInfo(p).isCalculationCoord)return p}}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,u={inRange:s.inRange,outOfRange:s.outOfRange},f=s.target||(s.target={}),d=s.controller||(s.controller={});yt(f,u),yt(d,u);var p=this.isCategory();function v(y){jB(s.color)&&!y.inRange&&(y.inRange={color:s.color.slice().reverse()}),y.inRange=y.inRange||{color:r.get("gradientColor")}}v.call(this,f),v.call(this,d),function(y,b,w){var S=y[b],M=y[w];S&&!M&&(M=y[w]={},fb(S,function(x,T){if($i.isValidType(T)){var P=UB.get(T,"inactive",p);null!=P&&(M[T]=P,"color"===T&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,w=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),x=this.getItemSymbol()||"roundRect";fb(this.stateList,function(T){var P=this.itemSize,I=y[T];I||(I=y[T]={color:p?S:[S]}),null==I.symbol&&(I.symbol=b&&it(b)||(p?x:[x])),null==I.symbolSize&&(I.symbolSize=w&&it(w)||(p?P[0]:[P[0],P[0]])),I.symbol=GB(I.symbol,function(V){return"none"===V?x:V});var R=I.symbolSize;if(null!=R){var B=-1/0;JY(R,function(V){V>B&&(B=V)}),I.symbolSize=GB(R,function(V){return e9(V,[0,B],[0,P[0]],!0)})}},this)}.call(this,d)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(r){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(r){return null},i.prototype.getVisualMeta=function(r){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},i}(Qt),qB=[20,140];function XB(o,i,r){if(r[0]===r[1])return r.slice();for(var u=(r[1]-r[0])/200,f=r[0],d=[],p=0;p<=200&&fs[1]&&s.reverse(),s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1]))},i.prototype.completeVisualOption=function(){o.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(r){var s=this.option.controller[r].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},i.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},i.prototype.getSelected=function(){var r=this.getExtent(),s=ca((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]=u[1]||r<=s[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimension(d),function(p,v){r[0]<=p&&p<=r[1]&&f.push(v)},this),s.push({seriesId:u.id,dataIndex:f})},this),s},i.prototype.getVisualMeta=function(r){var s=XB(0,0,this.getExtent()),u=XB(0,0,this.option.range.slice()),f=[];function d(w,S){f.push({value:w,color:r(w,S)})}for(var p=0,v=0,g=u.length,m=s.length;vr[1])break;f.push({color:this.getControllerVisual(v,"color",s),offset:p/100})}return f.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),f},i.prototype._createBarPoints=function(r,s){var u=this.visualMapModel.itemSize;return[[u[0]-s[0],r[0]],[u[0],r[0]],[u[0],r[1]],[u[0]-s[1],r[1]]]},i.prototype._createBarGroup=function(r){var s=this._orient,u=this.visualMapModel.get("inverse");return new ut("horizontal"!==s||u?"horizontal"===s&&u?{scaleX:"bottom"===r?-1:1,rotation:-Math.PI/2}:"vertical"!==s||u?{scaleX:"left"===r?1:-1}:{scaleX:"left"===r?1:-1,scaleY:-1}:{scaleX:"bottom"===r?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(r,s){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,p=u.handleLabels,v=f.itemSize,g=f.getExtent();i9([0,1],function(m){var y=d[m];y.setStyle("fill",s.handlesColor[m]),y.y=r[m];var b=xl(r[m],[0,v[1]],g,!0),w=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=w/v[0],y.x=v[0]-w/2;var S=ms(u.handleLabelPoints[m],cf(y,this.group));p[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(r,s,u,f){var d=this.visualMapModel,p=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var w=this.getControllerVisual(r,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(r,"symbolSize"),M=xl(r,p,g,!0),x=v[0]-S/2,T={x:y.x,y:y.y};y.y=M,y.x=x;var P=ms(m.indicatorLabelPoint,cf(y,this.group)),I=m.indicatorLabel;I.attr("invisible",!1);var R=this._applyTransform("left",m.mainGroup),V="horizontal"===this._orient;I.setStyle({text:(u||"")+d.formatValueText(s),verticalAlign:V?R:"middle",align:V?"center":R});var G={x:x,y:M,style:{fill:w}},W={style:{x:P[0],y:P[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var K={duration:100,easing:"cubicInOut",additive:!0};y.x=T.x,y.y=T.y,y.animateTo(G,K),I.animateTo(W,K)}else y.attr(G),I.attr(W);this._firstShowIndicator=!1;var J=this._shapes.handleLabels;if(J)for(var Z=0;Zd[1]&&(y[1]=1/0),s&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,w=[];(s||QB(u))&&(w=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function(o,i){var r={},s={};return u(o||[],r),u(i||[],s,r),[f(r),f(s)];function u(d,p,v){for(var g=0,m=d.length;g0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),o.registerAction(u9,c9),q(Jt,function(i){o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,i)}),o.registerPreprocessor(_u))}function GE(o){o.registerComponentModel(n9),o.registerComponentView(JB),UE(o)}var f9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._pieceList=[],r}return he(i,o),i.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],Qr[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var f=this.option.categories;this.resetVisual(function(d,p){"categories"===u?(d.mappingMethod="category",d.categories=it(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Ie(this._pieceList,function(v){return v=it(v),"inRange"!==p&&(v.visual=null),v}))})},i.prototype.completeVisualOption=function(){var r=this.option,s={},u=$i.listVisualTypes(),f=this.isCategory();function d(p,v,g){return p&&p[v]&&p[v].hasOwnProperty(g)}q(r.pieces,function(p){q(u,function(v){p.hasOwnProperty(v)&&(s[v]=1)})}),q(s,function(p,v){var g=!1;q(this.stateList,function(m){g=g||d(r,m,v)||d(r.target,m,v)},this),!g&&q(this.stateList,function(m){(r[m]||(r[m]={}))[v]=UB.get(v,"inRange"===m?"active":"inactive",f)})},this),o.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(r,s){var u=this.option,f=this._pieceList,d=(s?u:r).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var p=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(p?d[m]=!1:p=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(r){return"categories"===this._mode?r.value+"":r.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(r){this.option.selected=it(r)},i.prototype.getValueState=function(r){var s=$i.findPieceIndex(r,this._pieceList);return null!=s&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],p=f.getData();p.each(this.getDataDimension(p),function(v,g){$i.findPieceIndex(v,u)===r&&d.push(g)},this),s.push({seriesId:f.id,dataIndex:d})},this),s},i.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(null!=r.value)s=r.value;else{var u=r.interval||[];s=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return s},i.prototype.getVisualMeta=function(r){if(!this.isCategory()){var s=[],u=["",""],f=this,p=this._pieceList.slice();if(p.length){var v=p[0].interval[0];v!==-1/0&&p.unshift({interval:[-1/0,v]}),(v=p[p.length-1].interval[1])!==1/0&&p.push({interval:[v,1/0]})}else p.push({interval:[-1/0,1/0]});var g=-1/0;return q(p,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:s,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var w=r(b,y);m[0]===-1/0?u[0]=w:m[1]===1/0?u[1]=w:s.push({value:m[0],color:w},{value:m[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=Ql(sS.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),i}(sS),Qr={splitNumber:function(i){var r=this.option,s=Math.min(r.precision,20),u=this.getExtent(),f=r.splitNumber;f=Math.max(parseInt(f,10),1),r.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(s)!==d&&s<5;)s++;r.precision=s,d=+d.toFixed(s),r.minOpen&&i.push({interval:[-1/0,u[0]],close:[0,0]});for(var p=0,v=u[0];p","\u2265"][u[0]]])},this)}};function Dl(o,i){var r=o.inverse;("vertical"===o.orient?!r:r)&&i.reverse()}var lp=f9,h9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,u=s.get("textGap"),f=s.textStyleModel,d=f.getFont(),p=f.getTextColor(),v=this._getItemAlign(),g=s.itemSize,m=this._getViewData(),y=m.endsText,b=jr(s.get("showLabel",!0),!y);y&&this._renderEndsText(r,y[0],g,b,v),q(m.viewPieceList,function(w){var S=w.piece,M=new ut;M.onclick=qe(this._onItemClick,this,S),this._enableHoverLink(M,w.indexInModelPieceList);var x=s.getRepresentValue(S);if(this._createItemSymbol(M,x,[0,0,g[0],g[1]]),b){var T=this.visualMapModel.getValueState(x);M.add(new on({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:p,opacity:"outOfRange"===T?.5:1}}))}r.add(M)},this),y&&this._renderEndsText(r,y[1],g,b,v),Zu(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},i.prototype._enableHoverLink=function(r,s){var u=this;r.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(p){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:p,batch:db(v.findTargetDataIndices(s),v)})}},i.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if("vertical"===s.orient)return HE(r,this.api,r.itemSize);var u=s.align;return(!u||"auto"===u)&&(u="left"),u},i.prototype._renderEndsText=function(r,s,u,f,d){if(s){var p=new ut,v=this.visualMapModel.textStyleModel;p.add(new on({style:{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:s,font:v.getFont(),fill:v.getTextColor()}})),r.add(p)}},i.prototype._getViewData=function(){var r=this.visualMapModel,s=Ie(r.getPieceList(),function(p,v){return{piece:p,indexInModelPieceList:v}}),u=r.get("text"),f=r.get("orient"),d=r.get("inverse");return("horizontal"===f?d:!d)?s.reverse():u&&(u=u.slice().reverse()),{viewPieceList:s,endsText:u}},i.prototype._createItemSymbol=function(r,s,u){r.add(ii(this.getControllerVisual(s,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(s,"color")))},i.prototype._onItemClick=function(r){var s=this.visualMapModel,u=s.option,f=it(u.selected),d=s.getSelectedMapKey(r);"single"===u.selectedMode?(f[d]=!0,q(f,function(p,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},i.type="visualMap.piecewise",i}(ZB);function e5(o){o.registerComponentModel(lp),o.registerComponentView(h9),UE(o)}var v9={label:{enabled:!0},decal:{show:!1}},pb=nn(),g9={};function m9(o,i){var r=o.getModel("aria");if(r.get("enabled")){var s=it(v9);yt(s.label,o.getLocaleModel().get("aria"),!1),yt(r.option,s,!1),function(){if(r.getModel("decal").get("show")){var y=st();o.eachSeries(function(b){if(b.useColorPaletteOnData){var w=y.get(b.type);w||y.set(b.type,w={}),pb(b).scope=w}}),o.eachRawSeries(function(b){if(!o.isSeriesFiltered(b))if("function"!=typeof b.enableAriaDecal){var w=b.getData();if(b.useColorPaletteOnData){var S=b.getRawData(),M={},x=pb(b).scope;w.each(function(B){var V=w.getRawIndex(B);M[V]=B});var T=S.count();S.each(function(B){var V=M[B],G=S.getName(B)||B+"",W=PM(b.ecModel,G,x,T),K=w.getItemVisual(V,"decal");w.setItemVisual(V,"decal",R(K,W))})}else{var P=PM(b.ecModel,b.name,g9,o.getSeriesCount()),I=w.getVisual("decal");w.setVisual("decal",R(I,P))}}else b.enableAriaDecal();function R(B,V){var G=B?Me(Me({},V),B):V;return G.dirty=!0,G}})}}(),function(){var g=o.getLocaleModel().get("aria"),m=r.getModel("label");if(m.option=tt(m.option,g),m.get("enabled")){var y=i.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var x,b=o.getSeriesCount(),w=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,M=Math.min(b,S);if(!(b<1)){var T=function(){var g=o.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(T)x=d(m.get(["general","withTitle"]),{title:T});else x=m.get(["general","withoutTitle"]);var I=[];x+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),o.eachSeries(function(W,K){if(K1?["series","multiple",ne]:["series","single",ne]),{seriesId:W.seriesIndex,seriesName:W.get("name"),seriesType:v(W.subType)});var te=W.getData();te.count()>w?J+=d(m.get(["data","partialData"]),{displayCnt:w}):J+=m.get(["data","allData"]);for(var le=[],de=0;de":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},NQ=function(){function o(i){null==(this._condVal=tn(i)?new RegExp(i):gP(i)?i:null)&&_n("")}return o.prototype.evaluate=function(i){var r=typeof i;return"string"===r?this._condVal.test(i):"number"===r&&this._condVal.test(i+"")},o}(),od=function(){function o(){}return o.prototype.evaluate=function(){return this.value},o}(),VQ=function(){function o(){}return o.prototype.evaluate=function(){for(var i=this.children,r=0;r=200&&ht.status<=299}function Oe(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(oe){var ht=document.createEvent("MouseEvents");ht.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(ht)}}var Co=dr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),j=dr.saveAs||("object"!=typeof window||window!==dr?function(){}:"download"in HTMLAnchorElement.prototype&&!Co?function(ht,oe,Ar){var Hn=dr.URL||dr.webkitURL,Rt=document.createElement("a");Rt.download=oe=oe||ht.name||"download",Rt.rel="noopener","string"==typeof ht?(Rt.href=ht,Rt.origin!==location.origin?ji(Rt.href)?Pe(ht,oe,Ar):Oe(Rt,Rt.target="_blank"):Oe(Rt)):(Rt.href=Hn.createObjectURL(ht),setTimeout(function(){Hn.revokeObjectURL(Rt.href)},4e4),setTimeout(function(){Oe(Rt)},0))}:"msSaveOrOpenBlob"in navigator?function(ht,oe,Ar){if(oe=oe||ht.name||"download","string"==typeof ht)if(ji(ht))Pe(ht,oe,Ar);else{var Hn=document.createElement("a");Hn.href=ht,Hn.target="_blank",setTimeout(function(){Oe(Hn)})}else navigator.msSaveOrOpenBlob(function(F,ht){return void 0===ht?ht={autoBom:!1}:"object"!=typeof ht&&(console.warn("Deprecated: Expected third argument to be a object"),ht={autoBom:!ht}),ht.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob([String.fromCharCode(65279),F],{type:F.type}):F}(ht,Ar),oe)}:function(ht,oe,Ar,Hn){if((Hn=Hn||open("","_blank"))&&(Hn.document.title=Hn.document.body.innerText="downloading..."),"string"==typeof ht)return Pe(ht,oe,Ar);var Rt="application/octet-stream"===ht.type,Mu=/constructor/i.test(dr.HTMLElement)||dr.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||Rt&&Mu||Co)&&"undefined"!=typeof FileReader){var he=new FileReader;he.onloadend=function(){var rs=he.result;rs=ue?rs:rs.replace(/^data:[^;]*;/,"data:attachment/file;"),Hn?Hn.location.href=rs:location=rs,Hn=null},he.readAsDataURL(ht)}else{var ui=dr.URL||dr.webkitURL,rn=ui.createObjectURL(ht);Hn?Hn.location=rn:location.href=rn,Hn=null,setTimeout(function(){ui.revokeObjectURL(rn)},4e4)}});dr.saveAs=j.saveAs=j,ns.exports=j},65686:function(ns,dr,Mt){"use strict";function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Oe(e,a,t){return(Oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(l,c,h){var _=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=Pe(e)););return e}(l,c);if(_){var C=Object.getOwnPropertyDescriptor(_,c);return C.get?C.get.call(h):C.value}})(e,a,t||e)}function Co(e,a){for(var t=0;te.length)&&(a=e.length);for(var t=0,n=new Array(a);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(k){throw k},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,c=!0,h=!1;return{s:function(){t=t.call(e)},n:function(){var k=t.next();return c=k.done,k},e:function(k){h=!0,_=k},f:function(){try{!c&&null!=t.return&&t.return()}finally{if(h)throw _}}}}function hr(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var h,_,n=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(h=t.next()).done)&&(n.push(h.value),!a||n.length!==a);l=!0);}catch(C){c=!0,_=C}finally{try{!l&&null!=t.return&&t.return()}finally{if(c)throw _}}return n}}(e,a)||ui(e,a)||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.")}()}function ud(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function xt(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ui(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,a,t){return(eo=Ar()?Reflect.construct:function(l,c,h){var _=[null];_.push.apply(_,c);var k=new(Function.bind.apply(l,_));return h&&ht(k,h.prototype),k}).apply(null,arguments)}function vp(e){var a="function"==typeof Map?new Map:void 0;return(vp=function(n){if(null===n||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(n))return a.get(n);a.set(n,l)}function l(){return eo(n,arguments,Pe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),ht(l,n)})(e)}var xu=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Pg(e){return null!==e&&"object"==typeof e}function je(e){return"function"==typeof e}var Je=function(){function e(a){return Error.call(this),this.message=a?"".concat(a.length," errors occurred during unsubscription:\n").concat(a.map(function(t,n){return"".concat(n+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=a,this}return e.prototype=Object.create(Error.prototype),e}(),We=function(){var a,e=function(){function a(t){F(this,a),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return j(a,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var l=this._parentOrParents,c=this._ctorUnsubscribe,h=this._unsubscribe,_=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,l instanceof a)l.remove(this);else if(null!==l)for(var C=0;C2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof a?function(n){return n.pipe(Ii(function(l,c){return fi(e(l,c)).pipe(Ht(function(h,_){return a(l,h,c,_)}))},t))}:("number"==typeof a&&(t=a),function(n){return n.lift(new vP(e,t))})}var vP=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;F(this,e),this.project=a,this.concurrent=t}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new gP(t,this.project,this.concurrent))}}]),e}(),gP=function(e){oe(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return F(this,t),(c=a.call(this,n)).project=l,c.concurrent=h,c.hasCompleted=!1,c.buffer=[],c.active=0,c.index=0,c}return j(t,[{key:"_next",value:function(l){this.active0?this._next(l.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(fd);function jr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Ii(xb,e)}function Yt(e,a){return a?qe(e,a):new pn(Tc(e))}function bn(){for(var e=Number.POSITIVE_INFINITY,a=null,t=arguments.length,n=new Array(t),l=0;l1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof c&&(e=n.pop()),null===a&&1===n.length&&n[0]instanceof pn?n[0]:jr(e)(Yt(n,a))}function mp(){return function(a){return a.lift(new Ab(a))}}var Ab=function(){function e(a){F(this,e),this.connectable=a}return j(e,[{key:"call",value:function(t,n){var l=this.connectable;l._refCount++;var c=new ra(t,l),h=n.subscribe(c);return c.closed||(c.connection=l.connect()),h}}]),e}(),ra=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return j(t,[{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._refCount;if(c<=0)this.connection=null;else if(l._refCount=c-1,c>1)this.connection=null;else{var h=this.connection,_=l._connection;this.connection=null,_&&(!h||_===h)&&_.unsubscribe()}}else this.connection=null}}]),t}(Pn),Tu=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).source=n,c.subjectFactory=l,c._refCount=0,c._isComplete=!1,c}return j(t,[{key:"_subscribe",value:function(l){return this.getSubject().subscribe(l)}},{key:"getSubject",value:function(){var l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var l=this._connection;return l||(this._isComplete=!1,(l=this._connection=new We).add(this.source.subscribe(new Lg(this.getSubject(),this))),l.closed&&(this._connection=null,l=We.EMPTY)),l}},{key:"refCount",value:function(){return mp()(this)}}]),t}(pn),mP=function(){var e=Tu.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),Lg=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return j(t,[{key:"_error",value:function(l){this._unsubscribe(),Oe(Pe(t.prototype),"_error",this).call(this,l)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Oe(Pe(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._connection;l._refCount=0,l._subject=null,l._connection=null,c&&c.unsubscribe()}}}]),t}(Tb);function _p(){return new He}function ln(e){for(var a in e)if(e[a]===ln)return a;throw Error("Could not find renamed property on target object.")}function Ng(e,a){for(var t in a)a.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=a[t])}function at(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(at).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var a=e.toString();if(null==a)return""+a;var t=a.indexOf("\n");return-1===t?a:a.substring(0,t)}function Eb(e,a){return null==e||""===e?null===a?"":a:null==a||""===a?e:e+" "+a}var Nq=ln({__forward_ref__:ln});function Cn(e){return e.__forward_ref__=Cn,e.toString=function(){return at(this())},e}function Tt(e){return tH(e)?e():e}function tH(e){return"function"==typeof e&&e.hasOwnProperty(Nq)&&e.__forward_ref__===Cn}var yp=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,function(e,a){var t=e?"NG0".concat(e,": "):"";return"".concat(t).concat(a)}(n,l))).code=n,c}return t}(vp(Error));function Zt(e){return"string"==typeof e?e:null==e?"":String(e)}function xa(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Zt(e)}function LS(e,a){var t=a?" in ".concat(a):"";throw new yp("201","No provider for ".concat(xa(e)," found").concat(t))}function aa(e,a){null==e&&function(e,a,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(a," <=Actual]")))}(a,e,null,"!=")}function Ge(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function Pc(e){return Vg(e,Hg)||Vg(e,wP)}function Vg(e,a){return e.hasOwnProperty(a)?e[a]:null}function Rl(e){return e&&(e.hasOwnProperty(Ll)||e.hasOwnProperty(zg))?e[Ll]:null}var Fl,Hg=ln({"\u0275prov":ln}),Ll=ln({"\u0275inj":ln}),wP=ln({ngInjectableDef:ln}),zg=ln({ngInjectorDef:ln}),St=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Oc(){return Fl}function So(e){var a=Fl;return Fl=e,a}function SP(e,a,t){var n=Pc(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&St.Optional?null:void 0!==a?a:void LS(at(e),"Injector")}function Ic(e){return{toString:e}.toString()}var Ta=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),as=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),MP="undefined"!=typeof globalThis&&globalThis,FS="undefined"!=typeof window&&window,rH="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,NS="undefined"!=typeof global&&global,Jn=MP||NS||FS||rH,Rc={},lr=[],Cp=ln({"\u0275cmp":ln}),Ug=ln({"\u0275dir":ln}),Ob=ln({"\u0275pipe":ln}),Ib=ln({"\u0275mod":ln}),os=ln({"\u0275loc":ln}),Au=ln({"\u0275fac":ln}),hd=ln({__NG_ELEMENT_ID__:ln}),aH=0;function Se(e){return Ic(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ta.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||lr,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||as.Emulated,id:"c",styles:e.styles||lr,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.directives,c=e.features,h=e.pipes;return n.id+=aH++,n.inputs=zS(e.inputs,t),n.outputs=zS(e.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(oH)}:null,n.pipeDefs=h?function(){return("function"==typeof h?h():h).map(xP)}:null,n})}function oH(e){return Da(e)||function(e){return e[Ug]||null}(e)}function xP(e){return function(e){return e[Ob]||null}(e)}var BS={};function vt(e){return Ic(function(){var a={type:e.type,bootstrap:e.bootstrap||lr,declarations:e.declarations||lr,imports:e.imports||lr,exports:e.exports||lr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(BS[e.id]=e.type),a})}function zS(e,a){if(null==e)return Rc;var t={};for(var n in e)if(e.hasOwnProperty(n)){var l=e[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),t[l]=n,a&&(a[l]=c)}return t}var ge=Se;function oa(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Da(e){return e[Cp]||null}function ko(e,a){var t=e[Ib]||null;if(!t&&!0===a)throw new Error("Type ".concat(at(e)," does not have '\u0275mod' property."));return t}function ro(e){return Array.isArray(e)&&"object"==typeof e[1]}function ls(e){return Array.isArray(e)&&!0===e[1]}function xo(e){return 0!=(8&e.flags)}function Lb(e){return 2==(2&e.flags)}function Nc(e){return 1==(1&e.flags)}function To(e){return null!==e.template}function Sp(e){return 0!=(512&e[2])}function qs(e,a){return e.hasOwnProperty(Au)?e[Au]:null}var RP=function(){function e(a,t,n){F(this,e),this.previousValue=a,this.currentValue=t,this.firstChange=n}return j(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function vn(){return LP}function LP(e){return e.type.prototype.ngOnChanges&&(e.setInput=FP),Vb}function Vb(){var e=WS(this),a=null==e?void 0:e.current;if(a){var t=e.previous;if(t===Rc)e.previous=a;else for(var n in a)t[n]=a[n];e.current=null,this.ngOnChanges(a)}}function FP(e,a,t,n){var l=WS(e)||function(e,a){return e[NP]=a}(e,{previous:Rc,current:null}),c=l.current||(l.current={}),h=l.previous,_=this.declaredInputs[t],C=h[_];c[_]=new RP(C&&C.currentValue,a,h===Rc),e[n]=a}vn.ngInherit=!0;var NP="__ngSimpleChanges__";function WS(e){return e[NP]||null}var Mp="http://www.w3.org/2000/svg",YS=void 0;function qS(){return void 0!==YS?YS:"undefined"!=typeof document?document:void 0}function Nr(e){return!!e.listen}var BP={createRenderer:function(a,t){return qS()}};function ti(e){for(;Array.isArray(e);)e=e[0];return e}function Xg(e,a){return ti(a[e])}function ao(e,a){return ti(a[e.index])}function Zg(e,a){return e.data[a]}function Tp(e,a){return e[a]}function oo(e,a){var t=a[e];return ro(t)?t:t[0]}function HP(e){return 4==(4&e[2])}function Ao(e){return 128==(128&e[2])}function Bc(e,a){return null==a?null:e[a]}function zP(e){e[18]=0}function Dp(e,a){e[5]+=a;for(var t=e,n=e[3];null!==n&&(1===a&&1===t[5]||-1===a&&0===t[5]);)n[5]+=a,t=n,n=n[3]}var Ut={lFrame:Pp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function _H(){return Ut.bindingsEnabled}function Re(){return Ut.lFrame.lView}function xn(){return Ut.lFrame.tView}function ve(e){return Ut.lFrame.contextLView=e,e[8]}function Yn(){for(var e=Hc();null!==e&&64===e.type;)e=e.parent;return e}function Hc(){return Ut.lFrame.currentTNode}function Mi(e,a){var t=Ut.lFrame;t.currentTNode=e,t.isParent=a}function Eo(){return Ut.lFrame.isParent}function Vl(){Ut.lFrame.isParent=!1}function Kg(){return Ut.isInCheckNoChangesMode}function Qg(e){Ut.isInCheckNoChangesMode=e}function la(){var e=Ut.lFrame,a=e.bindingRootIndex;return-1===a&&(a=e.bindingRootIndex=e.tView.bindingStartIndex),a}function so(){return Ut.lFrame.bindingIndex}function Xs(){return Ut.lFrame.bindingIndex++}function Zs(e){var a=Ut.lFrame,t=a.bindingIndex;return a.bindingIndex=a.bindingIndex+e,t}function Eu(e,a){var t=Ut.lFrame;t.bindingIndex=t.bindingRootIndex=e,Nt(a)}function Nt(e){Ut.lFrame.currentDirectiveIndex=e}function Ap(e){var a=Ut.lFrame.currentDirectiveIndex;return-1===a?null:e[a]}function $g(){return Ut.lFrame.currentQueryIndex}function Pu(e){Ut.lFrame.currentQueryIndex=e}function Sd(e){var a=e[1];return 2===a.type?a.declTNode:1===a.type?e[6]:null}function Uc(e,a,t){if(t&St.SkipSelf){for(var n=a,l=e;!(null!==(n=n.parent)||t&St.Host||null===(n=Sd(l))||(l=l[15],10&n.type)););if(null===n)return!1;a=n,e=l}var c=Ut.lFrame=Ep();return c.currentTNode=a,c.lView=e,!0}function Bl(e){var a=Ep(),t=e[1];Ut.lFrame=a,a.currentTNode=t.firstChild,a.lView=e,a.tView=t,a.contextLView=e,a.bindingIndex=t.bindingStartIndex,a.inI18n=!1}function Ep(){var e=Ut.lFrame,a=null===e?null:e.child;return null===a?Pp(e):a}function Pp(e){var a={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=a),a}function jP(){var e=Ut.lFrame;return Ut.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Vt=jP;function Jg(){var e=jP();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function kd(e){return(Ut.lFrame.contextLView=function(e,a){for(;e>0;)a=a[15],e--;return a}(e,Ut.lFrame.contextLView))[8]}function ua(){return Ut.lFrame.selectedIndex}function Gc(e){Ut.lFrame.selectedIndex=e}function Vr(){var e=Ut.lFrame;return Zg(e.tView,e.selectedIndex)}function Ea(){Ut.lFrame.currentNamespace=Mp}function Op(){Ut.lFrame.currentNamespace=null}function Md(e,a){for(var t=a.directiveStart,n=a.directiveEnd;t=n)break}else a[C]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===a){e[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var Hl=function e(a,t,n){F(this,e),this.factory=a,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function rm(e,a,t){for(var n=Nr(e),l=0;la){h=c-1;break}}}for(;c>16}(e),n=a;t>0;)n=n[15],t--;return n}var rk=!0;function Gb(e){var a=rk;return rk=e,a}var qP=0;function im(e,a){var t=Ae(e,a);if(-1!==t)return t;var n=a[1];n.firstCreatePass&&(e.injectorIndex=a.length,wn(n.data,e),wn(a,null),wn(n.blueprint,null));var l=Wr(e,a),c=e.injectorIndex;if(WP(l))for(var h=Rp(l),_=qc(l,a),C=_[1].data,k=0;k<8;k++)a[c+k]=_[h+k]|C[h+k];return a[c+8]=l,c}function wn(e,a){e.push(0,0,0,0,0,0,0,0,a)}function Ae(e,a){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===a[e.injectorIndex+8]?-1:e.injectorIndex}function Wr(e,a){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,l=a;null!==l;){var c=l[1],h=c.type;if(null===(n=2===h?c.declTNode:1===h?l[6]:null))return-1;if(t++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function ca(e,a,t){!function(e,a,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(hd)&&(n=t[hd]),null==n&&(n=t[hd]=qP++);var l=255&n;a.data[e+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:St.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==e){var c=Oo(t);if("function"==typeof c){if(!Uc(a,e,n))return n&St.Host?ak(l,t,n):jb(a,t,n,l);try{var h=c(n);if(null!=h||n&St.Optional)return h;LS(t)}finally{Vt()}}else if("number"==typeof c){var _=null,C=Ae(e,a),k=-1,D=n&St.Host?a[16][6]:null;for((-1===C||n&St.SkipSelf)&&(-1!==(k=-1===C?Wr(e,a):a[C+8])&&Wb(n,!1)?(_=a[1],C=Rp(k),a=qc(k,a)):C=-1);-1!==C;){var O=a[1];if(uk(c,C,O.data)){var L=lk(C,a,t,_,n,D);if(L!==ZP)return L}-1!==(k=a[C+8])&&Wb(n,a[1].data[C+8]===D)&&uk(c,C,a)?(_=O,C=Rp(k),a=qc(k,a)):C=-1}}}return jb(a,t,n,l)}var ZP={};function sk(){return new Zc(Yn(),Re())}function lk(e,a,t,n,l,c){var h=a[1],_=h.data[e+8],D=Xc(_,h,t,null==n?Lb(_)&&rk:n!=h&&0!=(3&_.type),l&St.Host&&c===_);return null!==D?am(a,h,D,_):ZP}function Xc(e,a,t,n,l){for(var c=e.providerIndexes,h=a.data,_=1048575&c,C=e.directiveStart,D=c>>20,L=l?_+D:e.directiveEnd,U=n?_:_+D;U=C&&Y.type===t)return U}if(l){var Q=h[C];if(Q&&To(Q)&&Q.type===t)return C}return null}function am(e,a,t,n){var l=e[t],c=a.data;if(function(e){return e instanceof Hl}(l)){var h=l;h.resolving&&function(e,a){throw new yp("200","Circular dependency in DI detected for ".concat(e).concat(""))}(xa(c[t]));var _=Gb(h.canSeeViewProviders);h.resolving=!0;var C=h.injectImpl?So(h.injectImpl):null;Uc(e,n,St.Default);try{l=e[t]=h.factory(void 0,c,e,n),a.firstCreatePass&&t>=n.directiveStart&&function(e,a,t){var n=a.type.prototype,c=n.ngOnInit,h=n.ngDoCheck;if(n.ngOnChanges){var _=LP(a);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,_),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,_)}c&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,c),h&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,h))}(t,c[t],a)}finally{null!==C&&So(C),Gb(_),h.resolving=!1,Vt()}}return l}function Oo(e){if("string"==typeof e)return e.charCodeAt(0)||0;var a=e.hasOwnProperty(hd)?e[hd]:void 0;return"number"==typeof a?a>=0?255&a:sk:a}function uk(e,a,t){return!!(t[a+(e>>5)]&1<=e.length?e.push(t):e.splice(a,0,t)}function Ou(e,a){return a>=e.length-1?e.pop():e.splice(a,1)[0]}function cr(e,a){for(var t=[],n=0;n=0?e[1|n]=t:function(e,a,t,n){var l=e.length;if(l==a)e.push(t,n);else if(1===l)e.push(n,e[0]),e[0]=t;else{for(l--,e.push(e[l-1],e[l]);l>a;)e[l]=e[l-2],l--;e[a]=t,e[a+1]=n}}(e,n=~n,a,t),n}function ck(e,a){var t=fs(e,a);if(t>=0)return e[1|t]}function fs(e,a){return function(e,a,t){for(var n=0,l=e.length>>t;l!==n;){var c=n+(l-n>>1),h=e[c<a?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:St.Default;if(void 0===Jc)throw new Error("inject() must be called from an injection context");return null===Jc?SP(e,void 0,a):Jc.get(e,a&St.Optional?null:void 0,a)}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:St.Default;return(Oc()||tO)(Tt(e),a)}var nO=ce;function Pd(e){for(var a=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var l=at(a);if(Array.isArray(a))l=a.map(at).join(" -> ");else if("object"==typeof a){var c=[];for(var h in a)if(a.hasOwnProperty(h)){var _=a[h];c.push(h+":"+("string"==typeof _?JSON.stringify(_):at(_)))}l="{".concat(c.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(e.replace(FH,"\n "))}("\n"+e.message,l,t,n),e.ngTokenPath=l,e[Vp]=null,e}var Oa,Up,Hp=cm(Qc("Inject",function(a){return{token:a}}),-1),Di=cm(Qc("Optional"),8),uo=cm(Qc("SkipSelf"),4);function Io(e){var a;return(null===(a=function(){if(void 0===Oa&&(Oa=null,Jn.trustedTypes))try{Oa=Jn.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return Oa}())||void 0===a?void 0:a.createHTML(e))||e}function Od(e){var a;return(null===(a=function(){if(void 0===Up&&(Up=null,Jn.trustedTypes))try{Up=Jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return Up}())||void 0===a?void 0:a.createHTML(e))||e}var Hr=function(){function e(a){F(this,e),this.changingThisBreaksApplicationSecurity=a}return j(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Sk=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(Hr),zH=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(Hr),uO=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(Hr),hm=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(Hr),cO=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(Hr);function Ro(e){return e instanceof Hr?e.changingThisBreaksApplicationSecurity:e}function Yr(e,a){var t=Ia(e);if(null!=t&&t!==a){if("ResourceURL"===t&&"URL"===a)return!0;throw new Error("Required a safe ".concat(a,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===a}function Ia(e){return e instanceof Hr&&e.getTypeName()||null}var xk=function(){function e(a){F(this,e),this.inertDocumentHelper=a}return j(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(Io(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),e}(),fO=function(){function e(a){if(F(this,e),this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return j(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Io(t),n;var l=this.inertDocument.createElement("body");return l.innerHTML=Io(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();Nu.hasOwnProperty(n)&&!Js.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(vO(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),Ak=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pO=/([^\#-~ |!])/g;function vO(e){return e.replace(/&/g,"&").replace(Ak,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(pO,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}function zu(e,a){var t=null;try{Lo=Lo||function(e){var a=new fO(e);return function(){try{return!!(new window.DOMParser).parseFromString(Io(""),"text/html")}catch(e){return!1}}()?new xk(a):a}(e);var n=a?String(a):"";t=Lo.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=t.innerHTML,t=Lo.getInertBodyElement(n)}while(n!==c);return Io((new _m).sanitizeChildren(Ek(t)||t))}finally{if(t)for(var C=Ek(t)||t;C.firstChild;)C.removeChild(C.firstChild)}}function Ek(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Fo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Pr(e){var a=bm();return a?Od(a.sanitize(Fo.HTML,e)||""):Yr(e,"HTML")?Od(Ro(e)):zu(qS(),Zt(e))}function dn(e){var a=bm();return a?a.sanitize(Fo.URL,e)||"":Yr(e,"URL")?Ro(e):vm(Zt(e))}function bm(){var e=Re();return e&&e[12]}var mO="__ngContext__";function da(e,a){e[mO]=a}function Ik(e){var a=function(e){return e[mO]||null}(e);return a?Array.isArray(a)?a:a.lView:null}function a0(e){return e.ngOriginalError}function CO(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;n0&&(e[t-1][4]=n[4]);var c=Ou(e,10+a);!function(e,a){Hd(e,a,a[11],2,null,null),a[0]=null,a[6]=null}(n[1],n);var h=c[19];null!==h&&h.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function PO(e,a){if(!(256&a[2])){var t=a[11];Nr(t)&&t.destroyNode&&Hd(e,a,t,3,null,null),function(e){var a=e[13];if(!a)return km(e[1],e);for(;a;){var t=null;if(ro(a))t=a[13];else{var n=a[10];n&&(t=n)}if(!t){for(;a&&!a[4]&&a!==e;)ro(a)&&km(a[1],a),a=a[3];null===a&&(a=e),ro(a)&&km(a[1],a),t=a&&a[4]}a=t}}(a)}}function km(e,a){if(!(256&a[2])){a[2]&=-129,a[2]|=256,function(e,a){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[l=k]():n[l=-k].unsubscribe(),c+=2}else{var D=n[l=t[c+1]];t[c].call(D)}if(null!==n){for(var O=l+1;Oc?"":l[O+1].toLowerCase();var U=8&n?L:null;if(U&&-1!==BO(U,k,0)||2&n&&k!==L){if(il(n))return!1;h=!0}}}}else{if(!h&&!il(n)&&!il(C))return!1;if(h&&il(C))continue;h=!1,n=C|1&n}}return il(n)||h}function il(e){return 0==(1&e)}function iz(e,a,t,n){if(null===a)return-1;var l=0;if(n||!t){for(var c=!1;l-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+h:4&n&&(l+=" "+h);else""!==l&&!il(h)&&(a+=w0(c,l),l=""),n=h,c=c||!il(n);t++}return""!==l&&(a+=w0(c,l)),a}var Kt={};function H(e){$k(xn(),Re(),ua()+e,Kg())}function $k(e,a,t,n){if(!n)if(3==(3&a[2])){var c=e.preOrderCheckHooks;null!==c&&JS(a,c,t)}else{var h=e.preOrderHooks;null!==h&&Pa(a,h,0,t)}Gc(t)}function Dm(e,a){return e<<17|a<<2}function vs(e){return e>>17&32767}function eM(e){return 2|e}function ju(e){return(131068&e)>>2}function S0(e,a){return-131069&e|a<<2}function tM(e){return 1|e}function oM(e,a){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&$k(e,a,20,Kg()),t(n,l)}finally{Gc(c)}}function uf(e,a,t){if(xo(a))for(var l=a.directiveEnd,c=a.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:ao,n=a.localNames;if(null!==n)for(var l=a.index+1,c=0;c0;){var t=e[--a];if("number"==typeof t&&t<0)return t}return 0})(_)!=C&&_.push(C),_.push(n,l,h)}}function qu(e,a){null!==e.hostBindings&&e.hostBindings(1,a)}function ev(e,a){a.flags|=2,(e.components||(e.components=[])).push(a.index)}function cf(e,a,t){if(t){if(a.exportAs)for(var n=0;n0&&ff(t)}}function ff(e){for(var a=sf(e);null!==a;a=l0(a))for(var t=10;t0&&ff(n)}var h=e[1].components;if(null!==h)for(var _=0;_0&&ff(C)}}function P0(e,a){var t=oo(a,e),n=t[1];(function(e,a){for(var t=a.length;t1&&void 0!==arguments[1]?arguments[1]:$c;if(n===$c){var l=new Error("NullInjectorError: No provider for ".concat(at(t),"!"));throw l.name="NullInjectorError",l}return n}}]),e}(),Vm=new Ee("Set Injector scope."),Bm={},Yd={},Ln=void 0;function hI(){return void 0===Ln&&(Ln=new R0),Ln}function pI(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new Mz(e,t,a||hI(),n)}var Mz=function(){function e(a,t,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;F(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var h=[];t&&zl(t,function(C){return l.processProvider(C,a,t)}),zl([a],function(C){return l.processInjectorType(C,[],h)}),this.records.set(Nm,df(void 0,this));var _=this.records.get(Vm);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof a?null:at(a))}return j(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$c,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:St.Default;this.assertNotDestroyed();var c=Bp(this),h=So(void 0);try{if(!(l&St.SkipSelf)){var _=this.records.get(t);if(void 0===_){var C=Ez(t)&&Pc(t);_=C&&this.injectableDefInScope(C)?df(Ql(t),Bm):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}var k=l&St.Self?hI():this.parent;return k.get(t,n=l&St.Optional&&n===$c?null:n)}catch(O){if("NullInjectorError"===O.name){var D=O[Vp]=O[Vp]||[];if(D.unshift(at(t)),c)throw O;return NH(O,t,"R3InjectorError",this.source)}throw O}finally{So(h),Bp(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(l,c){return t.push(at(c))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,n,l){var c=this;if(!(t=Tt(t)))return!1;var h=Rl(t),_=null==h&&t.ngModule||void 0,C=void 0===_?t:_,O=-1!==l.indexOf(C);if(void 0!==_&&(h=Rl(_)),null==h)return!1;if(null!=h.imports&&!O){var L;l.push(C);try{zl(h.imports,function(ae){c.processInjectorType(ae,n,l)&&(void 0===L&&(L=[]),L.push(ae))})}finally{}if(void 0!==L)for(var U=function(be){var we=L[be],Ue=we.ngModule,Ze=we.providers;zl(Ze,function(Ct){return c.processProvider(Ct,Ue,Ze||lr)})},Y=0;Y0){var t=cr(a,"?");throw new Error("Can't resolve all parameters for ".concat(at(e),": (").concat(t.join(", "),")."))}var n=function(e){var a=e&&(e[Hg]||e[wP]);if(a){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var a=(""+e).match(/^function\s*([^\s(]+)/);return null===a?"":a[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),a}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Hm(e,a,t){var n=void 0;if(qd(e)){var l=Tt(e);return qs(l)||Ql(l)}if(sv(e))n=function(){return Tt(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,xt(Pd(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))n=function(){return ce(Tt(e.useExisting))};else{var c=Tt(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return qs(c)||Ql(c);n=function(){return eo(c,xt(Pd(e.deps)))}}return n}function df(e,a){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:a,multi:t?[]:void 0}}function sv(e){return null!==e&&"object"==typeof e&&gk in e}function qd(e){return"function"==typeof e}function Ez(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ee}var lv=function(e,a,t){return function(e){var l=pI(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return l._resolveInjectorDefTypes(),l}({name:t},a,e,t)},jt=function(){var e=function(){function a(){F(this,a)}return j(a,null,[{key:"create",value:function(n,l){return Array.isArray(n)?lv(n,l,""):lv(n.providers,n.parent,n.name||"")}}]),a}();return e.THROW_IF_NOT_FOUND=$c,e.NULL=new R0,e.\u0275prov=Ge({token:e,providedIn:"any",factory:function(){return ce(Nm)}}),e.__NG_ELEMENT_ID__=-1,e}();function H0(e,a){Md(Ik(e)[1],Yn())}function xe(e){for(var a=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];a;){var l=void 0;if(To(e))l=a.\u0275cmp||a.\u0275dir;else{if(a.\u0275cmp)throw new Error("Directives cannot inherit Components");l=a.\u0275dir}if(l){if(t){n.push(l);var c=e;c.inputs=Zu(e.inputs),c.declaredInputs=Zu(e.declaredInputs),c.outputs=Zu(e.outputs);var h=l.hostBindings;h&&Hz(e,h);var _=l.viewQuery,C=l.contentQueries;if(_&&pX(e,_),C&&vX(e,C),Ng(e.inputs,l.inputs),Ng(e.declaredInputs,l.declaredInputs),Ng(e.outputs,l.outputs),To(l)&&l.data.animation){var k=e.data;k.animation=(k.animation||[]).concat(l.data.animation)}}var D=l.features;if(D)for(var O=0;O=0;n--){var l=e[n];l.hostVars=a+=l.hostVars,l.hostAttrs=Wc(l.hostAttrs,t=Wc(t,l.hostAttrs))}}(n)}function Zu(e){return e===Rc?{}:e===lr?[]:e}function pX(e,a){var t=e.viewQuery;e.viewQuery=t?function(n,l){a(n,l),t(n,l)}:a}function vX(e,a){var t=e.contentQueries;e.contentQueries=t?function(n,l,c){a(n,l,c),t(n,l,c)}:a}function Hz(e,a){var t=e.hostBindings;e.hostBindings=t?function(n,l){a(n,l),t(n,l)}:a}var pf=null;function Ho(){if(!pf){var e=Jn.Symbol;if(e&&e.iterator)pf=e.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:St.Default,t=Re();if(null===t)return ce(e,a);var n=Yn();return ok(n,t,Tt(e),a)}function z(e,a,t){var n=Re();return pa(n,Xs(),a)&&zr(xn(),Vr(),n,e,a,n[11],t,!1),z}function Z0(e,a,t,n,l){var h=l?"class":"style";dI(e,t,a.inputs[h],h,n)}function E(e,a,t,n){var l=Re(),c=xn(),h=20+e,_=l[11],C=l[h]=jk(_,a,Ut.lFrame.currentNamespace),k=c.firstCreatePass?function(e,a,t,n,l,c,h){var _=a.consts,k=Zp(a,e,2,l,Bc(_,c));return cM(a,t,k,Bc(_,h)),null!==k.attrs&&I0(k,k.attrs,!1),null!==k.mergedAttrs&&I0(k,k.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,k),k}(h,c,l,0,a,t,n):c.data[h];Mi(k,!0);var D=k.mergedAttrs;null!==D&&rm(_,C,D);var O=k.classes;null!==O&&Qk(_,C,O);var L=k.styles;null!==L&&xm(_,C,L),64!=(64&k.flags)&&v0(c,l,C,k),0===Ut.lFrame.elementDepthCount&&da(C,l),Ut.lFrame.elementDepthCount++,Nc(k)&&($p(c,l,k),uf(c,k,l)),null!==n&&Jp(l,k)}function A(){var e=Yn();Eo()?Vl():Mi(e=e.parent,!1);var a=e;Ut.lFrame.elementDepthCount--;var t=xn();t.firstCreatePass&&(Md(t,e),xo(e)&&t.queries.elementEnd(e)),null!=a.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(a)&&Z0(t,a,Re(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(a)&&Z0(t,a,Re(),a.stylesWithoutHost,!1)}function _e(e,a,t,n){E(e,a,t,n),A()}function On(e,a,t){var n=Re(),l=xn(),c=e+20,h=l.firstCreatePass?function(e,a,t,n,l){var c=a.consts,h=Bc(c,n),_=Zp(a,e,8,"ng-container",h);return null!==h&&I0(_,h,!0),cM(a,t,_,Bc(c,l)),null!==a.queries&&a.queries.elementStart(a,_),_}(c,l,n,a,t):l.data[c];Mi(h,!0);var _=n[c]=n[11].createComment("");v0(l,n,_,h),da(_,n),Nc(h)&&($p(l,n,h),uf(l,h,n)),null!=t&&Jp(n,h)}function Tn(){var e=Yn(),a=xn();Eo()?Vl():Mi(e=e.parent,!1),a.firstCreatePass&&(Md(a,e),xo(e)&&a.queries.elementEnd(e))}function Yi(e,a,t){On(e,a,t),Tn()}function De(){return Re()}function Km(e){return!!e&&"function"==typeof e.then}function zM(e){return!!e&&"function"==typeof e.subscribe}var Qm=zM;function ee(e,a,t,n){var l=Re(),c=xn(),h=Yn();return UM(c,l,l[11],h,e,a,!!t,n),ee}function ll(e,a){var t=Yn(),n=Re(),l=xn();return UM(l,n,vM(Ap(l.data),t,n),t,e,a,!1),ll}function UM(e,a,t,n,l,c,h,_){var C=Nc(n),D=e.firstCreatePass&&av(e),O=a[8],L=pM(a),U=!0;if(3&n.type||_){var Y=ao(n,a),Q=_?_(Y):Y,ie=L.length,fe=_?function(ku){return _(ti(ku[n.index]))}:n.index;if(Nr(t)){var ae=null;if(!_&&C&&(ae=function(e,a,t,n){var l=e.cleanup;if(null!=l)for(var c=0;cC?_[C]:null}"string"==typeof h&&(c+=2)}return null}(e,a,l,n.index)),null!==ae)(ae.__ngLastListenerFn__||ae).__ngNextListenerFn__=c,ae.__ngLastListenerFn__=c,U=!1;else{c=jM(n,a,O,c,!1);var we=t.listen(Q,l,c);L.push(c,we),D&&D.push(l,fe,ie,ie+1)}}else c=jM(n,a,O,c,!0),Q.addEventListener(l,c,h),L.push(c),D&&D.push(l,fe,ie,h)}else c=jM(n,a,O,c,!1);var Ze,Ue=n.outputs;if(U&&null!==Ue&&(Ze=Ue[l])){var Ct=Ze.length;if(Ct)for(var Sn=0;Sn0&&void 0!==arguments[0]?arguments[0]:1;return kd(e)}function i4(e,a){for(var t=null,n=function(e){var a=e.attrs;if(null!=a){var t=a.indexOf(5);if(0==(1&t))return a[t+1]}return null}(e),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Re(),l=xn(),c=Zp(l,20+e,16,null,t||null);null===c.projection&&(c.projection=a),Vl(),64!=(64&c.flags)&&NO(l,n,c)}function eh(e,a,t){return K0(e,"",a,"",t),eh}function K0(e,a,t,n,l){var c=Re(),h=ho(c,a,t,n);return h!==Kt&&zr(xn(),Vr(),c,e,h,c[11],l,!1),K0}function YM(e,a,t,n,l){for(var c=e[t+1],h=null===a,_=n?vs(c):ju(c),C=!1;0!==_&&(!1===C||h);){var D=e[_+1];qM(e[_],a)&&(C=!0,e[_+1]=n?tM(D):eM(D)),_=n?vs(D):ju(D)}C&&(e[t+1]=n?eM(c):tM(c))}function qM(e,a){return null===e||null==a||(Array.isArray(e)?e[1]:e)===a||!(!Array.isArray(e)||"string"!=typeof a)&&fs(e,a)>=0}var Ni={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function eC(e){return e.substring(Ni.key,Ni.keyEnd)}function l4(e,a){var t=Ni.textEnd;return t===a?-1:(a=Ni.keyEnd=function(e,a,t){for(;a32;)a++;return a}(e,Ni.key=a,t),Jm(e,a,t))}function Jm(e,a,t){for(;a=0;t=l4(a,t))lo(e,eC(a),!0)}function ul(e,a,t,n){var l=Re(),c=xn(),h=Zs(2);c.firstUpdatePass&&ZM(c,e,h,n),a!==Kt&&pa(l,h,a)&&JM(c,c.data[ua()],l,l[11],e,l[h+1]=function(e,a){return null==e||("string"==typeof a?e+=a:"object"==typeof e&&(e=at(Ro(e)))),e}(a,t),n,h)}function YI(e,a){return a>=e.expandoStartIndex}function ZM(e,a,t,n){var l=e.data;if(null===l[t+1]){var c=l[ua()],h=YI(e,t);iC(c,n)&&null===a&&!h&&(a=!1),a=function(e,a,t,n){var l=Ap(e),c=n?a.residualClasses:a.residualStyles;if(null===l)0===(n?a.classBindings:a.styleBindings)&&(t=gv(t=nC(null,e,a,t,n),a.attrs,n),c=null);else{var _=a.directiveStylingLast;if(-1===_||e[_]!==l)if(t=nC(l,e,a,t,n),null===c){var k=function(e,a,t){var n=t?a.classBindings:a.styleBindings;if(0!==ju(n))return e[vs(n)]}(e,a,n);void 0!==k&&Array.isArray(k)&&function(e,a,t,n){e[vs(t?a.classBindings:a.styleBindings)]=n}(e,a,n,k=gv(k=nC(null,e,a,k[1],n),a.attrs,n))}else c=function(e,a,t){for(var n=void 0,l=a.directiveEnd,c=1+a.directiveStylingLast;c0)&&(k=!0):D=t,l)if(0!==C){var U=vs(e[_+1]);e[n+1]=Dm(U,_),0!==U&&(e[U+1]=S0(e[U+1],n)),e[_+1]=function(e,a){return 131071&e|a<<17}(e[_+1],n)}else e[n+1]=Dm(_,0),0!==_&&(e[_+1]=S0(e[_+1],n)),_=n;else e[n+1]=Dm(C,0),0===_?_=n:e[C+1]=S0(e[C+1],n),C=n;k&&(e[n+1]=eM(e[n+1])),YM(e,D,n,!0),YM(e,D,n,!1),function(e,a,t,n,l){var c=l?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof a&&fs(c,a)>=0&&(t[n+1]=tM(t[n+1]))}(a,D,e,n,c),h=Dm(_,C),c?a.classBindings=h:a.styleBindings=h}(l,c,a,t,h,n)}}function nC(e,a,t,n,l){var c=null,h=t.directiveEnd,_=t.directiveStylingLast;for(-1===_?_=t.directiveStart:_++;_0;){var C=e[l],k=Array.isArray(C),D=k?C[1]:C,O=null===D,L=t[l+1];L===Kt&&(L=O?lr:void 0);var U=O?ck(L,n):D===n?L:void 0;if(k&&!rC(U)&&(U=ck(C,n)),rC(U)&&(_=U,h))return _;var Y=e[l+1];l=h?vs(Y):ju(Y)}if(null!==a){var Q=c?a.residualClasses:a.residualStyles;null!=Q&&(_=ck(Q,n))}return _}function rC(e){return void 0!==e}function iC(e,a){return 0!=(e.flags&(a?16:32))}function X(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Re(),n=xn(),l=e+20,c=n.firstCreatePass?Zp(n,l,1,a,null):n.data[l],h=t[l]=u0(t[11],a);v0(n,t,h,c),Mi(c,!1)}function In(e){return Ve("",e,""),In}function Ve(e,a,t){var n=Re(),l=ho(n,e,a,t);return l!==Kt&&al(n,ua(),l),Ve}function th(e,a,t,n,l){var c=Re(),h=function(e,a,t,n,l,c){var _=gf(e,so(),t,l);return Zs(2),_?a+Zt(t)+n+Zt(l)+c:Kt}(c,e,a,t,n,l);return h!==Kt&&al(c,ua(),h),th}function oC(e,a,t){!function(e,a,t,n){var l=xn(),c=Zs(2);l.firstUpdatePass&&ZM(l,null,c,n);var h=Re();if(t!==Kt&&pa(h,c,t)){var _=l.data[ua()];if(iC(_,n)&&!YI(l,c)){var k=n?_.classesWithoutHost:_.stylesWithoutHost;null!==k&&(t=Eb(k,t||"")),Z0(l,_,h,t,n)}else!function(e,a,t,n,l,c,h,_){l===Kt&&(l=lr);for(var C=0,k=0,D=0>20;if(qd(e)||!e.multi){var Y=new Hl(k,l,N),Q=yx(C,a,l?O:O+U,L);-1===Q?(ca(im(D,_),h,C),CC(h,e,a.length),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Y),_.push(Y)):(t[Q]=Y,_[Q]=Y)}else{var ie=yx(C,a,O+U,L),fe=yx(C,a,O,O+U),be=fe>=0&&t[fe];if(l&&!be||!l&&!(ie>=0&&t[ie])){ca(im(D,_),h,C);var we=function(e,a,t,n,l){var c=new Hl(e,t,N);return c.multi=[],c.index=a,c.componentProviders=0,wC(c,l,n&&!t),c}(l?kC:SC,t.length,l,n,k);!l&&be&&(t[fe].providerFactory=we),CC(h,e,a.length,0),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(we),_.push(we)}else CC(h,e,ie>-1?ie:fe,wC(t[l?fe:ie],k,!l&&n));!l&&n&&be&&t[fe].componentProviders++}}}function CC(e,a,t,n){var l=qd(a);if(l||function(e){return!!e.useClass}(a)){var h=(a.useClass||a).prototype.ngOnDestroy;if(h){var _=e.destroyHooks||(e.destroyHooks=[]);if(!l&&a.multi){var C=_.indexOf(t);-1===C?_.push(t,[n,h]):_[C+1].push(n,h)}else _.push(t,h)}}}function wC(e,a,t){return t&&e.componentProviders++,e.multi.push(a)-1}function yx(e,a,t,n){for(var l=t;l1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,l){return W4(n,l?l(e):e,a)}}}var Y4=function e(){F(this,e)},DR=function e(){F(this,e)},AR=function(){function e(){F(this,e)}return j(e,[{key:"resolveComponentFactory",value:function(t){throw function(e){var a=Error("No component factory found for ".concat(at(e),". Did you add it to @NgModule.entryComponents?"));return a.ngComponent=e,a}(t)}}]),e}(),dl=function(){var e=function a(){F(this,a)};return e.NULL=new AR,e}();function xC(){}function nh(e,a){return new Be(ao(e,a))}var OR=function(){return nh(Yn(),Re())},Be=function(){var e=function a(t){F(this,a),this.nativeElement=t};return e.__NG_ELEMENT_ID__=OR,e}();function Ua(e){return e instanceof Be?e.nativeElement:e}var Ku=function e(){F(this,e)},ma=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=function(){return RR()},e}(),RR=function(){var e=Re(),t=oo(Yn().index,e);return function(e){return e[11]}(ro(t)?t:e)},DC=function(){var e=function a(){F(this,a)};return e.\u0275prov=Ge({token:e,providedIn:"root",factory:function(){return null}}),e}(),Qu=function e(a){F(this,e),this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")},$4=new Qu("12.2.1"),FR=function(){function e(){F(this,e)}return j(e,[{key:"supports",value:function(t){return Ym(t)}},{key:"create",value:function(t){return new VR(t)}}]),e}(),NR=function(a,t){return t},VR=function(){function e(a){F(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||NR}return j(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,l=this._removalsHead,c=0,h=null;n||l;){var _=!l||n&&n.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==t;){var c=a[t.index];if(null!==c&&n.push(ti(c)),ls(c))for(var h=10;h-1&&(Wk(t,l),Ou(n,l))}this._attachedToViewContainer=!1}PO(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Om(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Li(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){iv(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,a,t){Qg(!0);try{iv(e,a,t)}finally{Qg(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,a){Hd(e,a,a[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),e}(),HR=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n))._view=n,l}return j(t,[{key:"detectChanges",value:function(){uI(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Qg(!0);try{uI(e)}finally{Qg(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(c_),PC=function(e){return function(e,a,t){if(Lb(e)&&!t){var n=oo(e.index,a);return new c_(n,n)}return 47&e.type?new c_(a[16],a):null}(Yn(),Re(),16==(16&e))},Gt=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=PC,e}(),zR=[new kx],n8=new Cs([new FR]),GR=new Vi(zR),jR=function(){return OC(Yn(),Re())},Dn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=jR,e}(),WR=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._declarationLView=n,h._declarationTContainer=l,h.elementRef=c,h}return j(t,[{key:"createEmbeddedView",value:function(l){var c=this._declarationTContainer.tViews,h=Gd(this._declarationLView,c,l,16,null,c.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];var C=this._declarationLView[19];return null!==C&&(h[19]=C.createEmbeddedView(c)),Zl(c,h,l),new c_(h)}}]),t}(Dn);function OC(e,a){return 4&e.type?new WR(a,e,nh(e,a)):null}var $u=function e(){F(this,e)},qR=function e(){F(this,e)},o8=function(){return rh(Yn(),Re())},qn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=o8,e}(),Ex=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._lContainer=n,h._hostTNode=l,h._hostLView=c,h}return j(t,[{key:"element",get:function(){return nh(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Zc(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var l=Wr(this._hostTNode,this._hostLView);if(WP(l)){var c=qc(l,this._hostLView),h=Rp(l);return new Zc(c[1].data[h+8],c)}return new Zc(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=wf(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,h){var _=l.createEmbeddedView(c||{});return this.insert(_,h),_}},{key:"createComponent",value:function(l,c,h,_,C){var k=h||this.parentInjector;if(!C&&null==l.ngModule&&k){var D=k.get($u,null);D&&(C=D)}var O=l.create(k,_,void 0,C);return this.insert(O.hostView,c),O}},{key:"insert",value:function(l,c){var h=l._lView,_=h[1];if(function(e){return ls(e[3])}(h)){var C=this.indexOf(l);if(-1!==C)this.detach(C);else{var k=h[3],D=new Ex(k,k[6],k[3]);D.detach(D.indexOf(l))}}var O=this._adjustIndex(c),L=this._lContainer;!function(e,a,t,n){var l=10+n,c=t.length;n>0&&(t[l-1][4]=a),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),t}(qn);function wf(e){return e[8]}function Ju(e){return e[8]||(e[8]=[])}function rh(e,a){var t,n=a[e.index];if(ls(n))t=n;else{var l;if(8&e.type)l=ti(n);else{var c=a[11];l=c.createComment("");var h=ao(e,a);ha(c,Mm(c,h),l,function(e,a){return Nr(e)?e.nextSibling(a):a.nextSibling}(c,h),!1)}a[e.index]=t=nv(n,a,l,e),rv(a,t)}return new Ex(t,e,a)}var Ev={},ec=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).ngModule=n,l}return j(t,[{key:"resolveComponentFactory",value:function(l){var c=Da(l);return new C2(c,this.ngModule)}}]),t}(dl);function b2(e){var a=[];for(var t in e)e.hasOwnProperty(t)&&a.push({propName:e[t],templateName:t});return a}var UC=new Ee("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return o0}}),C2=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function(e){return e.map(GO).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return j(t,[{key:"inputs",get:function(){return b2(this.componentDef.inputs)}},{key:"outputs",get:function(){return b2(this.componentDef.outputs)}},{key:"create",value:function(l,c,h,_){var ae,be,C=(_=_||this.ngModule)?function(e,a){return{get:function(n,l,c){var h=e.get(n,Ev,c);return h!==Ev||l===Ev?h:a.get(n,l,c)}}}(l,_.injector):l,k=C.get(Ku,BP),D=C.get(DC,null),O=k.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",U=h?function(e,a,t){if(Nr(e))return e.selectRootElement(a,t===as.ShadowDom);var l="string"==typeof a?e.querySelector(a):a;return l.textContent="",l}(O,h,this.componentDef.encapsulation):jk(k.createRenderer(null,this.componentDef),L,function(e){var a=e.toLowerCase();return"svg"===a?Mp:"math"===a?"http://www.w3.org/1998/MathML/":null}(L)),Y=this.componentDef.onPush?576:528,Q=function(e,a){return{components:[],scheduler:e||o0,clean:fI,playerHandler:a||null,flags:0}}(),ie=jd(0,null,null,1,0,null,null,null,null,null),fe=Gd(null,ie,Q,Y,null,null,k,O,D,C);Bl(fe);try{var we=function(e,a,t,n,l,c){var h=t[1];t[20]=e;var C=Zp(h,20,2,"#host",null),k=C.mergedAttrs=a.hostAttrs;null!==k&&(I0(C,k,!0),null!==e&&(rm(l,e,k),null!==C.classes&&Qk(l,e,C.classes),null!==C.styles&&xm(l,e,C.styles)));var D=n.createRenderer(e,a),O=Gd(t,JO(a),null,a.onPush?64:16,t[20],C,n,D,c||null,null);return h.firstCreatePass&&(ca(im(C,t),h,a.type),ev(h,C),ms(C,t.length,1)),rv(t,O),t[20]=O}(U,this.componentDef,fe,k,O);if(U)if(h)rm(O,U,["ng-version",$4.full]);else{var Ue=function(e){for(var a=[],t=[],n=1,l=2;n0&&Qk(O,U,Ct.join(" "))}if(be=Zg(ie,20),void 0!==c)for(var Sn=be.projection=[],$n=0;$n1&&void 0!==arguments[1]?arguments[1]:jt.THROW_IF_NOT_FOUND,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:St.Default;return l===jt||l===$u||l===Nm?this:this._r3Injector.get(l,c,h)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),t}($u),nT=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).moduleType=n,null!==ko(n)&&function(e){var a=new Set;!function t(n){var l=ko(n,!0),c=l.id;null!==c&&(function(e,a,t){if(a&&a!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(at(a)," vs ").concat(at(a.name)))}(c,iu.get(c),n),iu.set(c,n));var k,C=rn(nl(l.imports));try{for(C.s();!(k=C.n()).done;){var D=k.value;a.has(D)||(a.add(D),t(D))}}catch(O){C.e(O)}finally{C.f()}}(e)}(n),l}return j(t,[{key:"create",value:function(l){return new O8(this.moduleType,l)}}]),t}(qR);function GC(e,a,t){var n=la()+e,l=Re();return l[n]===Kt?ol(l,n,t?a.call(t):a()):function(e,a){return e[a]}(l,n)}function Go(e,a,t,n){return k2(Re(),la(),e,a,t,n)}function C_(e,a,t,n,l){return S_(Re(),la(),e,a,t,n,l)}function Mf(e,a){var t=e[a];return t===Kt?void 0:t}function k2(e,a,t,n,l,c){var h=a+t;return pa(e,h,l)?ol(e,h+1,c?n.call(c,l):n(l)):Mf(e,h+1)}function S_(e,a,t,n,l,c,h){var _=a+t;return gf(e,_,l,c)?ol(e,_+2,h?n.call(h,l,c):n(l,c)):Mf(e,_+2)}function xf(e,a){var n,t=xn(),l=e+20;t.firstCreatePass?(n=function(e,a){if(a)for(var t=a.length-1;t>=0;t--){var n=a[t];if(e===n.name)return n}throw new yp("302","The pipe '".concat(e,"' could not be found!"))}(a,t.pipeRegistry),t.data[l]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(l,n.onDestroy)):n=t.data[l];var c=n.factory||(n.factory=qs(n.type)),h=So(N);try{var _=Gb(!1),C=c();return Gb(_),function(e,a,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),a[t]=n}(t,Re(),l,C),C}finally{So(h)}}function Rv(e,a,t){var n=e+20,l=Re(),c=Tp(l,n);return M_(l,k_(l,n)?k2(l,la(),a,c.transform,t,c):c.transform(t))}function oT(e,a,t,n){var l=e+20,c=Re(),h=Tp(c,l);return M_(c,k_(c,l)?S_(c,la(),a,h.transform,t,n,h):h.transform(t,n))}function k_(e,a){return e[1].data[a].pure}function M_(e,a){return vf.isWrapped(a)&&(a=vf.unwrap(a),e[so()]=Kt),a}function Tf(e){return function(a){setTimeout(e,void 0,a)}}var ye=function(e){oe(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return F(this,t),(n=a.call(this)).__isAsync=l,n}return j(t,[{key:"emit",value:function(l){Oe(Pe(t.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,h){var _,C,k,D=l,O=c||function(){return null},L=h;if(l&&"object"==typeof l){var U=l;D=null===(_=U.next)||void 0===_?void 0:_.bind(U),O=null===(C=U.error)||void 0===C?void 0:C.bind(U),L=null===(k=U.complete)||void 0===k?void 0:k.bind(U)}this.__isAsync&&(O=Tf(O),D&&(D=Tf(D)),L&&(L=Tf(L)));var Y=Oe(Pe(t.prototype),"subscribe",this).call(this,{next:D,error:O,complete:L});return l instanceof We&&l.add(Y),Y}}]),t}(He);function tc(){return this._results[Ho()]()}var nc=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,e),this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=Ho(),n=e.prototype;n[t]||(n[t]=tc)}return j(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var l=this;l.dirty=!1;var c=nn(t);(this._changesDetected=!function(e,a,t){if(e.length!==a.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return j(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var l=null!==t.contentQueries?t.contentQueries[0]:n.length,c=[],h=0;h2&&void 0!==arguments[2]?arguments[2]:null;F(this,e),this.predicate=a,this.flags=t,this.read=n},N8=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return j(e,[{key:"elementStart",value:function(t,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;F(this,e),this.metadata=a,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return j(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=t.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(h[_/2]);else{for(var k=c[_+1],D=a[-C],O=10;O0&&(_=setTimeout(function(){h._callbacks=h._callbacks.filter(function(C){return C.timeoutId!==_}),n(h._didWork,h.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),rL=function(){var e=function(){function a(){F(this,a),this._applications=new Map,ow.addToWindow(this)}return j(a,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ow.findTestabilityInTree(this,n,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),ow=new(function(){function e(){F(this,e)}return j(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,l){return null}}]),e}()),oL=!0,B_=!1;function sw(){return B_=!0,oL}var Es,vU=function(e,a,t){var n=new nT(t);return Promise.resolve(n)},lL=new Ee("AllowMultipleToken"),MT=function e(a,t){F(this,e),this.name=a,this.token=t};function CU(e){if(Es&&!Es.destroyed&&!Es.injector.get(lL,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Es=e.get(DT);var a=e.get(X2,null);return a&&a.forEach(function(t){return t()}),Es}function uL(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(a),l=new Ee(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=TT();if(!h||h.injector.get(lL,!1))if(e)e(t.concat(c).concat({provide:l,useValue:!0}));else{var _=t.concat(c).concat({provide:l,useValue:!0},{provide:Vm,useValue:"platform"});CU(jt.create({providers:_,name:n}))}return wU(l)}}function wU(e){var a=TT();if(!a)throw new Error("No platform exists!");if(!a.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return a}function TT(){return Es&&!Es.destroyed?Es:null}var DT=function(){var e=function(){function a(t){F(this,a),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return j(a,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,k=function(e,a){return"noop"===e?new nL:("zone.js"===e?void 0:e)||new lt({enableLongStackTrace:sw(),shouldCoalesceEventChangeDetection:!!(null==a?void 0:a.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==a?void 0:a.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),D=[{provide:lt,useValue:k}];return k.run(function(){var O=jt.create({providers:D,parent:c.injector,name:n.moduleType.name}),L=n.create(O),U=L.injector.get(Bt,null);if(!U)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return k.runOutsideAngular(function(){var Y=k.onError.subscribe({next:function(ie){U.handleError(ie)}});L.onDestroy(function(){vh(c._modules,L),Y.unsubscribe()})}),function(e,a,t){try{var n=((Y=L.injector.get(Qi)).runInitializers(),Y.donePromise.then(function(){return cx(L.injector.get(Wa,dC)||dC),c._moduleDoBootstrap(L),L}));return Km(n)?n.catch(function(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}):n}catch(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}var Y}(U,k)})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],h=dL({},c);return vU(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,h)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(Rf);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(c){return l.bootstrap(c)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module ".concat(at(n.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(jt))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}();function dL(e,a){return Array.isArray(a)?a.reduce(dL,e):Object.assign(Object.assign({},e),a)}var Rf=function(){var e=function(){function a(t,n,l,c,h){var _=this;F(this,a),this._zone=t,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=c,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){_._zone.run(function(){_.tick()})}});var C=new pn(function(D){_._stable=_._zone.isStable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks,_._zone.runOutsideAngular(function(){D.next(_._stable),D.complete()})}),k=new pn(function(D){var O;_._zone.runOutsideAngular(function(){O=_._zone.onStable.subscribe(function(){lt.assertNotInAngularZone(),aw(function(){!_._stable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks&&(_._stable=!0,D.next(!0))})})});var L=_._zone.onUnstable.subscribe(function(){lt.assertInAngularZone(),_._stable&&(_._stable=!1,_._zone.runOutsideAngular(function(){D.next(!1)}))});return function(){O.unsubscribe(),L.unsubscribe()}});this.isStable=bn(C,k.pipe(function(e){return mp()(function(e,a){return function(n){var l;l="function"==typeof e?e:function(){return e};var c=Object.create(n,mP);return c.source=n,c.subjectFactory=l,c}}(_p)(e))}))}return j(a,[{key:"bootstrap",value:function(n,l){var h,c=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");h=n instanceof DR?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(h.componentType);var _=function(e){return e.isBoundToModule}(h)?void 0:this._injector.get($u),k=h.create(jt.NULL,[],l||h.selector,_),D=k.location.nativeElement,O=k.injector.get(kT,null),L=O&&k.injector.get(rL);return O&&L&&L.registerApplication(D,O),k.onDestroy(function(){c.detachView(k.hostView),vh(c.components,k),L&&L.unregisterApplication(D)}),this._loadComponent(k),k}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var c,l=rn(this._views);try{for(l.s();!(c=l.n()).done;)c.value.detectChanges()}catch(D){l.e(D)}finally{l.f()}}catch(D){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(D)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;vh(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Z2,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(jt),ce(Bt),ce(dl),ce(Qi))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}();function vh(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var uw=function e(){F(this,e)},kU=function e(){F(this,e)},z_={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},PT=function(){var e=function(){function a(t,n){F(this,a),this._compiler=t,this._config=n||z_}return j(a,[{key:"load",value:function(n){return this.loadAndCompile(n)}},{key:"loadAndCompile",value:function(n){var l=this,h=hr(n.split("#"),2),_=h[0],C=h[1];return void 0===C&&(C="default"),Mt(98255)(_).then(function(k){return k[C]}).then(function(k){return OT(k,_,C)}).then(function(k){return l._compiler.compileModuleAsync(k)})}},{key:"loadFactory",value:function(n){var c=hr(n.split("#"),2),h=c[0],_=c[1],C="NgFactory";return void 0===_&&(_="default",C=""),Mt(98255)(this._config.factoryPathPrefix+h+this._config.factoryPathSuffix).then(function(k){return k[_+C]}).then(function(k){return OT(k,h,_)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(If),ce(kU,8))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}();function OT(e,a,t){if(!e)throw new Error("Cannot find '".concat(t,"' in '").concat(a,"'"));return e}var OU=uL(null,"core",[{provide:ph,useValue:"unknown"},{provide:DT,deps:[jt]},{provide:rL,deps:[]},{provide:I_,deps:[]}]),FU=[{provide:Rf,useClass:Rf,deps:[lt,jt,Bt,dl,Qi]},{provide:UC,deps:[lt],useFactory:function(e){var a=[];return e.onStable.subscribe(function(){for(;a.length;)a.pop()()}),function(t){a.push(t)}}},{provide:Qi,useClass:Qi,deps:[[new Di,P_]]},{provide:If,useClass:If,deps:[]},oU,{provide:Cs,useFactory:function(){return n8},deps:[]},{provide:Vi,useFactory:function(){return GR},deps:[]},{provide:Wa,useFactory:function(e){return cx(e=e||"undefined"!=typeof $localize&&$localize.locale||dC),e},deps:[[new Hp(Wa),new Di,new uo]]},{provide:R_,useValue:"USD"}],G_=function(){var e=function a(t){F(this,a)};return e.\u0275fac=function(t){return new(t||e)(ce(Rf))},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:FU}),e}(),Bf=null;function gl(){return Bf}var tD=function e(){F(this,e)},et=new Ee("DocumentToken"),Hf=function(){var e=function(){function a(){F(this,a)}return j(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:hG,token:e,providedIn:"platform"}),e}();function hG(){return ce(nD)}var pG=new Ee("Location Initialized"),nD=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c._init(),c}return j(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return gl().getBaseHref(this._doc)}},{key:"onPopState",value:function(c){var h=gl().getGlobalEventTarget(this._doc,"window");return h.addEventListener("popstate",c,!1),function(){return h.removeEventListener("popstate",c)}}},{key:"onHashChange",value:function(c){var h=gl().getGlobalEventTarget(this._doc,"window");return h.addEventListener("hashchange",c,!1),function(){return h.removeEventListener("hashchange",c)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(c){this.location.pathname=c}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(c,h,_){WL()?this._history.pushState(c,h,_):this.location.hash=_}},{key:"replaceState",value:function(c,h,_){WL()?this._history.replaceState(c,h,_):this.location.hash=_}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}(Hf);return e.\u0275fac=function(t){return new(t||e)(ce(et))},e.\u0275prov=Ge({factory:YL,token:e,providedIn:"platform"}),e}();function WL(){return!!window.history.pushState}function YL(){return new nD(ce(et))}function rD(e,a){if(0==e.length)return a;if(0==a.length)return e;var t=0;return e.endsWith("/")&&t++,a.startsWith("/")&&t++,2==t?e+a.substring(1):1==t?e+a:e+"/"+a}function vG(e){var a=e.match(/#|\?|$/),t=a&&a.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ac(e){return e&&"?"!==e[0]?"?"+e:e}var Mh=function(){var e=function(){function a(){F(this,a)}return j(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:qL,token:e,providedIn:"root"}),e}();function qL(e){var a=ce(et).location;return new XL(ce(Hf),a&&a.origin||"")}var iD=new Ee("appBaseHref"),XL=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;if(F(this,n),(h=t.call(this))._platformLocation=l,h._removeListenerFns=[],null==c&&(c=h._platformLocation.getBaseHrefFromDOM()),null==c)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return h._baseHref=c,h}return j(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return rD(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],h=this._platformLocation.pathname+ac(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(h).concat(_):h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+ac(C));this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+ac(C));this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Mh);return e.\u0275fac=function(t){return new(t||e)(ce(Hf),ce(iD,8))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),ZL=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._platformLocation=l,h._baseHref="",h._removeListenerFns=[],null!=c&&(h._baseHref=c),h}return j(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var h=this._platformLocation.hash;return null==h&&(h="#"),h.length>0?h.substring(1):h}},{key:"prepareExternalUrl",value:function(c){var h=rD(this._baseHref,c);return h.length>0?"#"+h:h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+ac(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+ac(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Mh);return e.\u0275fac=function(t){return new(t||e)(ce(Hf),ce(iD,8))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),xh=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=t;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=vG(KL(c)),this._platformStrategy.onPopState(function(h){l._subject.emit({url:l.path(!0),pop:!0,state:h.state,type:h.type})})}return j(a,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+ac(l))}},{key:"normalize",value:function(n){return a.stripTrailingSlash(function(e,a){return e&&a.startsWith(e)?a.substring(e.length):a}(this._baseHref,KL(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ac(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ac(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Mh),ce(Hf))},e.normalizeQueryParams=ac,e.joinWithSlash=rD,e.stripTrailingSlash=vG,e.\u0275prov=Ge({factory:gG,token:e,providedIn:"root"}),e}();function gG(){return new xh(ce(Mh),ce(Hf))}function KL(e){return e.replace(/\/index.html$/,"")}var Z_=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),ww=function(e){return function(e){var a=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=ux(a);if(t)return t;var n=a.split("-")[0];if(t=ux(n))return t;if("en"===n)return e_;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[ar.PluralCase]},xw=function e(){F(this,e)},zG=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).locale=l,c}return j(n,[{key:"getPluralCategory",value:function(c,h){switch(ww(h||this.locale)(c)){case Z_.Zero:return"zero";case Z_.One:return"one";case Z_.Two:return"two";case Z_.Few:return"few";case Z_.Many:return"many";default:return"other"}}}]),n}(xw);return e.\u0275fac=function(t){return new(t||e)(ce(Wa))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}();function dD(e,a){a=encodeURIComponent(a);var n,t=rn(e.split(";"));try{for(t.s();!(n=t.n()).done;){var l=n.value,c=l.indexOf("="),_=hr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),k=_[1];if(_[0].trim()===a)return decodeURIComponent(k)}}catch(D){t.e(D)}finally{t.f()}return null}var _l=function(){var e=function(){function a(t,n,l,c){F(this,a),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return j(a,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Ym(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(at(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(h){l?c._renderer.addClass(c._ngEl.nativeElement,h):c._renderer.removeClass(c._ngEl.nativeElement,h)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Cs),N(Vi),N(Be),N(ma))},e.\u0275dir=ge({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),hD=function(){function e(a,t,n,l){F(this,e),this.$implicit=a,this.ngForOf=t,this.index=n,this.count=l}return j(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),fr=function(){var e=function(){function a(t,n,l){F(this,a),this._viewContainer=t,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return j(a,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(c){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=[];n.forEachOperation(function(D,O,L){if(null==D.previousIndex){var U=l._viewContainer.createEmbeddedView(l._template,new hD(null,l._ngForOf,-1,-1),null===L?void 0:L),Y=new Wo(D,U);c.push(Y)}else if(null==L)l._viewContainer.remove(null===O?void 0:O);else if(null!==O){var Q=l._viewContainer.get(O);l._viewContainer.move(Q,L);var ie=new Wo(D,Q);c.push(ie)}});for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:bF;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var h=this.differ.diff(n),_=c!==this.compareFn;return h&&(this.keyValues=[],h.forEachItem(function(C){l.keyValues.push(t6(C.key,C.currentValue))})),(h||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vi,16))},e.\u0275pipe=oa({name:"keyvalue",type:e,pure:!1}),e}();function bF(e,a){var t=e.key,n=a.key;if(t===n)return 0;if(void 0===t)return 1;if(void 0===n)return-1;if(null===t)return 1;if(null===n)return-1;if("string"==typeof t&&"string"==typeof n)return t1&&void 0!==arguments[1])||arguments[1],h=t.findTestabilityInTree(l,c);if(null==h)throw new Error("Could not find testability for element.");return h},Jn.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Jn.getAllAngularRootElements=function(){return t.getAllRootElements()},Jn.frameworkStabilizers||(Jn.frameworkStabilizers=[]),Jn.frameworkStabilizers.push(function(c){var h=Jn.getAllAngularTestabilities(),_=h.length,C=!1,k=function(O){C=C||O,0==--_&&c(C)};h.forEach(function(D){D.whenStable(k)})})}},{key:"findTestabilityInTree",value:function(t,n,l){if(null==n)return null;var c=t.getTestability(n);return null!=c?c:l?gl().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){ow=e}(new e)}}]),e}(),g6=function(){var e=function(){function a(){F(this,a)}return j(a,[{key:"build",value:function(){return new XMLHttpRequest}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),Xv=new Ee("EventManagerPlugins"),Lw=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(c){return c.manager=l}),this._plugins=t.slice().reverse()}return j(a,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,h=0;h-1&&(h.splice(L,1),k+=O+".")}),k+=C,0!=h.length||0===C.length)return null;var D={};return D.domEventName=_,D.fullKey=k,D}},{key:"getEventFullKey",value:function(c){var h="",_=function(e){var a=e.key;if(null==a){if(null==(a=e.keyIdentifier))return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===e.location&&ED.hasOwnProperty(a)&&(a=ED[a]))}return dy[a]||a}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),fy.forEach(function(C){C!=_&&(0,R6[C])(c)&&(h+=C+".")}),h+=_}},{key:"eventCallback",value:function(c,h,_){return function(C){n.getEventFullKey(C)===c&&_.runGuarded(function(){return h(C)})}}},{key:"_normalizeKey",value:function(c){switch(c){case"esc":return"escape";default:return c}}}]),n}(Fw);return e.\u0275fac=function(t){return new(t||e)(ce(et))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),Kv=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:function(){return ce(Ph)},token:e,providedIn:"root"}),e}(),Ph=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c}return j(n,[{key:"sanitize",value:function(c,h){if(null==h)return null;switch(c){case Fo.NONE:return h;case Fo.HTML:return Yr(h,"HTML")?Ro(h):zu(this._doc,String(h)).toString();case Fo.STYLE:return Yr(h,"Style")?Ro(h):h;case Fo.SCRIPT:if(Yr(h,"Script"))return Ro(h);throw new Error("unsafe value used in a script context");case Fo.URL:return Ia(h),Yr(h,"URL")?Ro(h):vm(String(h));case Fo.RESOURCE_URL:if(Yr(h,"ResourceURL"))return Ro(h);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function(e){return new Sk(e)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function(e){return new zH(e)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function(e){return new uO(e)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function(e){return new hm(e)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function(e){return new cO(e)}(c)}}]),n}(Kv);return e.\u0275fac=function(t){return new(t||e)(ce(et))},e.\u0275prov=Ge({factory:function(){return function(e){return new Ph(e.get(et))}(ce(Nm))},token:e,providedIn:"root"}),e}(),V6=uL(OU,"browser",[{provide:ph,useValue:"browser"},{provide:X2,useValue:function(){ay.makeCurrent(),v6.init()},multi:!0},{provide:et,useFactory:function(){return e=document,YS=e,document;var e},deps:[]}]),B6=[[],{provide:Vm,useValue:"root"},{provide:Bt,useFactory:function(){return new Bt},deps:[]},{provide:Xv,useClass:M6,multi:!0,deps:[et,lt,ph]},{provide:Xv,useClass:OD,multi:!0,deps:[et]},[],{provide:cy,useClass:cy,deps:[Lw,Eh,O_]},{provide:Ku,useExisting:cy},{provide:DF,useExisting:Eh},{provide:Eh,useClass:Eh,deps:[et]},{provide:kT,useClass:kT,deps:[lt]},{provide:Lw,useClass:Lw,deps:[Xv,lt]},{provide:qv,useClass:g6,deps:[]},[]],RD=function(){var e=function(){function a(t){if(F(this,a),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return j(a,null,[{key:"withServerTransition",value:function(n){return{ngModule:a,providers:[{provide:O_,useValue:n.appId},{provide:MF,useExisting:O_},CD]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(e,12))},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:B6,imports:[Za,G_]}),e}();function rt(){for(var e=arguments.length,a=new Array(e),t=0;t0){var c=n.slice(0,l),h=c.toLowerCase(),_=n.slice(l+1).trim();t.maybeSetNormalizedName(c,h),t.headers.has(h)?t.headers.get(h).push(_):t.headers.set(h,[_])}})}:function(){t.headers=new Map,Object.keys(a).forEach(function(n){var l=a[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(t.headers.set(c,l),t.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return j(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(l){n.headers.set(l,t.headers.get(l)),n.normalizedNames.set(l,t.normalizedNames.get(l))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var l=t.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(t.name,n);var c=("a"===t.op?this.headers.get(n):void 0)||[];c.push.apply(c,xt(l)),this.headers.set(n,c);break;case"d":var h=t.value;if(h){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(C){return-1===h.indexOf(C)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return t(n.normalizedNames.get(l),n.headers.get(l))})}}]),e}(),Y6=function(){function e(){F(this,e)}return j(e,[{key:"encodeKey",value:function(t){return Ih(t)}},{key:"encodeValue",value:function(t){return Ih(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function q6(e,a){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=hr(-1==c?[a.decodeKey(l),""]:[a.decodeKey(l.slice(0,c)),a.decodeValue(l.slice(c+1))],2),C=_[0],k=_[1],D=t.get(C)||[];D.push(k),t.set(C,D)}),t}function Ih(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function WF(e){return"".concat(e)}var Ls=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Y6,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=q6(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var l=t.fromObject[n];a.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return j(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(l){var c=t[l];Array.isArray(c)?c.forEach(function(h){n.push({param:l,value:h,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var l=t.encoder.encodeKey(n);return t.map.get(n).map(function(c){return l+"="+t.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?t.map.get(n.param):void 0)||[];l.push(WF(n.value)),t.map.set(n.param,l);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var c=t.map.get(n.param)||[],h=c.indexOf(WF(n.value));-1!==h&&c.splice(h,1),c.length>0?t.map.set(n.param,c):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),YF=function(){function e(){F(this,e),this.map=new Map}return j(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function GD(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function qF(e){return"undefined"!=typeof Blob&&e instanceof Blob}function XF(e){return"undefined"!=typeof FormData&&e instanceof FormData}var jD=function(){function e(a,t,n,l){var c;if(F(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=a.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Oh),this.context||(this.context=new YF),this.params){var h=this.params.toString();if(0===h.length)this.urlWithParams=t;else{var _=t.indexOf("?");this.urlWithParams=t+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=t.method||this.method,c=t.url||this.url,h=t.responseType||this.responseType,_=void 0!==t.body?t.body:this.body,C=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,k=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,D=t.headers||this.headers,O=t.params||this.params,L=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(D=Object.keys(t.setHeaders).reduce(function(U,Y){return U.set(Y,t.setHeaders[Y])},D)),t.setParams&&(O=Object.keys(t.setParams).reduce(function(U,Y){return U.set(Y,t.setParams[Y])},O)),new e(l,c,_,{params:O,headers:D,context:L,reportProgress:k,responseType:h,withCredentials:C})}}]),e}(),py=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),WD=function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";F(this,e),this.headers=a.headers||new Oh,this.status=void 0!==a.status?a.status:t,this.statusText=a.statusText||n,this.url=a.url||null,this.ok=this.status>=200&&this.status<300},Q6=function(e){oe(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=py.ResponseHeader,n}return j(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(WD),ZF=function(e){oe(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=py.Response,n.body=void 0!==l.body?l.body:null,n}return j(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(WD),vy=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return t}(WD);function gy(e,a){return{body:a,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var KF=function(){var e=function(){function a(t){F(this,a),this.handler=t}return j(a,[{key:"request",value:function(n,l){var _,c=this,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof jD)_=n;else{var C=void 0;C=h.headers instanceof Oh?h.headers:new Oh(h.headers);var k=void 0;h.params&&(k=h.params instanceof Ls?h.params:new Ls({fromObject:h.params})),_=new jD(n,l,void 0!==h.body?h.body:null,{headers:C,context:h.context,params:k,reportProgress:h.reportProgress,responseType:h.responseType||"json",withCredentials:h.withCredentials})}var D=rt(_).pipe(jf(function(L){return c.handler.handle(L)}));if(n instanceof jD||"events"===h.observe)return D;var O=D.pipe(jn(function(L){return L instanceof ZF}));switch(h.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return O.pipe(Ht(function(L){if(null!==L.body&&!(L.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return L.body}));case"blob":return O.pipe(Ht(function(L){if(null!==L.body&&!(L.body instanceof Blob))throw new Error("Response is not a Blob.");return L.body}));case"text":return O.pipe(Ht(function(L){if(null!==L.body&&"string"!=typeof L.body)throw new Error("Response is not a string.");return L.body}));case"json":default:return O.pipe(Ht(function(L){return L.body}))}case"response":return O;default:throw new Error("Unreachable: unhandled observe type ".concat(h.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new Ls).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,gy(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,gy(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,gy(c,l))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(UD))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),QF=function(){function e(a,t){F(this,e),this.next=a,this.interceptor=t}return j(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),$F=new Ee("HTTP_INTERCEPTORS"),$6=function(){var e=function(){function a(){F(this,a)}return j(a,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),J6=/^\)\]\}',?\n/,JF=function(){var e=function(){function a(t){F(this,a),this.xhrFactory=t}return j(a,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new pn(function(c){var h=l.xhrFactory.build();if(h.open(n.method,n.urlWithParams),n.withCredentials&&(h.withCredentials=!0),n.headers.forEach(function(fe,ae){return h.setRequestHeader(fe,ae.join(","))}),n.headers.has("Accept")||h.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&h.setRequestHeader("Content-Type",_)}if(n.responseType){var C=n.responseType.toLowerCase();h.responseType="json"!==C?C:"text"}var k=n.serializeBody(),D=null,O=function(){if(null!==D)return D;var ae=1223===h.status?204:h.status,be=h.statusText||"OK",we=new Oh(h.getAllResponseHeaders()),Ue=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(h)||n.url;return D=new Q6({headers:we,status:ae,statusText:be,url:Ue})},L=function(){var ae=O(),be=ae.headers,we=ae.status,Ue=ae.statusText,Ze=ae.url,Ct=null;204!==we&&(Ct=void 0===h.response?h.responseText:h.response),0===we&&(we=Ct?200:0);var Sn=we>=200&&we<300;if("json"===n.responseType&&"string"==typeof Ct){var $n=Ct;Ct=Ct.replace(J6,"");try{Ct=""!==Ct?JSON.parse(Ct):null}catch(Ur){Ct=$n,Sn&&(Sn=!1,Ct={error:Ur,text:Ct})}}Sn?(c.next(new ZF({body:Ct,headers:be,status:we,statusText:Ue,url:Ze||void 0})),c.complete()):c.error(new vy({error:Ct,headers:be,status:we,statusText:Ue,url:Ze||void 0}))},U=function(ae){var be=O(),Ue=new vy({error:ae,status:h.status||0,statusText:h.statusText||"Unknown Error",url:be.url||void 0});c.error(Ue)},Y=!1,Q=function(ae){Y||(c.next(O()),Y=!0);var be={type:py.DownloadProgress,loaded:ae.loaded};ae.lengthComputable&&(be.total=ae.total),"text"===n.responseType&&!!h.responseText&&(be.partialText=h.responseText),c.next(be)},ie=function(ae){var be={type:py.UploadProgress,loaded:ae.loaded};ae.lengthComputable&&(be.total=ae.total),c.next(be)};return h.addEventListener("load",L),h.addEventListener("error",U),h.addEventListener("timeout",U),h.addEventListener("abort",U),n.reportProgress&&(h.addEventListener("progress",Q),null!==k&&h.upload&&h.upload.addEventListener("progress",ie)),h.send(k),c.next({type:py.Sent}),function(){h.removeEventListener("error",U),h.removeEventListener("abort",U),h.removeEventListener("load",L),h.removeEventListener("timeout",U),n.reportProgress&&(h.removeEventListener("progress",Q),null!==k&&h.upload&&h.upload.removeEventListener("progress",ie)),h.readyState!==h.DONE&&h.abort()}})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(qv))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),YD=new Ee("XSRF_COOKIE_NAME"),qD=new Ee("XSRF_HEADER_NAME"),eN=function e(){F(this,e)},tj=function(){var e=function(){function a(t,n,l){F(this,a),this.doc=t,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return j(a,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=dD(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(et),ce(ph),ce(YD))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),XD=function(){var e=function(){function a(t,n){F(this,a),this.tokenService=t,this.headerName=n}return j(a,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var h=this.tokenService.getToken();return null!==h&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,h)})),l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(eN),ce(qD))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),tN=function(){var e=function(){function a(t,n){F(this,a),this.backend=t,this.injector=n,this.chain=null}return j(a,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get($F,[]);this.chain=l.reduceRight(function(c,h){return new QF(c,h)},this.backend)}return this.chain.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Bw),ce(jt))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),ZD=function(){var e=function(){function a(){F(this,a)}return j(a,null,[{key:"disable",value:function(){return{ngModule:a,providers:[{provide:XD,useClass:$6}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:a,providers:[n.cookieName?{provide:YD,useValue:n.cookieName}:[],n.headerName?{provide:qD,useValue:n.headerName}:[]]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[XD,{provide:$F,useExisting:XD,multi:!0},{provide:eN,useClass:tj},{provide:YD,useValue:"XSRF-TOKEN"},{provide:qD,useValue:"X-XSRF-TOKEN"}]}),e}(),ij=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[KF,{provide:UD,useClass:tN},JF,{provide:Bw,useExisting:JF}],imports:[[ZD.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),ya=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this))._value=n,l}return j(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Oe(Pe(t.prototype),"_subscribe",this).call(this,l);return c&&!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new xc;return this._value}},{key:"next",value:function(l){Oe(Pe(t.prototype),"next",this).call(this,this._value=l)}}]),t}(He),aj=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"notifyNext",value:function(l,c,h,_,C){this.destination.next(c)}},{key:"notifyError",value:function(l,c){this.destination.error(l)}},{key:"notifyComplete",value:function(l){this.destination.complete()}}]),t}(Pn),oj=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).parent=n,h.outerValue=l,h.outerIndex=c,h.index=0,h}return j(t,[{key:"_next",value:function(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}},{key:"_error",value:function(l){this.parent.notifyError(l,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),t}(Pn);function sj(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new oj(e,t,n);if(!l.closed)return a instanceof pn?a.subscribe(l):Db(a)(l)}var nN={};function my(){for(var e=arguments.length,a=new Array(e),t=0;t=2&&(t=!0),function(l){return l.lift(new oN(e,a,t))}}var oN=function(){function e(a,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];F(this,e),this.accumulator=a,this.seed=t,this.hasSeed=n}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new pj(t,this.accumulator,this.seed,this.hasSeed))}}]),e}(),pj=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n)).accumulator=l,_._seed=c,_.hasSeed=h,_.index=0,_}return j(t,[{key:"seed",get:function(){return this._seed},set:function(l){this.hasSeed=!0,this._seed=l}},{key:"_next",value:function(l){if(this.hasSeed)return this._tryNext(l);this.seed=l,this.destination.next(l)}},{key:"_tryNext",value:function(l){var h,c=this.index++;try{h=this.accumulator(this.seed,l,c)}catch(_){this.destination.error(_)}this.seed=h,this.destination.next(h)}}]),t}(Pn);function Yo(e){return function(t){var n=new Gw(e),l=t.lift(n);return n.caught=l}}var Gw=function(){function e(a){F(this,e),this.selector=a}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new vj(t,this.selector,this.caught))}}]),e}(),vj=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).selector=l,h.caught=c,h}return j(t,[{key:"error",value:function(l){if(!this.isStopped){var c;try{c=this.selector(l,this.caught)}catch(C){return void Oe(Pe(t.prototype),"error",this).call(this,C)}this._unsubscribeAndRecycle();var h=new Ac(this);this.add(h);var _=Il(c,h);_!==h&&this.add(_)}}}]),t}(fd);function QD(e){return function(t){return 0===e?Uw():t.lift(new gj(e))}}var gj=function(){function e(a){if(F(this,e),this.total=a,this.total<0)throw new Lh}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new mj(t,this.total))}}]),e}(),mj=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.ring=new Array,c.count=0,c}return j(t,[{key:"_next",value:function(l){var c=this.ring,h=this.total,_=this.count++;c.length0)for(var h=this.count>=this.total?this.total:this.count,_=this.ring,C=0;C0&&void 0!==arguments[0]?arguments[0]:uN;return function(a){return a.lift(new _j(e))}}var _j=function(){function e(a){F(this,e),this.errorFactory=a}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new lN(t,this.errorFactory))}}]),e}(),lN=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).errorFactory=l,c.hasValue=!1,c}return j(t,[{key:"_next",value:function(l){this.hasValue=!0,this.destination.next(l)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var l;try{l=this.errorFactory()}catch(c){l=c}this.destination.error(l)}}]),t}(Pn);function uN(){return new Hw}function Wf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(a){return a.lift(new yy(e))}}var yy=function(){function e(a){F(this,e),this.defaultValue=a}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new $v(t,this.defaultValue))}}]),e}(),$v=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).defaultValue=l,c.isEmpty=!0,c}return j(t,[{key:"_next",value:function(l){this.isEmpty=!1,this.destination.next(l)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(Pn);function Jv(e,a){var t=arguments.length>=2;return function(n){return n.pipe(e?jn(function(l,c){return e(l,c,n)}):xb,Kn(1),t?Wf(a):sN(function(){return new Hw}))}}function Yf(){}function Ka(e,a,t){return function(l){return l.lift(new cN(e,a,t))}}var cN=function(){function e(a,t,n){F(this,e),this.nextOrObserver=a,this.error=t,this.complete=n}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new bj(t,this.nextOrObserver,this.error,this.complete))}}]),e}(),bj=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n))._tapNext=Yf,_._tapError=Yf,_._tapComplete=Yf,_._tapError=c||Yf,_._tapComplete=h||Yf,je(l)?(_._context=Rt(_),_._tapNext=l):l&&(_._context=l,_._tapNext=l.next||Yf,_._tapError=l.error||Yf,_._tapComplete=l.complete||Yf),_}return j(t,[{key:"_next",value:function(l){try{this._tapNext.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.next(l)}},{key:"_error",value:function(l){try{this._tapError.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.error(l)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(l){return void this.destination.error(l)}return this.destination.complete()}}]),t}(Pn),fN=function(){function e(a){F(this,e),this.callback=a}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new wj(t,this.callback))}}]),e}(),wj=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).add(new We(l)),c}return t}(Pn),sc=function e(a,t){F(this,e),this.id=a,this.url=t},jw=function(e){oe(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return F(this,t),(c=a.call(this,n,l)).navigationTrigger=h,c.restoredState=_,c}return j(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(sc),eg=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).urlAfterRedirects=c,h}return j(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(sc),$D=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).reason=c,h}return j(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(sc),dN=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).error=c,h}return j(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(sc),JD=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return j(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(sc),eA=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return j(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(sc),tA=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h,_){var C;return F(this,t),(C=a.call(this,n,l)).urlAfterRedirects=c,C.state=h,C.shouldActivate=_,C}return j(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(sc),hN=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return j(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(sc),nA=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return j(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(sc),qf=function(){function e(a){F(this,e),this.route=a}return j(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),pN=function(){function e(a){F(this,e),this.route=a}return j(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),vN=function(){function e(a){F(this,e),this.snapshot=a}return j(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gN=function(){function e(a){F(this,e),this.snapshot=a}return j(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mN=function(){function e(a){F(this,e),this.snapshot=a}return j(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),rA=function(){function e(a){F(this,e),this.snapshot=a}return j(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fu=function(){function e(a,t,n){F(this,e),this.routerEvent=a,this.position=t,this.anchor=n}return j(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),gn="primary",_N=function(){function e(a){F(this,e),this.params=a||{}}return j(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function tg(e){return new _N(e)}var Ww="ngNavigationCancelingError";function iA(e){var a=Error("NavigationCancelingError: "+e);return a[Ww]=!0,a}function Sj(e,a,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(a.hasChildren()||n.length0?e[e.length-1]:null}function Hi(e,a){for(var t in e)e.hasOwnProperty(t)&&a(e[t],t)}function yl(e){return Qm(e)?e:Km(e)?fi(Promise.resolve(e)):rt(e)}var kN={exact:function qw(e,a,t){if(!Nh(e.segments,a.segments)||!ng(e.segments,a.segments,t)||e.numberOfChildren!==a.numberOfChildren)return!1;for(var n in a.children)if(!e.children[n]||!qw(e.children[n],a.children[n],t))return!1;return!0},subset:aA},MN={exact:function(e,a){return Fs(e,a)},subset:function(e,a){return Object.keys(a).length<=Object.keys(e).length&&Object.keys(a).every(function(t){return CN(e[t],a[t])})},ignored:function(){return!0}};function by(e,a,t){return kN[t.paths](e.root,a.root,t.matrixParams)&&MN[t.queryParams](e.queryParams,a.queryParams)&&!("exact"===t.fragment&&e.fragment!==a.fragment)}function aA(e,a,t){return oA(e,a,a.segments,t)}function oA(e,a,t,n){if(e.segments.length>t.length){var l=e.segments.slice(0,t.length);return!(!Nh(l,t)||a.hasChildren()||!ng(l,t,n))}if(e.segments.length===t.length){if(!Nh(e.segments,t)||!ng(e.segments,t,n))return!1;for(var c in a.children)if(!e.children[c]||!aA(e.children[c],a.children[c],n))return!1;return!0}var h=t.slice(0,e.segments.length),_=t.slice(e.segments.length);return!!(Nh(e.segments,h)&&ng(e.segments,h,n)&&e.children[gn])&&oA(e.children[gn],a,_,n)}function ng(e,a,t){return a.every(function(n,l){return MN[t](e[l].parameters,n.parameters)})}var Fh=function(){function e(a,t,n){F(this,e),this.root=a,this.queryParams=t,this.fragment=n}return j(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=tg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Tj.serialize(this)}}]),e}(),An=function(){function e(a,t){var n=this;F(this,e),this.segments=a,this.children=t,this.parent=null,Hi(t,function(l,c){return l.parent=n})}return j(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return wy(this)}}]),e}(),Cy=function(){function e(a,t){F(this,e),this.path=a,this.parameters=t}return j(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=tg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return PN(this)}}]),e}();function Nh(e,a){return e.length===a.length&&e.every(function(t,n){return t.path===a[n].path})}var sA=function e(){F(this,e)},DN=function(){function e(){F(this,e)}return j(e,[{key:"parse",value:function(t){var n=new Lj(t);return new Fh(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(Sy(t.root,!0)),l=function(e){var a=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(l){return"".concat(Xw(t),"=").concat(Xw(l))}).join("&"):"".concat(Xw(t),"=").concat(Xw(n))}).filter(function(t){return!!t});return a.length?"?".concat(a.join("&")):""}(t.queryParams),c="string"==typeof t.fragment?"#".concat(function(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),e}(),Tj=new DN;function wy(e){return e.segments.map(function(a){return PN(a)}).join("/")}function Sy(e,a){if(!e.hasChildren())return wy(e);if(a){var t=e.children[gn]?Sy(e.children[gn],!1):"",n=[];return Hi(e.children,function(c,h){h!==gn&&n.push("".concat(h,":").concat(Sy(c,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var l=function(e,a){var t=[];return Hi(e.children,function(n,l){l===gn&&(t=t.concat(a(n,l)))}),Hi(e.children,function(n,l){l!==gn&&(t=t.concat(a(n,l)))}),t}(e,function(c,h){return h===gn?[Sy(e.children[gn],!1)]:["".concat(h,":").concat(Sy(c,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[gn]?"".concat(wy(e),"/").concat(l[0]):"".concat(wy(e),"/(").concat(l.join("//"),")")}function AN(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xw(e){return AN(e).replace(/%3B/gi,";")}function lA(e){return AN(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zw(e){return decodeURIComponent(e)}function EN(e){return Zw(e.replace(/\+/g,"%20"))}function PN(e){return"".concat(lA(e.path)).concat(function(e){return Object.keys(e).map(function(a){return";".concat(lA(a),"=").concat(lA(e[a]))}).join("")}(e.parameters))}var Pj=/^[^\/()?;=#]+/;function Kw(e){var a=e.match(Pj);return a?a[0]:""}var Oj=/^[^=?&#]+/,Ij=/^[^?&#]+/,Lj=function(){function e(a){F(this,e),this.url=a,this.remaining=a}return j(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new An([],{}):new An([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(l[gn]=new An(t,n)),l}},{key:"parseSegment",value:function(){var t=Kw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Cy(Zw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=Kw(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=Kw(this.remaining);c&&this.capture(l=c)}t[Zw(n)]=Zw(l)}}},{key:"parseQueryParam",value:function(t){var n=function(e){var a=e.match(Oj);return a?a[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function(e){var a=e.match(Ij);return a?a[0]:""}(this.remaining);c&&this.capture(l=c)}var h=EN(n),_=EN(l);if(t.hasOwnProperty(h)){var C=t[h];Array.isArray(C)||(t[h]=C=[C]),C.push(_)}else t[h]=_}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=Kw(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var h=void 0;l.indexOf(":")>-1?(h=l.substr(0,l.indexOf(":")),this.capture(h),this.capture(":")):t&&(h=gn);var _=this.parseChildren();n[h]=1===Object.keys(_).length?_[gn]:new An([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),IN=function(){function e(a){F(this,e),this._root=a}return j(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=uA(t,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(t){var n=uA(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=cA(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==t})}},{key:"pathFromRoot",value:function(t){return cA(t,this._root).map(function(n){return n.value})}}]),e}();function uA(e,a){if(e===a.value)return a;var n,t=rn(a.children);try{for(t.s();!(n=t.n()).done;){var c=uA(e,n.value);if(c)return c}}catch(h){t.e(h)}finally{t.f()}return null}function cA(e,a){if(e===a.value)return[a];var n,t=rn(a.children);try{for(t.s();!(n=t.n()).done;){var c=cA(e,n.value);if(c.length)return c.unshift(a),c}}catch(h){t.e(h)}finally{t.f()}return[]}var bl=function(){function e(a,t){F(this,e),this.value=a,this.children=t}return j(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ky(e){var a={};return e&&e.children.forEach(function(t){return a[t.value.outlet]=t}),a}var RN=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).snapshot=l,fA(Rt(c),n),c}return j(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(IN);function LN(e,a){var t=function(e,a){var h=new Cl([],{},{},"",{},gn,a,null,e.root,-1,{});return new FN("",new bl(h,[]))}(e,a),n=new ya([new Cy("",{})]),l=new ya({}),c=new ya({}),h=new ya({}),_=new ya(""),C=new Mr(n,l,h,_,c,gn,a,t.root);return C.snapshot=t.root,new RN(new bl(C,[]),t)}var Mr=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this._futureSnapshot=C}return j(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Ht(function(t){return tg(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ht(function(t){return tg(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function lc(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==a)for(n=t.length-1;n>=1;){var l=t[n],c=t[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return Qw(t.slice(n))}function Qw(e){return e.reduce(function(a,t){return{params:Object.assign(Object.assign({},a.params),t.params),data:Object.assign(Object.assign({},a.data),t.data),resolve:Object.assign(Object.assign({},a.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var Cl=function(){function e(a,t,n,l,c,h,_,C,k,D,O){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this.routeConfig=C,this._urlSegment=k,this._lastPathIndex=D,this._resolve=O}return j(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=tg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=tg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),FN=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,l)).url=n,fA(Rt(c),l),c}return j(t,[{key:"toString",value:function(){return NN(this._root)}}]),t}(IN);function fA(e,a){a.value._routerState=e,a.children.forEach(function(t){return fA(e,t)})}function NN(e){var a=e.children.length>0?" { ".concat(e.children.map(NN).join(", ")," } "):"";return"".concat(e.value).concat(a)}function dA(e){if(e.snapshot){var a=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Fs(a.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),a.fragment!==t.fragment&&e.fragment.next(t.fragment),Fs(a.params,t.params)||e.params.next(t.params),function(e,a){if(e.length!==a.length)return!1;for(var t=0;tl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new pA(n,!1,l-c)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+c,e.numberOfDoubleDots)}(c,a,e),_=h.processChildren?e1(h.segmentGroup,h.index,c.commands):UN(h.segmentGroup,h.index,c.commands);return hA(h.segmentGroup,_,a,n,l)}function My(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function xy(e){return"object"==typeof e&&null!=e&&e.outlets}function hA(e,a,t,n,l){var c={};return n&&Hi(n,function(h,_){c[_]=Array.isArray(h)?h.map(function(C){return"".concat(C)}):"".concat(h)}),new Fh(t.root===e?a:zN(t.root,e,a),c,l)}function zN(e,a,t){var n={};return Hi(e.children,function(l,c){n[c]=l===a?t:zN(l,a,t)}),new An(e.segments,n)}var rg=function(){function e(a,t,n){if(F(this,e),this.isAbsolute=a,this.numberOfDoubleDots=t,this.commands=n,a&&n.length>0&&My(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(xy);if(l&&l!==Yw(n))throw new Error("{outlets:{}} has to be the last command")}return j(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),pA=function e(a,t,n){F(this,e),this.segmentGroup=a,this.processChildren=t,this.index=n};function UN(e,a,t){if(e||(e=new An([],{})),0===e.segments.length&&e.hasChildren())return e1(e,a,t);var n=function(e,a,t){for(var n=0,l=a,c={match:!1,pathIndex:0,commandIndex:0};l=t.length)return c;var h=e.segments[l],_=t[n];if(xy(_))break;var C="".concat(_),k=n0&&void 0===C)break;if(C&&k&&"object"==typeof k&&void 0===k.outlets){if(!t1(C,k,h))return c;n+=2}else{if(!t1(C,{},h))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(e,a,t),l=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},QN):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var c=(a.matcher||Sj)(t,e,a);if(!c)return Object.assign({},QN);var h={};Hi(c.posParams,function(C,k){h[k]=C.path});var _=c.consumed.length>0?Object.assign(Object.assign({},h),c.consumed[c.consumed.length-1].parameters):h;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function Ay(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&$j(e,t,n)){var c=new An(a,$N(e,a,n,new An(t,e.children)));return c._sourceSegment=e,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===t.length&&Jj(e,t,n)){var h=new An(e.segments,Qj(e,a,t,n,e.children,l));return h._sourceSegment=e,h._segmentIndexShift=a.length,{segmentGroup:h,slicedSegments:t}}var _=new An(e.segments,e.children);return _._sourceSegment=e,_._segmentIndexShift=a.length,{segmentGroup:_,slicedSegments:t}}function Qj(e,a,t,n,l,c){var C,h={},_=rn(n);try{for(_.s();!(C=_.n()).done;){var k=C.value;if(i1(e,t,k)&&!l[qo(k)]){var D=new An([],{});D._sourceSegment=e,D._segmentIndexShift="legacy"===c?e.segments.length:a.length,h[qo(k)]=D}}}catch(O){_.e(O)}finally{_.f()}return Object.assign(Object.assign({},l),h)}function $N(e,a,t,n){var l={};l[gn]=n,n._sourceSegment=e,n._segmentIndexShift=a.length;var h,c=rn(t);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(""===_.path&&qo(_)!==gn){var C=new An([],{});C._sourceSegment=e,C._segmentIndexShift=a.length,l[qo(_)]=C}}}catch(k){c.e(k)}finally{c.f()}return l}function $j(e,a,t){return t.some(function(n){return i1(e,a,n)&&qo(n)!==gn})}function Jj(e,a,t){return t.some(function(n){return i1(e,a,n)})}function i1(e,a,t){return(!(e.hasChildren()||a.length>0)||"full"!==t.pathMatch)&&""===t.path}function JN(e,a,t,n){return!!(qo(e)===n||n!==gn&&i1(a,t,e))&&("**"===e.path||r1(a,e,t).matched)}function e3(e,a,t){return 0===a.length&&!e.children[t]}var Ey=function e(a){F(this,e),this.segmentGroup=a||null},t3=function e(a){F(this,e),this.urlTree=a};function a1(e){return new pn(function(a){return a.error(new Ey(e))})}function _A(e){return new pn(function(a){return a.error(new t3(e))})}function e7(e){return new pn(function(a){return a.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var n7=function(){function e(a,t,n,l,c){F(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=a.get($u)}return j(e,[{key:"apply",value:function(){var t=this,n=Ay(this.urlTree.root,[],[],this.config).segmentGroup,l=new An(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,gn).pipe(Ht(function(_){return t.createUrlTree(o1(_),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Yo(function(_){if(_ instanceof t3)return t.allowRedirects=!1,t.match(_.urlTree);throw _ instanceof Ey?t.noMatchError(_):_}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,gn).pipe(Ht(function(h){return n.createUrlTree(o1(h),t.queryParams,t.fragment)})).pipe(Yo(function(h){throw h instanceof Ey?n.noMatchError(h):h}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,l){var c=t.segments.length>0?new An([],ud({},gn,t)):t;return new Fh(c,n,l)}},{key:"expandSegmentGroup",value:function(t,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(t,n,l).pipe(Ht(function(h){return new An([],h)})):this.expandSegment(t,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(t,n,l){for(var c=this,h=[],_=0,C=Object.keys(l.children);_=2;return function(n){return n.pipe(e?jn(function(l,c){return e(l,c,n)}):xb,QD(1),t?Wf(a):sN(function(){return new Hw}))}}())}},{key:"expandSegment",value:function(t,n,l,c,h,_){var C=this;return fi(l).pipe(jf(function(k){return C.expandSegmentAgainstRoute(t,n,l,k,c,h,_).pipe(Yo(function(O){if(O instanceof Ey)return rt(null);throw O}))}),Jv(function(k){return!!k}),Yo(function(k,D){if(k instanceof Hw||"EmptyError"===k.name){if(e3(n,c,h))return rt(new An([],{}));throw new Ey(n)}throw k}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,l,c,h,_,C){return JN(c,n,h,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(t,n,c,h,_):C&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_):a1(n):a1(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,l,c){var h=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?_A(_):this.lineralizeSegments(l,_).pipe(Ii(function(C){var k=new An(C,{});return h.expandSegment(t,k,n,C,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){var C=this,k=r1(n,c,h),O=k.consumedSegments,L=k.lastChild,U=k.positionalParamSegments;if(!k.matched)return a1(n);var Y=this.applyRedirectCommands(O,c.redirectTo,U);return c.redirectTo.startsWith("/")?_A(Y):this.lineralizeSegments(c,Y).pipe(Ii(function(Q){return C.expandSegment(t,n,l,Q.concat(h.slice(L)),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,l,c,h){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?rt(l._loadedConfig):this.configLoader.load(t.injector,l)).pipe(Ht(function(Q){return l._loadedConfig=Q,new An(c,{})})):rt(new An(c,{}));var k=r1(n,l,c),O=k.consumedSegments,L=k.lastChild;if(!k.matched)return a1(n);var U=c.slice(L);return this.getChildConfig(t,l,c).pipe(Ii(function(Q){var ie=Q.module,fe=Q.routes,ae=Ay(n,O,U,fe),be=ae.segmentGroup,we=ae.slicedSegments,Ue=new An(be.segments,be.children);if(0===we.length&&Ue.hasChildren())return _.expandChildren(ie,fe,Ue).pipe(Ht(function($n){return new An(O,$n)}));if(0===fe.length&&0===we.length)return rt(new An(O,{}));var Ct=qo(l)===h;return _.expandSegment(ie,Ue,fe,we,Ct?gn:h,!0).pipe(Ht(function($n){return new An(O.concat($n.segments),$n.children)}))}))}},{key:"getChildConfig",value:function(t,n,l){var c=this;return n.children?rt(new n1(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?rt(n._loadedConfig):this.runCanLoadGuards(t.injector,n,l).pipe(Ii(function(h){return h?c.configLoader.load(t.injector,n).pipe(Ht(function(_){return n._loadedConfig=_,_})):function(e){return new pn(function(a){return a.error(iA("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(n)})):rt(new n1([],t))}},{key:"runCanLoadGuards",value:function(t,n,l){var c=this,h=n.canLoad;return h&&0!==h.length?rt(h.map(function(C){var D,k=t.get(C);if(function(e){return e&&uc(e.canLoad)}(k))D=k.canLoad(n,l);else{if(!uc(k))throw new Error("Invalid CanLoad guard");D=k(n,l)}return yl(D)})).pipe(Dy(),Ka(function(C){if(Vh(C)){var k=iA('Redirecting to "'.concat(c.urlSerializer.serialize(C),'"'));throw k.url=C,k}}),Ht(function(C){return!0===C})):rt(!0)}},{key:"lineralizeSegments",value:function(t,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return rt(l);if(c.numberOfChildren>1||!c.children[gn])return e7(t.redirectTo);c=c.children[gn]}}},{key:"applyRedirectCommands",value:function(t,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,l)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,l,c){var h=this.createSegmentGroup(t,n.root,l,c);return new Fh(h,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var l={};return Hi(t,function(c,h){if("string"==typeof c&&c.startsWith(":")){var C=c.substring(1);l[h]=n[C]}else l[h]=c}),l}},{key:"createSegmentGroup",value:function(t,n,l,c){var h=this,_=this.createSegments(t,n.segments,l,c),C={};return Hi(n.children,function(k,D){C[D]=h.createSegmentGroup(t,k,l,c)}),new An(_,C)}},{key:"createSegments",value:function(t,n,l,c){var h=this;return n.map(function(_){return _.path.startsWith(":")?h.findPosParam(t,_,c):h.findOrReturn(_,l)})}},{key:"findPosParam",value:function(t,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(t,n){var h,l=0,c=rn(n);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(_.path===t.path)return n.splice(l),_;l++}}catch(C){c.e(C)}finally{c.f()}return t}}]),e}();function o1(e){for(var a={},t=0,n=Object.keys(e.children);t0||h.hasChildren())&&(a[l]=h)}return function(e){if(1===e.numberOfChildren&&e.children[gn]){var a=e.children[gn];return new An(e.segments.concat(a.segments),a.children)}return e}(new An(e.segments,a))}var r3=function e(a){F(this,e),this.path=a,this.route=this.path[this.path.length-1]},s1=function e(a,t){F(this,e),this.component=a,this.route=t};function i3(e,a,t){var n=e._root;return Py(n,a?a._root:null,t,[n.value])}function l1(e,a,t){var n=function(e){if(!e)return null;for(var a=e.parent;a;a=a.parent){var t=a.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(a);return(n?n.module.injector:t).get(e)}function Py(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=ky(a);return e.children.forEach(function(h){a3(h,c[h.value.outlet],t,n.concat([h.value]),l),delete c[h.value.outlet]}),Hi(c,function(h,_){return Oy(h,t.getContext(_),l)}),l}function a3(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=e.value,h=a?a.value:null,_=t?t.getContext(e.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){var C=s7(h,c,c.routeConfig.runGuardsAndResolvers);C?l.canActivateChecks.push(new r3(n)):(c.data=h.data,c._resolvedData=h._resolvedData),Py(e,a,c.component?_?_.children:null:t,n,l),C&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new s1(_.outlet.component,h))}else h&&Oy(a,_,l),l.canActivateChecks.push(new r3(n)),Py(e,null,c.component?_?_.children:null:t,n,l);return l}function s7(e,a,t){if("function"==typeof t)return t(e,a);switch(t){case"pathParamsChange":return!Nh(e.url,a.url);case"pathParamsOrQueryParamsChange":return!Nh(e.url,a.url)||!Fs(e.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$w(e,a)||!Fs(e.queryParams,a.queryParams);case"paramsChange":default:return!$w(e,a)}}function Oy(e,a,t){var n=ky(e),l=e.value;Hi(n,function(c,h){Oy(c,l.component?a?a.children.getContext(h):null:a,t)}),t.canDeactivateChecks.push(new s1(l.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,l))}var v7=function e(){F(this,e)};function yA(e){return new pn(function(a){return a.error(e)})}var m7=function(){function e(a,t,n,l,c,h){F(this,e),this.rootComponentType=a,this.config=t,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=h}return j(e,[{key:"recognize",value:function(){var t=Ay(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,gn);if(null===n)return null;var l=new Cl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},gn,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new bl(l,n),h=new FN(this.url,c);return this.inheritParamsAndData(h._root),h}},{key:"inheritParamsAndData",value:function(t){var n=this,l=t.value,c=lc(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),t.children.forEach(function(h){return n.inheritParamsAndData(h)})}},{key:"processSegmentGroup",value:function(t,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,l)}},{key:"processChildren",value:function(t,n){for(var l=[],c=0,h=Object.keys(n.children);c0?Yw(l).parameters:{};h=new Cl(l,k,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bA(t),qo(t),t.component,t,c1(n),s3(n)+l.length,l3(t))}else{var D=r1(n,t,l);if(!D.matched)return null;_=D.consumedSegments,C=l.slice(D.lastChild),h=new Cl(_,D.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bA(t),qo(t),t.component,t,c1(n),s3(n)+_.length,l3(t))}var O=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),L=Ay(n,_,C,O.filter(function(ae){return void 0===ae.redirectTo}),this.relativeLinkResolution),U=L.segmentGroup,Y=L.slicedSegments;if(0===Y.length&&U.hasChildren()){var Q=this.processChildren(O,U);return null===Q?null:[new bl(h,Q)]}if(0===O.length&&0===Y.length)return[new bl(h,[])];var ie=qo(t)===c,fe=this.processSegment(O,U,Y,ie?gn:c);return null===fe?null:[new bl(h,fe)]}}]),e}();function o3(e){var l,a=[],t=new Set,n=rn(e);try{var c=function(){var L=l.value;if(!function(e){var a=e.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}(L))return a.push(L),"continue";var Y,U=a.find(function(Q){return L.value.routeConfig===Q.value.routeConfig});void 0!==U?((Y=U.children).push.apply(Y,xt(L.children)),t.add(U)):a.push(L)};for(n.s();!(l=n.n()).done;)c()}catch(O){n.e(O)}finally{n.f()}var C,_=rn(t);try{for(_.s();!(C=_.n()).done;){var k=C.value,D=o3(k.children);a.push(new bl(k.value,D))}}catch(O){_.e(O)}finally{_.f()}return a.filter(function(O){return!t.has(O)})}function c1(e){for(var a=e;a._sourceSegment;)a=a._sourceSegment;return a}function s3(e){for(var a=e,t=a._segmentIndexShift?a._segmentIndexShift:0;a._sourceSegment;)t+=(a=a._sourceSegment)._segmentIndexShift?a._segmentIndexShift:0;return t-1}function bA(e){return e.data||{}}function l3(e){return e.resolve||{}}function f1(e){return ba(function(a){var t=e(a);return t?fi(t).pipe(Ht(function(){return a})):rt(a)})}var d3=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return t}(function(){function e(){F(this,e)}return j(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}()),d1=new Ee("ROUTES"),h3=function(){function e(a,t,n,l){F(this,e),this.loader=a,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=l}return j(e,[{key:"load",value:function(t,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var h=this.loadModuleFactory(n.loadChildren).pipe(Ht(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var C=_.create(t);return new n1(wN(C.injector.get(d1,void 0,St.Self|St.Optional)).map(mA),C)}),Yo(function(_){throw n._loader$=void 0,_}));return n._loader$=new Tu(h,function(){return new He}).pipe(mp()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return"string"==typeof t?fi(this.loader.load(t)):yl(t()).pipe(Ii(function(l){return l instanceof qR?rt(l):fi(n.compiler.compileModuleAsync(l))}))}}]),e}(),M7=function e(){F(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Bh,this.attachRef=null},Bh=function(){function e(){F(this,e),this.contexts=new Map}return j(e,[{key:"onChildOutletCreated",value:function(t,n){var l=this.getOrCreateContext(t);l.outlet=n,this.contexts.set(t,l)}},{key:"onChildOutletDestroyed",value:function(t){var n=this.getContext(t);n&&(n.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var n=this.getContext(t);return n||(n=new M7,this.contexts.set(t,n)),n}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),e}(),p3=function(){function e(){F(this,e)}return j(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function v3(e){throw e}function wA(e,a,t){return a.parse("/")}function Hh(e,a){return rt(null)}var g3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},m3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Qa=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=k,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He,this.errorHandler=v3,this.malformedUriErrorHandler=wA,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hh,afterPreactivation:Hh},this.urlHandlingStrategy=new p3,this.routeReuseStrategy=new d3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=h.get($u),this.console=h.get(I_);var U=h.get(lt);this.isNgZoneEnabled=U instanceof lt&<.isInAngularZone(),this.resetConfig(k),this.currentUrlTree=new Fh(new An([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new h3(_,C,function(Q){return D.triggerEvent(new qf(Q))},function(Q){return D.triggerEvent(new pN(Q))}),this.routerState=LN(this.currentUrlTree,this.rootComponentType),this.transitions=new ya({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return j(a,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(jn(function(h){return 0!==h.id}),Ht(function(h){return Object.assign(Object.assign({},h),{extractedUrl:l.urlHandlingStrategy.extract(h.rawUrl)})}),ba(function(h){var _=!1,C=!1;return rt(h).pipe(Ka(function(k){l.currentNavigation={id:k.id,initialUrl:k.currentRawUrl,extractedUrl:k.extractedUrl,trigger:k.source,extras:k.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ba(function(k){var D=!l.navigated||k.extractedUrl.toString()!==l.browserUrlTree.toString();if(("reload"===l.onSameUrlNavigation||D)&&l.urlHandlingStrategy.shouldProcessUrl(k.rawUrl))return rt(k).pipe(ba(function(we){var Ue=l.transitions.getValue();return c.next(new jw(we.id,l.serializeUrl(we.extractedUrl),we.source,we.restoredState)),Ue!==l.transitions.getValue()?mr:Promise.resolve(we)}),function(e,a,t,n){return ba(function(l){return function(e,a,t,n,l){return new n7(e,a,t,n,l).apply()}(e,a,t,l.extractedUrl,n).pipe(Ht(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),Ka(function(we){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:we.urlAfterRedirects})}),function(e,a,t,n,l){return Ii(function(c){return function(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var h=new m7(e,a,t,n,l,c).recognize();return null===h?yA(new v7):rt(h)}catch(_){return yA(_)}}(e,a,c.urlAfterRedirects,t(c.urlAfterRedirects),n,l).pipe(Ht(function(h){return Object.assign(Object.assign({},c),{targetSnapshot:h})}))})}(l.rootComponentType,l.config,function(we){return l.serializeUrl(we)},l.paramsInheritanceStrategy,l.relativeLinkResolution),Ka(function(we){"eager"===l.urlUpdateStrategy&&(we.extras.skipLocationChange||l.setBrowserUrl(we.urlAfterRedirects,we),l.browserUrlTree=we.urlAfterRedirects);var Ue=new JD(we.id,l.serializeUrl(we.extractedUrl),l.serializeUrl(we.urlAfterRedirects),we.targetSnapshot);c.next(Ue)}));if(D&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var Y=k.extractedUrl,Q=k.source,ie=k.restoredState,fe=k.extras,ae=new jw(k.id,l.serializeUrl(Y),Q,ie);c.next(ae);var be=LN(Y,l.rootComponentType).snapshot;return rt(Object.assign(Object.assign({},k),{targetSnapshot:be,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=k.rawUrl,l.browserUrlTree=k.urlAfterRedirects,k.resolve(null),mr}),f1(function(k){var Y=k.extras;return l.hooks.beforePreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Ka(function(k){var D=new eA(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot);l.triggerEvent(D)}),Ht(function(k){return Object.assign(Object.assign({},k),{guards:i3(k.targetSnapshot,k.currentSnapshot,l.rootContexts)})}),function(e,a){return Ii(function(t){var n=t.targetSnapshot,l=t.currentSnapshot,c=t.guards,h=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===h.length?rt(Object.assign(Object.assign({},t),{guardsResult:!0})):function(e,a,t,n){return fi(e).pipe(Ii(function(l){return function(e,a,t,n,l){var c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;return c&&0!==c.length?rt(c.map(function(_){var k,C=l1(_,a,l);if(function(e){return e&&uc(e.canDeactivate)}(C))k=yl(C.canDeactivate(e,a,t,n));else{if(!uc(C))throw new Error("Invalid CanDeactivate guard");k=yl(C(e,a,t,n))}return k.pipe(Jv())})).pipe(Dy()):rt(!0)}(l.component,l.route,t,a,n)}),Jv(function(l){return!0!==l},!0))}(_,n,l,e).pipe(Ii(function(C){return C&&function(e){return"boolean"==typeof e}(C)?function(e,a,t,n){return fi(a).pipe(jf(function(l){return zw(function(e,a){return null!==e&&a&&a(new vN(e)),rt(!0)}(l.route.parent,n),function(e,a){return null!==e&&a&&a(new mN(e)),rt(!0)}(l.route,n),function(e,a,t){var n=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(function(h){return function(e){var a=e.routeConfig?e.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:e,guards:a}:null}(h)}).filter(function(h){return null!==h}).map(function(h){return _y(function(){return rt(h.guards.map(function(C){var D,k=l1(C,h.node,t);if(function(e){return e&&uc(e.canActivateChild)}(k))D=yl(k.canActivateChild(n,e));else{if(!uc(k))throw new Error("Invalid CanActivateChild guard");D=yl(k(n,e))}return D.pipe(Jv())})).pipe(Dy())})});return rt(c).pipe(Dy())}(e,l.path,t),function(e,a,t){var n=a.routeConfig?a.routeConfig.canActivate:null;return n&&0!==n.length?rt(n.map(function(c){return _y(function(){var _,h=l1(c,a,t);if(function(e){return e&&uc(e.canActivate)}(h))_=yl(h.canActivate(a,e));else{if(!uc(h))throw new Error("Invalid CanActivate guard");_=yl(h(a,e))}return _.pipe(Jv())})})).pipe(Dy()):rt(!0)}(e,l.route,t))}),Jv(function(l){return!0!==l},!0))}(n,h,e,a):rt(C)}),Ht(function(C){return Object.assign(Object.assign({},t),{guardsResult:C})}))})}(l.ngModule.injector,function(k){return l.triggerEvent(k)}),Ka(function(k){if(Vh(k.guardsResult)){var D=iA('Redirecting to "'.concat(l.serializeUrl(k.guardsResult),'"'));throw D.url=k.guardsResult,D}var O=new tA(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot,!!k.guardsResult);l.triggerEvent(O)}),jn(function(k){return!!k.guardsResult||(l.restoreHistory(k),l.cancelNavigationTransition(k,""),!1)}),f1(function(k){if(k.guards.canActivateChecks.length)return rt(k).pipe(Ka(function(D){var O=new hN(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(O)}),ba(function(D){var O=!1;return rt(D).pipe(function(e,a){return Ii(function(t){var n=t.targetSnapshot,l=t.guards.canActivateChecks;if(!l.length)return rt(t);var c=0;return fi(l).pipe(jf(function(h){return function(e,a,t,n){return function(e,a,t,n){var l=Object.keys(e);if(0===l.length)return rt({});var c={};return fi(l).pipe(Ii(function(h){return function(e,a,t,n){var l=l1(e,a,n);return yl(l.resolve?l.resolve(a,t):l(a,t))}(e[h],a,t,n).pipe(Ka(function(_){c[h]=_}))}),QD(1),Ii(function(){return Object.keys(c).length===l.length?rt(c):mr}))}(e._resolve,e,a,n).pipe(Ht(function(c){return e._resolvedData=c,e.data=Object.assign(Object.assign({},e.data),lc(e,t).resolve),null}))}(h.route,n,e,a)}),Ka(function(){return c++}),QD(1),Ii(function(h){return c===l.length?rt(t):mr}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),Ka({next:function(){return O=!0},complete:function(){O||(l.restoreHistory(D),l.cancelNavigationTransition(D,"At least one route resolver didn't emit any value."))}}))}),Ka(function(D){var O=new nA(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(O)}))}),f1(function(k){var Y=k.extras;return l.hooks.afterPreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Ht(function(k){var D=function(e,a,t){var n=Jw(e,a._root,t?t._root:void 0);return new RN(n,a)}(l.routeReuseStrategy,k.targetSnapshot,k.currentRouterState);return Object.assign(Object.assign({},k),{targetRouterState:D})}),Ka(function(k){l.currentUrlTree=k.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,k.rawUrl),l.routerState=k.targetRouterState,"deferred"===l.urlUpdateStrategy&&(k.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,k),l.browserUrlTree=k.urlAfterRedirects)}),function(a,t,n){return Ht(function(l){return new gA(t,l.targetRouterState,l.currentRouterState,n).activate(a),l})}(l.rootContexts,l.routeReuseStrategy,function(k){return l.triggerEvent(k)}),Ka({next:function(){_=!0},complete:function(){_=!0}}),function(e){return function(a){return a.lift(new fN(e))}}(function(){if(!_&&!C){var k="Navigation ID ".concat(h.id," is not equal to the current navigation id ").concat(l.navigationId);"replace"===l.canceledNavigationResolution&&l.restoreHistory(h),l.cancelNavigationTransition(h,k)}l.currentNavigation=null}),Yo(function(k){if(C=!0,function(e){return e&&e[Ww]}(k)){var D=Vh(k.url);D||(l.navigated=!0,l.restoreHistory(h,!0));var O=new $D(h.id,l.serializeUrl(h.extractedUrl),k.message);c.next(O),D?setTimeout(function(){var U=l.urlHandlingStrategy.merge(k.url,l.rawUrlTree);l.scheduleNavigation(U,"imperative",null,{skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy},{resolve:h.resolve,reject:h.reject,promise:h.promise})},0):h.resolve(!1)}else{l.restoreHistory(h,!0);var L=new dN(h.id,l.serializeUrl(h.extractedUrl),k);c.next(L);try{h.resolve(l.errorHandler(k))}catch(U){h.reject(U)}}return mr}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c=n.extractLocationChangeInfoFromEvent(l);n.shouldScheduleNavigation(n.lastLocationChangeInfo,c)&&setTimeout(function(){var h=c.source,_=c.state,C=c.urlTree,k={replaceUrl:!0};if(_){var D=Object.assign({},_);delete D.navigationId,delete D.\u0275routerPageId,0!==Object.keys(D).length&&(k.state=D)}n.scheduleNavigation(C,h,_,k)},0),n.lastLocationChangeInfo=c}))}},{key:"extractLocationChangeInfoFromEvent",value:function(n){var l;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(l=n.state)||void 0===l?void 0:l.navigationId)?n.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(n,l){if(!n)return!0;var c=l.urlTree.toString()===n.urlTree.toString();return!(l.transitionId===n.transitionId&&c&&("hashchange"===l.source&&"popstate"===n.source||"popstate"===l.source&&"hashchange"===n.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){ZN(n),this.config=n.map(mA),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,h=l.queryParams,_=l.fragment,C=l.queryParamsHandling,k=l.preserveFragment,D=c||this.routerState.root,O=k?this.currentUrlTree.fragment:_,L=null;switch(C){case"merge":L=Object.assign(Object.assign({},this.currentUrlTree.queryParams),h);break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=h||null}return null!==L&&(L=this.removeEmptyProps(L)),HN(D,this.currentUrlTree,n,L,null!=O?O:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=Vh(n)?n:this.parseUrl(n),h=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(h,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return T7(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},g3):!1===l?Object.assign({},m3):l,Vh(n))return by(this.currentUrlTree,n,c);var h=this.parseUrl(n);return by(this.currentUrlTree,h,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var h=n[c];return null!=h&&(l[c]=h),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new eg(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(n,l,c,h,_){var C,k;if(this.disposed)return Promise.resolve(!1);var Q,ie,fe,D=this.getTransition(),O="imperative"!==l&&"imperative"===(null==D?void 0:D.source),Y=(this.lastSuccessfulId===D.id||this.currentNavigation?D.rawUrl:D.urlAfterRedirects).toString()===n.toString();if(O&&Y)return Promise.resolve(!0);_?(Q=_.resolve,ie=_.reject,fe=_.promise):fe=new Promise(function(Ue,Ze){Q=Ue,ie=Ze});var be,ae=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),be=c&&c.\u0275routerPageId?c.\u0275routerPageId:h.replaceUrl||h.skipLocationChange?null!==(C=this.browserPageId)&&void 0!==C?C:0:(null!==(k=this.browserPageId)&&void 0!==k?k:0)+1):be=0,this.setTransition({id:ae,targetPageId:be,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:h,resolve:Q,reject:ie,promise:fe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fe.catch(function(Ue){return Promise.reject(Ue)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),h=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",h):this.location.go(c,"",h)}},{key:"restoreHistory",value:function(n){var c,h,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,C="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);C&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(h=this.currentNavigation)||void 0===h?void 0:h.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new $D(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Np),ce(sA),ce(Bh),ce(xh),ce(jt),ce(uw),ce(If),ce(void 0))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}();function T7(e){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{};F(this,a),this.router=t,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return j(a,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof jw?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof eg&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof fu&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new fu(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Qa),ce(SF),ce(void 0))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),zh=new Ee("ROUTER_CONFIGURATION"),b3=new Ee("ROUTER_FORROOT_GUARD"),MA=[xh,{provide:sA,useClass:DN},{provide:Qa,useFactory:function(e,a,t,n,l,c,h){var _=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9?arguments[9]:void 0,D=new Qa(null,e,a,t,n,l,c,wN(h));return C&&(D.urlHandlingStrategy=C),k&&(D.routeReuseStrategy=k),L7(_,D),_.enableTracing&&D.events.subscribe(function(O){var L,U;null===(L=console.group)||void 0===L||L.call(console,"Router Event: ".concat(O.constructor.name)),console.log(O.toString()),console.log(O),null===(U=console.groupEnd)||void 0===U||U.call(console)}),D},deps:[sA,Bh,xh,jt,uw,If,d1,zh,[function e(){F(this,e)},new Di],[function e(){F(this,e)},new Di]]},Bh,{provide:Mr,useFactory:function(e){return e.routerState.root},deps:[Qa]},{provide:uw,useClass:PT},y3,SA,P7,{provide:zh,useValue:{enableTracing:!1}}];function w3(){return new MT("Router",Qa)}var S3=function(){var e=function(){function a(t,n){F(this,a)}return j(a,null,[{key:"forRoot",value:function(n,l){return{ngModule:a,providers:[MA,k3(n),{provide:b3,useFactory:R7,deps:[[Qa,new Di,new uo]]},{provide:zh,useValue:l||{}},{provide:Mh,useFactory:I7,deps:[Hf,[new Hp(iD),new Di],zh]},{provide:kA,useFactory:O7,deps:[Qa,SF,zh]},{provide:_3,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:SA},{provide:MT,multi:!0,useFactory:w3},[xA,{provide:P_,multi:!0,useFactory:T3,deps:[xA]},{provide:D3,useFactory:F7,deps:[xA]},{provide:Z2,multi:!0,useExisting:D3}]]}}},{key:"forChild",value:function(n){return{ngModule:a,providers:[k3(n)]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(b3,8),ce(Qa,8))},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}();function O7(e,a,t){return t.scrollOffset&&a.setOffset(t.scrollOffset),new kA(e,a,t)}function I7(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new ZL(e,a):new XL(e,a)}function R7(e){return"guarded"}function k3(e){return[{provide:DH,multi:!0,useValue:e},{provide:d1,multi:!0,useValue:e}]}function L7(e,a){e.errorHandler&&(a.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(a.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(a.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(a.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(a.urlUpdateStrategy=e.urlUpdateStrategy)}var xA=function(){var e=function(){function a(t){F(this,a),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He}return j(a,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(pG,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,h=new Promise(function(k){return c=k}),_=n.injector.get(Qa),C=n.injector.get(zh);return"disabled"===C.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===C.initialNavigation||"enabledBlocking"===C.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?rt(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),h})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(zh),c=this.injector.get(y3),h=this.injector.get(kA),_=this.injector.get(Qa),C=this.injector.get(Rf);n===C.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),h.init(),_.resetRootComponentType(C.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(jt))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}();function T3(e){return e.appInitializer.bind(e)}function F7(e){return e.bootstrapListener.bind(e)}var D3=new Ee("Router Initializer"),V7=function(){function e(a){this.user=a.user,this.role=a.role,this.admin=a.admin}return Object.defineProperty(e.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),e}();function $e(e){return null!=e&&"false"!=="".concat(e)}function Pi(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return A3(e)?Number(e):a}function A3(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function p1(e){return Array.isArray(e)?e:[e]}function yi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function cc(e){return e instanceof Be?e.nativeElement:e}function E3(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,t=[];if(null!=e){var c,n=Array.isArray(e)?e:"".concat(e).split(a),l=rn(n);try{for(l.s();!(c=l.n()).done;){var h=c.value,_="".concat(h).trim();_&&t.push(_)}}catch(C){l.e(C)}finally{l.f()}}return t}function Ns(e,a,t,n){return je(t)&&(n=t,t=void 0),n?Ns(e,a,t).pipe(Ht(function(l){return xu(l)?n.apply(void 0,xt(l)):n(l)})):new pn(function(l){TA(e,a,function(h){l.next(arguments.length>1?Array.prototype.slice.call(arguments):h)},l,t)})}function TA(e,a,t,n,l){var c;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var h=e;e.addEventListener(a,t,l),c=function(){return h.removeEventListener(a,t,l)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var _=e;e.on(a,t),c=function(){return _.off(a,t)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var C=e;e.addListener(a,t),c=function(){return C.removeListener(a,t)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var k=0,D=e.length;k1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var h=this.id,_=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(_,h,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(l.flush.bind(l,this),h)}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&this.delay===h&&!1===this.pending)return c;clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var h=this._execute(l,c);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var h=!1,_=void 0;try{this.work(l)}catch(C){h=!0,_=!!C&&C||new Error(C)}if(h)return this.unsubscribe(),_}},{key:"_unsubscribe",value:function(){var l=this.id,c=this.scheduler,h=c.actions,_=h.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==_&&h.splice(_,1),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null}}]),t}(function(e){oe(t,e);var a=ue(t);function t(n,l){return F(this,t),a.call(this)}return j(t,[{key:"schedule",value:function(l){return this}}]),t}(We)),L3=function(){var e=function(){function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.now;F(this,a),this.SchedulerAction=t,this.now=n}return j(a,[{key:"schedule",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(c,l)}}]),a}();return e.now=function(){return Date.now()},e}(),v1=function(e){oe(t,e);var a=ue(t);function t(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L3.now;return F(this,t),(l=a.call(this,n,function(){return t.delegate&&t.delegate!==Rt(l)?t.delegate.now():c()})).actions=[],l.active=!1,l.scheduled=void 0,l}return j(t,[{key:"schedule",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,h=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(l,c,h):Oe(Pe(t.prototype),"schedule",this).call(this,l,c,h)}},{key:"flush",value:function(l){var c=this.actions;if(this.active)c.push(l);else{var h;this.active=!0;do{if(h=l.execute(l.state,l.delay))break}while(l=c.shift());if(this.active=!1,h){for(;l=c.shift();)l.unsubscribe();throw h}}}}]),t}(L3),H7=1,N3=function(){return Promise.resolve()}(),g1={};function DA(e){return e in g1&&(delete g1[e],!0)}var V3_setImmediate=function(a){var t=H7++;return g1[t]=!0,N3.then(function(){return DA(t)&&a()}),t},V3_clearImmediate=function(a){DA(a)},z7=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n,l)).scheduler=n,c.work=l,c}return j(t,[{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==h&&h>0?Oe(Pe(t.prototype),"requestAsyncId",this).call(this,l,c,h):(l.actions.push(this),l.scheduled||(l.scheduled=V3_setImmediate(l.flush.bind(l,null))))}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&h>0||null===h&&this.delay>0)return Oe(Pe(t.prototype),"recycleAsyncId",this).call(this,l,c,h);0===l.actions.length&&(V3_clearImmediate(c),l.scheduled=void 0)}}]),t}(Xo),EA=new(function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"flush",value:function(l){this.active=!0,this.scheduled=void 0;var h,c=this.actions,_=-1,C=c.length;l=l||c.shift();do{if(h=l.execute(l.state,l.delay))break}while(++_=0}function y1(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=-1;return OA(a)?n=Number(a)<1?1:Number(a):yt(a)&&(t=a),yt(t)||(t=Uh),new pn(function(l){var c=OA(e)?e:+e-t.now();return t.schedule(W7,c,{index:0,period:n,subscriber:l})})}function W7(e){var a=e.index,t=e.period,n=e.subscriber;if(n.next(a),!n.closed){if(-1===t)return n.complete();e.index=a+1,this.schedule(e,t)}}function b1(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uh;return G7(function(){return y1(e,a)})}function Ft(e){return function(a){return a.lift(new IA(e))}}var IA=function(){function e(a){F(this,e),this.notifier=a}return j(e,[{key:"call",value:function(t,n){var l=new Y7(t),c=Il(this.notifier,new Ac(l));return c&&!l.seenValue?(l.add(c),n.subscribe(l)):l}}]),e}(),Y7=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n)).seenValue=!1,l}return j(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),t}(fd);function hu(e,a){return new pn(a?function(t){return a.schedule(Xf,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function Xf(e){e.subscriber.error(e.error)}var NA,Gh=function(){var e=function(){function a(t,n,l){F(this,a),this.kind=t,this.value=n,this.error=l,this.hasValue="N"===t}return j(a,[{key:"observe",value:function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}},{key:"do",value:function(n,l,c){switch(this.kind){case"N":return n&&n(this.value);case"E":return l&&l(this.error);case"C":return c&&c()}}},{key:"accept",value:function(n,l,c){return n&&"function"==typeof n.next?this.observe(n):this.do(n,l,c)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return rt(this.value);case"E":return hu(this.error);case"C":return Uw()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(n){return void 0!==n?new a("N",n):a.undefinedValueNotification}},{key:"createError",value:function(n){return new a("E",void 0,n)}},{key:"createComplete",value:function(){return a.completeNotification}}]),a}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();try{NA="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){NA=!1}var Zf,Yh,qh,z3,cn=function(){var e=function a(t){F(this,a),this._platformId=t,this.isBrowser=this._platformId?function(e){return"browser"===e}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!NA)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(ce(ph))},e.\u0275prov=Ge({factory:function(){return new e(ce(ph))},token:e,providedIn:"root"}),e}(),og=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),C1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function sg(){if(Zf)return Zf;if("object"!=typeof document||!document)return Zf=new Set(C1);var e=document.createElement("input");return Zf=new Set(C1.filter(function(a){return e.setAttribute("type",a),e.type===a}))}function Kf(e){return function(){if(null==Yh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Yh=!0}}))}finally{Yh=Yh||!1}return Yh}()?e:!!e.capture}function S1(){if(null==qh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return qh=!1;if("scrollBehavior"in document.documentElement.style)qh=!0;else{var e=Element.prototype.scrollTo;qh=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return qh}function eW(e){if(function(){if(null==z3){var e="undefined"!=typeof document?document.head:null;z3=!(!e||!e.createShadowRoot&&!e.attachShadow)}return z3}()){var a=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Xh(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var a=e.shadowRoot.activeElement;if(a===e)break;e=a}return e}function Kr(e){return e.composedPath?e.composedPath()[0]:e.target}var U3=new Ee("cdk-dir-doc",{providedIn:"root",factory:function(){return nO(et)}}),xr=function(){var e=function(){function a(t){if(F(this,a),this.value="ltr",this.change=new ye,t){var c=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===c||"rtl"===c?c:"ltr"}}return j(a,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(U3,8))},e.\u0275prov=Ge({factory:function(){return new e(ce(U3,8))},token:e,providedIn:"root"}),e}(),Fy=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),G3=function e(){F(this,e)};function ug(e){return e&&"function"==typeof e.connect}var pu=function(){function e(){F(this,e)}return j(e,[{key:"applyChanges",value:function(t,n,l,c,h){t.forEachOperation(function(_,C,k){var D,O;if(null==_.previousIndex){var L=l(_,C,k);D=n.createEmbeddedView(L.templateRef,L.context,L.index),O=1}else null==k?(n.remove(C),O=3):(D=n.get(C),n.move(D,k),O=2);h&&h({context:null==D?void 0:D.context,operation:O,record:_})})}},{key:"detach",value:function(){}}]),e}(),Ny=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];F(this,e),this._multiple=t,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new He,n&&n.length&&(t?n.forEach(function(c){return a._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return j(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,n=arguments.length,l=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new pn(function(c){n._globalSubscription||n._addGlobalListener();var h=l>0?n._scrolled.pipe(b1(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){h.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):rt()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(jn(function(h){return!h||c.indexOf(h)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(h,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=cc(l),h=n.getElementRef().nativeElement;do{if(c==h)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Ns(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(cn),ce(et,8))},e.\u0275prov=Ge({factory:function(){return new e(ce(lt),ce(cn),ce(et,8))},token:e,providedIn:"root"}),e}(),Ca=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._platform=t,this._change=new He,this._changeListener=function(h){c._change.next(h)},this._document=l,n.runOutsideAngular(function(){if(t.isBrowser){var h=c._getWindow();h.addEventListener("resize",c._changeListener),h.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return j(a,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,h=l.height;return{top:n.top,left:n.left,bottom:n.top+h,right:n.left+c,height:h,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,h=c.getBoundingClientRect();return{top:-h.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-h.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(b1(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(cn),ce(lt),ce(et,8))},e.\u0275prov=Ge({factory:function(){return new e(ce(cn),ce(lt),ce(et,8))},token:e,providedIn:"root"}),e}(),fc=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),zA=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Fy,og,fc],Fy,fc]}),e}(),T1=function(){function e(){F(this,e)}return j(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),vu=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=h,_}return t}(T1),Bs=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).templateRef=n,h.viewContainerRef=l,h.context=c,h}return j(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Oe(Pe(t.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Oe(Pe(t.prototype),"detach",this).call(this)}}]),t}(T1),UA=function(e){oe(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).element=n instanceof Be?n.nativeElement:n,l}return t}(T1),fg=function(){function e(){F(this,e),this._isDisposed=!1,this.attachDomPortal=null}return j(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof vu?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Bs?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof UA?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),q3=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h,_){var C,k;return F(this,t),(k=a.call(this)).outletElement=n,k._componentFactoryResolver=l,k._appRef=c,k._defaultInjector=h,k.attachDomPortal=function(D){var O=D.element,L=k._document.createComment("dom-portal");O.parentNode.insertBefore(L,O),k.outletElement.appendChild(O),k._attachedPortal=D,Oe((C=Rt(k),Pe(t.prototype)),"setDisposeFn",C).call(C,function(){L.parentNode&&L.parentNode.replaceChild(O,L)})},k._document=_,k}return j(t,[{key:"attachComponentPortal",value:function(l){var C,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(C=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return C.destroy()})):(C=_.create(l.injector||this._defaultInjector),this._appRef.attachView(C.hostView),this.setDisposeFn(function(){c._appRef.detachView(C.hostView),C.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(C)),this._attachedPortal=l,C}},{key:"attachTemplatePortal",value:function(l){var c=this,h=l.viewContainerRef,_=h.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(C){return c.outletElement.appendChild(C)}),_.detectChanges(),this.setDisposeFn(function(){var C=h.indexOf(_);-1!==C&&h.remove(C)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Oe(Pe(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),t}(fg),Hy=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){return F(this,n),t.call(this,l,c)}return n}(Bs);return e.\u0275fac=function(t){return new(t||e)(N(Dn),N(qn))},e.\u0275dir=ge({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[xe]}),e}(),vo=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){var _,C;return F(this,n),(C=t.call(this))._componentFactoryResolver=l,C._viewContainerRef=c,C._isInitialized=!1,C.attached=new ye,C.attachDomPortal=function(k){var D=k.element,O=C._document.createComment("dom-portal");k.setAttachedHost(Rt(C)),D.parentNode.insertBefore(O,D),C._getRootNode().appendChild(D),C._attachedPortal=k,Oe((_=Rt(C),Pe(n.prototype)),"setDisposeFn",_).call(_,function(){O.parentNode&&O.parentNode.replaceChild(D,O)})},C._document=h,C}return j(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Oe(Pe(n.prototype),"detach",this).call(this),c&&Oe(Pe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Oe(Pe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var h=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,C=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),k=h.createComponent(C,h.length,c.injector||h.injector);return h!==this._viewContainerRef&&this._getRootNode().appendChild(k.hostView.rootNodes[0]),Oe(Pe(n.prototype),"setDisposeFn",this).call(this,function(){return k.destroy()}),this._attachedPortal=c,this._attachedRef=k,this.attached.emit(k),k}},{key:"attachTemplatePortal",value:function(c){var h=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Oe(Pe(n.prototype),"setDisposeFn",this).call(this,function(){return h._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(fg);return e.\u0275fac=function(t){return new(t||e)(N(dl),N(qn),N(et))},e.\u0275dir=ge({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[xe]}),e}(),Qh=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),pW=function(){function e(a,t){F(this,e),this.predicate=a,this.inclusive=t}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new Z3(t,this.predicate,this.inclusive))}}]),e}(),Z3=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).predicate=l,h.inclusive=c,h.index=0,h}return j(t,[{key:"_next",value:function(l){var h,c=this.destination;try{h=this.predicate(l,this.index++)}catch(_){return void c.error(_)}this.nextOrComplete(l,h)}},{key:"nextOrComplete",value:function(l,c){var h=this.destination;Boolean(c)?h.next(l):(this.inclusive&&h.next(l),h.complete())}}]),t}(Pn);function zi(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),e}(),LW=function(){function e(a,t,n,l){var c=this;F(this,e),this._scrollDispatcher=a,this._ngZone=t,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return j(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=t._viewportRuler.getViewportScrollPosition().top;Math.abs(l-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),sV=function(){function e(){F(this,e)}return j(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function QA(e,a){return a.some(function(t){return e.bottomt.bottom||e.rightt.right})}function $A(e,a){return a.some(function(t){return e.topt.bottom||e.leftt.right})}var FW=function(){function e(a,t,n,l){F(this,e),this._scrollDispatcher=a,this._viewportRuler=t,this._ngZone=n,this._config=l,this._scrollSubscription=null}return j(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var l=t._overlayRef.overlayElement.getBoundingClientRect(),c=t._viewportRuler.getViewportSize(),h=c.width,_=c.height;QA(l,[{width:h,height:_,bottom:_,right:h,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),NW=function(){var e=function a(t,n,l,c){var h=this;F(this,a),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new sV},this.close=function(_){return new LW(h._scrollDispatcher,h._ngZone,h._viewportRuler,_)},this.block=function(){return new RW(h._viewportRuler,h._document)},this.reposition=function(_){return new FW(h._scrollDispatcher,h._viewportRuler,h._ngZone,_)},this._document=c};return e.\u0275fac=function(t){return new(t||e)(ce(Kh),ce(Ca),ce(lt),ce(et))},e.\u0275prov=Ge({factory:function(){return new e(ce(Kh),ce(Ca),ce(lt),ce(et))},token:e,providedIn:"root"}),e}(),mo=function e(a){if(F(this,e),this.scrollStrategy=new sV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a)for(var n=0,l=Object.keys(a);n-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(et))},e.\u0275prov=Ge({factory:function(){return new e(ce(et))},token:e,providedIn:"root"}),e}(),cV=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this,l))._keydownListener=function(h){for(var _=c._attachedOverlays,C=_.length-1;C>-1;C--)if(_[C]._keydownEvents.observers.length>0){_[C]._keydownEvents.next(h);break}},c}return j(n,[{key:"add",value:function(c){Oe(Pe(n.prototype),"add",this).call(this,c),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(uV);return e.\u0275fac=function(t){return new(t||e)(ce(et))},e.\u0275prov=Ge({factory:function(){return new e(ce(et))},token:e,providedIn:"root"}),e}(),Gy=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._platform=c,h._cursorStyleIsSet=!1,h._clickListener=function(_){for(var C=Kr(_),k=h._attachedOverlays.slice(),D=k.length-1;D>-1;D--){var O=k[D];if(!(O._outsidePointerEvents.observers.length<1)&&O.hasAttached()){if(O.overlayElement.contains(C))break;O._outsidePointerEvents.next(_)}}},h}return j(n,[{key:"add",value:function(c){if(Oe(Pe(n.prototype),"add",this).call(this,c),!this._isAttached){var h=this._document.body;h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=h.style.cursor,h.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(uV);return e.\u0275fac=function(t){return new(t||e)(ce(et),ce(cn))},e.\u0275prov=Ge({factory:function(){return new e(ce(et),ce(cn))},token:e,providedIn:"root"}),e}(),ed="undefined"!=typeof window?window:{},fV=void 0!==ed.__karma__&&!!ed.__karma__||void 0!==ed.jasmine&&!!ed.jasmine||void 0!==ed.jest&&!!ed.jest||void 0!==ed.Mocha&&!!ed.Mocha,jy=function(){var e=function(){function a(t,n){F(this,a),this._platform=n,this._document=t}return j(a,[{key:"ngOnDestroy",value:function(){var n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||fV)for(var l=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),c=0;cY&&(Y=ae,U=fe)}}catch(be){Q.e(be)}finally{Q.f()}return this._isPushed=!1,void this._applyPosition(U.position,U.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&nd(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dV),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n){var l;if("center"==n.originX)l=t.left+t.width/2;else{var c=this._isRtl()?t.right:t.left,h=this._isRtl()?t.left:t.right;l="start"==n.originX?c:h}return{x:l,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+c,y:t.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,l,c){var h=pV(n),_=t.x,C=t.y,k=this._getOffset(c,"x"),D=this._getOffset(c,"y");k&&(_+=k),D&&(C+=D);var U=0-C,Y=C+h.height-l.height,Q=this._subtractOverflows(h.width,0-_,_+h.width-l.width),ie=this._subtractOverflows(h.height,U,Y),fe=Q*ie;return{visibleArea:fe,isCompletelyWithinViewport:h.width*h.height===fe,fitsInViewportVertically:ie===h.height,fitsInViewportHorizontally:Q==h.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,h=l.right-n.x,_=hV(this._overlayRef.getConfig().minHeight),C=hV(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=_&&_<=c)&&(t.fitsInViewportHorizontally||null!=C&&C<=h)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var O,L,c=pV(n),h=this._viewportRect,_=Math.max(t.x+c.width-h.width,0),C=Math.max(t.y+c.height-h.height,0),k=Math.max(h.top-l.top-t.y,0),D=Math.max(h.left-l.left-t.x,0);return this._previousPushAmount={x:O=c.width<=h.width?D||-_:t.xD&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.y-D/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)Q=l.width-t.x+this._viewportMargin,U=t.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)Y=t.x,U=l.right-t.x;else{var ie=Math.min(l.right-t.x+l.left,t.x),fe=this._lastBoundingBoxSize.width;Y=t.x-ie,(U=2*ie)>fe&&!this._isInitialRender&&!this._growAfterOpen&&(Y=t.x-fe/2)}return{top:_,left:Y,bottom:C,right:Q,width:U,height:h}}},{key:"_setBoundingBoxStyles",value:function(t,n){var l=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var h=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=yi(l.height),c.top=yi(l.top),c.bottom=yi(l.bottom),c.width=yi(l.width),c.left=yi(l.left),c.right=yi(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",h&&(c.maxHeight=yi(h)),_&&(c.maxWidth=yi(_))}this._lastBoundingBoxSize=l,nd(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){nd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){nd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var l={},c=this._hasExactPosition(),h=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var C=this._viewportRuler.getViewportScrollPosition();nd(l,this._getExactOverlayY(n,t,C)),nd(l,this._getExactOverlayX(n,t,C))}else l.position="static";var k="",D=this._getOffset(n,"x"),O=this._getOffset(n,"y");D&&(k+="translateX(".concat(D,"px) ")),O&&(k+="translateY(".concat(O,"px)")),l.transform=k.trim(),_.maxHeight&&(c?l.maxHeight=yi(_.maxHeight):h&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=yi(_.maxWidth):h&&(l.maxWidth="")),nd(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(t,n,l){var c={top:"",bottom:""},h=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l));var _=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return h.y-=_,"bottom"===t.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(h.y+this._overlayRect.height),"px"):c.top=yi(h.y),c}},{key:"_getExactOverlayX",value:function(t,n,l){var c={left:"",right:""},h=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(h.x+this._overlayRect.width),"px"):c.left=yi(h.x),c}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:$A(t,l),isOriginOutsideView:QA(t,l),isOverlayClipped:$A(n,l),isOverlayOutsideView:QA(n,l)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,h=l.height,_=l.maxWidth,C=l.maxHeight,k=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),D=!("100%"!==h&&"100vh"!==h||C&&"100%"!==C&&"100vh"!==C);t.position=this._cssPosition,t.marginLeft=k?"0":this._leftOffset,t.marginTop=D?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,k?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=D?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(vV),l.justifyContent=l.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),GW=function(){var e=function(){function a(t,n,l,c){F(this,a),this._viewportRuler=t,this._document=n,this._platform=l,this._overlayContainer=c}return j(a,[{key:"global",value:function(){return new UW}},{key:"connectedTo",value:function(n,l,c){return new zW(l,c,n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(n){return new td(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ca),ce(et),ce(cn),ce(jy))},e.\u0275prov=Ge({factory:function(){return new e(ce(Ca),ce(et),ce(cn),ce(jy))},token:e,providedIn:"root"}),e}(),gV=0,bi=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,O,L){F(this,a),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=h,this._injector=_,this._ngZone=C,this._document=k,this._directionality=D,this._location=O,this._outsideClickDispatcher=L}return j(a,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),h=this._createPortalOutlet(c),_=new mo(n);return _.direction=_.direction||this._directionality.value,new JA(h,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(gV++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(Rf)),new q3(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(NW),ce(jy),ce(dl),ce(GW),ce(cV),ce(jt),ce(lt),ce(et),ce(xr),ce(xh),ce(Gy))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),jW=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Qo=new Ee("cdk-connected-overlay-scroll-strategy"),mV=function(){var e=function a(t){F(this,a),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(N(Be))},e.\u0275dir=ge({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),ep=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._overlay=t,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=We.EMPTY,this._attachSubscription=We.EMPTY,this._detachSubscription=We.EMPTY,this._positionSubscription=We.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new Bs(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return j(a,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=$e(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=$e(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=$e(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=$e(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=$e(n)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=jW);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!zi(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new mo({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(h){return{originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||l.offsetX,offsetY:h.offsetY||l.offsetY,panelClass:h.panelClass||void 0}});return n.setOrigin(this.origin.elementRef).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(n),n}},{key:"_attachOverlay",value:function(){var n=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){return t.lift(new pW(e,a))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(bi),N(Dn),N(qn),N(Qo),N(xr,8))},e.\u0275dir=ge({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[vn]}),e}(),WW={provide:Qo,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},tp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[bi,WW],imports:[[Fy,Qh,zA],zA]}),e}();function P1(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uh;return function(t){return t.lift(new YW(e,a))}}var YW=function(){function e(a,t){F(this,e),this.dueTime=a,this.scheduler=t}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new qW(t,this.dueTime,this.scheduler))}}]),e}(),qW=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).dueTime=l,h.scheduler=c,h.debouncedSubscription=null,h.lastValue=null,h.hasValue=!1,h}return j(t,[{key:"_next",value:function(l){this.clearDebounce(),this.lastValue=l,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(XW,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var l=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(l)}}},{key:"clearDebounce",value:function(){var l=this.debouncedSubscription;null!==l&&(this.remove(l),l.unsubscribe(),this.debouncedSubscription=null)}}]),t}(Pn);function XW(e){e.debouncedNext()}function eE(e){return function(a){return a.lift(new ZW(e))}}var ZW=function(){function e(a){F(this,e),this.total=a}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new yV(t,this.total))}}]),e}(),yV=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.count=0,c}return j(t,[{key:"_next",value:function(l){++this.count>this.total&&this.destination.next(l)}}]),t}(Pn),bV=function(){var e=function(){function a(){F(this,a)}return j(a,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:function(){return new e},token:e,providedIn:"root"}),e}(),KW=function(){var e=function(){function a(t){F(this,a),this._mutationObserverFactory=t,this._observedElements=new Map}return j(a,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=cc(n);return new pn(function(h){var C=l._observeElement(c).subscribe(h);return function(){C.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new He,c=this._mutationObserverFactory.create(function(h){return l.next(h)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,h=l.stream;c&&c.disconnect(),h.complete(),this._observedElements.delete(n)}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(bV))},e.\u0275prov=Ge({factory:function(){return new e(ce(bV))},token:e,providedIn:"root"}),e}(),Wy=function(){var e=function(){function a(t,n,l){F(this,a),this._contentObserver=t,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return j(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=$e(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Pi(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(P1(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(KW),N(Be),N(lt))},e.\u0275dir=ge({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),Yy=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[bV]}),e}();function vc(e,a){return(e.getAttribute(a)||"").match(/\S+/g)||[]}var CV="cdk-describedby-message-container",wV="cdk-describedby-message",I1="cdk-describedby-host",$W=0,$o=new Map,Ji=null,R1=function(){var e=function(){function a(t){F(this,a),this._document=t}return j(a,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var h=nE(l,c);"string"!=typeof l?(SV(l),$o.set(h,{messageElement:l,referenceCount:0})):$o.has(h)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,h)||this._addMessageReference(n,h)}}},{key:"removeDescription",value:function(n,l,c){if(l&&this._isElementNode(n)){var h=nE(l,c);if(this._isElementDescribedByMessage(n,h)&&this._removeMessageReference(n,h),"string"==typeof l){var _=$o.get(h);_&&0===_.referenceCount&&this._deleteMessageElement(h)}Ji&&0===Ji.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var n=this._document.querySelectorAll("[".concat(I1,"]")),l=0;l-1&&c!==t._activeItemIndex&&(t._activeItemIndex=c)}})}return j(e,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ka(function(l){return t._pressedLetters.push(l)}),P1(n),jn(function(){return t._pressedLetters.length>0}),Ht(function(){return t._pressedLetters.join("")})).subscribe(function(l){for(var c=t._getItemsArray(),h=1;h0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var n=this._activeItem;this.updateActiveItem(t),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var n=this,l=t.keyCode,h=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!t[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&h){this.setNextItemActive();break}return;case 38:if(this._vertical&&h){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&h){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&h){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&h){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&h){this.setLastItemActive();break}return;default:return void((h||zi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var n=this._getItemsArray(),l="number"==typeof t?t:n.indexOf(t),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+t*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,n){var l=this._getItemsArray();if(l[t]){for(;this._skipPredicateFn(l[t]);)if(!l[t+=n])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof nc?this._items.toArray():this._items}}]),e}(),MV=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Oe(Pe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),t}(kV),L1=function(e){oe(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._origin="program",n}return j(t,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Oe(Pe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),t}(kV),rE=function(){var e=function(){function a(t){F(this,a),this._platform=t}return j(a,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function(e){try{return e.frameElement}catch(a){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(l&&(-1===DV(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),h=DV(n);return n.hasAttribute("contenteditable")?-1!==h:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var a=e.nodeName.toLowerCase(),t="input"===a&&e.type;return"text"===t||"password"===t||"select"===a||"textarea"===a}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==h:"video"===c?-1!==h&&(null!==h||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var a=e.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||TV(e))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(cn))},e.\u0275prov=Ge({factory:function(){return new e(ce(cn))},token:e,providedIn:"root"}),e}();function TV(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var a=e.getAttribute("tabindex");return"-32768"!=a&&!(!a||isNaN(parseInt(a,10)))}function DV(e){if(!TV(e))return null;var a=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}var aY=function(){function e(a,t,n,l){var c=this,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4];F(this,e),this._element=a,this._checker=t,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,h||this.attachAnchors()}return j(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Kn(1)).subscribe(t)}}]),e}(),oE=function(){var e=function(){function a(t,n,l){F(this,a),this._checker=t,this._ngZone=n,this._document=l}return j(a,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new aY(n,this._checker,this._ngZone,this._document,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(rE),ce(lt),ce(et))},e.\u0275prov=Ge({factory:function(){return new e(ce(rE),ce(lt),ce(et))},token:e,providedIn:"root"}),e}(),EV=function(){var e=function(){function a(t,n,l){F(this,a),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return j(a,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=$e(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=$e(n)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Xh(),this.focusTrap.focusInitialElementWhenReady()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(oE),N(et))},e.\u0275dir=ge({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[vn]}),e}();function FV(e){return 0===e.offsetX&&0===e.offsetY}function sE(e){var a=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}"undefined"!=typeof Element&∈var NV=new Ee("cdk-input-modality-detector-options"),lE={ignoreKeys:[18,17,224,91,16]},dg=Kf({passive:!0,capture:!0}),BV=function(){var e=function(){function a(t,n,l,c){var h=this;F(this,a),this._platform=t,this._mostRecentTarget=null,this._modality=new ya(null),this._lastTouchMs=0,this._onKeydown=function(_){var C,k;(null===(k=null===(C=h._options)||void 0===C?void 0:C.ignoreKeys)||void 0===k?void 0:k.some(function(D){return D===_.keyCode}))||(h._modality.next("keyboard"),h._mostRecentTarget=Kr(_))},this._onMousedown=function(_){Date.now()-h._lastTouchMs<650||(h._modality.next(FV(_)?"keyboard":"mouse"),h._mostRecentTarget=Kr(_))},this._onTouchstart=function(_){sE(_)?h._modality.next("keyboard"):(h._lastTouchMs=Date.now(),h._modality.next("touch"),h._mostRecentTarget=Kr(_))},this._options=Object.assign(Object.assign({},lE),c),this.modalityDetected=this._modality.pipe(eE(1)),this.modalityChanged=this.modalityDetected.pipe(Ry()),t.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",h._onKeydown,dg),l.addEventListener("mousedown",h._onMousedown,dg),l.addEventListener("touchstart",h._onTouchstart,dg)})}return j(a,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,dg),document.removeEventListener("mousedown",this._onMousedown,dg),document.removeEventListener("touchstart",this._onTouchstart,dg))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(cn),ce(lt),ce(et),ce(NV,8))},e.\u0275prov=Ge({factory:function(){return new e(ce(cn),ce(lt),ce(et),ce(NV,8))},token:e,providedIn:"root"}),e}(),HV=new Ee("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),zV=new Ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),qy=function(){var e=function(){function a(t,n,l,c){F(this,a),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=t||this._createLiveElement()}return j(a,[{key:"announce",value:function(n){for(var h,_,l=this,c=this._defaultOptions,C=arguments.length,k=new Array(C>1?C-1:0),D=1;D1&&void 0!==arguments[1]&&arguments[1],c=cc(n);if(!this._platform.isBrowser||1!==c.nodeType)return rt(null);var h=eW(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var C={checkChildren:l,subject:new He,rootNode:h};return this._elementInfo.set(c,C),this._registerGlobalListeners(C),C.subject}},{key:"stopMonitoring",value:function(n){var l=cc(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var h=this,_=cc(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(k){var D=hr(k,2);return h._originChanged(D[0],l,D[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(n,l,c){c?n.classList.add(l):n.classList.remove(l)}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){this._toggleClass(n,"cdk-focused",!!l),this._toggleClass(n,"cdk-touch-focused","touch"===l),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===l),this._toggleClass(n,"cdk-mouse-focused","mouse"===l),this._toggleClass(n,"cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),h=Kr(n);!c||!c.checkChildren&&l!==h||this._originChanged(l,this._getFocusOrigin(h),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,h=this._rootNodeFocusListenerCount.get(c)||0;h||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,F1),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,F1)}),this._rootNodeFocusListenerCount.set(c,h+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ft(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,F1),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,F1),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,h){(h===n||c.checkChildren&&h.contains(n))&&l.push([h,c])}),l}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(cn),ce(BV),ce(et,8),ce(uE,8))},e.\u0275prov=Ge({factory:function(){return new e(ce(lt),ce(cn),ce(BV),ce(et,8),ce(uE,8))},token:e,providedIn:"root"}),e}(),N1=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new ye}return j(a,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(wa))},e.\u0275dir=ge({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),GV="cdk-high-contrast-black-on-white",V1="cdk-high-contrast-white-on-black",cE="cdk-high-contrast-active",jV=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._document=n}return j(a,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,h=(c&&c.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(n),h){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(cE),n.remove(GV),n.remove(V1),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(cE),n.add(GV)):2===l&&(n.add(cE),n.add(V1))}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(cn),ce(et))},e.\u0275prov=Ge({factory:function(){return new e(ce(cn),ce(et))},token:e,providedIn:"root"}),e}(),fE=function(){var e=function a(t){F(this,a),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ce(jV))},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[og,Yy]]}),e}(),WV=new Qu("12.2.1"),dE=function e(){F(this,e)},cY=function e(){F(this,e)},gc="*";function Ci(e,a){return{type:7,name:e,definitions:a,options:{}}}function tr(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:a,timings:e}}function YV(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:a}}function ot(e){return{type:6,styles:e,offset:null}}function Nn(e,a,t){return{type:0,name:e,styles:a,options:t}}function rd(e){return{type:5,steps:e}}function Wn(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:a,options:t}}function hg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function qV(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:a,options:t}}function Xy(e){Promise.resolve(null).then(e)}var np=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+t}return j(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Xy(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),XV=function(){function e(a){var t=this;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;var n=0,l=0,c=0,h=this.players.length;0==h?Xy(function(){return t._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==h&&t._onFinish()}),_.onDestroy(function(){++l==h&&t._onDestroy()}),_.onStart(function(){++c==h&&t._onStart()})}),this.totalTime=this.players.reduce(function(_,C){return Math.max(_,C.totalTime)},0)}return j(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}();function ZV(){return"undefined"!=typeof window&&void 0!==window.document}function B1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function id(e){switch(e.length){case 0:return new np;case 1:return e[0];default:return new XV(e)}}function KV(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=[],_=[],C=-1,k=null;if(n.forEach(function(O){var L=O.offset,U=L==C,Y=U&&k||{};Object.keys(O).forEach(function(Q){var ie=Q,fe=O[Q];if("offset"!==Q)switch(ie=a.normalizePropertyName(ie,h),fe){case"!":fe=l[Q];break;case gc:fe=c[Q];break;default:fe=a.normalizeStyleValue(Q,ie,fe,h)}Y[ie]=fe}),U||_.push(Y),k=Y,C=L}),h.length){var D="\n - ";throw new Error("Unable to animate due to the following errors:".concat(D).concat(h.join(D)))}return _}function pE(e,a,t,n){switch(a){case"start":e.onStart(function(){return n(t&&vE(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&vE(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&vE(t,"destroy",e))})}}function vE(e,a,t){var n=t.totalTime,c=gE(e.element,e.triggerName,e.fromState,e.toState,a||e.phaseName,null==n?e.totalTime:n,!!t.disabled),h=e._data;return null!=h&&(c._data=h),c}function gE(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:a,fromState:t,toState:n,phaseName:l,totalTime:c,disabled:!!h}}function Jo(e,a,t){var n;return e instanceof Map?(n=e.get(a))||e.set(a,n=t):(n=e[a])||(n=e[a]=t),n}function mE(e){var a=e.indexOf(":");return[e.substring(1,a),e.substr(a+1)]}var H1=function(a,t){return!1},z1=function(a,t){return!1},$V=function(a,t,n){return[]},_E=B1();(_E||"undefined"!=typeof Element)&&(H1=ZV()?function(a,t){for(;t&&t!==document.documentElement;){if(t===a)return!0;t=t.parentNode||t.host}return!1}:function(a,t){return a.contains(t)},z1=function(){if(_E||Element.prototype.matches)return function(t,n){return t.matches(n)};var e=Element.prototype,a=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return a?function(t,n){return a.apply(t,[n])}:z1}(),$V=function(a,t,n){var l=[];if(n)for(var c=a.querySelectorAll(t),h=0;h1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){a[t]=e[t]}),a}function mc(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(var n in e)t[n]=e[n];else pg(e,t);return t}function kE(e,a,t){return t?a+":"+t+";":""}function oB(e){for(var a="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void a.push(n);e=n}var l=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),a;var c=l[1],h=l[2],_=l[3];a.push(Jy(c,_)),"<"==h[0]&&!("*"==c&&"*"==_)&&a.push(Jy(_,c))}(n,t,a)}):t.push(e),t}var vg=new Set(["true","1"]),op=new Set(["false","0"]);function Jy(e,a){var t=vg.has(e)||op.has(e),n=vg.has(a)||op.has(a);return function(l,c){var h="*"==e||e==l,_="*"==a||a==c;return!h&&t&&"boolean"==typeof l&&(h=l?vg.has(e):op.has(e)),!_&&n&&"boolean"==typeof c&&(_=c?vg.has(a):op.has(a)),h&&_}}var ad=new RegExp("s*".concat(":self","s*,?"),"g");function cB(e,a,t){return new yY(e).build(a,t)}var yY=function(){function e(a){F(this,e),this._driver=a}return j(e,[{key:"build",value:function(t,n){var l=new EE(n);return this._resetContextStyleTimingState(l),es(this,Qy(t),l)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var l=this,c=n.queryCount=0,h=n.depCount=0,_=[],C=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(k){if(l._resetContextStyleTimingState(n),0==k.type){var D=k,O=D.name;O.toString().split(/\s*,\s*/).forEach(function(U){D.name=U,_.push(l.visitState(D,n))}),D.name=O}else if(1==k.type){var L=l.visitTransition(k,n);c+=L.queryCount,h+=L.depCount,C.push(L)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:_,transitions:C,queryCount:c,depCount:h,options:null}}},{key:"visitState",value:function(t,n){var l=this.visitStyle(t.styles,n),c=t.options&&t.options.params||null;if(l.containsDynamicStyles){var h=new Set,_=c||{};if(l.styles.forEach(function(k){if(tb(k)){var D=k;Object.keys(D).forEach(function(O){ME(D[O]).forEach(function(L){_.hasOwnProperty(L)||h.add(L)})})}}),h.size){var C=X1(h.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(C.join(", ")))}}return{type:0,name:t.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var l=es(this,Qy(t.animation),n);return{type:1,matchers:uB(t.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Ml(t.options)}}},{key:"visitSequence",value:function(t,n){var l=this;return{type:2,steps:t.steps.map(function(c){return es(l,c,n)}),options:Ml(t.options)}}},{key:"visitGroup",value:function(t,n){var l=this,c=n.currentTime,h=0,_=t.steps.map(function(C){n.currentTime=c;var k=es(l,C,n);return h=Math.max(h,n.currentTime),k});return n.currentTime=h,{type:3,steps:_,options:Ml(t.options)}}},{key:"visitAnimate",value:function(t,n){var l=function(e,a){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return Q1(Y1(e,a).duration,0,"");var l=e;if(l.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)})){var h=Q1(0,0,"");return h.dynamic=!0,h.strValue=l,h}return Q1((t=t||Y1(l,a)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=l;var c,h=t.styles?t.styles:ot({});if(5==h.type)c=this.visitKeyframes(h,n);else{var _=t.styles,C=!1;if(!_){C=!0;var k={};l.easing&&(k.easing=l.easing),_=ot(k)}n.currentTime+=l.duration+l.delay;var D=this.visitStyle(_,n);D.isEmptyStep=C,c=D}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(t,n){var l=this._makeStyleAst(t,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(t,n){var l=[];Array.isArray(t.styles)?t.styles.forEach(function(_){"string"==typeof _?_==gc?l.push(_):n.errors.push("The provided style string value ".concat(_," is not allowed.")):l.push(_)}):l.push(t.styles);var c=!1,h=null;return l.forEach(function(_){if(tb(_)){var C=_,k=C.easing;if(k&&(h=k,delete C.easing),!c)for(var D in C)if(C[D].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:h,offset:t.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(t,n){var l=this,c=n.currentAnimateTimings,h=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),t.styles.forEach(function(C){"string"!=typeof C&&Object.keys(C).forEach(function(k){if(l._driver.validateStyleProperty(k)){var D=n.collectedStyles[n.currentQuerySelector],O=D[k],L=!0;O&&(_!=h&&_>=O.startTime&&h<=O.endTime&&(n.errors.push('The CSS property "'.concat(k,'" that exists between the times of "').concat(O.startTime,'ms" and "').concat(O.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(_,'ms" and "').concat(h,'ms"')),L=!1),_=O.startTime),L&&(D[k]={startTime:_,endTime:h}),n.options&&function(e,a,t){var n=a.params||{},l=ME(e);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||t.push("Unable to resolve the local animation param ".concat(c," in the given list of values"))})}(C[k],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(k,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),c;var _=0,C=[],k=!1,D=!1,O=0,L=t.steps.map(function(be){var we=l._makeStyleAst(be,n),Ue=null!=we.offset?we.offset:function(e){if("string"==typeof e)return null;var a=null;if(Array.isArray(e))e.forEach(function(n){if(tb(n)&&n.hasOwnProperty("offset")){var l=n;a=parseFloat(l.offset),delete l.offset}});else if(tb(e)&&e.hasOwnProperty("offset")){var t=e;a=parseFloat(t.offset),delete t.offset}return a}(we.styles),Ze=0;return null!=Ue&&(_++,Ze=we.offset=Ue),D=D||Ze<0||Ze>1,k=k||Ze0&&_0?we==Q?1:Y*we:C[we],Ze=Ue*ae;n.currentTime=ie+fe.delay+Ze,fe.duration=Ze,l._validateStyleAst(be,n),be.offset=Ue,c.styles.push(be)}),c}},{key:"visitReference",value:function(t,n){return{type:8,animation:es(this,Qy(t.animation),n),options:Ml(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:Ml(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Ml(t.options)}}},{key:"visitQuery",value:function(t,n){var l=n.currentQuerySelector,c=t.options||{};n.queryCount++,n.currentQuery=t;var _=hr(function(e){var a=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return a&&(e=e.replace(ad,"")),[e=e.replace(/@\*/g,W1).replace(/@\w+/g,function(t){return W1+"-"+t.substr(1)}).replace(/:animating/g,wE),a]}(t.selector),2),C=_[0],k=_[1];n.currentQuerySelector=l.length?l+" "+C:C,Jo(n.collectedStyles,n.currentQuerySelector,{});var D=es(this,Qy(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:C,limit:c.limit||0,optional:!!c.optional,includeSelf:k,animation:D,originalSelector:t.selector,options:Ml(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var l="full"===t.timings?{duration:0,delay:0,easing:"full"}:Y1(t.timings,n.errors,!0);return{type:12,animation:es(this,Qy(t.animation),n),timings:l,options:null}}}]),e}(),EE=function e(a){F(this,e),this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function tb(e){return!Array.isArray(e)&&"object"==typeof e}function Ml(e){return e?(e=pg(e)).params&&(e.params=function(e){return e?pg(e):null}(e.params)):e={},e}function Q1(e,a,t){return{duration:e,delay:a,easing:t}}function nb(e,a,t,n,l,c){var h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:a,preStyleProps:t,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:h,subTimeline:_}}var rb=function(){function e(){F(this,e),this._map=new Map}return j(e,[{key:"consume",value:function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n}},{key:"append",value:function(t,n){var l,c=this._map.get(t);c||this._map.set(t,c=[]),(l=c).push.apply(l,xt(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),dB=new RegExp(":enter","g"),kY=new RegExp(":leave","g");function hB(e,a,t,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new MY).buildKeyframes(e,a,t,n,l,c,h,_,C,k)}var MY=function(){function e(){F(this,e)}return j(e,[{key:"buildKeyframes",value:function(t,n,l,c,h,_,C,k,D){var O=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];D=D||new rb;var L=new xY(t,n,D,c,h,O,[]);L.options=k,L.currentTimeline.setStyles([_],null,L.errors,k),es(this,l,L);var U=L.timelines.filter(function(Q){return Q.containsAnimation()});if(U.length&&Object.keys(C).length){var Y=U[U.length-1];Y.allowOnlyTimelineStyles()||Y.setStyles([C],null,L.errors,k)}return U.length?U.map(function(Q){return Q.buildKeyframes()}):[nb(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var l=n.subInstructions.consume(n.element);if(l){var c=n.createSubContext(t.options),h=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);h!=_&&n.transformIntoNewTimeline(_)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var l=n.createSubContext(t.options);l.transformIntoNewTimeline(),this.visitReference(t.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,l){var h=n.currentTimeline.currentTime,_=null!=l.duration?rp(l.duration):null,C=null!=l.delay?rp(l.delay):null;return 0!==_&&t.forEach(function(k){var D=n.appendInstructionToTimeline(k,_,C);h=Math.max(h,D.duration+D.delay)}),h}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),es(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var l=this,c=n.subContextCount,h=n,_=t.options;if(_&&(_.params||_.delay)&&((h=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=$1);var C=rp(_.delay);h.delayNextStep(C)}t.steps.length&&(t.steps.forEach(function(k){return es(l,k,h)}),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var l=this,c=[],h=n.currentTimeline.currentTime,_=t.options&&t.options.delay?rp(t.options.delay):0;t.steps.forEach(function(C){var k=n.createSubContext(t.options);_&&k.delayNextStep(_),es(l,C,k),h=Math.max(h,k.currentTimeline.currentTime),c.push(k.currentTimeline)}),c.forEach(function(C){return n.currentTimeline.mergeTimelineCollectedStyles(C)}),n.transformIntoNewTimeline(h),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var l=t.strValue;return Y1(n.params?q1(l,n.params,n.errors):l,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var l=n.currentAnimateTimings=this._visitTiming(t.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var h=t.style;5==h.type?this.visitKeyframes(h,n):(n.incrementTime(l.duration),this.visitStyle(h,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var h=c&&c.easing||t.easing;t.isEmptyStep?l.applyEmptyStep(h):l.setStyles(t.styles,h,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,h=l.duration,C=n.createSubContext().currentTimeline;C.easing=l.easing,t.styles.forEach(function(k){C.forwardTime((k.offset||0)*h),C.setStyles(k.styles,k.easing,n.errors,n.options),C.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(C),n.transformIntoNewTimeline(c+h),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var l=this,c=n.currentTimeline.currentTime,h=t.options||{},_=h.delay?rp(h.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=$1);var C=c,k=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!h.optional,n.errors);n.currentQueryTotal=k.length;var D=null;k.forEach(function(O,L){n.currentQueryIndex=L;var U=n.createSubContext(t.options,O);_&&U.delayNextStep(_),O===n.element&&(D=U.currentTimeline),es(l,t.animation,U),U.currentTimeline.applyStylesToKeyframe(),C=Math.max(C,U.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(C),D&&(n.currentTimeline.mergeTimelineCollectedStyles(D),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var l=n.parentContext,c=n.currentTimeline,h=t.timings,_=Math.abs(h.duration),C=_*(n.currentQueryTotal-1),k=_*n.currentQueryIndex;switch(h.duration<0?"reverse":h.easing){case"reverse":k=C-k;break;case"full":k=l.currentStaggerTime}var O=n.currentTimeline;k&&O.delayNextStep(k);var L=O.currentTime;es(this,t.animation,n),n.previousNode=t,l.currentStaggerTime=c.currentTime-L+(c.startTime-l.currentTimeline.startTime)}}]),e}(),$1={},xY=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this._driver=a,this.element=t,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=h,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$1,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new ib(this._driver,t,0),_.push(this.currentTimeline)}return j(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var l=this;if(t){var c=t,h=this.options;null!=c.duration&&(h.duration=rp(c.duration)),null!=c.delay&&(h.delay=rp(c.delay));var _=c.params;if(_){var C=h.params;C||(C=this.options.params={}),Object.keys(_).forEach(function(k){(!n||!C.hasOwnProperty(k))&&(C[k]=q1(_[k],C,l.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var l=t.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,h=new e(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return h.previousNode=this.previousNode,h.currentAnimateTimings=this.currentAnimateTimings,h.options=this._copyOptions(),h.updateOptions(t),h.currentQueryIndex=this.currentQueryIndex,h.currentQueryTotal=this.currentQueryTotal,h.parentContext=this,this.subContextCount++,h}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=$1,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,l){var c={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+t.delay,easing:""},h=new TY(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,c,t.stretchStartingKeyframe);return this.timelines.push(h),c}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,l,c,h,_){var C=[];if(c&&C.push(this.element),t.length>0){t=(t=t.replace(dB,"."+this._enterClassName)).replace(kY,"."+this._leaveClassName);var D=this._driver.query(this.element,t,1!=l);0!==l&&(D=l<0?D.slice(D.length+l,D.length):D.slice(0,l)),C.push.apply(C,xt(D))}return!h&&0==C.length&&_.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),C}}]),e}(),ib=function(){function e(a,t,n,l){F(this,e),this._driver=a,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=l,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return j(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||gc,n._currentKeyframe[l]=gc}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,l,c){var h=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},C=function(e,a){var n,t={};return e.forEach(function(l){"*"===l?(n=n||Object.keys(a)).forEach(function(c){t[c]=gc}):mc(l,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(C).forEach(function(k){var D=q1(C[k],_,l);h._pendingStyles[k]=D,h._localTimelineStyles.hasOwnProperty(k)||(h._backFill[k]=h._globalTimelineStyles.hasOwnProperty(k)?h._globalTimelineStyles[k]:gc),h._updateStyle(k,D)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){t._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){t._currentKeyframe.hasOwnProperty(c)||(t._currentKeyframe[c]=t._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=t._localTimelineStyles[n];t._pendingStyles[n]=l,t._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(l){var c=n._styleSummary[l],h=t._styleSummary[l];(!c||h.time>c.time)&&n._updateStyle(l,h.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,h=[];this._keyframes.forEach(function(O,L){var U=mc(O,!0);Object.keys(U).forEach(function(Y){var Q=U[Y];"!"==Q?n.add(Y):Q==gc&&l.add(Y)}),c||(U.offset=L/t.duration),h.push(U)});var _=n.size?X1(n.values()):[],C=l.size?X1(l.values()):[];if(c){var k=h[0],D=pg(k);k.offset=0,D.offset=1,h=[k,D]}return nb(this.element,h,_,C,this.duration,this.startTime,this.easing,!1)}}]),e}(),TY=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h,_,C){var k,D=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return F(this,t),(k=a.call(this,n,l,C.delay)).keyframes=c,k.preStyleProps=h,k.postStyleProps=_,k._stretchStartingKeyframe=D,k.timings={duration:C.duration,delay:C.delay,easing:C.easing},k}return j(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,h=c.delay,_=c.duration,C=c.easing;if(this._stretchStartingKeyframe&&h){var k=[],D=_+h,O=h/D,L=mc(l[0],!1);L.offset=0,k.push(L);var U=mc(l[0],!1);U.offset=ab(O),k.push(U);for(var Y=l.length-1,Q=1;Q<=Y;Q++){var ie=mc(l[Q],!1);ie.offset=ab((h+ie.offset*_)/D),k.push(ie)}_=D,h=0,C="",l=k}return nb(this.element,l,this.preStyleProps,this.postStyleProps,_,h,C,!0)}}]),t}(ib);function ab(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,a-1);return Math.round(e*t)/t}var ob=function e(){F(this,e)},DY=function(e){oe(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return j(t,[{key:"normalizePropertyName",value:function(l,c){return xE(l)}},{key:"normalizeStyleValue",value:function(l,c,h,_){var C="",k=h.toString().trim();if(EY[c]&&0!==h&&"0"!==h)if("number"==typeof h)C="px";else{var D=h.match(/^[+-]?[\d\.]+([a-z]*)$/);D&&0==D[1].length&&_.push("Please provide a CSS unit value for ".concat(l,":").concat(h))}return k+C}}]),t}(ob),EY=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),a={},e.forEach(function(t){return a[t]=!0}),a;var e,a}();function vB(e,a,t,n,l,c,h,_,C,k,D,O,L){return{type:0,element:e,triggerName:a,isRemovalTransition:l,fromState:t,fromStyles:c,toState:n,toStyles:h,timelines:_,queriedElements:C,preStyleProps:k,postStyleProps:D,totalTime:O,errors:L}}var gg={},gB=function(){function e(a,t,n){F(this,e),this._triggerName=a,this.ast=t,this._stateStyles=n}return j(e,[{key:"match",value:function(t,n,l,c){return function(e,a,t,n,l){return e.some(function(c){return c(a,t,n,l)})}(this.ast.matchers,t,n,l,c)}},{key:"buildStyles",value:function(t,n,l){var c=this._stateStyles["*"],h=this._stateStyles[t],_=c?c.buildStyles(n,l):{};return h?h.buildStyles(n,l):_}},{key:"build",value:function(t,n,l,c,h,_,C,k,D,O){var L=[],U=this.ast.options&&this.ast.options.params||gg,Q=this.buildStyles(l,C&&C.params||gg,L),ie=k&&k.params||gg,fe=this.buildStyles(c,ie,L),ae=new Set,be=new Map,we=new Map,Ue="void"===c,Ze={params:Object.assign(Object.assign({},U),ie)},Ct=O?[]:hB(t,n,this.ast.animation,h,_,Q,fe,Ze,D,L),Sn=0;if(Ct.forEach(function(Ur){Sn=Math.max(Ur.duration+Ur.delay,Sn)}),L.length)return vB(n,this._triggerName,l,c,Ue,Q,fe,[],[],be,we,Sn,L);Ct.forEach(function(Ur){var Gi=Ur.element,Pl=Jo(be,Gi,{});Ur.preStyleProps.forEach(function(Ja){return Pl[Ja]=!0});var Su=Jo(we,Gi,{});Ur.postStyleProps.forEach(function(Ja){return Su[Ja]=!0}),Gi!==n&&ae.add(Gi)});var $n=X1(ae.values());return vB(n,this._triggerName,l,c,Ue,Q,fe,Ct,$n,be,we,Sn)}}]),e}(),mB=function(){function e(a,t,n){F(this,e),this.styles=a,this.defaultParams=t,this.normalizer=n}return j(e,[{key:"buildStyles",value:function(t,n){var l=this,c={},h=pg(this.defaultParams);return Object.keys(t).forEach(function(_){var C=t[_];null!=C&&(h[_]=C)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var C=_;Object.keys(C).forEach(function(k){var D=C[k];D.length>1&&(D=q1(D,h,n));var O=l.normalizer.normalizePropertyName(k,n);D=l.normalizer.normalizeStyleValue(k,O,D,n),c[O]=D})}}),c}}]),e}(),_B=function(){function e(a,t,n){var l=this;F(this,e),this.name=a,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(c){l.states[c.name]=new mB(c.style,c.options&&c.options.params||{},n)}),bB(this.states,"true","1"),bB(this.states,"false","0"),t.transitions.forEach(function(c){l.transitionFactories.push(new gB(a,c,l.states))}),this.fallbackTransition=function(e,a,t){return new gB(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(h,_){return!0}],options:null,queryCount:0,depCount:0},a)}(a,this.states)}return j(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,l,c){return this.transitionFactories.find(function(_){return _.match(t,n,l,c)})||null}},{key:"matchStyles",value:function(t,n,l){return this.fallbackTransition.buildStyles(t,n,l)}}]),e}();function bB(e,a,t){e.hasOwnProperty(a)?e.hasOwnProperty(t)||(e[t]=e[a]):e.hasOwnProperty(t)&&(e[a]=e[t])}var IY=new rb,RY=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return j(e,[{key:"register",value:function(t,n){var l=[],c=cB(this._driver,n,l);if(l.length)throw new Error("Unable to build the animation due to the following errors: ".concat(l.join("\n")));this._animations[t]=c}},{key:"_buildPlayer",value:function(t,n,l){var c=t.element,h=KV(this._driver,this._normalizer,c,t.keyframes,n,l);return this._driver.animate(c,h,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var C,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=[],_=this._animations[t],k=new Map;if(_?(C=hB(this._driver,n,_,iB,CE,{},{},c,IY,h)).forEach(function(L){var U=Jo(k,L.element,{});L.postStyleProps.forEach(function(Y){return U[Y]=null})}):(h.push("The requested animation doesn't exist or has already been destroyed"),C=[]),h.length)throw new Error("Unable to create the animation due to the following errors: ".concat(h.join("\n")));k.forEach(function(L,U){Object.keys(L).forEach(function(Y){L[Y]=l._driver.computeStyle(U,Y,gc)})});var D=C.map(function(L){var U=k.get(L.element);return l._buildPlayer(L,{},U)}),O=id(D);return this._playersById[t]=O,O.onDestroy(function(){return l.destroy(t)}),this.players.push(O),O}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,l,c){var h=gE(n,"","","");return pE(this._getPlayer(t),l,h,c),function(){}}},{key:"command",value:function(t,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(t);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,c[0]||{});else this.register(t,c[0])}}]),e}(),CB="ng-animate-queued",wB="ng-animate-disabled",eS=".ng-animate-disabled",mg="ng-star-inserted",tS=[],kB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Hs="__ng_removed",nS=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";F(this,e),this.namespaceId=t;var n=a&&a.hasOwnProperty("value"),l=n?a.value:a;if(this.value=NY(l),n){var c=pg(a);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return j(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),e}(),_g="void",sb=new nS(_g),OE=function(){function e(a,t,n){F(this,e),this.id=a,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,zs(t,this._hostClassName)}return j(e,[{key:"listen",value:function(t,n,l,c){var h=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(l,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==l||0==l.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(l))throw new Error('The provided animation trigger event "'.concat(l,'" for the animation trigger "').concat(n,'" is not supported!'));var _=Jo(this._elementListeners,t,[]),C={name:n,phase:l,callback:c};_.push(C);var k=Jo(this._engine.statesByElement,t,{});return k.hasOwnProperty(n)||(zs(t,Ky),zs(t,Ky+"-"+n),k[n]=sb),function(){h._engine.afterFlush(function(){var D=_.indexOf(C);D>=0&&_.splice(D,1),h._triggers[n]||delete k[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,l){var c=this,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),C=new IE(this.id,n,t),k=this._engine.statesByElement.get(t);k||(zs(t,Ky),zs(t,Ky+"-"+n),this._engine.statesByElement.set(t,k={}));var D=k[n],O=new nS(l,this.id),L=l&&l.hasOwnProperty("value");!L&&D&&O.absorbOptions(D.options),k[n]=O,D||(D=sb);var U=O.value===_g;if(U||D.value!==O.value){var fe=Jo(this._engine.playersByElement,t,[]);fe.forEach(function(we){we.namespaceId==c.id&&we.triggerName==n&&we.queued&&we.destroy()});var ae=_.matchTransition(D.value,O.value,t,O.params),be=!1;if(!ae){if(!h)return;ae=_.fallbackTransition,be=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:ae,fromState:D,toState:O,player:C,isFallbackTransition:be}),be||(zs(t,CB),C.onStart(function(){bg(t,CB)})),C.onDone(function(){var we=c.players.indexOf(C);we>=0&&c.players.splice(we,1);var Ue=c._engine.playersByElement.get(t);if(Ue){var Ze=Ue.indexOf(C);Ze>=0&&Ue.splice(Ze,1)}}),this.players.push(C),fe.push(C),C}if(!zY(D.params,O.params)){var Y=[],Q=_.matchStyles(D.value,D.params,Y),ie=_.matchStyles(O.value,O.params,Y);Y.length?this._engine.reportError(Y):this._engine.afterFlush(function(){ip(t,Q),gu(t,ie)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(l,c){delete l[t]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(h){return h.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var l=this,c=this._engine.driver.query(t,W1,!0);c.forEach(function(h){if(!h[Hs]){var _=l._engine.fetchNamespacesByElement(h);_.size?_.forEach(function(C){return C.triggerLeaveAnimation(h,n,!1,!0)}):l.clearElementCache(h)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(h){return l.clearElementCache(h)})})}},{key:"triggerLeaveAnimation",value:function(t,n,l,c){var h=this,_=this._engine.statesByElement.get(t);if(_){var C=[];if(Object.keys(_).forEach(function(k){if(h._triggers[k]){var D=h.trigger(t,k,_g,c);D&&C.push(D)}}),C.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),l&&id(C).onDone(function(){return h._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,l=this._elementListeners.get(t),c=this._engine.statesByElement.get(t);if(l&&c){var h=new Set;l.forEach(function(_){var C=_.name;if(!h.has(C)){h.add(C);var D=n._triggers[C].fallbackTransition,O=c[C]||sb,L=new nS(_g),U=new IE(n.id,C,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:C,transition:D,fromState:O,toState:L,player:U,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var l=this,c=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var h=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(t):[];if(_&&_.length)h=!0;else for(var C=t;C=C.parentNode;)if(c.statesByElement.get(C)){h=!0;break}}if(this.prepareLeaveAnimationListeners(t),h)c.markElementAsRemoved(this.id,t,!1,n);else{var D=t[Hs];(!D||D===kB)&&(c.afterFlush(function(){return l.clearElementCache(t)}),c.destroyInnerAnimations(t),c._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){zs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,l=[];return this._queue.forEach(function(c){var h=c.player;if(!h.destroyed){var _=c.element,C=n._elementListeners.get(_);C&&C.forEach(function(k){if(k.name==c.triggerName){var D=gE(_,c.triggerName,c.fromState.value,c.toState.value);D._data=t,pE(c.player,k.phase,D,k.callback)}}),h.markedForDestroy?n._engine.afterFlush(function(){h.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,h){var _=c.transition.ast.depCount,C=h.transition.ast.depCount;return 0==_||0==C?_-C:n._engine.driver.containsElement(c.element,h.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(l){return l.element===t})||n}}]),e}(),MB=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(l,c){}}return j(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&t.push(l)})}),t}},{key:"createNamespace",value:function(t,n){var l=new OE(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[t]=l}},{key:"_balanceNamespaceList",value:function(t,n){var l=this._namespaceList.length-1;if(l>=0){for(var c=!1,h=l;h>=0;h--)if(this.driver.containsElement(this._namespaceList[h].hostElement,n)){this._namespaceList.splice(h+1,0,t),c=!0;break}c||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var l=this._namespaceLookup[t];return l||(l=this.createNamespace(t,n)),l}},{key:"registerTrigger",value:function(t,n,l){var c=this._namespaceLookup[t];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var l=this;if(t){var c=this._fetchNamespace(t);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[t];var h=l._namespaceList.indexOf(c);h>=0&&l._namespaceList.splice(h,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,l=this.statesByElement.get(t);if(l)for(var c=Object.keys(l),h=0;h=0&&this.collectedLeaveElements.splice(_,1)}if(t){var C=this._fetchNamespace(t);C&&C.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),zs(t,wB)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),bg(t,wB))}},{key:"removeNode",value:function(t,n,l,c){if(ub(n)){var h=t?this._fetchNamespace(t):null;if(h?h.removeNode(n,c):this.markElementAsRemoved(t,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==t&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(t,n,l,c){this.collectedLeaveElements.push(n),n[Hs]={namespaceId:t,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1}}},{key:"listen",value:function(t,n,l,c,h){return ub(n)?this._fetchNamespace(t).listen(n,l,c,h):function(){}}},{key:"_buildInstruction",value:function(t,n,l,c,h){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,l,c,t.fromState.options,t.toState.options,n,h)}},{key:"destroyInnerAnimations",value:function(t){var n=this,l=this.driver.query(t,W1,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(t,wE,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return id(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var n=this,l=t[Hs];if(l&&l.setForRemoval){if(t[Hs]=kB,l.namespaceId){this.destroyInnerAnimations(t);var c=this._fetchNamespace(l.namespaceId);c&&c.clearElementCache(t)}this._onRemovalComplete(t,l.setForRemoval)}this.driver.matchesElement(t,eS)&&this.markElementAsDisabled(t,!1),this.driver.query(t,eS,!0).forEach(function(h){n.markElementAsDisabled(h,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(L,U){return t._balanceNamespaceList(L,U)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Pl--)this._namespaceList[Pl].drainQueuedTransitions(n).forEach(function(_t){var en=_t.player,hn=_t.element;if(Ur.push(en),l.collectedEnterElements.length){var na=hn[Hs];if(na&&na.setForMove)return void en.destroy()}var wb=!U||!l.driver.containsElement(U,hn),DS=Sn.get(hn),Q5=ie.get(hn),bo=l._buildInstruction(_t,c,Q5,DS,wb);if(bo.errors&&bo.errors.length)Gi.push(bo);else{if(wb)return en.onStart(function(){return ip(hn,bo.fromStyles)}),en.onDestroy(function(){return gu(hn,bo.toStyles)}),void h.push(en);if(_t.isFallbackTransition)return en.onStart(function(){return ip(hn,bo.fromStyles)}),en.onDestroy(function(){return gu(hn,bo.toStyles)}),void h.push(en);bo.timelines.forEach(function(kc){return kc.stretchStartingKeyframe=!0}),c.append(hn,bo.timelines),C.push({instruction:bo,player:en,element:hn}),bo.queriedElements.forEach(function(kc){return Jo(k,kc,[]).push(en)}),bo.preStyleProps.forEach(function(kc,Sb){var $5=Object.keys(kc);if($5.length){var kb=D.get(Sb);kb||D.set(Sb,kb=new Set),$5.forEach(function(Fq){return kb.add(Fq)})}}),bo.postStyleProps.forEach(function(kc,Sb){var $5=Object.keys(kc),kb=O.get(Sb);kb||O.set(Sb,kb=new Set),$5.forEach(function(Fq){return kb.add(Fq)})})}});if(Gi.length){var Ja=[];Gi.forEach(function(_t){Ja.push("@".concat(_t.triggerName," has failed due to:\n")),_t.errors.forEach(function(en){return Ja.push("- ".concat(en,"\n"))})}),Ur.forEach(function(_t){return _t.destroy()}),this.reportError(Ja)}var ku=new Map,Sc=new Map;C.forEach(function(_t){var en=_t.element;c.has(en)&&(Sc.set(en,en),l._beforeAnimationBuild(_t.player.namespaceId,_t.instruction,ku))}),h.forEach(function(_t){var en=_t.element;l._getPreviousPlayers(en,!1,_t.namespaceId,_t.triggerName,null).forEach(function(na){Jo(ku,en,[]).push(na),na.destroy()})});var bb=ae.filter(function(_t){return AB(_t,D,O)}),Cb=new Map;xB(Cb,this.driver,we,O,gc).forEach(function(_t){AB(_t,D,O)&&bb.push(_t)});var sP=new Map;Q.forEach(function(_t,en){xB(sP,l.driver,new Set(_t),D,"!")}),bb.forEach(function(_t){var en=Cb.get(_t),hn=sP.get(_t);Cb.set(_t,Object.assign(Object.assign({},en),hn))});var lP=[],X5=[],uP={};C.forEach(function(_t){var en=_t.element,hn=_t.player,na=_t.instruction;if(c.has(en)){if(L.has(en))return hn.onDestroy(function(){return gu(en,na.toStyles)}),hn.disabled=!0,hn.overrideTotalTime(na.totalTime),void h.push(hn);var wb=uP;if(Sc.size>1){for(var DS=en,Q5=[];DS=DS.parentNode;){var bo=Sc.get(DS);if(bo){wb=bo;break}Q5.push(DS)}Q5.forEach(function(Sb){return Sc.set(Sb,wb)})}var Lq=l._buildAnimation(hn.namespaceId,na,ku,_,sP,Cb);if(hn.setRealPlayer(Lq),wb===uP)lP.push(hn);else{var kc=l.playersByElement.get(wb);kc&&kc.length&&(hn.parentPlayer=id(kc)),h.push(hn)}}else ip(en,na.fromStyles),hn.onDestroy(function(){return gu(en,na.toStyles)}),X5.push(hn),L.has(en)&&h.push(hn)}),X5.forEach(function(_t){var en=_.get(_t.element);if(en&&en.length){var hn=id(en);_t.setRealPlayer(hn)}}),h.forEach(function(_t){_t.parentPlayer?_t.syncPlayerEvents(_t.parentPlayer):_t.destroy()});for(var cP=0;cP0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,l):new np(t.duration,t.delay)}}]),e}(),IE=function(){function e(a,t,n){F(this,e),this.namespaceId=a,this.triggerName=t,this.element=n,this._player=new np,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return j(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return pE(t,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,l=this._player;l.triggerCallback&&t.onStart(function(){return l.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){Jo(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function NY(e){return null!=e?e:null}function ub(e){return e&&1===e.nodeType}function RE(e,a){var t=e.style.display;return e.style.display=null!=a?a:"none",t}function xB(e,a,t,n,l){var c=[];t.forEach(function(C){return c.push(RE(C))});var h=[];n.forEach(function(C,k){var D={};C.forEach(function(O){var L=D[O]=a.computeStyle(k,O,l);(!L||0==L.length)&&(k[Hs]=FY,h.push(k))}),e.set(k,D)});var _=0;return t.forEach(function(C){return RE(C,c[_++])}),h}function LE(e,a){var t=new Map;if(e.forEach(function(_){return t.set(_,[])}),0==a.length)return t;var l=new Set(a),c=new Map;function h(_){if(!_)return 1;var C=c.get(_);if(C)return C;var k=_.parentNode;return C=t.has(k)?k:l.has(k)?1:h(k),c.set(_,C),C}return a.forEach(function(_){var C=h(_);1!==C&&t.get(C).push(_)}),t}var yg="$$classes";function zs(e,a){if(e.classList)e.classList.add(a);else{var t=e[yg];t||(t=e[yg]={}),t[a]=!0}}function bg(e,a){if(e.classList)e.classList.remove(a);else{var t=e[yg];t&&delete t[a]}}function BY(e,a,t){id(t).onDone(function(){return e.processLeaveNode(a)})}function DB(e,a){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function EB(e,a){var t=null,n=null;return Array.isArray(a)&&a.length?(t=rS(a[0]),a.length>1&&(n=rS(a[a.length-1]))):a&&(t=rS(a)),t||n?new UY(e,t,n):null}var UY=function(){var e=function(){function a(t,n,l){F(this,a),this._element=t,this._startStyles=n,this._endStyles=l,this._state=0;var c=a.initialStylesByElement.get(t);c||a.initialStylesByElement.set(t,c={}),this._initialStyles=c}return j(a,[{key:"start",value:function(){this._state<1&&(this._startStyles&&gu(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(gu(this._element,this._initialStyles),this._endStyles&&(gu(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(ip(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ip(this._element,this._endStyles),this._endStyles=null),gu(this._element,this._initialStyles),this._state=3)}}]),a}();return e.initialStylesByElement=new WeakMap,e}();function rS(e){for(var a=null,t=Object.keys(e),n=0;n=this._delay&&l>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),LB(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,a){var n=sp(e,"").split(","),l=aS(n,a);l>=0&&(n.splice(l,1),oS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function iS(e,a,t){oS(e,"PlayState",t,RB(e,a))}function RB(e,a){var t=sp(e,"");return t.indexOf(",")>0?aS(t.split(","),a):aS([t],a)}function aS(e,a){for(var t=0;t=0)return t;return-1}function LB(e,a,t){t?e.removeEventListener(OB,a):e.addEventListener(OB,a)}function oS(e,a,t,n){var l=PB+a;if(null!=n){var c=e.style[l];if(c.length){var h=c.split(",");h[n]=t,t=h.join(",")}}e.style[l]=t}function sp(e,a){return e.style[PB+a]||""}var NB=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.element=a,this.keyframes=t,this.animationName=n,this._duration=l,this._delay=c,this._finalStyles=_,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=h||"linear",this.totalTime=l+c,this._buildStyler()}return j(e,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new YY(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var n={};if(this.hasStarted()){var l=this._state>=3;Object.keys(this._finalStyles).forEach(function(c){"offset"!=c&&(n[c]=l?t._finalStyles[c]:DE(t.element,c))})}this.currentSnapshot=n}}]),e}(),cb=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).element=n,c._startingStyles={},c.__initialized=!1,c._styles=eB(l),c}return j(t,[{key:"init",value:function(){var l=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(c){l._startingStyles[c]=l.element.style[c]}),Oe(Pe(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var l=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(c){return l.element.style.setProperty(c,l._styles[c])}),Oe(Pe(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var l=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(c){var h=l._startingStyles[c];h?l.element.style.setProperty(c,h):l.element.style.removeProperty(c)}),this._startingStyles=null,Oe(Pe(t.prototype),"destroy",this).call(this))}}]),t}(np),VB="gen_css_kf_",HB=function(){function e(){F(this,e),this._count=0}return j(e,[{key:"validateStyleProperty",value:function(t){return U1(t)}},{key:"matchesElement",value:function(t,n){return Zy(t,n)}},{key:"containsElement",value:function(t,n){return G1(t,n)}},{key:"query",value:function(t,n,l){return bE(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"buildKeyframeElement",value:function(t,n,l){l=l.map(function(C){return eB(C)});var c="@keyframes ".concat(n," {\n"),h="";l.forEach(function(C){h=" ";var k=parseFloat(C.offset);c+="".concat(h).concat(100*k,"% {\n"),h+=" ",Object.keys(C).forEach(function(D){var O=C[D];switch(D){case"offset":return;case"easing":return void(O&&(c+="".concat(h,"animation-timing-function: ").concat(O,";\n")));default:return void(c+="".concat(h).concat(D,": ").concat(O,";\n"))}}),c+="".concat(h,"}\n")}),c+="}\n";var _=document.createElement("style");return _.textContent=c,_}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],k=_.filter(function(fe){return fe instanceof NB}),D={};TE(l,c)&&k.forEach(function(fe){var ae=fe.currentSnapshot;Object.keys(ae).forEach(function(be){return D[be]=ae[be]})});var O=ZY(n=lB(t,n,D));if(0==l)return new cb(t,O);var L="".concat(VB).concat(this._count++),U=this.buildKeyframeElement(t,L,n),Y=XY(t);Y.appendChild(U);var Q=EB(t,n),ie=new NB(t,n,L,l,c,h,O,Q);return ie.onDestroy(function(){return KY(U)}),ie}}]),e}();function XY(e){var a,t=null===(a=e.getRootNode)||void 0===a?void 0:a.call(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head}function ZY(e){var a={};return e&&(Array.isArray(e)?e:[e]).forEach(function(n){Object.keys(n).forEach(function(l){"offset"==l||"easing"==l||(a[l]=n[l])})}),a}function KY(e){e.parentNode.removeChild(e)}var BE=function(){function e(a,t,n,l){F(this,e),this.element=a,this.keyframes=t,this.options=n,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return j(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,l){return t.animate(n,l)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(l){"offset"!=l&&(n[l]=t._finished?t._finalKeyframe[l]:DE(t.element,l))}),this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),QY=function(){function e(){F(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zB().toString()),this._cssKeyframesDriver=new HB}return j(e,[{key:"validateStyleProperty",value:function(t){return U1(t)}},{key:"matchesElement",value:function(t,n){return Zy(t,n)}},{key:"containsElement",value:function(t,n){return G1(t,n)}},{key:"query",value:function(t,n,l){return bE(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],C=arguments.length>6?arguments[6]:void 0,k=!C&&!this._isNativeImpl;if(k)return this._cssKeyframesDriver.animate(t,n,l,c,h,_);var D=0==c?"both":"forwards",O={duration:l,delay:c,fill:D};h&&(O.easing=h);var L={},U=_.filter(function(Q){return Q instanceof BE});TE(l,c)&&U.forEach(function(Q){var ie=Q.currentSnapshot;Object.keys(ie).forEach(function(fe){return L[fe]=ie[fe]})});var Y=EB(t,n=lB(t,n=n.map(function(Q){return mc(Q,!1)}),L));return new BE(t,n,O,Y)}}]),e}();function zB(){return ZV()&&Element.prototype.animate||{}}var UB=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._nextAnimationId=0,h._renderer=l.createRenderer(c.body,{id:"0",encapsulation:as.None,styles:[],data:{animation:[]}}),h}return j(n,[{key:"build",value:function(c){var h=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?YV(c):c;return jB(this._renderer,null,h,"register",[_]),new GB(h,this._renderer)}}]),n}(dE);return e.\u0275fac=function(t){return new(t||e)(ce(Ku),ce(et))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),GB=function(e){oe(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this))._id=n,c._renderer=l,c}return j(t,[{key:"create",value:function(l,c){return new JY(this._id,l,c||{},this._renderer)}}]),t}(cY),JY=function(){function e(a,t,n,l){F(this,e),this.id=a,this.element=t,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return j(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,l),this.engine.onInsert(this.namespaceId,n,t,c)}},{key:"removeChild",value:function(t,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,l,c){this.delegate.setAttribute(t,n,l,c)}},{key:"removeAttribute",value:function(t,n,l){this.delegate.removeAttribute(t,n,l)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,l,c){this.delegate.setStyle(t,n,l,c)}},{key:"removeStyle",value:function(t,n,l){this.delegate.removeStyle(t,n,l)}},{key:"setProperty",value:function(t,n,l){"@"==n.charAt(0)&&n==WB?this.disableAnimations(t,!!l):this.delegate.setProperty(t,n,l)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,l){return this.delegate.listen(t,n,l)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),sS=function(e){oe(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,l,c,h)).factory=n,_.namespaceId=l,_}return j(t,[{key:"setProperty",value:function(l,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==WB?this.disableAnimations(l,h=void 0===h||!!h):this.engine.process(this.namespaceId,l,c.substr(1),h):this.delegate.setProperty(l,c,h)}},{key:"listen",value:function(l,c,h){var _=this;if("@"==c.charAt(0)){var C=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(l),k=c.substr(1),D="";if("@"!=k.charAt(0)){var L=hr(function(e){var a=e.indexOf(".");return[e.substring(0,a),e.substr(a+1)]}(k),2);k=L[0],D=L[1]}return this.engine.listen(this.namespaceId,C,k,D,function(U){_.factory.scheduleListenerCallback(U._data||-1,h,U)})}return this.delegate.listen(l,c,h)}}]),t}(YB),XB=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l.body,c,h)}return j(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Cg);return e.\u0275fac=function(t){return new(t||e)(ce(et),ce(j1),ce(ob))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),Rr=new Ee("AnimationModuleType"),HE=[{provide:dE,useClass:UB},{provide:ob,useFactory:function(){return new DY}},{provide:Cg,useClass:XB},{provide:Ku,useFactory:function(e,a,t){return new e9(e,a,t)},deps:[cy,Cg,lt]}],db=[{provide:j1,useFactory:function(){return"function"==typeof zB()?new QY:new HB}},{provide:Rr,useValue:"BrowserAnimations"}].concat(HE),xl=[{provide:j1,useClass:tB},{provide:Rr,useValue:"NoopAnimations"}].concat(HE),i9=function(){var e=function(){function a(){F(this,a)}return j(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:n.disableAnimations?xl:db}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:db,imports:[RD]}),e}();function s9(e,a){if(1&e&&_e(0,"mat-pseudo-checkbox",4),2&e){var t=$();z("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function l9(e,a){if(1&e&&(E(0,"span",5),X(1),A()),2&e){var t=$();H(1),Ve("(",t.group.label,")")}}var KB=["*"],QB=function(){var e=function a(){F(this,a)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),$B=function(){var e=function a(){F(this,a)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),JB=new Qu("12.2.1"),c9=new Ee("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Jt=function(){var e=function(){function a(t,n,l){F(this,a),this._hasDoneGlobalChecks=!1,this._document=l,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return j(a,[{key:"_getWindow",value:function(){var n=this._document.defaultView||window;return"object"==typeof n&&n?n:null}},{key:"_checkIsEnabled",value:function(n){return!(!sw()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}},{key:"_isTestEnv",value:function(){var n=this._getWindow();return n&&(n.__karma__||n.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var l=getComputedStyle(n);l&&"none"!==l.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&JB.full!==WV.full&&console.warn("The Angular Material version ("+JB.full+") does not match the Angular CDK version ("+WV.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(jV),ce(c9,8),ce(et))},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Fy],Fy]}),e}();function Us(e){return function(a){oe(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(t){oe(l,t);var n=ue(l);function l(){var c;F(this,l);for(var h=arguments.length,_=new Array(h),C=0;C0?l:t}}]),e}(),Dl=new Ee("mat-date-formats");try{lp="undefined"!=typeof Intl}catch(e){lp=!1}var d9={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},e5=pb(31,function(a){return String(a+1)}),p9={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},v9=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pb(e,a){for(var t=Array(e),n=0;n9999)&&(c=this.clone(c)).setFullYear(Math.max(1,Math.min(9999,c.getFullYear()))),h=Object.assign(Object.assign({},h),{timeZone:"utc"});var _=new Intl.DateTimeFormat(this.locale,h);return this._stripDirectionalityCharacters(this._format(_,c))}return this._stripDirectionalityCharacters(c.toDateString())}},{key:"addCalendarYears",value:function(c,h){return this.addCalendarMonths(c,12*h)}},{key:"addCalendarMonths",value:function(c,h){var _=this._createDateWithOverflow(this.getYear(c),this.getMonth(c)+h,this.getDate(c));return this.getMonth(_)!=((this.getMonth(c)+h)%12+12)%12&&(_=this._createDateWithOverflow(this.getYear(_),this.getMonth(_),0)),_}},{key:"addCalendarDays",value:function(c,h){return this._createDateWithOverflow(this.getYear(c),this.getMonth(c),this.getDate(c)+h)}},{key:"toIso8601",value:function(c){return[c.getUTCFullYear(),this._2digit(c.getUTCMonth()+1),this._2digit(c.getUTCDate())].join("-")}},{key:"deserialize",value:function(c){if("string"==typeof c){if(!c)return null;if(v9.test(c)){var h=new Date(c);if(this.isValid(h))return h}}return Oe(Pe(n.prototype),"deserialize",this).call(this,c)}},{key:"isDateInstance",value:function(c){return c instanceof Date}},{key:"isValid",value:function(c){return!isNaN(c.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(c,h,_){var C=new Date;return C.setFullYear(c,h,_),C.setHours(0,0,0,0),C}},{key:"_2digit",value:function(c){return("00"+c).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(c){return c.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(c,h){var _=new Date;return _.setUTCFullYear(h.getFullYear(),h.getMonth(),h.getDate()),_.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),c.format(_)}}]),n}(Qr);return e.\u0275fac=function(t){return new(t||e)(ce(GE,8),ce(cn))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),_9=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[{provide:Qr,useClass:g9}],imports:[[og]]}),e}(),y9={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},t5=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[{provide:Dl,useValue:y9}],imports:[[_9]]}),e}(),od=function(){var e=function(){function a(){F(this,a)}return j(a,[{key:"isErrorState",value:function(n,l){return!!(n&&n.invalid&&(n.touched||l&&l.submitted))}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:function(){return new e},token:e,providedIn:"root"}),e}(),jE=function(){function e(a,t,n){F(this,e),this._renderer=a,this.element=t,this.config=n,this.state=3}return j(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),WE={enterDuration:225,exitDuration:150},YE=Kf({passive:!0}),qE=["mousedown","touchstart"],n5=["mouseup","mouseleave","touchend","touchcancel"],XE=function(){function e(a,t,n,l){F(this,e),this._target=a,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,l.isBrowser&&(this._containerElement=cc(n))}return j(e,[{key:"fadeInRipple",value:function(t,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},WE),c.animation);c.centered&&(t=h.left+h.width/2,n=h.top+h.height/2);var C=c.radius||zQ(t,n,h),k=t-h.left,D=n-h.top,O=_.enterDuration,L=document.createElement("div");L.classList.add("mat-ripple-element"),L.style.left="".concat(k-C,"px"),L.style.top="".concat(D-C,"px"),L.style.height="".concat(2*C,"px"),L.style.width="".concat(2*C,"px"),null!=c.color&&(L.style.backgroundColor=c.color),L.style.transitionDuration="".concat(O,"ms"),this._containerElement.appendChild(L),C9(L),L.style.transform="scale(1)";var U=new jE(this,L,c);return U.state=0,this._activeRipples.add(U),c.persistent||(this._mostRecentTransientRipple=U),this._runTimeoutOutsideZone(function(){var Y=U===l._mostRecentTransientRipple;U.state=1,!c.persistent&&(!Y||!l._isPointerDown)&&U.fadeOut()},O),U}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=t.element,c=Object.assign(Object.assign({},WE),t.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,l.parentNode.removeChild(l)},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=cc(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(qE))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(n5),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=FV(t),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(l){n._triggerElement.addEventListener(l,n,YE)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(qE.forEach(function(n){t._triggerElement.removeEventListener(n,t,YE)}),this._pointerUpEventsRegistered&&n5.forEach(function(n){t._triggerElement.removeEventListener(n,t,YE)}))}}]),e}();function C9(e){window.getComputedStyle(e).getPropertyValue("opacity")}function zQ(e,a,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),l=Math.max(Math.abs(a-t.top),Math.abs(a-t.bottom));return Math.sqrt(n*n+l*l)}var lS=new Ee("mat-ripple-global-options"),Gs=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._elementRef=t,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new XE(this,n,t,l)}return j(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(lt),N(cn),N(lS,8),N(Rr,8))},e.\u0275dir=ge({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&ct("mat-ripple-unbounded",n.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),up=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Jt,og],Jt]}),e}(),w9=function(){var e=function a(t){F(this,a),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(N(Rr,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,n){2&t&&ct("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),S9=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Jt]]}),e}(),o=new Ee("MAT_OPTION_PARENT_COMPONENT"),i=Us(function(){return function e(){F(this,e)}}()),r=0,s=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){var c,h;return F(this,n),(c=t.call(this))._labelId="mat-optgroup-label-".concat(r++),c._inert=null!==(h=null==l?void 0:l.inertGroups)&&void 0!==h&&h,c}return n}(i);return e.\u0275fac=function(t){return new(t||e)(N(o,8))},e.\u0275dir=ge({type:e,inputs:{label:"label"},features:[xe]}),e}(),u=new Ee("MatOptgroup"),d=0,p=function e(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(this,e),this.source=a,this.isUserInput=t},v=function(){var e=function(){function a(t,n,l,c){F(this,a),this._element=t,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(d++),this.onSelectionChange=new ye,this._stateChanges=new He}return j(a,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(n){this._disabled=$e(n)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(n){(13===n.keyCode||32===n.keyCode)&&!zi(n)&&(this._selectViaInteraction(),n.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new p(this,n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(void 0),N(s))},e.\u0275dir=ge({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),g=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(v);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(o,8),N(u,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,n){1&t&&ee("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&t&&(qi("id",n.id),Ye("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),ct("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[xe],ngContentSelectors:KB,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,n){1&t&&(rr(),re(0,s9,1,2,"mat-pseudo-checkbox",0),E(1,"span",1),Xt(2),A(),re(3,l9,2,1,"span",2),_e(4,"div",3)),2&t&&(z("ngIf",n.multiple),H(3),z("ngIf",n.group&&n.group._inert),H(1),z("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[$t,Gs,w9],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function m(e,a,t){if(t.length){for(var n=a.toArray(),l=t.toArray(),c=0,h=0;ht+n?Math.max(0,e-n+a):t}var b=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[up,Za,Jt,S9]]}),e}();function w(e,a){}var S=function e(){F(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},M={dialogContainer:Ci("dialogContainer",[Nn("void, exit",ot({opacity:0,transform:"scale(0.7)"})),Nn("enter",ot({transform:"none"})),Wn("* => enter",tr("150ms cubic-bezier(0, 0, 0.2, 1)",ot({transform:"none",opacity:1}))),Wn("* => void, * => exit",tr("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ot({opacity:0})))])},T=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._elementRef=l,D._focusTrapFactory=c,D._changeDetectorRef=h,D._config=C,D._focusMonitor=k,D._animationStateChanged=new ye,D._elementFocusedBeforeDialogWasOpened=null,D._closeInteractionType=null,D.attachDomPortal=function(O){return D._portalOutlet.hasAttached(),D._portalOutlet.attachDomPortal(O)},D._ariaLabelledBy=C.ariaLabelledBy||null,D._document=_,D}return j(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var h=Xh(),_=this._elementRef.nativeElement;(!h||h===this._document.body||h===_||_.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Xh())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,h=Xh();return c===h||c.contains(h)}}]),n}(fg);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(oE),N(Gt),N(et,8),N(S),N(wa))},e.\u0275dir=ge({type:e,viewQuery:function(t,n){var l;1&t&&dt(vo,7),2&t&&Le(l=Fe())&&(n._portalOutlet=l.first)},features:[xe]}),e}(),P=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._state="enter",l}return j(n,[{key:"_onAnimationDone",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===h&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===h||"void"===h)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(T);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&ll("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&t&&(qi("id",n._id),Ye("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),_v("@dialogContainer",n._state))},features:[xe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&re(0,w,0,0,"ng-template",0)},directives:[vo],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[M.dialogContainer]}}),e}(),I=0,R=function(){function e(a,t){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(I++);F(this,e),this._overlayRef=a,this._containerInstance=t,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He,this._afterClosed=new He,this._beforeClosed=new He,this._state=0,t._id=l,t._animationStateChanged.pipe(jn(function(c){return"opened"===c.state}),Kn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(jn(function(c){return"closed"===c.state}),Kn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),a.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),a.keydownEvents().pipe(jn(function(c){return 27===c.keyCode&&!n.disableClose&&!zi(c)})).subscribe(function(c){c.preventDefault(),B(n,"keyboard")}),a.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():B(n,"mouse")})}return j(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(jn(function(l){return"closing"===l.state}),Kn(1)).subscribe(function(l){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function B(e,a,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=a),e.close(t)}var V=new Ee("MatDialogData"),G=new Ee("mat-dialog-default-options"),W=new Ee("mat-dialog-scroll-strategy"),Z={provide:W,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},ne=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){var O=this;F(this,a),this._overlay=t,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=h,this._dialogRefConstructor=C,this._dialogContainerType=k,this._dialogDataToken=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He,this._afterOpenedAtThisLevel=new He,this._ariaHiddenElements=new Map,this.afterAllClosed=_y(function(){return O.openDialogs.length?O._getAfterAllClosed():O._getAfterAllClosed().pipe(Zr(void 0))}),this._scrollStrategy=_}return j(a,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;(l=function(e,a){return Object.assign(Object.assign({},a),e)}(l,this._defaultOptions||new S)).id&&this.getDialogById(l.id);var h=this._createOverlay(l),_=this._attachDialogContainer(h,l),C=this._attachDialogContent(n,_,h,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.afterClosed().subscribe(function(){return c._removeOpenDialog(C)}),this.afterOpened.next(C),_._initializeWithAttachedContent(),C}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new mo({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var h=jt.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:S,useValue:l}]}),_=new vu(this._dialogContainerType,l.viewContainerRef,h,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,h){var _=new this._dialogRefConstructor(c,l,h.id);if(n instanceof Dn)l.attachTemplatePortal(new Bs(n,null,{$implicit:h.data,dialogRef:_}));else{var C=this._createInjector(h,_,l),k=l.attachComponentPortal(new vu(n,h.viewContainerRef,C));_.componentInstance=k.instance}return _.updateSize(h.width,h.height).updatePosition(h.position),_}},{key:"_createInjector",value:function(n,l,c){var h=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!h||!h.get(xr,null,St.Optional))&&_.push({provide:xr,useValue:{value:n.direction,change:rt()}}),jt.create({parent:h||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,h){c?h.setAttribute("aria-hidden",c):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var h=l[c];h!==n&&"SCRIPT"!==h.nodeName&&"STYLE"!==h.nodeName&&!h.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(h,h.getAttribute("aria-hidden")),h.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(bi),N(jt),N(void 0),N(void 0),N(jy),N(void 0),N(Np),N(Np),N(Ee))},e.\u0275dir=ge({type:e}),e}(),te=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,_,k,D,C,R,P,V)}return n}(ne);return e.\u0275fac=function(t){return new(t||e)(ce(bi),ce(jt),ce(xh,8),ce(G,8),ce(W),ce(e,12),ce(jy))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),le=0,de=function(){var e=function(){function a(t,n,l){F(this,a),this.dialogRef=t,this._elementRef=n,this._dialog=l,this.type="button"}return j(a,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Te(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){B(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(R,8),N(Be),N(te))},e.\u0275dir=ge({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&ee("click",function(c){return n._onButtonClick(c)}),2&t&&Ye("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[vn]}),e}(),pe=function(){var e=function(){function a(t,n,l){F(this,a),this._dialogRef=t,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(le++)}return j(a,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=Te(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(R,8),N(Be),N(te))},e.\u0275dir=ge({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&qi("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),me=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),Ce=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function Te(e,a){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?a.find(function(n){return n.id===t.id}):null}var ze=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[te,Z],imports:[[tp,Qh,Jt],Jt]}),e}();function mt(e){var a=e.subscriber,t=e.counter,n=e.period;a.next(t),this.schedule({subscriber:a,counter:t+1,period:n},n)}var En=["mat-button",""],It=["*"],At=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",yn=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],nr=mu(Us(_u(function(){return function e(a){F(this,e),this._elementRef=a}}()))),kt=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){var _;F(this,n),(_=t.call(this,l))._focusMonitor=c,_._animationMode=h,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var k,C=rn(yn);try{for(C.s();!(k=C.n()).done;){var D=k.value;_._hasHostAttributes(D)&&_._getHostElement().classList.add(D)}}catch(O){C.e(O)}finally{C.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return j(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,h){c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,h=arguments.length,_=new Array(h),C=0;C0&&(this.dialogRef.afterClosed().subscribe(function(t){a.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uh;return(!OA(e)||e<0)&&(e=0),(!a||"function"!=typeof a.schedule)&&(a=Uh),new pn(function(t){return t.add(a.schedule(mt,e,{subscriber:t,counter:0,period:e})),t})}(1e3).subscribe(function(t){var n=a.data.autoclose-1e3*(t+1);a.setExtra(n),n<=0&&a.close()}))},e.prototype.initYesNo=function(){},e.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===uS.yesno?this.initYesNo():this.initAlert()},e.\u0275fac=function(t){return new(t||e)(N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,n){1&t&&(_e(0,"h4",0),xf(1,"safeHtml"),_e(2,"mat-dialog-content",1),xf(3,"safeHtml"),E(4,"mat-dialog-actions"),re(5,si,4,1,"button",2),re(6,wi,3,1,"button",3),re(7,cp,3,1,"button",3),A()),2&t&&(z("innerHtml",Rv(1,5,n.data.title),Pr),H(2),z("innerHTML",Rv(3,7,n.data.body),Pr),H(3),z("ngIf",0==n.data.type),H(1),z("ngIf",1==n.data.type),H(1),z("ngIf",1==n.data.type))},directives:[pe,me,Ce,$t,kt,de,Pt],pipes:[oi],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),sd=function(e){return e.TEXT="text",e.TEXTBOX="textbox",e.NUMERIC="numeric",e.PASSWORD="password",e.HIDDEN="hidden",e.CHOICE="choice",e.MULTI_CHOICE="multichoice",e.EDITLIST="editlist",e.CHECKBOX="checkbox",e.IMAGECHOICE="imgchoice",e.DATE="date",e.DATETIME="datetime",e.TAGLIST="taglist",e}({}),UQ=function(){function e(){}return e.locateChoice=function(a,t){var n=t.gui.values.find(function(l){return l.id===a});if(void 0===n)try{n=t.gui.values[0]}catch(l){n={id:"",img:"",text:""}}return n},e}();function r5(e,a){return new pn(function(t){var n=e.length;if(0!==n)for(var l=new Array(n),c=0,h=0,_=function(D){var O=fi(e[D]),L=!1;t.add(O.subscribe({next:function(Y){L||(L=!0,h++),l[D]=Y},error:function(Y){return t.error(Y)},complete:function(){(++c===n||!L)&&(h===n&&t.next(a?a.reduce(function(Y,Q,ie){return Y[Q]=l[ie],Y},{}):l),t.complete())}}))},C=0;Ce?{max:{max:e,actual:a.value}}:null}}(t)}},{key:"required",value:function(t){return XQ(t)}},{key:"requiredTrue",value:function(t){return ZQ(t)}},{key:"email",value:function(t){return function(e){return wg(e.value)||nne.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(e){return function(a){return wg(a.value)||!WQ(a.value)?null:a.value.lengthe?{maxlength:{requiredLength:e,actualLength:a.value.length}}:null}}function kg(e){return null}function e$(e){return null!=e}function t$(e){var a=Km(e)?fi(e):e;return Qm(a),a}function n$(e){var a={};return e.forEach(function(t){a=null!=t?Object.assign(Object.assign({},a),t):a}),0===Object.keys(a).length?null:a}function r$(e,a){return a.map(function(t){return t(e)})}function i$(e){return e.map(function(a){return function(e){return!e.validate}(a)?a:function(t){return a.validate(t)}})}function a$(e){if(!e)return null;var a=e.filter(e$);return 0==a.length?null:function(t){return n$(r$(t,a))}}function M9(e){return null!=e?a$(i$(e)):null}function o$(e){if(!e)return null;var a=e.filter(e$);return 0==a.length?null:function(t){return function(){for(var e=arguments.length,a=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(n)}},{key:"hasError",value:function(n,l){return!!this.control&&this.control.hasError(n,l)}},{key:"getError",value:function(n,l){return this.control?this.control.getError(n,l):null}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e}),e}(),_o=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return j(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(d$);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275dir=ge({type:e,features:[xe]}),e}(),yu=function(e){oe(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return t}(d$),h$=function(){function e(a){F(this,e),this._cd=a}return j(e,[{key:"is",value:function(t){var n,l,c;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[t])}}]),e}(),Fr=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(h$);return e.\u0275fac=function(t){return new(t||e)(N(yu,2))},e.\u0275dir=ge({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&ct("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[xe]}),e}(),D9=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(h$);return e.\u0275fac=function(t){return new(t||e)(N(_o,10))},e.\u0275dir=ge({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&ct("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[xe]}),e}();function ZE(e,a){A9(e,a),a.valueAccessor.writeValue(e.value),function(e,a){a.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&p$(e,a)})}(e,a),function(e,a){var t=function(l,c){a.valueAccessor.writeValue(l),c&&a.viewToModelUpdate(l)};e.registerOnChange(t),a._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,a),function(e,a){a.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&p$(e,a),"submit"!==e.updateOn&&e.markAsTouched()})}(e,a),function(e,a){if(a.valueAccessor.setDisabledState){var t=function(l){a.valueAccessor.setDisabledState(l)};e.registerOnDisabledChange(t),a._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,a)}function o5(e,a){var n=function(){};a.valueAccessor&&(a.valueAccessor.registerOnChange(n),a.valueAccessor.registerOnTouched(n)),l5(e,a),e&&(a._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function s5(e,a){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(a)})}function A9(e,a){var t=l$(e);null!==a.validator?e.setValidators(s$(t,a.validator)):"function"==typeof t&&e.setValidators([t]);var n=u$(e);null!==a.asyncValidator?e.setAsyncValidators(s$(n,a.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var l=function(){return e.updateValueAndValidity()};s5(a._rawValidators,l),s5(a._rawAsyncValidators,l)}function l5(e,a){var t=!1;if(null!==e){if(null!==a.validator){var n=l$(e);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(C){return C!==a.validator});l.length!==n.length&&(t=!0,e.setValidators(l))}}if(null!==a.asyncValidator){var c=u$(e);if(Array.isArray(c)&&c.length>0){var h=c.filter(function(C){return C!==a.asyncValidator});h.length!==c.length&&(t=!0,e.setAsyncValidators(h))}}}var _=function(){};return s5(a._rawValidators,_),s5(a._rawAsyncValidators,_),t}function p$(e,a){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function v$(e,a){A9(e,a)}function g$(e,a){e._syncPendingControls(),a.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function u5(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var KE="VALID",c5="INVALID",fS="PENDING",QE="DISABLED";function O9(e){return(R9(e)?e.validators:e)||null}function m$(e){return Array.isArray(e)?M9(e):e||null}function I9(e,a){return(R9(a)?a.asyncValidators:e)||null}function _$(e){return Array.isArray(e)?x9(e):e||null}function R9(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var L9=function(){function e(a,t){F(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=t,this._composedValidatorFn=m$(this._rawValidators),this._composedAsyncValidatorFn=_$(this._rawAsyncValidators)}return j(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===KE}},{key:"invalid",get:function(){return this.status===c5}},{key:"pending",get:function(){return this.status==fS}},{key:"disabled",get:function(){return this.status===QE}},{key:"enabled",get:function(){return this.status!==QE}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=m$(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=_$(t)}},{key:"addValidators",value:function(t){this.setValidators(c$(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(c$(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(f$(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(f$(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return i5(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return i5(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=fS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=QE,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=KE,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===KE||this.status===fS)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?QE:KE}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=fS,this._hasOwnPendingAsyncValidator=!0;var l=t$(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function(e,a,t){if(null==a||(Array.isArray(a)||(a=a.split(".")),Array.isArray(a)&&0===a.length))return null;var n=e;return a.forEach(function(l){n=n instanceof F9?n.controls.hasOwnProperty(l)?n.controls[l]:null:n instanceof hne&&n.at(l)||null}),n}(this,t)}},{key:"getError",value:function(t,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?QE:this.errors?c5:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fS)?fS:this._anyControlsHaveStatus(c5)?c5:KE}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){R9(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),f5=function(e){oe(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return F(this,t),(n=a.call(this,O9(c),I9(h,c)))._onChange=[],n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return j(t,[{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==h.emitViewToModelChange)}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){u5(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){u5(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),t}(L9),F9=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,O9(l),I9(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return j(t,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),Object.keys(l).forEach(function(_){c._throwIfControlMissing(_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,h){return l[h]=c instanceof f5?c.value:c.getRawValue(),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,h){return!!h._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[l])throw new Error("Cannot find form control with name: ".concat(l,"."))}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(h){var _=c.controls[h];_&&l(_,h)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,h=Object.keys(this.controls);c0||this.disabled}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control with name: '".concat(h,"'."))})}}]),t}(L9),hne=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,O9(l),I9(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return j(t,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:h.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),l.forEach(function(_,C){c._throwIfControlMissing(C),c.at(C).setValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,C){c.at(C)&&c.at(C).patchValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return l instanceof f5?l.value:l.getRawValue()})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,h){return!!h._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(l))throw new Error("Cannot find form control at index ".concat(l))}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,h){l(c,h)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control at index: ".concat(h,"."))})}},{key:"_allControlsDisabled",value:function(){var c,l=rn(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),t}(L9),pne={provide:_o,useExisting:Cn(function(){return _c})},$E=function(){return Promise.resolve(null)}(),_c=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).submitted=!1,h._directives=[],h.ngSubmit=new ye,h.form=new F9({},M9(l),x9(c)),h}return j(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(c){var h=this;$E.then(function(){var _=h._findContainer(c.path);c.control=_.registerControl(c.name,c.control),ZE(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),h._directives.push(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var h=this;$E.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name),u5(h._directives,c)})}},{key:"addFormGroup",value:function(c){var h=this;$E.then(function(){var _=h._findContainer(c.path),C=new F9({});v$(C,c),_.registerControl(c.name,C),C.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var h=this;$E.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){var _=this;$E.then(function(){_.form.get(c.path).setValue(h)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,g$(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(_o);return e.\u0275fac=function(t){return new(t||e)(N(Oi,10),N(Sg,10))},e.\u0275dir=ge({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&ee("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([pne]),xe]}),e}(),mne={provide:yu,useExisting:Cn(function(){return Tr})},C$=function(){return Promise.resolve(null)}(),Tr=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this)).control=new f5,C._registered=!1,C.update=new ye,C._parent=l,C._setValidators(c),C._setAsyncValidators(h),C.valueAccessor=function(e,a){if(!a)return null;Array.isArray(a);var t=void 0,n=void 0,l=void 0;return a.forEach(function(c){c.constructor===Ui?t=c:function(e){return Object.getPrototypeOf(e.constructor)===gb}(c)?n=c:l=c}),l||n||t||null}(Rt(C),_),C}return j(n,[{key:"ngOnChanges",value:function(c){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in c&&this._updateDisabled(c),function(e,a){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(a,t.currentValue)}(c,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,a){return[].concat(xt(a.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ZE(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(c){var h=this;C$.then(function(){h.control.setValue(c,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(c){var h=this,_=c.isDisabled.currentValue,C=""===_||_&&"false"!==_;C$.then(function(){C&&!h.control.disabled?h.control.disable():!C&&h.control.disabled&&h.control.enable()})}}]),n}(yu);return e.\u0275fac=function(t){return new(t||e)(N(_o,9),N(Oi,10),N(Sg,10),N(Sa,10))},e.\u0275dir=ge({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Xe([mne]),xe,vn]}),e}(),N9=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),yne={provide:Sa,useExisting:Cn(function(){return Mg}),multi:!0},Mg=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return j(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(h){c(""==h?null:parseFloat(h))}}}]),n}(gb);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275dir=ge({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&ee("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[Xe([yne]),xe]}),e}(),w$=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),V9=new Ee("NgModelWithFormControlWarning"),kne={provide:_o,useExisting:Cn(function(){return fp})},fp=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).validators=l,h.asyncValidators=c,h.submitted=!1,h._onCollectionChange=function(){return h._updateDomValue()},h.directives=[],h.form=null,h.ngSubmit=new ye,h._setValidators(l),h._setAsyncValidators(c),h}return j(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(l5(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(c){var h=this.form.get(c.path);return ZE(h,c),h.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),h}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){o5(c.control||null,c),u5(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){this.form.get(c.path).setValue(h)}},{key:"onSubmit",value:function(c){return this.submitted=!0,g$(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(h){var _=h.control,C=c.form.get(h.path);_!==C&&(o5(_||null,h),C instanceof f5&&(ZE(C,h),h.control=C))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var h=this.form.get(c.path);v$(h,c),h.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var h=this.form.get(c.path);h&&function(e,a){return l5(e,a)}(h,c)&&h.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){A9(this.form,this),this._oldForm&&l5(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(_o);return e.\u0275fac=function(t){return new(t||e)(N(Oi,10),N(Sg,10))},e.\u0275dir=ge({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&ee("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([kne]),xe,vn]}),e}();var Fne={provide:Oi,useExisting:Cn(function(){return yc}),multi:!0},Nne={provide:Oi,useExisting:Cn(function(){return d5}),multi:!0},yc=function(){var e=function(){function a(){F(this,a),this._required=!1}return j(a,[{key:"required",get:function(){return this._required},set:function(n){this._required=null!=n&&!1!==n&&"false"!=="".concat(n),this._onChange&&this._onChange()}},{key:"validate",value:function(n){return this.required?XQ(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Ye("required",n.required?"":null)},inputs:{required:"required"},features:[Xe([Fne])]}),e}(),d5=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return j(n,[{key:"validate",value:function(c){return this.required?ZQ(c):null}}]),n}(yc);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275dir=ge({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ye("required",n.required?"":null)},features:[Xe([Nne]),xe]}),e}(),Hne={provide:Oi,useExisting:Cn(function(){return G9}),multi:!0},G9=function(){var e=function(){function a(){F(this,a),this._validator=kg}return j(a,[{key:"ngOnChanges",value:function(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(n){return this.enabled()?this._validator(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"_createValidator",value:function(){this._validator=this.enabled()?$Q(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):kg}},{key:"enabled",value:function(){return null!=this.maxlength}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ye("maxlength",n.enabled()?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Xe([Hne]),vn]}),e}(),N$=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[w$]]}),e}(),Une=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[N$]}),e}(),Gne=function(){var e=function(){function a(){F(this,a)}return j(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:[{provide:V9,useValue:n.warnOnNgModelWithFormControl}]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[N$]}),e}();function jne(e,a){1&e&&Xt(0)}var j9=["*"];function Wne(e,a){}var Yne=function(a){return{animationDuration:a}},qne=function(a,t){return{value:a,params:t}},Xne=["tabBodyWrapper"],Zne=["tabHeader"];function Kne(e,a){}function Qne(e,a){1&e&&re(0,Kne,0,0,"ng-template",9),2&e&&z("cdkPortalOutlet",$().$implicit.templateLabel)}function $ne(e,a){1&e&&X(0),2&e&&In($().$implicit.textLabel)}function Jne(e,a){if(1&e){var t=De();E(0,"div",6),ee("click",function(){var _=ve(t),C=_.$implicit,k=_.index,D=$(),O=Fn(1);return D._handleClick(C,O,k)})("cdkFocusChange",function(_){var k=ve(t).index;return $()._tabFocusChanged(_,k)}),E(1,"div",7),re(2,Qne,1,1,"ng-template",8),re(3,$ne,1,1,"ng-template",8),A(),A()}if(2&e){var n=a.$implicit,l=a.index,c=$();ct("mat-tab-label-active",c.selectedIndex==l),z("id",c._getTabLabelId(l))("disabled",n.disabled)("matRippleDisabled",n.disabled||c.disableRipple),Ye("tabIndex",c._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",c._tabs.length)("aria-controls",c._getTabContentId(l))("aria-selected",c.selectedIndex==l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),H(2),z("ngIf",n.templateLabel),H(1),z("ngIf",!n.templateLabel)}}function ere(e,a){if(1&e){var t=De();E(0,"mat-tab-body",10),ee("_onCentered",function(){return ve(t),$()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return ve(t),$()._setTabBodyWrapperHeight(_)}),A()}if(2&e){var n=a.$implicit,l=a.index,c=$();ct("mat-tab-body-active",c.selectedIndex===l),z("id",c._getTabContentId(l))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),Ye("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var V$=["tabListContainer"],B$=["tabList"],H$=["nextPaginator"],z$=["previousPaginator"],nre=new Ee("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),h5=function(){var e=function(){function a(t,n,l,c){F(this,a),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return j(a,[{key:"alignToElement",value:function(n){var l=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return l._setStyles(n)})}):this._setStyles(n)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(n){var l=this._inkBarPositioner(n),c=this._elementRef.nativeElement;c.style.left=l.left,c.style.width=l.width}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(lt),N(nre),N(Rr,8))},e.\u0275dir=ge({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,n){2&t&&ct("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),e}(),U$=new Ee("MatTabContent"),G$=new Ee("MatTabLabel"),bc=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(Hy);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275dir=ge({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Xe([{provide:G$,useExisting:e}]),xe]}),e}(),ire=Us(function(){return function e(){F(this,e)}}()),j$=new Ee("MAT_TAB_GROUP"),Cu=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._viewContainerRef=l,h._closestTabGroup=c,h.textLabel="",h._contentPortal=null,h._stateChanges=new He,h.position=null,h.origin=null,h.isActive=!1,h}return j(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Bs(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&(this._templateLabel=c)}}]),n}(ire);return e.\u0275fac=function(t){return new(t||e)(N(qn),N(j$,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab"]],contentQueries:function(t,n,l){var c;1&t&&(Wt(l,G$,5),Wt(l,U$,7,Dn)),2&t&&(Le(c=Fe())&&(n.templateLabel=c.first),Le(c=Fe())&&(n._explicitContent=c.first))},viewQuery:function(t,n){var l;1&t&&dt(Dn,7),2&t&&Le(l=Fe())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[xe,vn],ngContentSelectors:j9,decls:1,vars:0,template:function(t,n){1&t&&(rr(),re(0,jne,1,0,"ng-template"))},encapsulation:2}),e}(),are={translateTab:Ci("translateTab",[Nn("center, void, left-origin-center, right-origin-center",ot({transform:"none"})),Nn("left",ot({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Nn("right",ot({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Wn("* => left, * => right, left => center, right => center",tr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Wn("void => left-origin-center",[ot({transform:"translate3d(-100%, 0, 0)"}),tr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Wn("void => right-origin-center",[ot({transform:"translate3d(100%, 0, 0)"}),tr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},ore=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this,l,c,_))._host=h,C._centeringSub=We.EMPTY,C._leavingSub=We.EMPTY,C}return j(n,[{key:"ngOnInit",value:function(){var c=this;Oe(Pe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Zr(this._host._isCenterPosition(this._host._position))).subscribe(function(h){h&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Oe(Pe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(vo);return e.\u0275fac=function(t){return new(t||e)(N(dl),N(qn),N(Cn(function(){return W$})),N(et))},e.\u0275dir=ge({type:e,selectors:[["","matTabBodyHost",""]],features:[xe]}),e}(),sre=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dir=n,this._dirChangeSubscription=We.EMPTY,this._translateTabComplete=new He,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(h){c._computePositionAnimationState(h),l.markForCheck()})),this._translateTabComplete.pipe(Ry(function(h,_){return h.fromState===_.fromState&&h.toState===_.toState})).subscribe(function(h){c._isCenterPosition(h.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(h.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return j(a,[{key:"position",set:function(n){this._positionIndex=n,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(xr,8),N(Gt))},e.\u0275dir=ge({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),W$=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l,c,h)}return n}(sre);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(xr,8),N(Gt))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,n){var l;1&t&&dt(vo,5),2&t&&Le(l=Fe())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[xe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,n){1&t&&(E(0,"div",0,1),ee("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),re(2,Wne,0,0,"ng-template",2),A()),2&t&&z("@translateTab",C_(3,qne,n._position,Go(1,Yne,n.animationDuration)))},directives:[ore],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[are.translateTab]}}),e}(),Y$=new Ee("MAT_TABS_CONFIG"),lre=0,ure=function e(){F(this,e)},cre=mu(_u(function(){return function e(a){F(this,e),this._elementRef=a}}()),"primary"),fre=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_){var C,k;return F(this,n),(C=t.call(this,l))._changeDetectorRef=c,C._animationMode=_,C._tabs=new nc,C._indexToSelect=0,C._tabBodyWrapperHeight=0,C._tabsSubscription=We.EMPTY,C._tabLabelSubscription=We.EMPTY,C._selectedIndex=null,C.headerPosition="above",C.selectedIndexChange=new ye,C.focusChange=new ye,C.animationDone=new ye,C.selectedTabChange=new ye(!0),C._groupId=lre++,C.animationDuration=h&&h.animationDuration?h.animationDuration:"500ms",C.disablePagination=!(!h||null==h.disablePagination)&&h.disablePagination,C.dynamicHeight=!(!h||null==h.dynamicHeight)&&h.dynamicHeight,C.contentTabIndex=null!==(k=null==h?void 0:h.contentTabIndex)&&void 0!==k?k:null,C}return j(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=$e(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Pi(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c)?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Pi(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var h=this._elementRef.nativeElement;h.classList.remove("mat-background-".concat(this.backgroundColor)),c&&h.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,h=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=h){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(h));var C=this._tabBodyWrapper.nativeElement;C.style.minHeight=C.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(k,D){return k.isActive=D===h}),_||(c.selectedIndexChange.emit(h),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(k,D){k.position=D-h,null!=c._selectedIndex&&0==k.position&&!k.origin&&(k.origin=h-c._selectedIndex)}),this._selectedIndex!==h&&(this._selectedIndex=h,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(c._clampTabIndex(c._indexToSelect)===c._selectedIndex)for(var _=c._tabs.toArray(),C=0;C<_.length;C++)if(_[C].isActive){c._indexToSelect=c._selectedIndex=C;break}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe(Zr(this._allTabs)).subscribe(function(h){c._tabs.reset(h.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(c){var h=this._tabHeader;h&&(h.focusIndex=c)}},{key:"_focusChanged",value:function(c){this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var h=new ure;return h.index=c,this._tabs&&this._tabs.length&&(h.tab=this._tabs.toArray()[c]),h}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=bn.apply(void 0,xt(this._tabs.map(function(h){return h._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var h=this._tabBodyWrapper.nativeElement;h.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(h.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,h,_){c.disabled||(this.selectedIndex=h.focusIndex=_)}},{key:"_getTabIndex",value:function(c,h){return c.disabled?null:this.selectedIndex===h?0:-1}},{key:"_tabFocusChanged",value:function(c,h){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=h)}}]),n}(cre);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(Y$,8),N(Rr,8))},e.\u0275dir=ge({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[xe]}),e}(),Cc=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(fre);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(Y$,8),N(Rr,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,n,l){var c;1&t&&Wt(l,Cu,5),2&t&&Le(c=Fe())&&(n._allTabs=c)},viewQuery:function(t,n){var l;1&t&&(dt(Xne,5),dt(Zne,5)),2&t&&(Le(l=Fe())&&(n._tabBodyWrapper=l.first),Le(l=Fe())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,n){2&t&&ct("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Xe([{provide:j$,useExisting:e}]),xe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,n){1&t&&(E(0,"mat-tab-header",0,1),ee("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),re(2,Jne,4,14,"div",2),A(),E(3,"div",3,4),re(5,ere,1,9,"mat-tab-body",5),A()),2&t&&(z("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),H(2),z("ngForOf",n._tabs),H(1),ct("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(2),z("ngForOf",n._tabs))},directives:function(){return[gre,fr,q$,Gs,N1,$t,vo,W$]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),dre=Us(function(){return function e(){F(this,e)}}()),q$=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).elementRef=l,c}return j(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(dre);return e.\u0275fac=function(t){return new(t||e)(N(Be))},e.\u0275dir=ge({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){2&t&&(Ye("aria-disabled",!!n.disabled),ct("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[xe]}),e}(),X$=Kf({passive:!0}),K$=function(){var e=function(){function a(t,n,l,c,h,_,C){var k=this;F(this,a),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=h,this._platform=_,this._animationMode=C,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new He,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new He,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,h.runOutsideAngular(function(){Ns(t.nativeElement,"mouseleave").pipe(Ft(k._destroyed)).subscribe(function(){k._stopInterval()})})}return j(a,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Pi(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;Ns(this._previousPaginator.nativeElement,"touchstart",X$).pipe(Ft(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),Ns(this._nextPaginator.nativeElement,"touchstart",X$).pipe(Ft(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:rt("ltr"),c=this._viewportRuler.change(150),h=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new L1(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(h):h(),bn(l,c,this._items.changes).pipe(Ft(this._destroyed)).subscribe(function(){n._ngZone.run(function(){return Promise.resolve().then(h)}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(Ft(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(n){if(!zi(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var k,D,c=this._tabListContainer.nativeElement.offsetWidth,h=l.elementRef.nativeElement,_=h.offsetLeft,C=h.offsetWidth;"ltr"==this._getLayoutDirection()?D=(k=_)+C:k=(D=this._tabList.nativeElement.offsetWidth-_)-C;var O=this.scrollDistance,L=this.scrollDistance+c;kL&&(this.scrollDistance+=D-L+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),y1(650,100).pipe(Ft(bn(this._stopScrolling,this._destroyed))).subscribe(function(){var h=c._scrollHeader(n),C=h.distance;(0===C||C>=h.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(Ca),N(xr,8),N(lt),N(cn),N(Rr,8))},e.\u0275dir=ge({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),vre=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var O;return F(this,n),(O=t.call(this,l,c,h,_,C,k,D))._disableRipple=!1,O}return j(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=$e(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(K$);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(Ca),N(xr,8),N(lt),N(cn),N(Rr,8))},e.\u0275dir=ge({type:e,inputs:{disableRipple:"disableRipple"},features:[xe]}),e}(),gre=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,h,_,C,k,D)}return n}(vre);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(Ca),N(xr,8),N(lt),N(cn),N(Rr,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,n,l){var c;1&t&&Wt(l,q$,4),2&t&&Le(c=Fe())&&(n._items=c)},viewQuery:function(t,n){var l;1&t&&(dt(h5,7),dt(V$,7),dt(B$,7),dt(H$,5),dt(z$,5)),2&t&&(Le(l=Fe())&&(n._inkBar=l.first),Le(l=Fe())&&(n._tabListContainer=l.first),Le(l=Fe())&&(n._tabList=l.first),Le(l=Fe())&&(n._nextPaginator=l.first),Le(l=Fe())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,n){2&t&&ct("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[xe],ngContentSelectors:j9,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,n){1&t&&(rr(),E(0,"div",0,1),ee("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),_e(2,"div",2),A(),E(3,"div",3,4),ee("keydown",function(c){return n._handleKeydown(c)}),E(5,"div",5,6),ee("cdkObserveContent",function(){return n._onContentChanges()}),E(7,"div",7),Xt(8),A(),_e(9,"mat-ink-bar"),A(),A(),E(10,"div",8,9),ee("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),_e(12,"div",2),A()),2&t&&(ct("mat-tab-header-pagination-disabled",n._disableScrollBefore),z("matRippleDisabled",n._disableScrollBefore||n.disableRipple),H(5),ct("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(5),ct("mat-tab-header-pagination-disabled",n._disableScrollAfter),z("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},directives:[Gs,Wy,h5],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),Cre=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Za,Jt,Qh,up,Yy,fE],Jt]}),e}();function wre(e,a){if(1&e){var t=De();E(0,"uds-field-text",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Sre(e,a){if(1&e){var t=De();E(0,"uds-field-textbox",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function kre(e,a){if(1&e){var t=De();E(0,"uds-field-numeric",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Mre(e,a){if(1&e){var t=De();E(0,"uds-field-password",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function xre(e,a){if(1&e){var t=De();E(0,"uds-field-hidden",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Tre(e,a){if(1&e){var t=De();E(0,"uds-field-choice",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Dre(e,a){if(1&e){var t=De();E(0,"uds-field-multichoice",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Are(e,a){if(1&e){var t=De();E(0,"uds-field-editlist",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Ere(e,a){if(1&e){var t=De();E(0,"uds-field-checkbox",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Pre(e,a){if(1&e){var t=De();E(0,"uds-field-imgchoice",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Ore(e,a){if(1&e){var t=De();E(0,"uds-field-date",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}function Ire(e,a){if(1&e){var t=De();E(0,"uds-field-tags",2),ee("changed",function(c){return ve(t),$().changed.emit(c)}),A()}2&e&&z("field",$().field)}var $$=function(){function e(){this.changed=new ye,this.udsGuiFieldType=sd}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,n){1&t&&(E(0,"div",0),re(1,wre,1,1,"uds-field-text",1),re(2,Sre,1,1,"uds-field-textbox",1),re(3,kre,1,1,"uds-field-numeric",1),re(4,Mre,1,1,"uds-field-password",1),re(5,xre,1,1,"uds-field-hidden",1),re(6,Tre,1,1,"uds-field-choice",1),re(7,Dre,1,1,"uds-field-multichoice",1),re(8,Are,1,1,"uds-field-editlist",1),re(9,Ere,1,1,"uds-field-checkbox",1),re(10,Pre,1,1,"uds-field-imgchoice",1),re(11,Ore,1,1,"uds-field-date",1),re(12,Ire,1,1,"uds-field-tags",1),A()),2&t&&(z("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.NUMERIC),H(1),z("ngSwitchCase",n.udsGuiFieldType.PASSWORD),H(1),z("ngSwitchCase",n.udsGuiFieldType.HIDDEN),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.EDITLIST),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.DATE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),e}();function Rre(e,a){1&e&&X(0),2&e&&Ve(" ",$().$implicit," ")}function Lre(e,a){if(1&e){var t=De();E(0,"uds-field",7),ee("changed",function(c){return ve(t),$(3).changed.emit(c)}),A()}2&e&&z("field",a.$implicit)}function Fre(e,a){if(1&e&&(E(0,"mat-tab"),re(1,Rre,1,1,"ng-template",4),E(2,"div",5),re(3,Lre,1,1,"uds-field",6),A(),A()),2&e){var t=a.$implicit,n=$(2);H(3),z("ngForOf",n.fieldsByTab[t])}}function Nre(e,a){if(1&e&&(E(0,"mat-tab-group",2),re(1,Fre,4,1,"mat-tab",3),A()),2&e){var t=$();z("disableRipple",!0)("@.disabled",!0),H(1),z("ngForOf",t.tabs)}}function Vre(e,a){if(1&e&&(E(0,"div"),_e(1,"uds-field",8),A()),2&e){var t=a.$implicit;H(1),z("field",t)}}function Bre(e,a){1&e&&re(0,Vre,2,1,"div",3),2&e&&z("ngForOf",$().fields)}var Hre=django.gettext("Main"),zre=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){var a=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(t){var n=void 0===t.gui.tab?Hre:t.gui.tab;a.tabs.includes(n)||(a.tabs.push(n),a.fieldsByTab[n]=new Array),a.fieldsByTab[n].push(t)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,n){if(1&t&&(re(0,Nre,2,3,"mat-tab-group",0),re(1,Bre,1,1,"ng-template",null,1,Ds)),2&t){var l=Fn(2);z("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[$t,Cc,fr,Cu,bc,$$],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),e}();function Ure(e,a){if(1&e){var t=De();E(0,"button",10),ee("click",function(){return ve(t),$().customButtonClicked()}),X(1),A()}if(2&e){var n=$();H(1),In(n.data.customButton)}}var dS,Gre=function(){function e(a,t){this.dialogRef=a,this.data=t,this.onEvent=new ye(!0),this.saving=!1}return e.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},e.prototype.changed=function(a){this.onEvent.emit({type:"changed",data:a,dialog:this.dialogRef})},e.prototype.getFields=function(){var a={},t=[];return this.data.guiFields.forEach(function(n){var l=void 0!==n.values?n.values:n.value;n.gui.required&&0!==l&&(!l||l instanceof Array&&0===l.length)&&t.push(n.gui.label),"number"==typeof l&&(l=l.toString()),a[n.name]=l}),{data:a,errors:t}},e.prototype.save=function(){var a=this.getFields();a.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+a.errors.join(", ")):this.onEvent.emit({data:a.data,type:"save",dialog:this.dialogRef})},e.prototype.customButtonClicked=function(){var a=this.getFields();this.onEvent.emit({data:a.data,type:this.data.customButton,errors:a.errors,dialog:this.dialogRef})},e.\u0275fac=function(t){return new(t||e)(N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,n){1&t&&(_e(0,"h4",0),xf(1,"safeHtml"),E(2,"mat-dialog-content",null,1),E(4,"form",2),E(5,"uds-form",3),ee("changed",function(c){return n.changed(c)}),A(),A(),A(),E(6,"mat-dialog-actions"),E(7,"div",4),E(8,"div",5),re(9,Ure,2,1,"button",6),A(),E(10,"div",7),E(11,"button",8),ee("click",function(){return n.dialogRef.close()}),E(12,"uds-translate"),X(13,"Discard & close"),A(),A(),E(14,"button",9),ee("click",function(){return n.save()}),E(15,"uds-translate"),X(16,"Save"),A(),A(),A(),A(),A()),2&t&&(z("innerHtml",Rv(1,5,n.data.title),Pr),H(5),z("fields",n.data.guiFields),H(4),z("ngIf",void 0!==n.data.customButton),H(2),z("disabled",n.saving),H(3),z("disabled",n.saving))},directives:[pe,me,N9,D9,_c,zre,Ce,$t,kt,Pt,_l],pipes:[oi],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),e}(),jre=function(){function e(a){this.gui=a}return e.prototype.modalForm=function(a,t,n,l){void 0===n&&(n=null),t.sort(function(C,k){return C.gui.order>k.gui.order?1:-1});var c=null!=n;n=c?n:{},t.forEach(function(C){(!1===c||void 0===C.gui.rdonly)&&(C.gui.rdonly=!1),C.gui.type===sd.TEXT&&C.gui.multiline&&(C.gui.type=sd.TEXTBOX);var k=n[C.name];void 0!==k&&(k instanceof Array?(C.values=new Array,k.forEach(function(D){return C.values.push(D)})):C.value=k)});var h=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(Gre,{position:{top:"64px"},width:h,data:{title:a,guiFields:t,customButton:l,gui:this.gui},disableClose:!0}).componentInstance.onEvent},e.prototype.typedForm=function(a,t,n,l,c,h,_){var C=this;_=_||{};var k=new ye,D=n?django.gettext("Test"):void 0,O={},L={},U=function(Y){L.hasOwnProperty(Y.name)&&""!==Y.value&&void 0!==Y.value&&C.executeCallback(a,Y,O)};return _.snack||(_.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),a.table.rest.gui(h).subscribe(function(Y){_.snack.dismiss(),void 0!==l&&l.forEach(function(Q){Y.push(Q)}),Y.forEach(function(Q){O[Q.name]=Q,void 0!==Q.gui.fills&&(L[Q.name]=Q.gui.fills)}),C.modalForm(t,Y,c,D).subscribe(function(Q){switch(Q.data&&(Q.data.data_type=h),Q.type){case D:if(Q.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+Q.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),a.table.rest.test(h,Q.data).subscribe(function(we){"ok"!==we?C.gui.snackbar.open(django.gettext("Test failed:")+" "+we,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===Q.data)for(var ie=0,fe=Y;ie"+l.join(", ")+"";this.gui.yesno(t,h,!0).subscribe(function(_){if(_){var C=c.length,k=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()};c.forEach(function(D){a.table.rest.delete(D).subscribe(function(O){0==--C&&k()},function(O){0==--C&&k()})})}})},e.prototype.executeCallback=function(a,t,n,l){var c=this;void 0===l&&(l={});var h=new Array;t.gui.fills.parameters.forEach(function(_){h.push(_+"="+encodeURIComponent(n[_].value))}),a.table.rest.callback(t.gui.fills.callbackName,h.join("&")).subscribe(function(_){var C=new Array;_.forEach(function(k){var D=n[k.name];void 0!==D&&(void 0!==D.gui.fills&&C.push(D),D.gui.values.length=0,k.values.forEach(function(O){return D.gui.values.push(O)}),D.value||(D.value=k.values.length>0?k.values[0].id:""))}),C.forEach(function(k){void 0===l[k.name]&&(l[k.name]=!0,c.executeCallback(a,k,n,l))})})},e}(),Yre=function(){function e(a,t){this.dialog=a,this.snackbar=t,this.forms=new jre(this)}return e.prototype.alert=function(a,t,n,l){void 0===n&&(n=0);var c=l||(window.innerWidth<800?"80%":"40%");return this.dialog.open(cS,{width:c,data:{title:a,body:t,autoclose:n,type:uS.alert},disableClose:!0}).componentInstance.yesno},e.prototype.yesno=function(a,t,n){void 0===n&&(n=!1);var l=window.innerWidth<800?"80%":"40%";return this.dialog.open(cS,{width:l,data:{title:a,body:t,type:uS.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},e.prototype.icon=function(a,t){return void 0===t&&(t="24px"),''},e}(),ka=function(e){return e.NUMERIC="numeric",e.ALPHANUMERIC="alphanumeric",e.DATETIME="datetime",e.DATETIMESEC="datetimesec",e.DATE="date",e.TIME="time",e.ICON="iconType",e.CALLBACK="callback",e.DICTIONARY="dict",e.IMAGE="image",e}({}),li=function(e){return e[e.ALWAYS=0]="ALWAYS",e[e.SINGLE_SELECT=1]="SINGLE_SELECT",e[e.MULTI_SELECT=2]="MULTI_SELECT",e[e.ONLY_MENU=3]="ONLY_MENU",e[e.ACCELERATOR=4]="ACCELERATOR",e}({}),eJ="provider",tJ="service",W9="pool",Y9="user",rJ="transport",iJ="osmanager",q9="calendar",aJ="poolgroup",Xre={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Al=function(){function e(a){this.router=a}return e.getGotoButton=function(a,t,n){return{id:a,html:'link'+django.gettext("Go to")+" "+Xre[a]+"",type:li.ACCELERATOR,acceleratorProperties:[t,n]}},e.prototype.gotoProvider=function(a){this.router.navigate(void 0!==a?["providers",a]:["providers"])},e.prototype.gotoService=function(a,t){this.router.navigate(void 0!==t?["providers",a,"detail",t]:["providers",a,"detail"])},e.prototype.gotoServicePool=function(a){this.router.navigate(["pools","service-pools",a])},e.prototype.gotoServicePoolDetail=function(a){this.router.navigate(["pools","service-pools",a,"detail"])},e.prototype.gotoMetapool=function(a){this.router.navigate(["pools","meta-pools",a])},e.prototype.gotoMetapoolDetail=function(a){this.router.navigate(["pools","meta-pools",a,"detail"])},e.prototype.gotoCalendar=function(a){this.router.navigate(["pools","calendars",a])},e.prototype.gotoCalendarDetail=function(a){this.router.navigate(["pools","calendars",a,"detail"])},e.prototype.gotoAccount=function(a){this.router.navigate(["pools","accounts",a])},e.prototype.gotoAccountDetail=function(a){this.router.navigate(["pools","accounts",a,"detail"])},e.prototype.gotoPoolGroup=function(a){this.router.navigate(["pools","pool-groups",a=a||""])},e.prototype.gotoAuthenticator=function(a){this.router.navigate(["authenticators",a])},e.prototype.gotoAuthenticatorDetail=function(a){this.router.navigate(["authenticators",a,"detail"])},e.prototype.gotoUser=function(a,t){this.router.navigate(["authenticators",a,"detail","users",t])},e.prototype.gotoGroup=function(a,t){this.router.navigate(["authenticators",a,"detail","groups",t])},e.prototype.gotoTransport=function(a){this.router.navigate(["transports",a])},e.prototype.gotoOSManager=function(a){this.router.navigate(["osmanagers",a])},e.prototype.goto=function(a,t,n){var l=function(c){var h=t;if(n[c].split(".").forEach(function(_){return h=h[_]}),!h)throw new Error("not going :)");return h};try{switch(a){case eJ:this.gotoProvider(l(0));break;case tJ:this.gotoService(l(0),l(1));break;case W9:this.gotoServicePool(l(0));break;case"authenticator":this.gotoAuthenticator(l(0));break;case Y9:this.gotoUser(l(0),l(1));break;case"group":this.gotoGroup(l(0),l(1));break;case rJ:this.gotoTransport(l(0));break;case iJ:this.gotoOSManager(l(0));break;case q9:this.gotoCalendar(l(0));break;case aJ:this.gotoPoolGroup(l(0))}}catch(c){}},e}(),oJ=new Set,sJ=function(){var e=function(){function a(t){F(this,a),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Kre}return j(a,[{key:"matchMedia",value:function(n){return this._platform.WEBKIT&&function(e){if(!oJ.has(e))try{dS||((dS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(dS)),dS.sheet&&(dS.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),oJ.add(e))}catch(a){console.error(a)}}(n),this._matchMedia(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(cn))},e.\u0275prov=Ge({factory:function(){return new e(ce(cn))},token:e,providedIn:"root"}),e}();function Kre(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var X9=function(){var e=function(){function a(t,n){F(this,a),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new He}return j(a,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return lJ(p1(n)).some(function(h){return l._registerQuery(h).mql.matches})}},{key:"observe",value:function(n){var l=this,_=my(lJ(p1(n)).map(function(C){return l._registerQuery(C).observable}));return(_=zw(_.pipe(Kn(1)),_.pipe(eE(1),P1(0)))).pipe(Ht(function(C){var k={matches:!1,breakpoints:{}};return C.forEach(function(D){var O=D.matches,L=D.query;k.matches=k.matches||O,k.breakpoints[L]=O}),k}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new pn(function(C){var k=function(O){return l._zone.run(function(){return C.next(O)})};return c.addListener(k),function(){c.removeListener(k)}}).pipe(Zr(c),Ht(function(C){return{query:n,matches:C.matches}}),Ft(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(sJ),ce(lt))},e.\u0275prov=Ge({factory:function(){return new e(ce(sJ),ce(lt))},token:e,providedIn:"root"}),e}();function lJ(e){return e.map(function(a){return a.split(",")}).reduce(function(a,t){return a.concat(t)}).map(function(a){return a.trim()})}function Qre(e,a){if(1&e){var t=De();E(0,"div",1),E(1,"button",2),ee("click",function(){return ve(t),$().action()}),X(2),A(),A()}if(2&e){var n=$();H(2),In(n.data.action)}}function $re(e,a){}var cJ=new Ee("MatSnackBarData"),p5=function e(){F(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},Jre=Math.pow(2,31)-1,Z9=function(){function e(a,t){var n=this;F(this,e),this._overlayRef=t,this._afterDismissed=new He,this._afterOpened=new He,this._onAction=new He,this._dismissedByAction=!1,this.containerInstance=a,this.onAction().subscribe(function(){return n.dismiss()}),a._onExit.subscribe(function(){return n._finishDismiss()})}return j(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(t,Jre))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),eie=function(){var e=function(){function a(t,n){F(this,a),this.snackBarRef=t,this.data=n}return j(a,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Z9),N(cJ))},e.\u0275cmp=Se({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(E(0,"span"),X(1),A(),re(2,Qre,3,1,"div",0)),2&t&&(H(1),In(n.data.message),H(1),z("ngIf",n.hasAction))},directives:[$t,kt],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),tie={snackBarState:Ci("state",[Nn("void, hidden",ot({transform:"scale(0.8)",opacity:0})),Nn("visible",ot({transform:"scale(1)",opacity:1})),Wn("* => visible",tr("150ms cubic-bezier(0, 0, 0.2, 1)")),Wn("* => void, * => hidden",tr("75ms cubic-bezier(0.4, 0.0, 1, 1)",ot({opacity:0})))])},nie=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._ngZone=l,k._elementRef=c,k._changeDetectorRef=h,k._platform=_,k.snackBarConfig=C,k._announceDelay=150,k._destroyed=!1,k._onAnnounce=new He,k._onExit=new He,k._onEnter=new He,k._animationState="void",k.attachDomPortal=function(D){return k._assertNotAttached(),k._applySnackBarClasses(),k._portalOutlet.attachDomPortal(D)},k._live="assertive"!==C.politeness||C.announcementMessage?"off"===C.politeness?"off":"polite":"assertive",k._platform.FIREFOX&&("polite"===k._live&&(k._role="status"),"assertive"===k._live&&(k._role="alert")),k}return j(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var C=this._onEnter;this._ngZone.run(function(){C.next(),C.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(Kn(1)).subscribe(function(){c._onExit.next(),c._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,h=this.snackBarConfig.panelClass;h&&(Array.isArray(h)?h.forEach(function(_){return c.classList.add(_)}):c.classList.add(h)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var h=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(h&&_){var C=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),_.appendChild(h),null==C||C.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(fg);return e.\u0275fac=function(t){return new(t||e)(N(lt),N(Be),N(Gt),N(cn),N(p5))},e.\u0275cmp=Se({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var l;1&t&&dt(vo,7),2&t&&Le(l=Fe())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&ll("@state.done",function(c){return n.onAnimationEnd(c)}),2&t&&_v("@state",n._animationState)},features:[xe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(E(0,"div",0),re(1,$re,0,0,"ng-template",1),A(),_e(2,"div")),2&t&&(H(2),Ye("aria-live",n._live)("role",n._role))},directives:[vo],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[tie.snackBarState]}}),e}(),fJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[tp,Qh,Za,Qn,Jt],Jt]}),e}(),dJ=new Ee("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new p5}}),iie=function(){var e=function(){function a(t,n,l,c,h,_){F(this,a),this._overlay=t,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=h,this._defaultConfig=_,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=eie,this.snackBarContainerComponent=nie,this.handsetCssClass="mat-snack-bar-handset"}return j(a,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,h=Object.assign(Object.assign({},this._defaultConfig),c);return h.data={message:n,action:l},h.announcementMessage===n&&(h.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,h)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var h=jt.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:p5,useValue:l}]}),_=new vu(this.snackBarContainerComponent,l.viewContainerRef,h),C=n.attach(_);return C.instance.snackBarConfig=l,C.instance}},{key:"_attach",value:function(n,l){var c=this,h=Object.assign(Object.assign(Object.assign({},new p5),this._defaultConfig),l),_=this._createOverlay(h),C=this._attachSnackBarContainer(_,h),k=new Z9(C,_);if(n instanceof Dn){var D=new Bs(n,null,{$implicit:h.data,snackBarRef:k});k.instance=C.attachTemplatePortal(D)}else{var O=this._createInjector(h,k),L=new vu(n,void 0,O),U=C.attachComponentPortal(L);k.instance=U.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ft(_.detachments())).subscribe(function(Y){var Q=_.overlayElement.classList;Y.matches?Q.add(c.handsetCssClass):Q.remove(c.handsetCssClass)}),h.announcementMessage&&C._onAnnounce.subscribe(function(){c._live.announce(h.announcementMessage,h.politeness)}),this._animateSnackBar(k,h),this._openedSnackBarRef=k,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new mo;l.direction=n.direction;var c=this._overlay.position().global(),h="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!h||"end"===n.horizontalPosition&&h,C=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):C?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return jt.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Z9,useValue:l},{provide:cJ,useValue:n.data}]})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(bi),ce(qy),ce(jt),ce(X9),ce(e,12),ce(dJ))},e.\u0275prov=Ge({factory:function(){return new e(ce(bi),ce(qy),ce(Nm),ce(X9),ce(e,12),ce(dJ))},token:e,providedIn:fJ}),e}(),hJ="dark-theme",pJ="light-theme",Et=function(){function e(a,t,n,l,c,h){this.http=a,this.router=t,this.dialog=n,this.snackbar=l,this.sanitizer=c,this.dateAdapter=h,this.user=new V7(udsData.profile),this.navigation=new Al(this.router),this.gui=new Yre(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(e.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),e.prototype.restPath=function(a){return this.config.urls.rest+a},e.prototype.staticURL=function(a){return this.config.urls.static+a},e.prototype.logout=function(){window.location.href=this.config.urls.logout},e.prototype.gotoUser=function(){window.location.href=this.config.urls.user},e.prototype.putOnStorage=function(a,t){void 0!==typeof Storage&&sessionStorage.setItem(a,t)},e.prototype.getFromStorage=function(a){return void 0!==typeof Storage?sessionStorage.getItem(a):null},e.prototype.safeString=function(a){return this.sanitizer.bypassSecurityTrustHtml(a)},e.prototype.yesno=function(a){return a?django.gettext("yes"):django.gettext("no")},e.prototype.switchTheme=function(a){var t=document.getElementsByTagName("html")[0];[hJ,pJ].forEach(function(n){t.classList.contains(n)&&t.classList.remove(n)}),t.classList.add(a?hJ:pJ)},e.\u0275prov=Ge({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(KF),ce(Qa),ce(te),ce(iie),ce(Kv),ce(Qr))},providedIn:"root"}),e}(),aie=function(){function e(a){this.api=a}return e.prototype.canActivate=function(a,t){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},e.\u0275prov=Ge({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Et))},providedIn:"root"}),e}(),K9=function(e,a){return(K9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])})(e,a)};function ea(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=e}K9(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}function Q9(e,a,t,n){return new(t||(t=Promise))(function(c,h){function _(D){try{k(n.next(D))}catch(O){h(O)}}function C(D){try{k(n.throw(D))}catch(O){h(O)}}function k(D){D.done?c(D.value):function(c){return c instanceof t?c:new t(function(h){h(c)})}(D.value).then(_,C)}k((n=n.apply(e,a||[])).next())})}var hS=function(e){return e[e.NONE=0]="NONE",e[e.READ=32]="READ",e[e.MANAGEMENT=64]="MANAGEMENT",e[e.ALL=96]="ALL",e}({}),Ma=function(){function e(a,t,n){this.api=a,void 0===n&&(n={}),void 0===n.base&&(n.base=t);var l=function(c,h){return void 0===c?h:c};this.id=t,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Oh).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return e.prototype.get=function(a){return this.doGet(this.getPath(this.paths.get,a))},e.prototype.getLogs=function(a){return this.doGet(this.getPath(this.paths.log,a)+"/log")},e.prototype.overview=function(a){return this.get("overview"+(void 0!==a?"?filter="+a:""))},e.prototype.summary=function(a){return this.get("overview?summarize"+(void 0!==a?"&filter="+a:""))},e.prototype.put=function(a,t){var n=this;return this.api.http.put(this.getPath(this.paths.put,t),a,{headers:this.headers}).pipe(Yo(function(l){return n.handleError(l,!0)}))},e.prototype.create=function(a){return this.put(a)},e.prototype.save=function(a,t){return this.put(a,t=void 0!==t?t:a.id)},e.prototype.test=function(a,t){var n=this;return this.api.http.post(this.getPath(this.paths.test,a),t,{headers:this.headers}).pipe(Yo(function(l){return n.handleError(l)}))},e.prototype.delete=function(a){var t=this;return this.api.http.delete(this.getPath(this.paths.delete,a),{headers:this.headers}).pipe(Yo(function(n){return t.handleError(n)}))},e.prototype.permision=function(){return this.api.user.isAdmin?hS.ALL:hS.NONE},e.prototype.getPermissions=function(a){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+a))},e.prototype.addPermission=function(a,t,n,l){var c=this,h=this.getPath("permissions/"+this.paths.base+"/"+a+"/"+t+"/add/"+n);return this.api.http.put(h,{perm:l},{headers:this.headers}).pipe(Yo(function(C){return c.handleError(C)}))},e.prototype.revokePermission=function(a){var t=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:a},{headers:this.headers}).pipe(Yo(function(c){return t.handleError(c)}))},e.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},e.prototype.gui=function(a){var t=this.getPath(this.paths.gui+(void 0!==a?"/"+a:""));return this.doGet(t)},e.prototype.callback=function(a,t){var n=this.getPath("gui/callback/"+a+"?"+t);return this.doGet(n)},e.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},e.prototype.detail=function(a,t){return new lie(this,a,t)},e.prototype.invoke=function(a,t){var n=a;return t&&(n=n+"?"+t),this.get(n)},e.prototype.getPath=function(a,t){return this.api.restPath(a+(void 0!==t?"/"+t:""))},e.prototype.doGet=function(a){var t=this;return this.api.http.get(a,{headers:this.headers}).pipe(Yo(function(n){return t.handleError(n)}))},e.prototype.handleError=function(a,t){void 0===t&&(t=!1);var n;return n=a.error instanceof ErrorEvent?a.error.message:t?django.gettext("Error saving: ")+a.error:"Error "+a.status+": "+a.error,this.api.gui.alert(t?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),hu(n)},e}(),lie=function(e){function a(t,n,l,c){var h=e.call(this,t.api,[t.paths.base,n,l].join("/"))||this;return h.parentModel=t,h.parentId=n,h.model=l,h.perm=c,h}return ea(a,e),a.prototype.permision=function(){return this.perm||hS.ALL},a}(Ma),uie=function(e){function a(t){var n=e.call(this,t,"providers")||this;return n.api=t,n}return ea(a,e),a.prototype.allServices=function(){return this.get("allservices")},a.prototype.service=function(t){return this.get("service/"+t)},a.prototype.maintenance=function(t){return this.get(t+"/maintenance")},a}(Ma),cie=function(e){function a(t){var n=e.call(this,t,"authenticators")||this;return n.api=t,n}return ea(a,e),a.prototype.search=function(t,n,l,c){return void 0===c&&(c=12),this.get(t+"/search?type="+encodeURIComponent(n)+"&term="+encodeURIComponent(l)+"&limit="+c)},a}(Ma),fie=function(e){function a(t){var n=e.call(this,t,"osmanagers")||this;return n.api=t,n}return ea(a,e),a}(Ma),die=function(e){function a(t){var n=e.call(this,t,"transports")||this;return n.api=t,n}return ea(a,e),a}(Ma),hie=function(e){function a(t){var n=e.call(this,t,"networks")||this;return n.api=t,n}return ea(a,e),a}(Ma),pie=function(e){function a(t){var n=e.call(this,t,"servicespools")||this;return n.api=t,n}return ea(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a.prototype.actionsList=function(t){return this.get(t+"/actionsList")},a.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},a.prototype.createFromAssignable=function(t,n,l){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(n)+"&assignable_id="+encodeURIComponent(l))},a}(Ma),vie=function(e){function a(t){var n=e.call(this,t,"metapools")||this;return n.api=t,n}return ea(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a}(Ma),gie=function(e){function a(t){var n=e.call(this,t,"config")||this;return n.api=t,n}return ea(a,e),a}(Ma),mie=function(e){function a(t){var n=e.call(this,t,"gallery/images")||this;return n.api=t,n}return ea(a,e),a}(Ma),_ie=function(e){function a(t){var n=e.call(this,t,"gallery/servicespoolgroups")||this;return n.api=t,n}return ea(a,e),a}(Ma),yie=function(e){function a(t){var n=e.call(this,t,"system")||this;return n.api=t,n}return ea(a,e),a.prototype.information=function(){return this.get("overview")},a.prototype.stats=function(t,n){var l="stats/"+t;return n&&(l+="/"+n),this.get(l)},a.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},a}(Ma),bie=function(e){function a(t){var n=e.call(this,t,"reports")||this;return n.api=t,n}return ea(a,e),a.prototype.types=function(){return rt([])},a}(Ma),Cie=function(e){function a(t){var n=e.call(this,t,"calendars")||this;return n.api=t,n}return ea(a,e),a}(Ma),wie=function(e){function a(t){var n=e.call(this,t,"accounts")||this;return n.api=t,n}return ea(a,e),a.prototype.timemark=function(t){return this.get(t+"/timemark")},a}(Ma),Sie=function(e){function a(t){var n=e.call(this,t,"proxies")||this;return n.api=t,n}return ea(a,e),a}(Ma),kie=function(e){function a(t){var n=e.call(this,t,"actortokens")||this;return n.api=t,n}return ea(a,e),a}(Ma),Mie=function(e){function a(t){var n=e.call(this,t,"tunneltokens")||this;return n.api=t,n}return ea(a,e),a}(Ma),sn=function(){function e(a){this.api=a,this.providers=new uie(a),this.authenticators=new cie(a),this.osManagers=new fie(a),this.transports=new die(a),this.networks=new hie(a),this.servicesPools=new pie(a),this.metaPools=new vie(a),this.gallery=new mie(a),this.servicesPoolGroups=new _ie(a),this.calendars=new Cie(a),this.accounts=new wie(a),this.proxy=new Sie(a),this.system=new yie(a),this.configuration=new gie(a),this.actorToken=new kie(a),this.tunnelToken=new Mie(a),this.reports=new bie(a)}return e.\u0275prov=Ge({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Et))},providedIn:"root"}),e}(),_J=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],yJ=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],bJ=function(e){var a=[];return e.forEach(function(t){a.push(t.substr(0,3))}),a},pS=function(e,a,t){return dp(e,a,t)},dp=function(e,a,t,n){n=n||{},a=a||new Date,(t=t||Eie).formats=t.formats||{};var l=a.getTime();return(n.utc||"number"==typeof n.timezone)&&(a=xie(a)),"number"==typeof n.timezone&&(a=new Date(a.getTime()+6e4*n.timezone)),e.replace(/%([-_0]?.)/g,function(c,h){var _,C,k,D,O,L,U,Y;if(k=null,O=null,2===h.length){if("-"===(k=h[0]))O="";else if("_"===k)O=" ";else{if("0"!==k)return c;O="0"}h=h[1]}switch(h){case"A":return t.days[a.getDay()];case"a":return t.shortDays[a.getDay()];case"B":return t.months[a.getMonth()];case"b":return t.shortMonths[a.getMonth()];case"C":return ts(Math.floor(a.getFullYear()/100),O);case"D":return dp(t.formats.D||"%m/%d/%y",a,t);case"d":return ts(a.getDate(),O);case"e":return a.getDate();case"F":return dp(t.formats.F||"%Y-%m-%d",a,t);case"H":return ts(a.getHours(),O);case"h":return t.shortMonths[a.getMonth()];case"I":return ts(CJ(a),O);case"j":return U=new Date(a.getFullYear(),0,1),_=Math.ceil((a.getTime()-U.getTime())/864e5),ts(_,3);case"k":return ts(a.getHours(),void 0===O?" ":O);case"L":return ts(Math.floor(l%1e3),3);case"l":return ts(CJ(a),void 0===O?" ":O);case"M":return ts(a.getMinutes(),O);case"m":return ts(a.getMonth()+1,O);case"n":return"\n";case"o":return String(a.getDate())+Tie(a.getDate());case"P":case"p":return"";case"R":return dp(t.formats.R||"%H:%M",a,t);case"r":return dp(t.formats.r||"%I:%M:%S %p",a,t);case"S":return ts(a.getSeconds(),O);case"s":return Math.floor(l/1e3);case"T":return dp(t.formats.T||"%H:%M:%S",a,t);case"t":return"\t";case"U":return ts(wJ(a,"sunday"),O);case"u":return 0===(C=a.getDay())?7:C;case"v":return dp(t.formats.v||"%e-%b-%Y",a,t);case"W":return ts(wJ(a,"monday"),O);case"w":return a.getDay();case"Y":return a.getFullYear();case"y":return(Y=String(a.getFullYear())).slice(Y.length-2);case"Z":return n.utc?"GMT":(L=a.toString().match(/\((\w+)\)/))&&L[1]||"";case"z":return n.utc?"+0000":((D="number"==typeof n.timezone?n.timezone:-a.getTimezoneOffset())<0?"-":"+")+ts(Math.abs(D/60))+ts(D%60);default:return h}})},xie=function(e){var a=6e4*(e.getTimezoneOffset()||0);return new Date(e.getTime()+a)},ts=function(e,a,t){"number"==typeof a&&(t=a,a="0"),a=null==a?"0":a,t=null==t?2:t;var n=String(e);if(a)for(;n.length12&&(a-=12),a},Tie=function(e){var a=e%10,t=e%100;if(t>=11&&t<=13||0===a||a>=4)return"th";switch(a){case 1:return"st";case 2:return"nd";case 3:return"rd"}},wJ=function(e,a){a=a||"sunday";var t=e.getDay();"monday"===a&&(0===t?t=6:t--);var n=new Date(e.getFullYear(),0,1),l=Math.floor((e.getTime()-n.getTime())/864e5);return Math.floor((l+7-t)/7)},SJ=function(e){return e.replace(/./g,function(a){switch(a){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+a;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return a}})},wu=function(e,a,t){var n;if(void 0===t&&(t=null),"None"===a||null==a)a=7226578800,n=django.gettext("Never");else{var l=django.get_format(e);t&&(l+=t),n=pS(SJ(l),new Date(1e3*a))}return n},$9=function(e){return"yes"===e||!0===e||"true"===e||1===e},Eie={days:_J,shortDays:bJ(_J),months:yJ,shortMonths:bJ(yJ),AM:"AM",PM:"PM",am:"am",pm:"pm"},Pie=Mt(79052),vS=Mt.n(Pie),kJ=function(){if("undefined"!=typeof Map)return Map;function e(a,t){var n=-1;return a.some(function(l,c){return l[0]===t&&(n=c,!0)}),n}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(t){var n=e(this.__entries__,t),l=this.__entries__[n];return l&&l[1]},a.prototype.set=function(t,n){var l=e(this.__entries__,t);~l?this.__entries__[l][1]=n:this.__entries__.push([t,n])},a.prototype.delete=function(t){var n=this.__entries__,l=e(n,t);~l&&n.splice(l,1)},a.prototype.has=function(t){return!!~e(this.__entries__,t)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var l=0,c=this.__entries__;l0},e.prototype.connect_=function(){!J9||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Nie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!J9||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var t=a.propertyName,n=void 0===t?"":t;Fie.some(function(c){return!!~n.indexOf(c)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),MJ=function(a,t){for(var n=0,l=Object.keys(t);n0},e}(),DJ="undefined"!=typeof WeakMap?new WeakMap:new kJ,AJ=function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=Vie.getInstance(),n=new Xie(a,t,this);DJ.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){AJ.prototype[e]=function(){var a;return(a=DJ.get(this))[e].apply(a,arguments)}});var Kie=void 0!==g5.ResizeObserver?g5.ResizeObserver:AJ,Qie=function(){function e(a){F(this,e),this.changes=a}return j(e,[{key:"notEmpty",value:function(t){if(this.changes[t]){var n=this.changes[t].currentValue;if(null!=n)return rt(n)}return mr}},{key:"has",value:function(t){return this.changes[t]?rt(this.changes[t].currentValue):mr}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?rt(this.changes[t].currentValue):mr}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var n=this.changes[t].currentValue;if(null!=n)return rt(n)}return mr}}],[{key:"of",value:function(t){return new e(t)}}]),e}(),EJ=new Ee("NGX_ECHARTS_CONFIG"),PJ=function(){var e=function(){function a(t,n,l){F(this,a),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=t.echarts}return j(a,[{key:"ngOnChanges",value:function(n){var l=this,c=Qie.of(n);c.notFirstAndEmpty("options").subscribe(function(h){return l.onOptionsChange(h)}),c.notFirstAndEmpty("merge").subscribe(function(h){return l.setOption(h)}),c.has("loading").subscribe(function(h){return l.toggleLoading(!!h)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;this.autoResize&&(this.resizeSub=new Kie(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){return n.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Q9(this,void 0,void 0,vS().mark(function n(){return vS().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Q9(this,void 0,void 0,vS().mark(function n(){return vS().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Q9(this,void 0,void 0,vS().mark(function l(){return vS().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(n){h.next=2;break}return h.abrupt("return");case 2:if(!this.chart){h.next=6;break}this.setOption(this.options,!0),h.next=11;break;case 6:return h.next=8,this.createChart();case 8:this.chart=h.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return h.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(ba(function(c){return new pn(function(h){return c.on(n,function(_){return l.ngZone.run(function(){return h.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(EJ),N(Be),N(lt))},e.\u0275dir=ge({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[vn]}),e}(),$ie=function(){var e=function(){function a(){F(this,a)}return j(a,null,[{key:"forRoot",value:function(n){return{ngModule:a,providers:[{provide:EJ,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:a}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[]]}),e}();function Jie(e,a){if(1&e&&(E(0,"div",21),E(1,"div",11),_e(2,"img",3),E(3,"div",12),X(4),A(),A(),E(5,"div",13),E(6,"a",15),E(7,"uds-translate"),X(8,"View service pools"),A(),A(),A(),A()),2&e){var t=$(2);H(2),z("src",t.api.staticURL("admin/img/icons/logs.png"),dn),H(2),Ve(" ",t.data.restrained," ")}}function eae(e,a){if(1&e){var t=De();E(0,"div"),E(1,"div",8),E(2,"div",9),E(3,"div",10),E(4,"div",11),_e(5,"img",3),E(6,"div",12),X(7),A(),A(),E(8,"div",13),E(9,"a",14),E(10,"uds-translate"),X(11,"View authenticators"),A(),A(),A(),A(),E(12,"div",10),E(13,"div",11),_e(14,"img",3),E(15,"div",12),X(16),A(),A(),E(17,"div",13),E(18,"a",15),E(19,"uds-translate"),X(20,"View service pools"),A(),A(),A(),A(),E(21,"div",10),E(22,"div",11),_e(23,"img",3),E(24,"div",12),X(25),A(),A(),E(26,"div",13),E(27,"a",15),E(28,"uds-translate"),X(29,"View service pools"),A(),A(),A(),A(),re(30,Jie,9,2,"div",16),A(),E(31,"div",17),E(32,"div",18),E(33,"div",19),E(34,"uds-translate"),X(35,"Assigned services chart"),A(),A(),E(36,"div",20),ee("chartInit",function(c){return ve(t),$().chartInit("assigned",c)}),A(),A(),E(37,"div",18),E(38,"div",19),E(39,"uds-translate"),X(40,"In use services chart"),A(),A(),E(41,"div",20),ee("chartInit",function(c){return ve(t),$().chartInit("inuse",c)}),A(),A(),A(),A(),A()}if(2&e){var n=$();H(5),z("src",n.api.staticURL("admin/img/icons/authenticators.png"),dn),H(2),Ve(" ",n.data.users," "),H(7),z("src",n.api.staticURL("admin/img/icons/pools.png"),dn),H(2),Ve(" ",n.data.pools," "),H(7),z("src",n.api.staticURL("admin/img/icons/services.png"),dn),H(2),Ve(" ",n.data.user_services," "),H(5),z("ngIf",n.data.restrained),H(6),z("options",n.assignedChartOpts),H(5),z("options",n.inuseChartOpts)}}function tae(e,a){1&e&&(E(0,"div",22),E(1,"div",23),E(2,"div",24),E(3,"uds-translate"),X(4,"UDS Administration"),A(),A(),E(5,"div",25),E(6,"p"),E(7,"uds-translate"),X(8,"You are accessing UDS Administration as staff member."),A(),A(),E(9,"p"),E(10,"uds-translate"),X(11,"This means that you have restricted access to elements."),A(),A(),E(12,"p"),E(13,"uds-translate"),X(14,"In order to increase your access privileges, please contact your local UDS administrator. "),A(),A(),_e(15,"br"),E(16,"p"),E(17,"uds-translate"),X(18,"Thank you."),A(),A(),A(),A(),A())}var nae=function(){function e(a,t){this.api=a,this.rest=t,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return e.prototype.onResize=function(a){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},e.prototype.ngOnInit=function(){var a=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){a.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(a.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var t=function(_){n.rest.system.stats(_).subscribe(function(C){var k={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:C.map(function(D){return wu("SHORT_DATE_FORMAT",new Date(D.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===_?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:C.map(function(D){return D.value})}]};"assigned"===_?a.assignedChartOpts=k:a.inuseChartOpts=k})},n=this,l=0,c=["assigned","inuse"];l enter",[ot({opacity:0,transform:"translateY(-5px)"}),tr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},mS=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e}),e}(),IJ=new Ee("MatHint"),$r=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["mat-label"]]}),e}(),Sae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["mat-placeholder"]]}),e}(),RJ=new Ee("MatPrefix"),LJ=new Ee("MatSuffix"),_S=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["","matSuffix",""]],features:[Xe([{provide:LJ,useExisting:e}])]}),e}(),FJ=0,Mae=mu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),VJ=new Ee("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yS=new Ee("MatFormField"),Dr=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,O){var L;return F(this,n),(L=t.call(this,l))._changeDetectorRef=c,L._dir=_,L._defaults=C,L._platform=k,L._ngZone=D,L._outlineGapCalculationNeededImmediately=!1,L._outlineGapCalculationNeededOnStable=!1,L._destroyed=new He,L._showAlwaysAnimate=!1,L._subscriptAnimationState="",L._hintLabel="",L._hintLabelId="mat-hint-".concat(FJ++),L._labelId="mat-form-field-label-".concat(FJ++),L.floatLabel=L._getDefaultFloatLabelState(),L._animationsEnabled="NoopAnimations"!==O,L.appearance=C&&C.appearance?C.appearance:"legacy",L._hideRequiredMarker=!(!C||null==C.hideRequiredMarker)&&C.hideRequiredMarker,L}return j(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var h=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&h!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=$e(c)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(h.controlType)),h.stateChanges.pipe(Zr(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe(Ft(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(Ft(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),bn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zr(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zr(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ft(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(c){var h=this._control?this._control.ngControl:null;return h&&h[c]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ns(this._label.nativeElement,"transitionend").pipe(Kn(1)).subscribe(function(){c._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,xt(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var h=this._hintChildren?this._hintChildren.find(function(C){return"start"===C.align}):null,_=this._hintChildren?this._hintChildren.find(function(C){return"end"===C.align}):null;h?c.push(h.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,xt(this._errorChildren.map(function(C){return C.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&c&&c.children.length&&c.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var h=0,_=0,C=this._connectionContainerRef.nativeElement,k=C.querySelectorAll(".mat-form-field-outline-start"),D=C.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var O=C.getBoundingClientRect();if(0===O.width&&0===O.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var L=this._getStartEnd(O),U=c.children,Y=this._getStartEnd(U[0].getBoundingClientRect()),Q=0,ie=0;ie0?.75*Q+10:0}for(var fe=0;fe void",qV("@transformPanel",[hg()],{optional:!0}))]),transformPanel:Ci("transformPanel",[Nn("void",ot({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Nn("showing",ot({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Nn("showing-multiple",ot({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Wn("void => *",tr("120ms cubic-bezier(0, 0, 0.2, 1)")),Wn("* => void",tr("100ms 25ms linear",ot({opacity:0})))])},HJ=0,UJ=new Ee("mat-select-scroll-strategy"),Vae=new Ee("MAT_SELECT_CONFIG"),Bae={provide:UJ,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Hae=function e(a,t){F(this,e),this.source=a,this.value=t},zae=_u(Tl(Us(hb(function(){return function e(a,t,n,l,c){F(this,e),this._elementRef=a,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c}}())))),GJ=new Ee("MatSelectTrigger"),Uae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["mat-select-trigger"]],features:[Xe([{provide:GJ,useExisting:e}])]}),e}(),Gae=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,O,L,U,Y,Q,ie,fe){var ae,be,we,Ue;return F(this,n),(ae=t.call(this,C,_,D,O,U))._viewportRuler=l,ae._changeDetectorRef=c,ae._ngZone=h,ae._dir=k,ae._parentFormField=L,ae._liveAnnouncer=ie,ae._defaultOptions=fe,ae._panelOpen=!1,ae._compareWith=function(Ze,Ct){return Ze===Ct},ae._uid="mat-select-".concat(HJ++),ae._triggerAriaLabelledBy=null,ae._destroy=new He,ae._onChange=function(){},ae._onTouched=function(){},ae._valueId="mat-select-value-".concat(HJ++),ae._panelDoneAnimatingStream=new He,ae._overlayPanelClass=(null===(be=ae._defaultOptions)||void 0===be?void 0:be.overlayPanelClass)||"",ae._focused=!1,ae.controlType="mat-select",ae._required=!1,ae._multiple=!1,ae._disableOptionCentering=null!==(Ue=null===(we=ae._defaultOptions)||void 0===we?void 0:we.disableOptionCentering)&&void 0!==Ue&&Ue,ae.ariaLabel="",ae.optionSelectionChanges=_y(function(){var Ze=ae.options;return Ze?Ze.changes.pipe(Zr(Ze),ba(function(){return bn.apply(void 0,xt(Ze.map(function(Ct){return Ct.onSelectionChange})))})):ae._ngZone.onStable.pipe(Kn(1),ba(function(){return ae.optionSelectionChanges}))}),ae.openedChange=new ye,ae._openedStream=ae.openedChange.pipe(jn(function(Ze){return Ze}),Ht(function(){})),ae._closedStream=ae.openedChange.pipe(jn(function(Ze){return!Ze}),Ht(function(){})),ae.selectionChange=new ye,ae.valueChange=new ye,ae.ngControl&&(ae.ngControl.valueAccessor=Rt(ae)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(ae._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),ae._scrollStrategyFactory=Q,ae._scrollStrategy=ae._scrollStrategyFactory(),ae.tabIndex=parseInt(Y)||0,ae.id=ae.id,ae}return j(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(c){this._required=$e(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=$e(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=$e(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Pi(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new Ny(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ry(),Ft(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ft(this._destroy)).subscribe(function(h){h.added.forEach(function(_){return _.select()}),h.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe(Zr(null),Ft(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby();if(c!==this._triggerAriaLabelledBy){var h=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?h.setAttribute("aria-labelledby",c):h.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(c){this.value=c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(h){return h.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var h=c.keyCode,_=40===h||38===h||37===h||39===h,C=13===h||32===h,k=this._keyManager;if(!k.isTyping()&&C&&!zi(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var D=this.selected;k.onKeydown(c);var O=this.selected;O&&D!==O&&this._liveAnnouncer.announce(O.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var h=this._keyManager,_=c.keyCode,C=40===_||38===_,k=h.isTyping();if(C&&c.altKey)c.preventDefault(),this.close();else if(k||13!==_&&32!==_||!h.activeItem||zi(c))if(!k&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var D=this.options.some(function(L){return!L.disabled&&!L.selected});this.options.forEach(function(L){L.disabled||(D?L.select():L.deselect())})}else{var O=h.activeItemIndex;h.onKeydown(c),this._multiple&&C&&c.shiftKey&&h.activeItem&&h.activeItemIndex!==O&&h.activeItem._selectViaInteraction()}else c.preventDefault(),h.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var c=this;this._overlayDir.positionChange.pipe(Kn(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var h=this;if(this._selectionModel.selected.forEach(function(C){return C.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(C){return h._selectValue(C)}),this._sortValues();else{var _=this._selectValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(c){var h=this,_=this.options.find(function(C){if(h._selectionModel.isSelected(C))return!1;try{return null!=C.value&&h._compareWith(C.value,c)}catch(k){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new MV(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ft(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(Ft(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,h=bn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ft(h)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),bn.apply(void 0,xt(this.options.map(function(_){return _._stateChanges}))).pipe(Ft(h)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,h){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),h&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),h&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var h=this.options.toArray();this._selectionModel.sort(function(_,C){return c.sortComparator?c.sortComparator(_,C,h):h.indexOf(_)-h.indexOf(C)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var h;h=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.valueChange.emit(h),this._onChange(h),this.selectionChange.emit(this._getChangeEvent(h)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(zae);return e.\u0275fac=function(t){return new(t||e)(N(Ca),N(Gt),N(lt),N(od),N(Be),N(xr,8),N(_c,8),N(fp,8),N(yS,8),N(yu,10),Er("tabindex"),N(UJ),N(qy),N(Vae,8))},e.\u0275dir=ge({type:e,viewQuery:function(t,n){var l;1&t&&(dt(xae,5),dt(Tae,5),dt(ep,5)),2&t&&(Le(l=Fe())&&(n.trigger=l.first),Le(l=Fe())&&(n.panel=l.first),Le(l=Fe())&&(n._overlayDir=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[xe,vn]}),e}(),$a=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return j(n,[{key:"_calculateOverlayScroll",value:function(c,h,_){var C=this._getItemHeight();return Math.min(Math.max(0,C*c-h+C/2),_)}},{key:"ngOnInit",value:function(){var c=this;Oe(Pe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ft(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Oe(Pe(n.prototype),"_canOpen",this).call(this)&&(Oe(Pe(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Kn(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var h=m(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===h?0:y((c+h)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Oe(Pe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new Hae(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var k,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),h=this._viewportRuler.getViewportSize(),_=this._isRtl(),C=this.multiple?56:32;if(this.multiple)k=40;else if(this.disableOptionCentering)k=16;else{var D=this._selectionModel.selected[0]||this.options.first;k=D&&D.group?32:16}_||(k*=-1);var O=0-(c.left+k-(_?C:0)),L=c.right+k-h.width+(_?0:C);O>0?k+=O+8:L>0&&(k-=L+8),this._overlayDir.offsetX=Math.round(k),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,h,_){var O,C=this._getItemHeight(),k=(C-this._triggerRect.height)/2,D=Math.floor(256/C);return this.disableOptionCentering?0:(O=0===this._scrollTop?c*C:this._scrollTop===_?(c-(this._getItemCount()-D))*C+(C-(this._getItemCount()*C-256)%C):h-C/2,Math.round(-1*O-k))}},{key:"_checkOverlayWithinViewport",value:function(c){var h=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),C=this._triggerRect.top-8,k=_.height-this._triggerRect.bottom-8,D=Math.abs(this._offsetY),L=Math.min(this._getItemCount()*h,256)-D-this._triggerRect.height;L>k?this._adjustPanelUp(L,k):D>C?this._adjustPanelDown(D,C,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,h){var _=Math.round(c-h);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,h,_){var C=Math.round(c-h);if(this._scrollTop+=C,this._offsetY+=C,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var D,c=this._getItemHeight(),h=this._getItemCount(),_=Math.min(h*c,256),k=h*c-_;D=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),D+=m(D,this.options,this.optionGroups);var O=_/2;this._scrollTop=this._calculateOverlayScroll(D,O,k),this._offsetY=this._calculateOverlayOffsetY(D,O,k),this._checkOverlayWithinViewport(k)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),h=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-h+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(Gae);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-select"]],contentQueries:function(t,n,l){var c;1&t&&(Wt(l,GJ,5),Wt(l,g,5),Wt(l,u,5)),2&t&&(Le(c=Fe())&&(n.customTrigger=c.first),Le(c=Fe())&&(n.options=c),Le(c=Fe())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,n){1&t&&ee("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&t&&(Ye("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),ct("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Xe([{provide:mS,useExisting:e},{provide:o,useExisting:e}]),xe],ngContentSelectors:Rae,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,n){if(1&t&&(rr(Iae),E(0,"div",0,1),ee("click",function(){return n.toggle()}),E(3,"div",2),re(4,Dae,2,1,"span",3),re(5,Pae,3,2,"span",4),A(),E(6,"div",5),_e(7,"div",6),A(),A(),re(8,Oae,4,14,"ng-template",7),ee("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&t){var l=Fn(1);Ye("aria-owns",n.panelOpen?n.id+"-panel":null),H(3),z("ngSwitch",n.empty),Ye("id",n._valueId),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1),H(3),z("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[mV,cu,Uf,ep,Tw,_l],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[BJ.transformPanelWrap,BJ.transformPanel]},changeDetection:0}),e}(),jJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[Bae],imports:[[Za,tp,b,Jt],fc,y5,b,Jt]}),e}(),jae={tooltipState:Ci("state",[Nn("initial, void, hidden",ot({opacity:0,transform:"scale(0)"})),Nn("visible",ot({transform:"scale(1)"})),Wn("* => visible",tr("200ms cubic-bezier(0, 0, 0.2, 1)",rd([ot({opacity:0,transform:"scale(0)",offset:0}),ot({opacity:.5,transform:"scale(0.99)",offset:.5}),ot({opacity:1,transform:"scale(1)",offset:1})]))),Wn("* => hidden",tr("100ms cubic-bezier(0, 0, 0.2, 1)",ot({opacity:0})))])},WJ="tooltip-panel",YJ=Kf({passive:!0}),qJ=new Ee("mat-tooltip-scroll-strategy"),Xae={provide:qJ,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},Zae=new Ee("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Qae=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,O,L,U){var Y=this;F(this,a),this._overlay=t,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=h,this._platform=_,this._ariaDescriber=C,this._focusMonitor=k,this._dir=O,this._defaultOptions=L,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He,this._handleKeydown=function(Q){Y._isTooltipVisible()&&27===Q.keyCode&&!zi(Q)&&(Q.preventDefault(),Q.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=D,this._document=U,L&&(L.position&&(this.position=L.position),L.touchGestures&&(this.touchGestures=L.touchGestures)),O.change.pipe(Ft(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),h.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return j(a,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=$e(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ft(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),n.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(l){var c=hr(l,2);n.removeEventListener(c[0],c[1],YJ)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach(),this._portal=this._portal||new vu(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=c.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ft(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var l=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),c=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(l);return c.positionChanges.pipe(Ft(this._destroyed)).subscribe(function(h){n._updateCurrentPositionClass(h.connectionPair),n._tooltipInstance&&h.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:c,panelClass:"".concat(this._cssClassPrefix,"-").concat(WJ),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ft(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Ft(this._destroyed)).subscribe(function(){var h;return null===(h=n._tooltipInstance)||void 0===h?void 0:h._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),h=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),h.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),h.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var h=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:h.x,originY:h.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var h=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:h.x,overlayY:h.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Kn(1),Ft(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var C=this._overlayRef;if(C){var k="".concat(this._cssClassPrefix,"-").concat(WJ,"-");C.removePanelClass(k+this._currentPosition),C.addPanelClass(k+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(){return n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var h=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",h],["touchcancel",h])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var h=hr(c,2);l._elementRef.nativeElement.addEventListener(h[0],h[1],YJ)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(bi),N(Be),N(Kh),N(qn),N(lt),N(cn),N(R1),N(wa),N(void 0),N(xr),N(void 0),N(et))},e.\u0275dir=ge({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),XJ=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,O,L,U,Y,Q){var ie;return F(this,n),(ie=t.call(this,l,c,h,_,C,k,D,O,L,U,Y,Q))._tooltipComponent=Jae,ie}return n}(Qae);return e.\u0275fac=function(t){return new(t||e)(N(bi),N(Be),N(Kh),N(qn),N(lt),N(cn),N(R1),N(wa),N(qJ),N(xr,8),N(Zae,8),N(et))},e.\u0275dir=ge({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[xe]}),e}(),$ae=function(){var e=function(){function a(t){F(this,a),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He}return j(a,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){l._visibility="visible",l._showTimeoutId=void 0,l._onShow(),l._markForCheck()},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._visibility="hidden",l._hideTimeoutId=void 0,l._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var l=n.toState;"hidden"===l&&!this.isVisible()&&this._onHide.next(),("visible"===l||"hidden"===l)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Gt))},e.\u0275dir=ge({type:e}),e}(),Jae=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._breakpointObserver=c,h._isHandset=h._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),h}return n}($ae);return e.\u0275fac=function(t){return new(t||e)(N(Gt),N(X9))},e.\u0275cmp=Se({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,n){2&t&&qr("zoom","visible"===n._visibility?1:null)},features:[xe],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,n){var l;1&t&&(E(0,"div",0),ee("@state.start",function(){return n._animationStart()})("@state.done",function(h){return n._animationDone(h)}),xf(1,"async"),X(2),A()),2&t&&(ct("mat-tooltip-handset",null==(l=Rv(1,5,n._isHandset))?null:l.matches),z("ngClass",n.tooltipClass)("@state",n._visibility),H(2),In(n.message))},directives:[_l],pipes:[_F],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[jae.tooltipState]},changeDetection:0}),e}(),ZJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[Xae],imports:[[fE,Za,tp,Jt],Jt,fc]}),e}();function eoe(e,a){if(1&e&&(E(0,"mat-option",19),X(1),A()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function toe(e,a){if(1&e){var t=De();E(0,"mat-form-field",16),E(1,"mat-select",17),ee("selectionChange",function(c){return ve(t),$(2)._changePageSize(c.value)}),re(2,eoe,2,2,"mat-option",18),A(),A()}if(2&e){var n=$(2);z("appearance",n._formFieldAppearance)("color",n.color),H(1),z("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),H(1),z("ngForOf",n._displayedPageSizeOptions)}}function noe(e,a){if(1&e&&(E(0,"div",20),X(1),A()),2&e){var t=$(2);H(1),In(t.pageSize)}}function roe(e,a){if(1&e&&(E(0,"div",12),E(1,"div",13),X(2),A(),re(3,toe,3,6,"mat-form-field",14),re(4,noe,2,1,"div",15),A()),2&e){var t=$();H(2),Ve(" ",t._intl.itemsPerPageLabel," "),H(1),z("ngIf",t._displayedPageSizeOptions.length>1),H(1),z("ngIf",t._displayedPageSizeOptions.length<=1)}}function ioe(e,a){if(1&e){var t=De();E(0,"button",21),ee("click",function(){return ve(t),$().firstPage()}),Ea(),E(1,"svg",7),_e(2,"path",22),A(),A()}if(2&e){var n=$();z("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),Ye("aria-label",n._intl.firstPageLabel)}}function aoe(e,a){if(1&e){var t=De();Ea(),Op(),E(0,"button",23),ee("click",function(){return ve(t),$().lastPage()}),Ea(),E(1,"svg",7),_e(2,"path",24),A(),A()}if(2&e){var n=$();z("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),Ye("aria-label",n._intl.lastPageLabel)}}var mb=function(){var e=function a(){F(this,a),this.changes=new He,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=t*n,h=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(h," of ").concat(l)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:function(){return new e},token:e,providedIn:"root"}),e}(),soe={provide:mb,deps:[[new Di,new uo,mb]],useFactory:function(e){return e||new mb}},uoe=new Ee("MAT_PAGINATOR_DEFAULT_OPTIONS"),coe=Us(UE(function(){return function e(){F(this,e)}}())),foe=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){var _;if(F(this,n),(_=t.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),h){var C=h.pageSize,k=h.pageSizeOptions,D=h.hidePageSize,O=h.showFirstLastButtons;null!=C&&(_._pageSize=C),null!=k&&(_._pageSizeOptions=k),null!=D&&(_._hidePageSize=D),null!=O&&(_._showFirstLastButtons=O)}return _}return j(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Pi(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Pi(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Pi(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(h){return Pi(h)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=$e(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=$e(c)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex++,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex--,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex=D.length&&(O=0),D[O]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(moe);return e.\u0275fac=function(t){return new(t||e)(N(goe,8))},e.\u0275dir=ge({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[xe,vn]}),e}(),xg=$B.ENTERING+" "+QB.STANDARD_CURVE,CS={indicator:Ci("indicator",[Nn("active-asc, asc",ot({transform:"translateY(0px)"})),Nn("active-desc, desc",ot({transform:"translateY(10px)"})),Wn("active-asc <=> active-desc",tr(xg))]),leftPointer:Ci("leftPointer",[Nn("active-asc, asc",ot({transform:"rotate(-45deg)"})),Nn("active-desc, desc",ot({transform:"rotate(45deg)"})),Wn("active-asc <=> active-desc",tr(xg))]),rightPointer:Ci("rightPointer",[Nn("active-asc, asc",ot({transform:"rotate(45deg)"})),Nn("active-desc, desc",ot({transform:"rotate(-45deg)"})),Wn("active-asc <=> active-desc",tr(xg))]),arrowOpacity:Ci("arrowOpacity",[Nn("desc-to-active, asc-to-active, active",ot({opacity:1})),Nn("desc-to-hint, asc-to-hint, hint",ot({opacity:.54})),Nn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ot({opacity:0})),Wn("* => asc, * => desc, * => active, * => hint, * => void",tr("0ms")),Wn("* <=> *",tr(xg))]),arrowPosition:Ci("arrowPosition",[Wn("* => desc-to-hint, * => desc-to-active",tr(xg,rd([ot({transform:"translateY(-25%)"}),ot({transform:"translateY(0)"})]))),Wn("* => hint-to-desc, * => active-to-desc",tr(xg,rd([ot({transform:"translateY(0)"}),ot({transform:"translateY(25%)"})]))),Wn("* => asc-to-hint, * => asc-to-active",tr(xg,rd([ot({transform:"translateY(25%)"}),ot({transform:"translateY(0)"})]))),Wn("* => hint-to-asc, * => active-to-asc",tr(xg,rd([ot({transform:"translateY(0)"}),ot({transform:"translateY(-25%)"})]))),Nn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ot({transform:"translateY(0)"})),Nn("hint-to-desc, active-to-desc, desc",ot({transform:"translateY(-25%)"})),Nn("hint-to-asc, active-to-asc, asc",ot({transform:"translateY(25%)"}))]),allowChildren:Ci("allowChildren",[Wn("* <=> *",[qV("@*",hg(),{optional:!0})])])},w5=function(){var e=function a(){F(this,a),this.changes=new He};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:function(){return new e},token:e,providedIn:"root"}),e}(),boe={provide:w5,deps:[[new Di,new uo,w5]],useFactory:function(e){return e||new w5}},Coe=Us(function(){return function e(){F(this,e)}}()),KJ=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._intl=l,D._changeDetectorRef=c,D._sort=h,D._columnDef=_,D._focusMonitor=C,D._elementRef=k,D._showIndicatorHint=!1,D._viewState={},D._arrowDirection="",D._disableViewStateAnimation=!1,D.arrowPosition="after",D._handleStateChanges(),D}return j(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=$e(c)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){var _=!!h;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var c=this._viewState.fromState;return(c?"".concat(c,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=bn(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(Coe);return e.\u0275fac=function(t){return new(t||e)(N(w5),N(Gt),N(eP,8),N("MAT_SORT_HEADER_COLUMN_DEF",8),N(wa),N(Be))},e.\u0275cmp=Se({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,n){1&t&&ee("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&t&&(Ye("aria-sort",n._getAriaSortAttribute()),ct("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[xe],attrs:hoe,ngContentSelectors:voe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,n){1&t&&(rr(),E(0,"div",0),E(1,"div",1),Xt(2),A(),re(3,poe,6,6,"div",2),A()),2&t&&(ct("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),Ye("tabindex",n._isDisabled()?null:0),H(3),z("ngIf",n._renderArrow()))},directives:[$t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[CS.indicator,CS.leftPointer,CS.rightPointer,CS.arrowOpacity,CS.arrowPosition,CS.allowChildren]},changeDetection:0}),e}(),woe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[boe],imports:[[Za,Jt]]}),e}(),Soe=[[["caption"]],[["colgroup"],["col"]]],koe=["caption","colgroup, col"];function eq(e){return function(a){oe(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;F(this,e),this._isNativeHtmlTable=a,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=h,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return j(e,[{key:"clearStickyPositioning",value:function(t,n){var _,l=this,c=[],h=rn(t);try{for(h.s();!(_=h.n()).done;){var C=_.value;if(C.nodeType===C.ELEMENT_NODE){c.push(C);for(var k=0;k3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(Y){return Y})||l.some(function(Y){return Y}))){var _=t[0],C=_.children.length,k=this._getCellWidths(_,h),D=this._getStickyStartColumnPositions(k,n),O=this._getStickyEndColumnPositions(k,l),L=n.lastIndexOf(!0),U=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var ae,Y="rtl"===c.direction,Q=Y?"right":"left",ie=Y?"left":"right",fe=rn(t);try{for(fe.s();!(ae=fe.n()).done;)for(var be=ae.value,we=0;we1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=t.children,h=0;h0;h--)n[h]&&(l[h]=c,c+=t[h]);return l}}]),e}(),uq=new Ee("CDK_SPL"),x5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(qn),N(Be))},e.\u0275dir=ge({type:e,selectors:[["","rowOutlet",""]]}),e}(),T5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(qn),N(Be))},e.\u0275dir=ge({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),D5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(qn),N(Be))},e.\u0275dir=ge({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),A5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N(qn),N(Be))},e.\u0275dir=ge({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),E5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,O,L){F(this,a),this._differs=t,this._changeDetectorRef=n,this._elementRef=l,this._dir=h,this._platform=C,this._viewRepeater=k,this._coalescedStyleScheduler=D,this._viewportRuler=O,this._stickyPositioningListener=L,this._onDestroy=new He,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ye,this.viewChange=new ya({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return j(a,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=$e(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=$e(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(Ft(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ug(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(h,_,C){return n._getEmbeddedViewArgs(h.item,C)},function(h){return h.item.data},function(h){1===h.operation&&h.context&&n._renderCellTemplateForItem(h.record.item.rowDef,h.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(h){c.get(h.currentIndex).context.$implicit=h.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var h=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,h,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var h=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,h,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,h),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),h=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(xt(l),xt(c),xt(h)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,C){n._addStickyColumnStyles([_],n._headerRowDefs[C])}),this._rowDefs.forEach(function(_){for(var C=[],k=0;k0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,h=Array.from(l.columns||[]).map(function(k){return c._columnDefsByName.get(k)}),_=h.map(function(k){return k.sticky}),C=h.map(function(k){return k.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,C,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,h,c);return this._renderCellTemplateForItem(l,h),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var h,c=rn(this._getCellTemplates(n));try{for(c.s();!(h=c.n()).done;)pp.mostRecentCellOutlet&&pp.mostRecentCellOutlet._viewContainer.createEmbeddedView(h.value,l)}catch(C){c.e(C)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return F(this,t),(n=a.call(this))._renderData=new ya([]),n._filter=new ya(""),n._internalPageChanges=new He,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,h){var _=c[h];if(A3(_)){var C=Number(_);return CL?Q=1:O0)){var _=Math.ceil(h.length/h.pageSize)-1||0,C=Math.min(h.pageIndex,_);C!==h.pageIndex&&(h.pageIndex=C,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),t}(G3));function Qoe(e){return e instanceof Date&&!isNaN(+e)}function N5(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uh,t=Qoe(e),n=t?+e-a.now():Math.abs(e);return function(l){return l.lift(new $oe(n,a))}}var $oe=function(){function e(a,t){F(this,e),this.delay=a,this.scheduler=t}return j(e,[{key:"call",value:function(t,n){return n.subscribe(new Joe(t,this.delay,this.scheduler))}}]),e}(),Joe=function(e){oe(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).delay=l,h.scheduler=c,h.queue=[],h.active=!1,h.errored=!1,h}return j(t,[{key:"_schedule",value:function(l){this.active=!0,this.destination.add(l.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:l}))}},{key:"scheduleNotification",value:function(l){if(!0!==this.errored){var c=this.scheduler,h=new ese(c.now()+this.delay,l);this.queue.push(h),!1===this.active&&this._schedule(c)}}},{key:"_next",value:function(l){this.scheduleNotification(Gh.createNext(l))}},{key:"_error",value:function(l){this.errored=!0,this.queue=[],this.destination.error(l),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Gh.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(l){for(var c=l.source,h=c.queue,_=l.scheduler,C=l.destination;h.length>0&&h[0].time-_.now()<=0;)h.shift().notification.observe(C);if(h.length>0){var k=Math.max(0,h[0].time-_.now());this.schedule(l,k)}else this.unsubscribe(),c.active=!1}}]),t}(Pn),ese=function e(a,t){F(this,e),this.time=a,this.notification=t},ree=Kf({passive:!0}),iee=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return j(a,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return mr;var c=cc(n),h=this._monitoredElements.get(c);if(h)return h.subject;var _=new He,C="cdk-text-field-autofilled",k=function(O){"cdk-text-field-autofill-start"!==O.animationName||c.classList.contains(C)?"cdk-text-field-autofill-end"===O.animationName&&c.classList.contains(C)&&(c.classList.remove(C),l._ngZone.run(function(){return _.next({target:O.target,isAutofilled:!1})})):(c.classList.add(C),l._ngZone.run(function(){return _.next({target:O.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",k,ree),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",k,ree)}}),_}},{key:"stopMonitoring",value:function(n){var l=cc(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(cn),ce(lt))},e.\u0275prov=Ge({factory:function(){return new e(ce(cn),ce(lt))},token:e,providedIn:"root"}),e}(),aee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[og]]}),e}(),oee=new Ee("MAT_INPUT_VALUE_ACCESSOR"),nse=["button","checkbox","file","hidden","image","radio","range","reset","submit"],rse=0,ise=hb(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),ta=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,O,L,U){var Y;F(this,n),(Y=t.call(this,k,_,C,h))._elementRef=l,Y._platform=c,Y._autofillMonitor=O,Y._formField=U,Y._uid="mat-input-".concat(rse++),Y.focused=!1,Y.stateChanges=new He,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return sg().has(fe)});var Q=Y._elementRef.nativeElement,ie=Q.nodeName.toLowerCase();return Y._inputValueAccessor=D||Q,Y._previousNativeValue=Y.value,Y.id=Y.id,c.IOS&&L.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",function(fe){var ae=fe.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ie,Y._isTextarea="textarea"===ie,Y._isInFormField=!!U,Y._isNativeSelect&&(Y.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return j(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=$e(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=$e(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&sg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=$e(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(h){c.autofilled=h.isAutofilled,c.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,h,_=(null===(h=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===h?void 0:h.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var C=this._elementRef.nativeElement;this._previousPlaceholder=_,_?C.setAttribute("placeholder",_):C.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){nse.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,h=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&h&&h.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(ise);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(cn),N(yu,10),N(_c,8),N(fp,8),N(od),N(oee,10),N(iee),N(lt),N(yS,8))},e.\u0275dir=ge({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,n){1&t&&ee("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(qi("disabled",n.disabled)("required",n.required),Ye("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),ct("mat-input-server",n._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Xe([{provide:mS,useExisting:e}]),xe,vn]}),e}(),ase=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[od],imports:[[aee,y5,Jt],aee,y5]}),e}(),ose=["searchSelectInput"],sse=["innerSelectSearch"];function lse(e,a){if(1&e){var t=De();E(0,"button",6),ee("click",function(){return ve(t),$()._reset(!0)}),E(1,"i",7),X(2,"close"),A(),A()}}var use=function(e){return{"mat-select-search-inner-multiple":e}},wc=function(){function e(a,t){this.matSelect=a,this.changeDetectorRef=t,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new He}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var a=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matSelect.openedChange.pipe(N5(1),Ft(this._onDestroy)).subscribe(function(n){n?(a.getWidth(),a.disableInitialFocus||a._focus()):a.clearSearchInput&&a._reset()}),this.matSelect.openedChange.pipe(Kn(1)).pipe(Ft(this._onDestroy)).subscribe(function(){a._options=a.matSelect.options,a._options.changes.pipe(Ft(a._onDestroy)).subscribe(function(){var n=a.matSelect._keyManager;n&&a.matSelect.panelOpen&&setTimeout(function(){n.setFirstItemActive(),a.getWidth()},1)})}),this.change.pipe(Ft(this._onDestroy)).subscribe(function(){a.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){a.setOverlayClass()}),this.matSelect.openedChange.pipe(Kn(1),Ft(this._onDestroy)).subscribe(function(){a.matSelect.options.changes.pipe(Ft(a._onDestroy)).subscribe(function(){a.changeDetectorRef.markForCheck()})})},e.prototype._handleKeydown=function(a){(a.key&&1===a.key.length||a.keyCode>=65&&a.keyCode<=90||a.keyCode>=48&&a.keyCode<=57||32===a.keyCode)&&a.stopPropagation()},e.prototype.writeValue=function(a){a!==this._value&&(this._value=a,this.change.emit(a))},e.prototype.onInputChange=function(a){a.value!==this._value&&(this.initMultiSelectedValues(),this._value=a.value,this.changed.emit(a.value),this.change.emit(a.value))},e.prototype.onBlur=function(a){this.writeValue(a.value)},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var a=this.matSelect.panel.nativeElement,t=a.scrollTop;this.searchSelectInput.nativeElement.focus(),a.scrollTop=t}},e.prototype._reset=function(a){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),a&&this._focus())},e.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(a){return a.selected}).map(function(a){return a.value}))},e.prototype.setOverlayClass=function(){var a=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Ft(this._onDestroy)).subscribe(function(n){if(n){for(var l=a.searchSelectInput.nativeElement,c=void 0;l=l.parentElement;)if(l.classList.contains("cdk-overlay-pane")){c=l;break}c&&c.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},e.prototype.initMultipleHandling=function(){var a=this;this.matSelect.valueChange.pipe(Ft(this._onDestroy)).subscribe(function(t){if(a.matSelect.multiple){var n=!1;if(a._value&&a._value.length&&a.previousSelectedValues&&Array.isArray(a.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var l=a.matSelect.options.map(function(c){return c.value});a.previousSelectedValues.forEach(function(c){-1===t.indexOf(c)&&-1===l.indexOf(c)&&(t.push(c),n=!0)})}n&&a.matSelect._onChange(t),a.previousSelectedValues=t}})},e.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,a=this.innerSelectSearch.nativeElement;a=a.parentElement;)if(a.classList.contains("mat-select-panel")){t=a;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},e.\u0275fac=function(t){return new(t||e)(N($a),N(Gt))},e.\u0275cmp=Se({type:e,selectors:[["uds-mat-select-search"]],viewQuery:function(t,n){if(1&t&&(dt(ose,7,Be),dt(sse,7,Be)),2&t){var l=void 0;Le(l=Fe())&&(n.searchSelectInput=l.first),Le(l=Fe())&&(n.innerSelectSearch=l.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Xe([{provide:Sa,useExisting:Cn(function(){return e}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(_e(0,"input",0),E(1,"div",1,2),E(3,"input",3,4),ee("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),A(),re(5,lse,3,0,"button",5),A()),2&t&&(H(1),z("ngClass",Go(3,use,n.matSelect.multiple)),H(2),z("placeholder",n.placeholderLabel),H(2),z("ngIf",n.value))},directives:[ta,_l,$t,kt],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),e}();function cse(e,a){1&e&&(E(0,"uds-translate"),X(1,"New user permission for"),A())}function fse(e,a){1&e&&(E(0,"uds-translate"),X(1,"New group permission for"),A())}function dse(e,a){if(1&e&&(E(0,"mat-option",11),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),In(t.text)}}function hse(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",12),ee("changed",function(l){return ve(t),$().filterUser=l}),A()}}function pse(e,a){if(1&e&&(E(0,"mat-option",11),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),In(t.text)}}function vse(e,a){if(1&e&&(E(0,"mat-option",11),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),In(t.text)}}var gse=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new ye(!0)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"50%";return a.gui.dialog.open(e,{width:l,data:{type:t,item:n},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){t.forEach(function(n){a.authenticators.push({id:n.id,text:n.name})})})},e.prototype.changeAuth=function(a){var t=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(a,this.data.type+"s").summary().subscribe(function(n){n.forEach(function(l){t.entities.push({id:l.id,text:l.name})})})},e.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},e.prototype.filteredEntities=function(){var a=this,t=new Array;return this.entities.forEach(function(n){(!a.filterUser||n.text.toLocaleLowerCase().includes(a.filterUser.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.getFieldLabel=function(a){return"user"===a?django.gettext("User"):"group"===a?django.gettext("Group"):"auth"===a?django.gettext("Authenticator"):django.gettext("Permission")},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){if(1&t&&(E(0,"h4",0),re(1,cse,2,0,"uds-translate",1),_e(2,"b",2),re(3,fse,2,0,"ng-template",null,3,Ds),A(),E(5,"mat-dialog-content"),E(6,"div",4),E(7,"mat-form-field"),E(8,"mat-select",5),ee("valueChange",function(h){return n.changeAuth(h)})("ngModelChange",function(h){return n.authenticator=h}),re(9,dse,2,2,"mat-option",6),A(),A(),E(10,"mat-form-field"),E(11,"mat-select",7),ee("ngModelChange",function(h){return n.entity=h}),re(12,hse,1,0,"uds-mat-select-search",8),re(13,pse,2,2,"mat-option",6),A(),A(),E(14,"mat-form-field"),E(15,"mat-select",7),ee("ngModelChange",function(h){return n.permission=h}),re(16,vse,2,2,"mat-option",6),A(),A(),A(),A(),E(17,"mat-dialog-actions"),E(18,"button",9),E(19,"uds-translate"),X(20,"Cancel"),A(),A(),E(21,"button",10),ee("click",function(){return n.save()}),E(22,"uds-translate"),X(23,"Ok"),A(),A(),A()),2&t){var l=Fn(4);H(1),z("ngIf","user"===n.data.type)("ngIfElse",l),H(1),z("innerHTML",n.data.item.name,Pr),H(6),z("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(2),z("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),H(1),z("ngIf",n.entities.length>10),H(1),z("ngForOf",n.filteredEntities()),H(2),z("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),H(1),z("ngForOf",n.permissions)}},directives:[pe,$t,me,Dr,$a,Fr,Tr,fr,Ce,kt,de,Pt,g,wc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function mse(e,a){if(1&e){var t=De();E(0,"div",11),E(1,"div",12),X(2),A(),E(3,"div",13),X(4),E(5,"a",14),ee("click",function(){var h=ve(t).$implicit;return $(2).revokePermission(h)}),E(6,"i",15),X(7,"close"),A(),A(),A(),A()}if(2&e){var n=a.$implicit;H(2),th(" ",n.entity_name,"@",n.auth_name," "),H(2),Ve(" ",n.perm_name," \xa0")}}function _se(e,a){if(1&e){var t=De();E(0,"div",7),E(1,"div",8),E(2,"div",9),ee("click",function(c){var _=ve(t).$implicit;return $().newPermission(_),c.preventDefault()}),E(3,"uds-translate"),X(4,"New permission..."),A(),A(),re(5,mse,8,3,"div",10),A(),A()}if(2&e){var n=a.$implicit;H(5),z("ngForOf",n)}}var yse=function(e,a){return[e,a]},bse=function(){function e(a,t,n){this.api=a,this.dialogRef=t,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return e.launch=function(a,t,n){var l=window.innerWidth<800?"90%":"60%";a.gui.dialog.open(e,{width:l,data:{rest:t,item:n},disableClose:!1})},e.prototype.ngOnInit=function(){this.reload()},e.prototype.reload=function(){var a=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(t){a.updatePermissions(t)})},e.prototype.updatePermissions=function(a){var t=this;this.userPermissions.length=0,this.groupPermissions.length=0,a.forEach(function(n){"user"===n.type?t.userPermissions.push(n):t.groupPermissions.push(n)})},e.prototype.revokePermission=function(a){var t=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+a.entity_name+"@"+a.auth_name+" "+a.perm_name+"").subscribe(function(n){n&&t.data.rest.revokePermission([a.id]).subscribe(function(l){t.reload()})})},e.prototype.newPermission=function(a){var t=this,n=a===this.userPermissions?"user":"group";gse.launch(this.api,n,this.data.item).subscribe(function(l){t.data.rest.addPermission(t.data.item.id,n+"s",l.entity,l.permissision).subscribe(function(c){t.reload()})})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Permissions for"),A(),X(3,"\xa0"),_e(4,"b",1),A(),E(5,"mat-dialog-content"),E(6,"div",2),E(7,"uds-translate",3),X(8,"Users"),A(),E(9,"uds-translate",3),X(10,"Groups"),A(),A(),E(11,"div",4),re(12,_se,6,1,"div",5),A(),A(),E(13,"mat-dialog-actions"),E(14,"button",6),E(15,"uds-translate"),X(16,"Ok"),A(),A(),A()),2&t&&(H(4),z("innerHTML",n.data.item.name,Pr),H(8),z("ngForOf",C_(2,yse,n.userPermissions,n.groupPermissions)))},directives:[pe,Pt,me,fr,Ce,kt,de],styles:['.titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),vq=Mt(99595),uee=function(e){return void 0!==e.changingThisBreaksApplicationSecurity&&(e=e.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(e=""+e).replace('"','""')+'"'},cee=function(e){var a="";e.columns.forEach(function(n){a+=uee(n.title)+","}),a=a.slice(0,-1)+"\r\n",e.dataSource.data.forEach(function(n){e.columns.forEach(function(l){var c=n[l.name];switch(l.type){case ka.DATE:c=wu("SHORT_DATE_FORMAT",c);break;case ka.DATETIME:c=wu("SHORT_DATETIME_FORMAT",c);break;case ka.DATETIMESEC:c=wu("SHORT_DATE_FORMAT",c," H:i:s");break;case ka.TIME:c=wu("TIME_FORMAT",c)}a+=uee(c)+","}),a=a.slice(0,-1)+"\r\n"});var t=new Blob([a],{type:"text/csv"});setTimeout(function(){(0,vq.saveAs)(t,e.title+".csv")},100)},wse=function(){function e(a,t){F(this,e),this._document=t;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=a,this._document.body.appendChild(n)}return j(e,[{key:"copy",value:function(){var t=this._textarea,n=!1;try{if(t){var l=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),e}(),fee=function(){var e=function(){function a(t){F(this,a),this._document=t}return j(a,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new wse(n,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(et))},e.\u0275prov=Ge({factory:function(){return new e(ce(et))},token:e,providedIn:"root"}),e}(),Mse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}();function xse(e,a){if(1&e&&(Ea(),_e(0,"circle",3)),2&e){var t=$();qr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ye("r",t._getCircleRadius())}}function Tse(e,a){if(1&e&&(Ea(),_e(0,"circle",3)),2&e){var t=$();qr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ye("r",t._getCircleRadius())}}var Pse=mu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),hee=new Ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),pee=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C){var k;F(this,n),(k=t.call(this,l))._document=h,k._diameter=100,k._value=0,k._fallbackAnimation=!1,k.mode="determinate";var D=n._diameters;return k._spinnerAnimationLabel=k._getSpinnerAnimationLabel(),D.has(h.head)||D.set(h.head,new Set([100])),k._fallbackAnimation=c.EDGE||c.TRIDENT,k._noopAnimations="NoopAnimations"===_&&!!C&&!C._forceAnimations,C&&(C.diameter&&(k.diameter=C.diameter),C.strokeWidth&&(k.strokeWidth=C.strokeWidth)),k}return j(n,[{key:"diameter",get:function(){return this._diameter},set:function(c){this._diameter=Pi(c),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(c){this._strokeWidth=Pi(c)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(c){this._value=Math.max(0,Math.min(100,Pi(c)))}},{key:"ngOnInit",value:function(){var c=this._elementRef.nativeElement;this._styleRoot=eW(c)||this._document.head,this._attachStyleNode();var h="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");c.classList.add(h)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var c=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(c," ").concat(c)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var c=this._styleRoot,h=this._diameter,_=n._diameters,C=_.get(c);if(!C||!C.has(h)){var k=this._document.createElement("style");k.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),k.textContent=this._getAnimationText(),c.appendChild(k),C||(C=new Set,_.set(c,C)),C.add(h)}}},{key:"_getAnimationText",value:function(){var c=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*c)).replace(/END_VALUE/g,"".concat(.2*c)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(Pse);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(cn),N(et,8),N(Rr,8),N(hee))},e.\u0275cmp=Se({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,n){2&t&&(Ye("aria-valuemin","determinate"===n.mode?0:null)("aria-valuemax","determinate"===n.mode?100:null)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),qr("width",n.diameter,"px")("height",n.diameter,"px"),ct("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[xe],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,n){1&t&&(Ea(),E(0,"svg",0),re(1,xse,1,9,"circle",1),re(2,Tse,1,7,"circle",2),A()),2&t&&(qr("width",n.diameter,"px")("height",n.diameter,"px"),z("ngSwitch","indeterminate"===n.mode),Ye("viewBox",n._getViewBox()),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1))},directives:[cu,Uf],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),Rse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Jt,Za],Jt]}),e}(),Lse=["mat-menu-item",""];function Fse(e,a){1&e&&(Ea(),E(0,"svg",2),_e(1,"polygon",3),A())}var vee=["*"];function Nse(e,a){if(1&e){var t=De();E(0,"div",0),ee("keydown",function(c){return ve(t),$()._handleKeydown(c)})("click",function(){return ve(t),$().closed.emit("click")})("@transformMenu.start",function(c){return ve(t),$()._onAnimationStart(c)})("@transformMenu.done",function(c){return ve(t),$()._onAnimationDone(c)}),E(1,"div",1),Xt(2),A(),A()}if(2&e){var n=$();z("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),Ye("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var V5={transformMenu:Ci("transformMenu",[Nn("void",ot({opacity:0,transform:"scale(0.8)"})),Wn("void => enter",tr("120ms cubic-bezier(0, 0, 0.2, 1)",ot({opacity:1,transform:"scale(1)"}))),Wn("* => void",tr("100ms 25ms linear",ot({opacity:0})))]),fadeInItems:Ci("fadeInItems",[Nn("showing",ot({opacity:1})),Wn("void => *",[ot({opacity:0}),tr("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},gee=new Ee("MatMenuContent"),Vse=function(){var e=function(){function a(t,n,l,c,h,_,C){F(this,a),this._template=t,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=h,this._document=_,this._changeDetectorRef=C,this._attached=new He}return j(a,[{key:"attach",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Bs(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new q3(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var l=this._template.elementRef.nativeElement;l.parentNode.insertBefore(this._outlet.outletElement,l),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Dn),N(dl),N(Rf),N(jt),N(qn),N(et),N(Gt))},e.\u0275dir=ge({type:e,selectors:[["ng-template","matMenuContent",""]],features:[Xe([{provide:gee,useExisting:e}])]}),e}(),mq=new Ee("MAT_MENU_PANEL"),Bse=_u(Us(function(){return function e(){F(this,e)}}())),rP=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._elementRef=l,k._focusMonitor=h,k._parentMenu=_,k._changeDetectorRef=C,k.role="menuitem",k._hovered=new He,k._focused=new He,k._highlighted=!1,k._triggersSubmenu=!1,_&&_.addItem&&_.addItem(Rt(k)),k}return j(n,[{key:"focus",value:function(c,h){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,h,_=this._elementRef.nativeElement.cloneNode(!0),C=_.querySelectorAll("mat-icon, .material-icons"),k=0;k0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Kn(1)).subscribe(function(){return n._focusFirstItem(l)}):this._focusFirstItem(l)}},{key:"_focusFirstItem",value:function(n){var l=this._keyManager;if(l.setFocusOrigin(n).setFirstItemActive(),!l.activeItem&&this._directDescendantItems.length)for(var c=this._directDescendantItems.first._getHostElement().parentElement;c;){if("menu"===c.getAttribute("role")){c.focus();break}c=c.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),h="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(C){return C.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[h]=!0,this._previousElevation=h)}},{key:"setPositionClasses",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,c=this._classList;c["mat-menu-before"]="before"===n,c["mat-menu-after"]="after"===n,c["mat-menu-above"]="above"===l,c["mat-menu-below"]="below"===l}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe(Zr(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(lt),N(mee))},e.\u0275dir=ge({type:e,contentQueries:function(t,n,l){var c;1&t&&(Wt(l,gee,5),Wt(l,rP,5),Wt(l,rP,4)),2&t&&(Le(c=Fe())&&(n.lazyContent=c.first),Le(c=Fe())&&(n._allItems=c),Le(c=Fe())&&(n.items=c))},viewQuery:function(t,n){var l;1&t&&dt(Dn,5),2&t&&Le(l=Fe())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),_ee=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l,c,h))._elevationPrefix="mat-elevation-z",_._baseElevation=4,_}return n}(iP);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(lt),N(mee))},e.\u0275cmp=Se({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,n){2&t&&Ye("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Xe([{provide:mq,useExisting:e}]),xe],ngContentSelectors:vee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,n){1&t&&(rr(),re(0,Nse,3,6,"ng-template"))},directives:[_l],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[V5.transformMenu,V5.fadeInItems]},changeDetection:0}),e}(),yee=new Ee("mat-menu-scroll-strategy"),bee={provide:yee,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},wee=Kf({passive:!0}),See=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this._overlay=t,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=C,this._focusMonitor=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=We.EMPTY,this._hoverSubscription=We.EMPTY,this._menuCloseSubscription=We.EMPTY,this._handleTouchStart=function(O){sE(O)||(D._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=h instanceof iP?h:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,wee),_&&(_._triggersSubmenu=this.triggersSubmenu())}return j(a,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,wee),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig();this._setPosition(c.positionStrategy),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof iP&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof iP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(jn(function(h){return"void"===h.toState}),Kn(1),Ft(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new mo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){l.menu.setPositionClasses("start"===c.connectionPair.overlayX?"after":"before","top"===c.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(n){var c=hr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),h=c[0],_=c[1],k=hr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),D=k[0],O=k[1],L=D,U=O,Y=h,Q=_,ie=0;this.triggersSubmenu()?(Q=h="before"===this.menu.xPosition?"start":"end",_=Y="end"===h?"start":"end",ie="bottom"===D?8:-8):this.menu.overlapTrigger||(L="top"===D?"bottom":"top",U="top"===O?"bottom":"top"),n.withPositions([{originX:h,originY:L,overlayX:Y,overlayY:D,offsetY:ie},{originX:_,originY:L,overlayX:Q,overlayY:D,offsetY:ie},{originX:h,originY:U,overlayX:Y,overlayY:O,offsetY:-ie},{originX:_,originY:U,overlayX:Q,overlayY:O,offsetY:-ie}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return bn(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:rt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(jn(function(C){return C!==n._menuItemInstance}),jn(function(){return n._menuOpen})):rt(),c)}},{key:"_handleMousedown",value:function(n){FV(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(jn(function(l){return l===n._menuItemInstance&&!l.disabled}),N5(0,EA)).subscribe(function(){n._openedBy="mouse",n.menu instanceof iP&&n.menu._isAnimating?n.menu._animationDone.pipe(Kn(1),N5(0,EA),Ft(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Bs(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(bi),N(Be),N(qn),N(yee),N(mq,8),N(rP,10),N(xr,8),N(wa))},e.\u0275dir=ge({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,n){1&t&&ee("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(c){return n._handleClick(c)}),2&t&&Ye("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),kee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[bee],imports:[Jt]}),e}(),Gse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[bee],imports:[[Za,Jt,up,tp,kee],fc,Jt,kee]}),e}(),jse=function(){var e=function(){function a(){F(this,a),this._vertical=!1,this._inset=!1}return j(a,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=$e(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=$e(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){2&t&&(Ye("aria-orientation",n.vertical?"vertical":"horizontal"),ct("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),Wse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Jt],Jt]}),e}(),Yse=function(){function e(){}return e.prototype.transform=function(a,t){return a.sort(void 0===t?function(l,c){return l>c?1:-1}:function(l,c){return l[t]>c[t]?1:-1})},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=oa({name:"sort",type:e,pure:!0}),e}(),qse=["trigger"];function Xse(e,a){1&e&&_e(0,"img",36),2&e&&z("src",$().icon,dn)}function Zse(e,a){if(1&e){var t=De();E(0,"button",46),ee("click",function(){var _=ve(t).$implicit,C=$(5);return C.newAction.emit({param:_,table:C})}),A()}if(2&e){var n=a.$implicit,l=$(5);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Pr)}}function Kse(e,a){if(1&e&&(On(0),E(1,"button",42),X(2),A(),E(3,"mat-menu",43,44),re(5,Zse,1,1,"button",45),xf(6,"sort"),A(),Tn()),2&e){var t=a.$implicit,n=Fn(4);H(1),z("matMenuTriggerFor",n),H(1),In(t.key),H(1),z("overlapTrigger",!1),H(2),z("ngForOf",oT(6,4,t.value,"name"))}}function Qse(e,a){if(1&e&&(On(0),E(1,"mat-menu",37,38),re(3,Kse,7,7,"ng-container",39),xf(4,"keyvalue"),A(),E(5,"a",40),E(6,"i",17),X(7,"insert_drive_file"),A(),E(8,"span",41),E(9,"uds-translate"),X(10,"New"),A(),A(),E(11,"i",17),X(12,"arrow_drop_down"),A(),A(),Tn()),2&e){var t=Fn(2),n=$(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",Rv(4,3,n.grpTypes)),H(2),z("matMenuTriggerFor",t)}}function $se(e,a){if(1&e){var t=De();E(0,"button",46),ee("click",function(){var _=ve(t).$implicit,C=$(4);return C.newAction.emit({param:_,table:C})}),A()}if(2&e){var n=a.$implicit,l=$(4);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Pr)}}function Jse(e,a){if(1&e&&(On(0),E(1,"mat-menu",37,38),re(3,$se,1,1,"button",45),xf(4,"sort"),A(),E(5,"a",40),E(6,"i",17),X(7,"insert_drive_file"),A(),E(8,"span",41),E(9,"uds-translate"),X(10,"New"),A(),A(),E(11,"i",17),X(12,"arrow_drop_down"),A(),A(),Tn()),2&e){var t=Fn(2),n=$(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",oT(4,3,n.oTypes,"name")),H(2),z("matMenuTriggerFor",t)}}function ele(e,a){if(1&e&&(On(0),re(1,Qse,13,5,"ng-container",8),re(2,Jse,13,6,"ng-container",8),Tn()),2&e){var t=$(2);H(1),z("ngIf",t.newGrouped),H(1),z("ngIf",!t.newGrouped)}}function tle(e,a){if(1&e){var t=De();On(0),E(1,"a",47),ee("click",function(){ve(t);var l=$(2);return l.newAction.emit({param:void 0,table:l})}),E(2,"i",17),X(3,"insert_drive_file"),A(),E(4,"span",41),E(5,"uds-translate"),X(6,"New"),A(),A(),A(),Tn()}}function nle(e,a){if(1&e&&(On(0),re(1,ele,3,2,"ng-container",8),re(2,tle,7,0,"ng-container",8),Tn()),2&e){var t=$();H(1),z("ngIf",void 0!==t.oTypes&&0!==t.oTypes.length),H(1),z("ngIf",void 0!==t.oTypes&&0===t.oTypes.length)}}function rle(e,a){if(1&e){var t=De();On(0),E(1,"a",48),ee("click",function(){ve(t);var c=$();return c.emitIfSelection(c.editAction)}),E(2,"i",17),X(3,"edit"),A(),E(4,"span",41),E(5,"uds-translate"),X(6,"Edit"),A(),A(),A(),Tn()}if(2&e){var n=$();H(1),z("disabled",1!==n.selection.selected.length)}}function ile(e,a){if(1&e){var t=De();On(0),E(1,"a",48),ee("click",function(){return ve(t),$().permissions()}),E(2,"i",17),X(3,"perm_identity"),A(),E(4,"span",41),E(5,"uds-translate"),X(6,"Permissions"),A(),A(),A(),Tn()}if(2&e){var n=$();H(1),z("disabled",1!==n.selection.selected.length)}}function ale(e,a){if(1&e){var t=De();E(0,"a",50),ee("click",function(){var _=ve(t).$implicit;return $(2).emitCustom(_)}),A()}if(2&e){var n=a.$implicit;z("disabled",$(2).isCustomDisabled(n))("innerHTML",n.html,Pr)}}function ole(e,a){if(1&e&&(On(0),re(1,ale,1,2,"a",49),Tn()),2&e){var t=$();H(1),z("ngForOf",t.getcustomButtons())}}function sle(e,a){if(1&e){var t=De();On(0),E(1,"a",51),ee("click",function(){return ve(t),$().export()}),E(2,"i",17),X(3,"import_export"),A(),E(4,"span",41),E(5,"uds-translate"),X(6,"Export"),A(),A(),A(),Tn()}}function lle(e,a){if(1&e){var t=De();On(0),E(1,"a",52),ee("click",function(){ve(t);var c=$();return c.emitIfSelection(c.deleteAction,!0)}),E(2,"i",17),X(3,"delete_forever"),A(),E(4,"span",41),E(5,"uds-translate"),X(6,"Delete"),A(),A(),A(),Tn()}if(2&e){var n=$();H(1),z("disabled",n.selection.isEmpty())}}function ule(e,a){if(1&e){var t=De();E(0,"button",53),ee("click",function(){ve(t);var l=$();return l.filterText="",l.applyFilter()}),E(1,"i",17),X(2,"close"),A(),A()}}function cle(e,a){1&e&&_e(0,"mat-header-cell")}function fle(e,a){1&e&&(E(0,"i",17),X(1,"check_box"),A())}function dle(e,a){1&e&&(E(0,"i",17),X(1,"check_box_outline_blank"),A())}function hle(e,a){if(1&e){var t=De();E(0,"mat-cell",56),ee("click",function(_){var k=ve(t).$implicit;return $(2).clickRow(k,_)}),re(1,fle,2,0,"i",57),re(2,dle,2,0,"ng-template",null,58,Ds),A()}if(2&e){var n=a.$implicit,l=Fn(3),c=$(2);H(1),z("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function ple(e,a){1&e&&(On(0,54),re(1,cle,1,0,"mat-header-cell",22),re(2,hle,4,2,"mat-cell",55),Tn())}function vle(e,a){1&e&&_e(0,"mat-header-cell")}function gle(e,a){if(1&e){var t=De();E(0,"mat-cell"),E(1,"div",59),ee("click",function(l){var h=ve(t).$implicit,_=$();return _.detailAction.emit({param:h,table:_}),l.stopPropagation()}),E(2,"i",17),X(3,"subdirectory_arrow_right"),A(),A(),A()}}function mle(e,a){if(1&e&&(E(0,"mat-header-cell",63),X(1),A()),2&e){var t=$().$implicit;H(1),In(t.title)}}function _le(e,a){if(1&e){var t=De();E(0,"mat-cell",64),ee("click",function(_){var k=ve(t).$implicit;return $(2).clickRow(k,_)})("contextmenu",function(_){var k=ve(t).$implicit,D=$().$implicit;return $().onContextMenu(k,D,_)}),_e(1,"div",65),A()}if(2&e){var n=a.$implicit,l=$().$implicit,c=$();H(1),z("innerHtml",c.getRowColumn(n,l),Pr)}}function yle(e,a){1&e&&(On(0,60),re(1,mle,2,1,"mat-header-cell",61),re(2,_le,2,1,"mat-cell",62),Tn()),2&e&&eh("matColumnDef",a.$implicit.name)}function ble(e,a){1&e&&_e(0,"mat-header-row")}function Cle(e,a){if(1&e&&_e(0,"mat-row",66),2&e){var t=a.$implicit;z("ngClass",$().rowClass(t))}}function wle(e,a){if(1&e&&(E(0,"div",67),X(1),E(2,"uds-translate"),X(3,"Selected items"),A(),A()),2&e){var t=$();H(1),Ve(" ",t.selection.selected.length," ")}}function Sle(e,a){if(1&e){var t=De();E(0,"button",71),ee("click",function(){return ve(t),$(2).copyToClipboard()}),E(1,"i",72),X(2,"content_copy"),A(),E(3,"uds-translate"),X(4,"Copy"),A(),A()}}function kle(e,a){if(1&e){var t=De();E(0,"button",71),ee("click",function(){ve(t);var l=$().item,c=$();return c.detailAction.emit({param:l,table:c})}),E(1,"i",72),X(2,"subdirectory_arrow_right"),A(),E(3,"uds-translate"),X(4,"Detail"),A(),A()}}function Mle(e,a){if(1&e){var t=De();E(0,"button",71),ee("click",function(){ve(t);var l=$(2);return l.emitIfSelection(l.editAction)}),E(1,"i",72),X(2,"edit"),A(),E(3,"uds-translate"),X(4,"Edit"),A(),A()}}function xle(e,a){if(1&e){var t=De();E(0,"button",71),ee("click",function(){return ve(t),$(2).permissions()}),E(1,"i",72),X(2,"perm_identity"),A(),E(3,"uds-translate"),X(4,"Permissions"),A(),A()}}function Tle(e,a){if(1&e){var t=De();E(0,"button",73),ee("click",function(){var _=ve(t).$implicit;return $(2).emitCustom(_)}),A()}if(2&e){var n=a.$implicit;z("disabled",$(2).isCustomDisabled(n))("innerHTML",n.html,Pr)}}function Dle(e,a){if(1&e){var t=De();E(0,"button",74),ee("click",function(){ve(t);var l=$(2);return l.emitIfSelection(l.deleteAction)}),E(1,"i",72),X(2,"delete_forever"),A(),E(3,"uds-translate"),X(4,"Delete"),A(),A()}}function Ale(e,a){if(1&e){var t=De();E(0,"button",73),ee("click",function(){var _=ve(t).$implicit;return $(3).emitCustom(_)}),A()}if(2&e){var n=a.$implicit;z("disabled",$(3).isCustomDisabled(n))("innerHTML",n.html,Pr)}}function Ele(e,a){if(1&e&&(On(0),_e(1,"mat-divider"),re(2,Ale,1,2,"button",69),Tn()),2&e){var t=$(2);H(2),z("ngForOf",t.getCustomAccelerators())}}function Ple(e,a){if(1&e&&(re(0,Sle,5,0,"button",68),re(1,kle,5,0,"button",68),re(2,Mle,5,0,"button",68),re(3,xle,5,0,"button",68),re(4,Tle,1,2,"button",69),re(5,Dle,5,0,"button",70),re(6,Ele,3,1,"ng-container",8)),2&e){var t=$();z("ngIf",!0===t.allowCopy),H(1),z("ngIf",t.detailAction.observers.length>0),H(1),z("ngIf",t.editAction.observers.length>0),H(1),z("ngIf",!0===t.hasPermissions),H(1),z("ngForOf",t.getCustomMenu()),H(1),z("ngIf",t.deleteAction.observers.length>0),H(1),z("ngIf",t.hasAccelerators)}}var Ole=function(){return[5,10,25,100,1e3]},Jr=function(){function e(a,t){this.api=a,this.clipboard=t,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new nee([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return e.prototype.ngOnInit=function(){var a=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(n,l){if(!(l in n))return"";var c=n[l];return"number"==typeof c?c:"string"==typeof c?c.toLocaleLowerCase():(null===c&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(n,l){try{a.columns.forEach(function(c){if((""+n[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(l))throw Error()})}catch(c){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new Ny(!0===this.multiSelect,[]);var t=this.rest.permision();0==(t&hS.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),t!==hS.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(n){a.rest.tableInfo().subscribe(function(l){a.initialize(l,n)})})},e.prototype.initialize=function(a,t){var n=this;this.oTypes=t,this.types=new Map,this.grpTypes=new Map,t.forEach(function(c){n.types.set(c.type,c),void 0!==c.group&&(n.grpTypes.has(c.group)||n.grpTypes.set(c.group,[]),n.grpTypes.get(c.group).push(c))}),this.rowStyleInfo=void 0!==a["row-style"]&&void 0!==a["row-style"].field?a["row-style"]:null,this.title=a.title,this.subtitle=a.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var l=[];a.fields.forEach(function(c){for(var h in c)if(c.hasOwnProperty(h)){var _=c[h];l.push({name:h,title:_.title,type:void 0===_.type?ka.ALPHANUMERIC:_.type,dict:_.dict}),(void 0===_.visible||_.visible)&&n.displayedColumns.push(h)}}),this.columns=l,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},e.prototype.overview=function(){var a=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(t){a.loading=!1,void 0!==a.onItem&&t.forEach(function(n){a.onItem(n)}),a.dataSource.data=t,a.loaded.emit({param:a.firstLoad,table:a}),a.firstLoad=!1},function(t){a.loading=!1}))},e.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==li.ONLY_MENU&&a.type!==li.ACCELERATOR}):[]},e.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==li.ACCELERATOR}):[]},e.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type===li.ACCELERATOR}):[]},e.prototype.getRowColumn=function(a,t){var n=a[t.name];switch(t.type){case ka.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case ka.DATE:n=wu("SHORT_DATE_FORMAT",n);break;case ka.DATETIME:n=wu("SHORT_DATETIME_FORMAT",n);break;case ka.TIME:n=wu("TIME_FORMAT",n);break;case ka.DATETIMESEC:n=wu("SHORT_DATE_FORMAT",n," H:i:s");break;case ka.ICON:try{n=this.api.gui.icon(this.types.get(a.type).icon)+n}catch(l){}return this.api.safeString(n);case ka.CALLBACK:break;case ka.DICTIONARY:try{n=t.dict[n]}catch(l){n=""}}return n},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage(this.tableId+"sort-column",a.active),this.api.putOnStorage(this.tableId+"sort-direction",a.direction)},e.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},e.prototype.rowClass=function(a){var t=[];return this.selection.isSelected(a)&&t.push("selected"),null!==this.rowStyleInfo&&t.push(this.rowStyleInfo.prefix+a[this.rowStyleInfo.field]),t},e.prototype.emitIfSelection=function(a,t){void 0===t&&(t=!1);var n=this.selection.selected.length;n>0&&(!0===t||1===n)&&a.emit({table:this,param:n})},e.prototype.isCustomDisabled=function(a){switch(a.type){case void 0:case li.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===a.disabled;case li.MULTI_SELECT:return this.selection.isEmpty()||!0===a.disabled;default:return!1}},e.prototype.emitCustom=function(a){!this.selection.selected.length&&a.type!==li.ALWAYS||(a.type===li.ACCELERATOR?this.api.navigation.goto(a.id,this.selection.selected[0],a.acceleratorProperties):this.customButtonAction.emit({param:a,table:this}))},e.prototype.clickRow=function(a,t){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-t.x)<16&&Math.abs(this.lastClickInfo.y-t.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(a),void(this.detailAction.observers.length?this.detailAction.emit({param:a,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:t.x,y:t.y},this.doSelect(a,t)},e.prototype.doSelect=function(a,t){if(t.ctrlKey)this.lastSel=a,this.selection.toggle(a);else if(t.shiftKey){if(this.selection.isEmpty())this.selection.toggle(a);else if(this.selection.clear(),this.lastSel!==a)for(var n=!1,c=0,h=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);c/,"")),this.clipValue=""+l,this.hasActions&&(this.selection.clear(),this.selection.select(a),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:a},this.contextMenu.openMenu())},e.prototype.selectElement=function(a,t){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(c,h){if(c[a]===t){var _=Math.floor(h/n.paginator.pageSize);n.selection.select(c),n.paginator.pageIndex=_,n.paginator.page.next({pageIndex:_,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},e.prototype.export=function(){cee(this)},e.prototype.permissions=function(){!this.selection.selected.length||bse.launch(this.api,this.rest,this.selection.selected[0])},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Et),N(fee))},e.\u0275cmp=Se({type:e,selectors:[["uds-table"]],viewQuery:function(t,n){if(1&t&&(dt(qse,7),dt(C5,7),dt(eP,7)),2&t){var l=void 0;Le(l=Fe())&&(n.contextMenu=l.first),Le(l=Fe())&&(n.paginator=l.first),Le(l=Fe())&&(n.sort=l.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,n){if(1&t&&(E(0,"div",0),E(1,"div",1),E(2,"div",2),re(3,Xse,1,1,"img",3),X(4),A(),E(5,"div",4),X(6),A(),A(),E(7,"div",5),E(8,"div",6),E(9,"div",7),re(10,nle,3,2,"ng-container",8),re(11,rle,7,1,"ng-container",8),re(12,ile,7,1,"ng-container",8),re(13,ole,2,1,"ng-container",8),re(14,sle,7,0,"ng-container",8),re(15,lle,7,1,"ng-container",8),A(),E(16,"div",9),E(17,"div",10),E(18,"uds-translate"),X(19,"Filter"),A(),X(20,"\xa0 "),E(21,"mat-form-field"),E(22,"input",11),ee("keyup",function(){return n.applyFilter()})("ngModelChange",function(h){return n.filterText=h}),A(),re(23,ule,3,0,"button",12),A(),A(),E(24,"div",13),_e(25,"mat-paginator",14),A(),E(26,"div",15),E(27,"a",16),ee("click",function(){return n.overview()}),E(28,"i",17),X(29,"autorenew"),A(),A(),A(),A(),A(),E(30,"div",18),ee("keydown",function(h){return n.keyDown(h)}),E(31,"mat-table",19),ee("matSortChange",function(h){return n.sortChanged(h)}),re(32,ple,3,0,"ng-container",20),On(33,21),re(34,vle,1,0,"mat-header-cell",22),re(35,gle,4,0,"mat-cell",23),Tn(),re(36,yle,3,1,"ng-container",24),re(37,ble,1,0,"mat-header-row",25),re(38,Cle,1,1,"mat-row",26),A(),E(39,"div",27),E(40,"div",28),_e(41,"mat-progress-spinner",29),A(),A(),A(),E(42,"div",30),X(43," \xa0 "),re(44,wle,4,1,"div",31),A(),A(),_e(45,"div",32,33),E(47,"mat-menu",null,34),re(49,Ple,7,7,"ng-template",35),A(),A()),2&t){var l=Fn(48);H(3),z("ngIf",void 0!==n.icon),H(1),Ve(" ",n.title," "),H(2),Ve(" ",n.subtitle," "),H(4),z("ngIf",n.newAction.observers.length>0),H(1),z("ngIf",n.editAction.observers.length>0),H(1),z("ngIf",!0===n.hasPermissions),H(1),z("ngIf",n.hasCustomButtons),H(1),z("ngIf",!0===n.allowExport),H(1),z("ngIf",n.deleteAction.observers.length>0),H(7),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",GC(27,Ole))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngIf",n.hasButtons),H(4),z("ngForOf",n.columns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns),H(1),z("hidden",!n.loading),H(5),z("ngIf",n.hasButtons&&n.selection.selected.length>0),H(1),qr("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),z("matMenuTriggerFor",l)}},directives:[$t,Pt,Dr,ta,Ui,Fr,Tr,C5,Lr,cq,eP,R5,I5,O5,fr,fq,dq,pee,See,_ee,Vse,rP,kt,_S,L5,F5,KJ,hq,pq,_l,jse],pipes:[mD,Yse],styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}']}),e}(),Mee='pause'+django.gettext("Maintenance")+"",Ile='pause'+django.gettext("Exit maintenance mode")+"",Rle='pause'+django.gettext("Enter maintenance mode")+"",xee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"maintenance",html:Mee,type:li.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New provider"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit provider"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete provider"))},e.prototype.onMaintenance=function(a){var t=this,n=a.table.selection.selected[0],l=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,l).subscribe(function(c){c&&t.rest.providers.maintenance(n.id).subscribe(function(){a.table.overview()})})},e.prototype.onRowSelect=function(a){var t=a.table;this.customButtons[0].html=t.selection.selected.length>1||0===t.selection.selected.length?Mee:t.selection.selected[0].maintenance_mode?Ile:Rle},e.prototype.onDetail=function(a){this.api.navigation.gotoService(a.param.id)},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),A()),2&t&&z("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Jr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),e}(),_b=function(){function e(a,t,n,l){this.title=a,this.data=t,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var h={};return h[c.field]={visible:!0,title:c.title,type:void 0===c.type?ka.ALPHANUMERIC:c.type},h})}return e.prototype.get=function(a){return mr},e.prototype.getLogs=function(a){return mr},e.prototype.overview=function(a){return"function"==typeof this.data?this.data():rt([])},e.prototype.summary=function(a){return this.overview()},e.prototype.put=function(a,t){return mr},e.prototype.create=function(a){return mr},e.prototype.save=function(a,t){return mr},e.prototype.test=function(a,t){return mr},e.prototype.delete=function(a){return mr},e.prototype.permision=function(){return hS.ALL},e.prototype.getPermissions=function(a){return mr},e.prototype.addPermission=function(a,t,n,l){return mr},e.prototype.revokePermission=function(a){return mr},e.prototype.types=function(){return rt([])},e.prototype.gui=function(a){return mr},e.prototype.callback=function(a,t){return mr},e.prototype.tableInfo=function(){return rt({fields:this.columnsDefinition,title:this.title})},e.prototype.detail=function(a,t){return null},e.prototype.invoke=function(a,t){return mr},e}();function Lle(e,a){if(1&e){var t=De();E(0,"button",24),ee("click",function(){ve(t);var l=$();return l.filterText="",l.applyFilter()}),E(1,"i",8),X(2,"close"),A(),A()}}function Fle(e,a){if(1&e&&(E(0,"mat-header-cell",28),X(1),A()),2&e){var t=$().$implicit;H(1),In(t)}}function Nle(e,a){if(1&e&&(E(0,"mat-cell"),_e(1,"div",29),A()),2&e){var t=a.$implicit,n=$().$implicit,l=$();H(1),z("innerHtml",l.getRowColumn(t,n),Pr)}}function Vle(e,a){1&e&&(On(0,25),re(1,Fle,2,1,"mat-header-cell",26),re(2,Nle,2,1,"mat-cell",27),Tn()),2&e&&z("matColumnDef",a.$implicit)}function Ble(e,a){1&e&&_e(0,"mat-header-row")}function Hle(e,a){if(1&e&&_e(0,"mat-row",30),2&e){var t=a.$implicit;z("ngClass",$().rowClass(t))}}var zle=function(){return[5,10,25,100,1e3]},MS=function(){function e(a){this.api=a,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new nee([]),this.selection=new Ny}return e.prototype.ngOnInit=function(){var a=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(t){a.columns.push({name:t,title:t,type:"date"===t?ka.DATETIMESEC:ka.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},e.prototype.overview=function(){var a=this;this.rest.getLogs(this.itemId).subscribe(function(t){a.dataSource.data=t})},e.prototype.selectElement=function(a,t){},e.prototype.getRowColumn=function(a,t){var n=a[t];return"date"===t?n=wu("SHORT_DATE_FORMAT",n," H:i:s"):"level"===t&&(n=function(e){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[e]||"OTHER"}(n)),n},e.prototype.rowClass=function(a){return["level-"+a.level]},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage("logs-sort-column",a.active),this.api.putOnStorage("logs-sort-direction",a.direction)},e.prototype.export=function(){cee(this)},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-logs-table"]],viewQuery:function(t,n){if(1&t&&(dt(C5,7),dt(eP,7)),2&t){var l=void 0;Le(l=Fe())&&(n.paginator=l.first),Le(l=Fe())&&(n.sort=l.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"div",2),_e(3,"img",3),X(4," \xa0"),E(5,"uds-translate"),X(6,"Logs"),A(),A(),A(),E(7,"div",4),E(8,"div",5),E(9,"div",6),E(10,"a",7),ee("click",function(){return n.export()}),E(11,"i",8),X(12,"import_export"),A(),E(13,"span",9),E(14,"uds-translate"),X(15,"Export"),A(),A(),A(),A(),E(16,"div",10),E(17,"div",11),E(18,"uds-translate"),X(19,"Filter"),A(),X(20,"\xa0 "),E(21,"mat-form-field"),E(22,"input",12),ee("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),A(),re(23,Lle,3,0,"button",13),A(),A(),E(24,"div",14),_e(25,"mat-paginator",15),A(),E(26,"div",16),E(27,"a",17),ee("click",function(){return n.overview()}),E(28,"i",8),X(29,"autorenew"),A(),A(),A(),A(),A(),E(30,"div",18),ee("keydown",function(c){return n.keyDown(c)}),E(31,"mat-table",19),ee("matSortChange",function(c){return n.sortChanged(c)}),re(32,Vle,3,1,"ng-container",20),re(33,Ble,1,0,"mat-header-row",21),re(34,Hle,1,1,"mat-row",22),A(),A(),_e(35,"div",23),A(),A()),2&t&&(H(3),z("src",n.api.staticURL("admin/img/icons/logs.png"),dn),H(19),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",GC(11,zle))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngForOf",n.displayedColumns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns))},directives:[Pt,Lr,Dr,ta,Ui,Fr,Tr,$t,C5,cq,eP,fr,fq,dq,kt,_S,R5,I5,O5,L5,KJ,F5,hq,pq,_l],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),e}();function Ule(e,a){1&e&&(E(0,"uds-translate"),X(1,"Services pools"),A())}function Gle(e,a){1&e&&(E(0,"uds-translate"),X(1,"Logs"),A())}var jle=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Wle=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.customButtons=[Al.getGotoButton(W9,"id")],this.services=l.services,this.service=l.service}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:n,services:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.servicePools=new _b(django.gettext("Service pools"),function(){return a.services.invoke(a.service.id+"/servicesPools")},jle,this.service.id+"infopsls")},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Information for"),A(),X(3),A(),E(4,"mat-dialog-content"),E(5,"mat-tab-group"),E(6,"mat-tab"),re(7,Ule,2,0,"ng-template",1),_e(8,"uds-table",2),A(),E(9,"mat-tab"),re(10,Gle,2,0,"ng-template",1),E(11,"div",3),_e(12,"uds-logs-table",4),A(),A(),A(),A(),E(13,"mat-dialog-actions"),E(14,"button",5),E(15,"uds-translate"),X(16,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.service.name,"\n"),H(5),z("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),H(4),z("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[pe,Pt,me,Cc,Cu,bc,Jr,MS,Ce,kt,de],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),e}();function Yle(e,a){if(1&e&&(E(0,"div",3),_e(1,"div",4),_e(2,"div",5),A()),2&e){var t=a.$implicit;H(1),z("innerHTML",t.gui.label,Pr),H(1),z("innerHTML",t.value,Pr)}}var B5=function(){function e(a){this.api=a,this.displayables=null}return e.prototype.ngOnInit=function(){this.processFields()},e.prototype.processFields=function(){var a=this;if(!this.gui||!this.value)return[];var t=this.gui.filter(function(n){return n.gui.type!==sd.HIDDEN});t.forEach(function(n){var l=a.value[n.name];switch(n.gui.type){case sd.CHECKBOX:n.value=l?django.gettext("Yes"):django.gettext("No");break;case sd.PASSWORD:n.value=django.gettext("(hidden)");break;case sd.CHOICE:var c=UQ.locateChoice(l,n);n.value=c.text;break;case sd.MULTI_CHOICE:n.value=django.gettext("Selected items :")+l.length;break;case sd.IMAGECHOICE:c=UQ.locateChoice(l,n),n.value=a.api.safeString(a.api.gui.icon(c.img)+" "+c.text);break;default:n.value=l}(""===n.value||null==n.value)&&(n.value="(empty)")}),this.displayables=t},e.\u0275fac=function(t){return new(t||e)(N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),re(2,Yle,3,2,"div",2),A(),_e(3,"div"),A()),2&t&&(H(2),z("ngForOf",n.displayables))},directives:[fr],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:bold;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),e}();function qle(e,a){1&e&&(E(0,"uds-translate"),X(1,"Summary"),A())}function Xle(e,a){if(1&e&&_e(0,"uds-information",15),2&e){var t=$(2);z("value",t.provider)("gui",t.gui)}}function Zle(e,a){1&e&&(E(0,"uds-translate"),X(1,"Services"),A())}function Kle(e,a){1&e&&(E(0,"uds-translate"),X(1,"Usage"),A())}function Qle(e,a){1&e&&(E(0,"uds-translate"),X(1,"Logs"),A())}function $le(e,a){if(1&e){var t=De();E(0,"div",6),E(1,"div",7),E(2,"mat-tab-group",8),ee("selectedIndexChange",function(c){return ve(t),$().selectedTab=c}),E(3,"mat-tab"),re(4,qle,2,0,"ng-template",9),E(5,"div",10),re(6,Xle,1,2,"uds-information",11),A(),A(),E(7,"mat-tab"),re(8,Zle,2,0,"ng-template",9),E(9,"div",10),E(10,"uds-table",12),ee("newAction",function(c){return ve(t),$().onNewService(c)})("editAction",function(c){return ve(t),$().onEditService(c)})("deleteAction",function(c){return ve(t),$().onDeleteService(c)})("customButtonAction",function(c){return ve(t),$().onInformation(c)})("loaded",function(c){return ve(t),$().onLoad(c)}),A(),A(),A(),E(11,"mat-tab"),re(12,Kle,2,0,"ng-template",9),E(13,"div",10),E(14,"uds-table",13),ee("deleteAction",function(c){return ve(t),$().onDeleteUsage(c)}),A(),A(),A(),E(15,"mat-tab"),re(16,Qle,2,0,"ng-template",9),E(17,"div",10),_e(18,"uds-logs-table",14),A(),A(),A(),A(),A()}if(2&e){var n=$();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.provider&&n.gui),H(4),z("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),H(4),z("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),H(4),z("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var Jle=function(e){return["/providers",e]},Tee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:li.ONLY_MENU}],this.provider=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).subscribe(function(n){a.provider=n,a.services.parentModel.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onInformation=function(a){Wle.launch(this.api,this.services,a.table.selection.selected[0])},e.prototype.onNewService=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New service"),!1)},e.prototype.onEditService=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit service"),!1)},e.prototype.onDeleteService=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service"))},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user service"))},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("service");if(void 0!==t){this.selectedTab=1;var n=a.table;n.dataSource.data.forEach(function(l){l.id===t&&n.selection.select(l)})}}},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"a",2),E(3,"i",3),X(4,"arrow_back"),A(),A(),X(5," \xa0"),_e(6,"img",4),X(7),A(),re(8,$le,19,17,"div",5),A()),2&t&&(H(2),z("routerLink",Go(4,Jle,n.services.parentId)),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),dn),H(1),Ve(" \xa0",null==n.provider?null:n.provider.name," "),H(1),z("ngIf",null!==n.provider))},directives:[wl,$t,Cc,Cu,bc,Jr,MS,Pt,B5],styles:[""]}),e}(),Dee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},e.prototype.onDetail=function(a){this.api.navigation.gotoAuthenticatorDetail(a.param.id)},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Authenticator"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Authenticator"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Authenticator"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible)},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[""]}),e}(),eue=["panel"];function tue(e,a){if(1&e&&(E(0,"div",0,1),Xt(2),A()),2&e){var t=a.id,n=$();z("id",n.id)("ngClass",n._classList),Ye("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}var nue=["*"],rue=0,iue=function e(a,t){F(this,e),this.source=a,this.option=t},aue=_u(function(){return function e(){F(this,e)}}()),Aee=new Ee("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),sue=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this))._changeDetectorRef=l,C._elementRef=c,C._activeOptionChanges=We.EMPTY,C.showPanel=!1,C._isOpen=!1,C.displayWith=null,C.optionSelected=new ye,C.opened=new ye,C.closed=new ye,C.optionActivated=new ye,C._classList={},C.id="mat-autocomplete-".concat(rue++),C.inertGroups=(null==_?void 0:_.SAFARI)||!1,C._autoActiveFirstOption=!!h.autoActiveFirstOption,C}return j(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=$e(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?E3(c).reduce(function(h,_){return h[_]=!0,h},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new MV(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(h){c.optionActivated.emit({source:c,option:c.options.toArray()[h]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(c){var h=new iue(this,c);this.optionSelected.emit(h)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(aue);return e.\u0275fac=function(t){return new(t||e)(N(Gt),N(Be),N(Aee),N(cn))},e.\u0275dir=ge({type:e,viewQuery:function(t,n){var l;1&t&&(dt(Dn,7),dt(eue,5)),2&t&&(Le(l=Fe())&&(n.template=l.first),Le(l=Fe())&&(n.panel=l.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[xe]}),e}(),Eee=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return n}(sue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,n,l){var c;1&t&&(Wt(l,u,5),Wt(l,g,5)),2&t&&(Le(c=Fe())&&(n.optionGroups=c),Le(c=Fe())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Xe([{provide:o,useExisting:e}]),xe],ngContentSelectors:nue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,n){1&t&&(rr(),re(0,tue,3,4,"ng-template"))},directives:[_l],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),Pee=new Ee("mat-autocomplete-scroll-strategy"),cue={provide:Pee,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},fue={provide:Sa,useExisting:Cn(function(){return _q}),multi:!0},due=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,O,L){var U=this;F(this,a),this._element=t,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=h,this._dir=C,this._formField=k,this._document=D,this._viewportRuler=O,this._defaults=L,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=We.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new He,this._windowBlurHandler=function(){U._canOpenOnNextFocus=U._document.activeElement!==U._element.nativeElement||U.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=_y(function(){return U.autocomplete&&U.autocomplete.options?bn.apply(void 0,xt(U.autocomplete.options.map(function(Y){return Y.onSelectionChange}))):U._zone.onStable.pipe(Kn(1),ba(function(){return U.optionSelections}))}),this._scrollStrategy=_}return j(a,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=$e(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var n=this;return bn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(jn(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(jn(function(){return n._overlayAttached})):rt()).pipe(Ht(function(l){return l instanceof p?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return bn(Ns(this._document,"click"),Ns(this._document,"auxclick"),Ns(this._document,"touchend")).pipe(jn(function(l){var c=Kr(l),h=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&(!h||!h.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve(null).then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;if(27===l&&!zi(n)&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var c=this.autocomplete._keyManager.activeItem,h=38===l||40===l;this.panelOpen||9===l?this.autocomplete._keyManager.onKeydown(n):h&&this._canOpen()&&this.openPanel(),(h||this.autocomplete._keyManager.activeItem!==c)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var n=this;return bn(this._zone.onStable.pipe(Kn(1)),this.autocomplete.options.changes.pipe(Ka(function(){return n._positionStrategy.reapplyLastPosition()}),N5(0))).pipe(ba(function(){var h=n.panelOpen;return n._resetActiveItem(),n.autocomplete._setVisibility(),n.panelOpen&&(n._overlayRef.updatePosition(),h!==n.panelOpen&&n.autocomplete.opened.emit()),n.panelClosingActions}),Kn(1)).subscribe(function(h){return n._setValueAndClose(h)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){n&&n.source&&(this._clearPreviousSelectedOption(n.source),this._setTriggerValue(n.source.value),this._onChange(n.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(n.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Bs(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!zi(_)||38===_.keyCode&&zi(_,"altKey"))&&(n._resetActiveItem(),n._closeKeyEventStream.next(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var h=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&h!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new mo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,h=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?h:"below"===this.position?l:[].concat(l,h),n.withPositions(_)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=m(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var h=l.options.toArray()[n];if(h){var _=h._getHostElement(),C=y(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(C)}}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(bi),N(qn),N(lt),N(Gt),N(Pee),N(xr,8),N(yS,9),N(et,8),N(Ca),N(Aee,8))},e.\u0275dir=ge({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[vn]}),e}(),_q=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return n}(due);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275dir=ge({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,n){1&t&&ee("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)}),2&t&&Ye("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",!n.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Xe([fue]),xe]}),e}(),hue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[cue],imports:[[tp,b,Jt,Za],fc,b,Jt]}),e}();function pue(e,a){if(1&e&&(E(0,"div"),E(1,"uds-translate"),X(2,"Edit user"),A(),X(3),A()),2&e){var t=$();H(3),Ve(" ",t.user.name," ")}}function vue(e,a){1&e&&(E(0,"uds-translate"),X(1,"New user"),A())}function gue(e,a){if(1&e){var t=De();E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"input",19),ee("ngModelChange",function(c){return ve(t),$().user.name=c}),A(),A()}if(2&e){var n=$();H(2),Ve(" ",n.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",n.user.name)("disabled",n.user.id)}}function mue(e,a){if(1&e&&(E(0,"mat-option",22),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),th(" ",t.id," (",t.name,") ")}}function _ue(e,a){if(1&e){var t=De();E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"input",20),ee("ngModelChange",function(h){return ve(t),$().user.name=h})("input",function(h){return ve(t),$().filterUser(h)}),A(),E(4,"mat-autocomplete",null,21),re(6,mue,2,3,"mat-option",16),A(),A()}if(2&e){var n=Fn(5),l=$();H(2),Ve(" ",l.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",l.user.name)("matAutocomplete",n),H(3),z("ngForOf",l.users)}}function yue(e,a){if(1&e){var t=De();E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"input",23),ee("ngModelChange",function(c){return ve(t),$().user.password=c}),A(),A()}if(2&e){var n=$();H(2),Ve(" ",n.authenticator.type_info.passwordLabel," "),H(1),z("ngModel",n.user.password)}}function bue(e,a){if(1&e&&(E(0,"mat-option",22),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var Oee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.users=[],this.authenticator=l.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==l.user&&(this.user.id=l.user.id,this.user.name=l.user.name)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,user:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(t){a.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(t){a.user=t,a.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},function(t){a.dialogRef.close()})},e.prototype.roleChanged=function(a){this.user.is_admin="admin"===a,this.user.staff_member="admin"===a||"staff"===a},e.prototype.filterUser=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"user",a.target.value,100).subscribe(function(l){t.users.length=0,l.forEach(function(c){t.users.push(c)})})},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(E(0,"h4",0),re(1,pue,4,1,"div",1),re(2,vue,2,0,"ng-template",null,2,Ds),A(),E(4,"mat-dialog-content"),E(5,"div",3),re(6,gue,4,3,"mat-form-field",4),re(7,_ue,7,4,"mat-form-field",4),E(8,"mat-form-field"),E(9,"mat-label"),E(10,"uds-translate"),X(11,"Real name"),A(),A(),E(12,"input",5),ee("ngModelChange",function(h){return n.user.real_name=h}),A(),A(),E(13,"mat-form-field"),E(14,"mat-label"),E(15,"uds-translate"),X(16,"Comments"),A(),A(),E(17,"input",6),ee("ngModelChange",function(h){return n.user.comments=h}),A(),A(),E(18,"mat-form-field"),E(19,"mat-label"),E(20,"uds-translate"),X(21,"State"),A(),A(),E(22,"mat-select",7),ee("ngModelChange",function(h){return n.user.state=h}),E(23,"mat-option",8),E(24,"uds-translate"),X(25,"Enabled"),A(),A(),E(26,"mat-option",9),E(27,"uds-translate"),X(28,"Disabled"),A(),A(),E(29,"mat-option",10),E(30,"uds-translate"),X(31,"Blocked"),A(),A(),A(),A(),E(32,"mat-form-field"),E(33,"mat-label"),E(34,"uds-translate"),X(35,"Role"),A(),A(),E(36,"mat-select",11),ee("ngModelChange",function(h){return n.user.role=h})("valueChange",function(h){return n.roleChanged(h)}),E(37,"mat-option",12),E(38,"uds-translate"),X(39,"Admin"),A(),A(),E(40,"mat-option",13),E(41,"uds-translate"),X(42,"Staff member"),A(),A(),E(43,"mat-option",14),E(44,"uds-translate"),X(45,"User"),A(),A(),A(),A(),re(46,yue,4,2,"mat-form-field",4),E(47,"mat-form-field"),E(48,"mat-label"),E(49,"uds-translate"),X(50,"Groups"),A(),A(),E(51,"mat-select",15),ee("ngModelChange",function(h){return n.user.groups=h}),re(52,bue,2,2,"mat-option",16),A(),A(),A(),A(),E(53,"mat-dialog-actions"),E(54,"button",17),E(55,"uds-translate"),X(56,"Cancel"),A(),A(),E(57,"button",18),ee("click",function(){return n.save()}),E(58,"uds-translate"),X(59,"Ok"),A(),A(),A()),2&t){var l=Fn(3);H(1),z("ngIf",n.user.id)("ngIfElse",l),H(5),z("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),H(1),z("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),H(5),z("ngModel",n.user.real_name),H(5),z("ngModel",n.user.comments),H(5),z("ngModel",n.user.state),H(14),z("ngModel",n.user.role),H(10),z("ngIf",n.authenticator.type_info.needsPassword),H(5),z("ngModel",n.user.groups),H(1),z("ngForOf",n.groups)}},directives:[pe,$t,me,Dr,$r,Pt,ta,Ui,Fr,Tr,$a,g,fr,Ce,kt,de,_q,Eee],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Cue=["thumbContainer"],wue=["toggleBar"],Sue=["input"],kue=function(a){return{enterDuration:a}},Mue=["*"],xue=new Ee("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),Tue=0,Due={provide:Sa,useExisting:Cn(function(){return xS}),multi:!0},Aue=function e(a,t){F(this,e),this.source=a,this.checked=t},Eue=Tl(mu(_u(Us(function(){return function e(a){F(this,e),this._elementRef=a}}())))),xS=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._focusMonitor=c,D._changeDetectorRef=h,D.defaults=C,D._onChange=function(O){},D._onTouched=function(){},D._uniqueId="mat-slide-toggle-".concat(++Tue),D._required=!1,D._checked=!1,D.name=null,D.id=D._uniqueId,D.labelPosition="after",D.ariaLabel=null,D.ariaLabelledby=null,D.change=new ye,D.toggleChange=new ye,D.tabIndex=parseInt(_)||0,D.color=D.defaultColor=C.color||"accent",D._noopAnimations="NoopAnimations"===k,D}return j(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=$e(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=$e(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){"keyboard"===h||"program"===h?c._inputElement.nativeElement.focus():h||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,h){h?this._focusMonitor.focusVia(this._inputElement,h,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new Aue(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(Eue);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(wa),N(Gt),Er("tabindex"),N(xue),N(Rr,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){var l;1&t&&(dt(Cue,5),dt(wue,5),dt(Sue,5)),2&t&&(Le(l=Fe())&&(n._thumbEl=l.first),Le(l=Fe())&&(n._thumbBarEl=l.first),Le(l=Fe())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,n){2&t&&(qi("id",n.id),Ye("tabindex",n.disabled?null:-1)("aria-label",null)("aria-labelledby",null),ct("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Xe([Due]),xe],ngContentSelectors:Mue,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,n){if(1&t&&(rr(),E(0,"label",0,1),E(2,"div",2,3),E(4,"input",4,5),ee("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),A(),E(6,"div",6,7),_e(8,"div",8),E(9,"div",9),_e(10,"div",10),A(),A(),A(),E(11,"span",11,12),ee("cdkObserveContent",function(){return n._onLabelTextChange()}),E(13,"span",13),X(14,"\xa0"),A(),Xt(15),A(),A()),2&t){var l=Fn(1),c=Fn(12);Ye("for",n.inputId),H(2),ct("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),H(2),z("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),Ye("name",n.name)("aria-checked",n.checked.toString())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Go(18,kue,n._noopAnimations?0:150))}},directives:[Gs,Wy],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e}(),Pue={provide:Oi,useExisting:Cn(function(){return Iee}),multi:!0},Iee=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(d5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275dir=ge({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Xe([Pue]),xe]}),e}(),Ree=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),Oue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Ree,up,Jt,Yy],Ree,Jt]}),e}();function Iue(e,a){if(1&e&&(E(0,"div"),E(1,"uds-translate"),X(2,"Edit group"),A(),X(3),A()),2&e){var t=$();H(3),Ve(" ",t.group.name," ")}}function Rue(e,a){1&e&&(E(0,"uds-translate"),X(1,"New group"),A())}function Lue(e,a){if(1&e){var t=De();E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"input",13),ee("ngModelChange",function(c){return ve(t),$(2).group.name=c}),A(),A()}if(2&e){var n=$(2);H(2),Ve(" ",n.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",n.group.name)("disabled",n.group.id)}}function Fue(e,a){if(1&e&&(E(0,"mat-option",17),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),th(" ",t.id," (",t.name,") ")}}function Nue(e,a){if(1&e){var t=De();E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"input",14),ee("ngModelChange",function(h){return ve(t),$(2).group.name=h})("input",function(h){return ve(t),$(2).filterGroup(h)}),A(),E(4,"mat-autocomplete",null,15),re(6,Fue,2,3,"mat-option",16),A(),A()}if(2&e){var n=Fn(5),l=$(2);H(2),Ve(" ",l.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",l.group.name)("matAutocomplete",n),H(3),z("ngForOf",l.fltrGroup)}}function Vue(e,a){if(1&e&&(On(0),re(1,Lue,4,3,"mat-form-field",12),re(2,Nue,7,4,"mat-form-field",12),Tn()),2&e){var t=$();H(1),z("ngIf",!1===t.authenticator.type_info.canSearchGroups||t.group.id),H(1),z("ngIf",!0===t.authenticator.type_info.canSearchGroups&&!t.group.id)}}function Bue(e,a){if(1&e){var t=De();E(0,"mat-form-field"),E(1,"mat-label"),E(2,"uds-translate"),X(3,"Meta group name"),A(),A(),E(4,"input",13),ee("ngModelChange",function(c){return ve(t),$().group.name=c}),A(),A()}if(2&e){var n=$();H(4),z("ngModel",n.group.name)("disabled",n.group.id)}}function Hue(e,a){if(1&e&&(E(0,"mat-option",17),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function zue(e,a){if(1&e){var t=De();On(0),E(1,"mat-form-field"),E(2,"mat-label"),E(3,"uds-translate"),X(4,"Service Pools"),A(),A(),E(5,"mat-select",18),ee("ngModelChange",function(c){return ve(t),$().group.pools=c}),re(6,Hue,2,2,"mat-option",16),A(),A(),Tn()}if(2&e){var n=$();H(5),z("ngModel",n.group.pools),H(1),z("ngForOf",n.servicePools)}}function Uue(e,a){if(1&e&&(E(0,"mat-option",17),X(1),A()),2&e){var t=$().$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Gue(e,a){if(1&e&&(On(0),re(1,Uue,2,2,"mat-option",22),Tn()),2&e){var t=a.$implicit;H(1),z("ngIf","group"===t.type)}}function jue(e,a){if(1&e){var t=De();E(0,"div",19),E(1,"span",20),E(2,"uds-translate"),X(3,"Match mode"),A(),A(),E(4,"mat-slide-toggle",6),ee("ngModelChange",function(c){return ve(t),$().group.meta_if_any=c}),X(5),A(),A(),E(6,"mat-form-field"),E(7,"mat-label"),E(8,"uds-translate"),X(9,"Selected Groups"),A(),A(),E(10,"mat-select",18),ee("ngModelChange",function(c){return ve(t),$().group.groups=c}),re(11,Gue,2,1,"ng-container",21),A(),A()}if(2&e){var n=$();H(4),z("ngModel",n.group.meta_if_any),H(1),Ve(" ",n.getMatchValue()," "),H(5),z("ngModel",n.group.groups),H(1),z("ngForOf",n.groups)}}var Lee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=l.authenticator,this.group={id:void 0,type:l.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==l.group&&(this.group.id=l.group.id,this.group.type=l.group.type,this.group.name=l.group.name)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,groupType:n,group:l},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&t.get(this.group.id).subscribe(function(n){a.group=n},function(n){a.dialogRef.close()}),"meta"===this.group.type?t.summary().subscribe(function(n){return a.groups=n}):this.rest.servicesPools.summary().subscribe(function(n){return a.servicePools=n})},e.prototype.filterGroup=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"group",a.target.value,100).subscribe(function(l){t.fltrGroup.length=0,l.forEach(function(c){t.fltrGroup.push(c)})})},e.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,n){if(1&t&&(E(0,"h4",0),re(1,Iue,4,1,"div",1),re(2,Rue,2,0,"ng-template",null,2,Ds),A(),E(4,"mat-dialog-content"),E(5,"div",3),re(6,Vue,3,2,"ng-container",1),re(7,Bue,5,2,"ng-template",null,4,Ds),E(9,"mat-form-field"),E(10,"mat-label"),E(11,"uds-translate"),X(12,"Comments"),A(),A(),E(13,"input",5),ee("ngModelChange",function(C){return n.group.comments=C}),A(),A(),E(14,"mat-form-field"),E(15,"mat-label"),E(16,"uds-translate"),X(17,"State"),A(),A(),E(18,"mat-select",6),ee("ngModelChange",function(C){return n.group.state=C}),E(19,"mat-option",7),E(20,"uds-translate"),X(21,"Enabled"),A(),A(),E(22,"mat-option",8),E(23,"uds-translate"),X(24,"Disabled"),A(),A(),A(),A(),re(25,zue,7,2,"ng-container",1),re(26,jue,12,4,"ng-template",null,9,Ds),A(),A(),E(28,"mat-dialog-actions"),E(29,"button",10),E(30,"uds-translate"),X(31,"Cancel"),A(),A(),E(32,"button",11),ee("click",function(){return n.save()}),E(33,"uds-translate"),X(34,"Ok"),A(),A(),A()),2&t){var l=Fn(3),c=Fn(8),h=Fn(27);H(1),z("ngIf",n.group.id)("ngIfElse",l),H(5),z("ngIf","group"===n.group.type)("ngIfElse",c),H(7),z("ngModel",n.group.comments),H(5),z("ngModel",n.group.state),H(7),z("ngIf","group"===n.group.type)("ngIfElse",h)}},directives:[pe,$t,me,Dr,$r,Pt,ta,Ui,Fr,Tr,$a,g,Ce,kt,de,_q,Eee,fr,xS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function Wue(e,a){1&e&&(E(0,"uds-translate"),X(1,"Groups"),A())}function Yue(e,a){if(1&e&&(E(0,"mat-tab"),re(1,Wue,2,0,"ng-template",3),_e(2,"uds-table",4),A()),2&e){var t=$();H(2),z("rest",t.group)("pageSize",6)}}function que(e,a){1&e&&(E(0,"uds-translate"),X(1,"Services Pools"),A())}function Xue(e,a){if(1&e&&(E(0,"mat-tab"),re(1,que,2,0,"ng-template",3),_e(2,"uds-table",4),A()),2&e){var t=$();H(2),z("rest",t.servicesPools)("pageSize",6)}}function Zue(e,a){1&e&&(E(0,"uds-translate"),X(1,"Assigned Services"),A())}function Kue(e,a){if(1&e&&(E(0,"mat-tab"),re(1,Zue,2,0,"ng-template",3),_e(2,"uds-table",4),A()),2&e){var t=$();H(2),z("rest",t.userServices)("pageSize",6)}}var Que=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],$ue=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Jue=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],ece=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.users=l.users,this.user=l.user}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:t,user:n},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(t){a.group=new _b(django.gettext("Groups"),function(){return a.rest.authenticators.detail(a.users.parentId,"groups").overview().pipe(Ht(function(h){return h.filter(function(_){return t.groups.includes(_.id)})}))},Que,a.user.id+"infogrp"),a.servicesPools=new _b(django.gettext("Services Pools"),function(){return a.users.invoke(a.user.id+"/servicesPools")},$ue,a.user.id+"infopool"),a.userServices=new _b(django.gettext("Assigned services"),function(){return a.users.invoke(a.user.id+"/userServices").pipe(Ht(function(h){return h.map(function(_){return _.in_use=a.api.yesno(_.in_use),_})}))},Jue,a.user.id+"userservpool")})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Information for"),A(),X(3),A(),E(4,"mat-dialog-content"),E(5,"mat-tab-group"),re(6,Yue,3,2,"mat-tab",1),re(7,Xue,3,2,"mat-tab",1),re(8,Kue,3,2,"mat-tab",1),A(),A(),E(9,"mat-dialog-actions"),E(10,"button",2),E(11,"uds-translate"),X(12,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.user.name,"\n"),H(3),z("ngIf",n.group),H(1),z("ngIf",n.servicesPools),H(1),z("ngIf",n.userServices))},directives:[pe,Pt,me,Cc,$t,Ce,kt,de,Cu,bc,Jr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function tce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Services Pools"),A())}function nce(e,a){if(1&e&&(E(0,"mat-tab"),re(1,tce,2,0,"ng-template",3),_e(2,"uds-table",4),A()),2&e){var t=$();H(2),z("rest",t.servicesPools)("pageSize",6)}}function rce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Users"),A())}function ice(e,a){if(1&e&&(E(0,"mat-tab"),re(1,rce,2,0,"ng-template",3),_e(2,"uds-table",4),A()),2&e){var t=$();H(2),z("rest",t.users)("pageSize",6)}}function ace(e,a){1&e&&(E(0,"uds-translate"),X(1,"Groups"),A())}function oce(e,a){if(1&e&&(E(0,"mat-tab"),re(1,ace,2,0,"ng-template",3),_e(2,"uds-table",4),A()),2&e){var t=$();H(2),z("rest",t.groups)("pageSize",6)}}var sce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],lce=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:ka.DATETIME}],uce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],cce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:n,groups:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new _b(django.gettext("Service pools"),function(){return t.invoke(a.data.group.id+"/servicesPools")},sce,this.data.group.id+"infopls"),this.users=new _b(django.gettext("Users"),function(){return t.invoke(a.data.group.id+"/users").pipe(Ht(function(h){return h.map(function(_){return _.state="A"===_.state?django.gettext("Enabled"):"I"===_.state?django.gettext("Disabled"):django.gettext("Blocked"),_})}))},lce,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new _b(django.gettext("Groups"),function(){return t.overview().pipe(Ht(function(h){return h.filter(function(_){return a.data.group.groups.includes(_.id)})}))},uce,this.data.group.id+"infogrps"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Information for"),A(),A(),E(3,"mat-dialog-content"),E(4,"mat-tab-group"),re(5,nce,3,2,"mat-tab",1),re(6,ice,3,2,"mat-tab",1),re(7,oce,3,2,"mat-tab",1),A(),A(),E(8,"mat-dialog-actions"),E(9,"button",2),E(10,"uds-translate"),X(11,"Ok"),A(),A(),A()),2&t&&(H(5),z("ngIf",n.servicesPools),H(1),z("ngIf",n.users),H(1),z("ngIf",n.groups))},directives:[pe,Pt,me,Cc,$t,Ce,kt,de,Cu,bc,Jr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function fce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Summary"),A())}function dce(e,a){if(1&e&&_e(0,"uds-information",16),2&e){var t=$(2);z("value",t.authenticator)("gui",t.gui)}}function hce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Users"),A())}function pce(e,a){if(1&e){var t=De();E(0,"uds-table",17),ee("loaded",function(c){return ve(t),$(2).onLoad(c)})("newAction",function(c){return ve(t),$(2).onNewUser(c)})("editAction",function(c){return ve(t),$(2).onEditUser(c)})("deleteAction",function(c){return ve(t),$(2).onDeleteUser(c)})("customButtonAction",function(c){return ve(t),$(2).onUserInformation(c)}),A()}if(2&e){var n=$(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function vce(e,a){if(1&e){var t=De();E(0,"uds-table",18),ee("loaded",function(c){return ve(t),$(2).onLoad(c)})("editAction",function(c){return ve(t),$(2).onEditUser(c)})("deleteAction",function(c){return ve(t),$(2).onDeleteUser(c)})("customButtonAction",function(c){return ve(t),$(2).onUserInformation(c)}),A()}if(2&e){var n=$(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function gce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Groups"),A())}function mce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Logs"),A())}function _ce(e,a){if(1&e){var t=De();E(0,"div",6),E(1,"div",7),E(2,"mat-tab-group",8),ee("selectedIndexChange",function(c){return ve(t),$().selectedTab=c}),E(3,"mat-tab"),re(4,fce,2,0,"ng-template",9),E(5,"div",10),re(6,dce,1,2,"uds-information",11),A(),A(),E(7,"mat-tab"),re(8,hce,2,0,"ng-template",9),E(9,"div",10),re(10,pce,1,6,"uds-table",12),re(11,vce,1,6,"uds-table",13),A(),A(),E(12,"mat-tab"),re(13,gce,2,0,"ng-template",9),E(14,"div",10),E(15,"uds-table",14),ee("loaded",function(c){return ve(t),$().onLoad(c)})("newAction",function(c){return ve(t),$().onNewGroup(c)})("editAction",function(c){return ve(t),$().onEditGroup(c)})("deleteAction",function(c){return ve(t),$().onDeleteGroup(c)})("customButtonAction",function(c){return ve(t),$().onGroupInformation(c)}),A(),A(),A(),E(16,"mat-tab"),re(17,mce,2,0,"ng-template",9),E(18,"div",10),_e(19,"uds-logs-table",15),A(),A(),A(),A(),A()}if(2&e){var n=$();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.authenticator&&n.gui),H(4),z("ngIf",n.authenticator.type_info.canCreateUsers),H(1),z("ngIf",!n.authenticator.type_info.canCreateUsers),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var yce=function(e){return["/authenticators",e]},yq=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:li.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).subscribe(function(n){a.authenticator=n,a.rest.authenticators.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");a.table.selectElement("id",t||n)}},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onNewUser=function(a){Oee.launch(this.api,this.authenticator).subscribe(function(t){return a.table.overview()})},e.prototype.onEditUser=function(a){Oee.launch(this.api,this.authenticator,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteUser=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user"))},e.prototype.onNewGroup=function(a){Lee.launch(this.api,this.authenticator,a.param.type).subscribe(function(t){return a.table.overview()})},e.prototype.onEditGroup=function(a){Lee.launch(this.api,this.authenticator,a.param.type,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete group"))},e.prototype.onUserInformation=function(a){ece.launch(this.api,this.users,a.table.selection.selected[0])},e.prototype.onGroupInformation=function(a){cce.launch(this.api,this.groups,a.table.selection.selected[0])},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"a",2),E(3,"i",3),X(4,"arrow_back"),A(),A(),X(5," \xa0"),_e(6,"img",4),X(7),A(),re(8,_ce,20,14,"div",5),A()),2&t&&(H(2),z("routerLink",Go(4,yce,n.authenticator?n.authenticator.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),dn),H(1),Ve(" \xa0",null==n.authenticator?null:n.authenticator.name," "),H(1),z("ngIf",n.authenticator))},directives:[wl,$t,Cc,Cu,bc,Jr,MS,Pt,B5],styles:[""]}),e}(),Fee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New OS Manager"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit OS Manager"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete OS Manager"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[""]}),e}(),Nee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Transport"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Transport"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Transport"))},e.prototype.processElement=function(a){try{a.allowed_oss=a.allowed_oss.map(function(t){return t.id}).join(", ")}catch(t){a.allowed_oss=""}},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),e}(),Vee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Network"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Network"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Network"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[""]}),e}(),Bee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Proxy"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Proxy"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Proxy"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[""]}),e}(),Hee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Al.getGotoButton(eJ,"provider_id"),Al.getGotoButton(tJ,"provider_id","service_id"),Al.getGotoButton(iJ,"osmanager_id"),Al.getGotoButton(aJ,"pool_group_id")],this.editing=!1}return e.prototype.ngOnInit=function(){},e.prototype.onChange=function(a){var t=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===a.on||"service_id"===a.on.field.name){if(""===a.all.service_id.value)return a.all.osmanager_id.gui.values.length=0,void n.forEach(function(l){return a.all[l].gui.rdonly=!0});this.rest.providers.service(a.all.service_id.value).subscribe(function(l){a.all.allow_users_reset.gui.rdonly=!l.info.can_reset,a.all.osmanager_id.gui.values.length=0,t.editing||(a.all.osmanager_id.gui.rdonly=!l.info.needs_manager),!0===l.info.needs_manager?t.rest.osManagers.overview().subscribe(function(c){c.forEach(function(h){h.servicesTypes.forEach(function(_){l.info.servicesTypeProvided.includes(_)&&a.all.osmanager_id.gui.values.push({id:h.id,text:h.name})})}),a.all.osmanager_id.value=a.all.osmanager_id.gui.values.length>0?a.all.osmanager_id.value||a.all.osmanager_id.gui.values[0].id:""}):(a.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),a.all.osmanager_id.value=""),n.forEach(function(c){return a.all[c].gui.rdonly=!l.info.uses_cache}),a.all.cache_l2_srvs.gui.rdonly=!1===l.info.uses_cache||!1===l.info.uses_cache_l2,a.all.publish_on_save&&(a.all.publish_on_save.gui.rdonly=!l.info.needs_publication)}),n.forEach(function(l){a.all[l].gui.rdonly=!0})}},e.prototype.onNew=function(a){var t=this;this.editing=!1,this.api.gui.forms.typedNewForm(a,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:sd.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(n){return t.onChange(n)})},e.prototype.onEdit=function(a){var t=this;this.editing=!0,this.api.gui.forms.typedEditForm(a,django.gettext("Edit Service Pool"),!1).subscribe(function(n){return t.onChange(n)})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service pool"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.show_transports=this.api.yesno(a.show_transports),a.restrained?(a.name='warning '+this.api.gui.icon(a.info.icon)+a.name,a.state="T"):(a.name=this.api.gui.icon(a.info.icon)+a.name,a.meta_member.length>0&&(a.state="V")),a.name=this.api.safeString(a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onDetail=function(a){this.api.navigation.gotoServicePoolDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),A()),2&t&&z("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Jr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),e}();function bce(e,a){if(1&e&&(E(0,"mat-option",8),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Cce(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",9),ee("changed",function(l){return ve(t),$().userFilter=l}),A()}}function wce(e,a){if(1&e&&(E(0,"mat-option",8),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var zee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=l.userService,this.userServices=l.userServices}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,userServices:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){(""===a.userFilter||n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Change owner of assigned service"),A(),A(),E(3,"mat-dialog-content"),E(4,"div",1),E(5,"mat-form-field"),E(6,"mat-label"),E(7,"uds-translate"),X(8,"Authenticator"),A(),A(),E(9,"mat-select",2),ee("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(10,bce,2,2,"mat-option",3),A(),A(),E(11,"mat-form-field"),E(12,"mat-label"),E(13,"uds-translate"),X(14,"User"),A(),A(),E(15,"mat-select",4),ee("ngModelChange",function(c){return n.userId=c}),re(16,Cce,1,0,"uds-mat-select-search",5),re(17,wce,2,2,"mat-option",3),A(),A(),A(),A(),E(18,"mat-dialog-actions"),E(19,"button",6),E(20,"uds-translate"),X(21,"Cancel"),A(),A(),E(22,"button",7),ee("click",function(){return n.save()}),E(23,"uds-translate"),X(24,"Ok"),A(),A(),A()),2&t&&(H(9),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[pe,Pt,me,Dr,$r,$a,Fr,Tr,fr,$t,Ce,kt,de,g,wc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Sce(e,a){1&e&&(E(0,"uds-translate"),X(1,"New access rule for"),A())}function kce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Edit access rule for"),A())}function Mce(e,a){1&e&&(E(0,"uds-translate"),X(1,"Default fallback access for"),A())}function xce(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",11),ee("changed",function(l){return ve(t),$(2).calendarsFilter=l}),A()}}function Tce(e,a){if(1&e&&(E(0,"mat-option",12),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Dce(e,a){if(1&e){var t=De();On(0),E(1,"mat-form-field"),E(2,"mat-label"),E(3,"uds-translate"),X(4,"Priority"),A(),A(),E(5,"input",8),ee("ngModelChange",function(c){return ve(t),$().accessRule.priority=c}),A(),A(),E(6,"mat-form-field"),E(7,"mat-label"),E(8,"uds-translate"),X(9,"Calendar"),A(),A(),E(10,"mat-select",3),ee("ngModelChange",function(c){return ve(t),$().accessRule.calendarId=c}),re(11,xce,1,0,"uds-mat-select-search",9),re(12,Tce,2,2,"mat-option",10),A(),A(),Tn()}if(2&e){var n=$();H(5),z("ngModel",n.accessRule.priority),H(5),z("ngModel",n.accessRule.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var H5=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=l.pool,this.model=l.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},l.accessRule&&(this.accessRule.id=l.accessRule.id)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n,accessRule:l},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.calendars.summary().subscribe(function(t){a.calendars=t}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(t){a.accessRule=t}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(t){return a.accessRule.access=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this,t=function(){a.dialogRef.close(),a.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(t)},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(E(0,"h4",0),re(1,Sce,2,0,"uds-translate",1),re(2,kce,2,0,"uds-translate",1),re(3,Mce,2,0,"uds-translate",1),X(4),A(),E(5,"mat-dialog-content"),E(6,"div",2),re(7,Dce,13,4,"ng-container",1),E(8,"mat-form-field"),E(9,"mat-label"),E(10,"uds-translate"),X(11,"Action"),A(),A(),E(12,"mat-select",3),ee("ngModelChange",function(c){return n.accessRule.access=c}),E(13,"mat-option",4),X(14," ALLOW "),A(),E(15,"mat-option",5),X(16," DENY "),A(),A(),A(),A(),A(),E(17,"mat-dialog-actions"),E(18,"button",6),E(19,"uds-translate"),X(20,"Cancel"),A(),A(),E(21,"button",7),ee("click",function(){return n.save()}),E(22,"uds-translate"),X(23,"Ok"),A(),A(),A()),2&t&&(H(1),z("ngIf",void 0===n.accessRule.id),H(1),z("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),H(1),z("ngIf",-1===n.accessRule.id),H(1),Ve(" ",n.pool.name,"\n"),H(3),z("ngIf",-1!==n.accessRule.id),H(5),z("ngModel",n.accessRule.access))},directives:[pe,$t,me,Dr,$r,Pt,$a,Fr,Tr,g,Ce,kt,de,ta,Mg,Ui,fr,wc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Ace(e,a){if(1&e&&(E(0,"mat-option",8),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Ece(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",9),ee("changed",function(l){return ve(t),$().groupFilter=l}),A()}}function Pce(e,a){if(1&e&&(On(0),X(1),Tn()),2&e){var t=$().$implicit;H(1),Ve(" (",t.comments,")")}}function Oce(e,a){if(1&e&&(E(0,"mat-option",8),X(1),re(2,Pce,2,1,"ng-container",10),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var Uee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=l.pool,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.groupId="",this.authChanged()},e.prototype.filteredGroups=function(){var a=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(t){return t.name.toLocaleLowerCase().includes(a.groupFilter.toLocaleLowerCase())})},e.prototype.save=function(){var a=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},e.prototype.authChanged=function(){var a=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(t){a.groups=t})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"New group for"),A(),X(3),A(),E(4,"mat-dialog-content"),E(5,"div",1),E(6,"mat-form-field"),E(7,"mat-label"),E(8,"uds-translate"),X(9,"Authenticator"),A(),A(),E(10,"mat-select",2),ee("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(11,Ace,2,2,"mat-option",3),A(),A(),E(12,"mat-form-field"),E(13,"mat-label"),E(14,"uds-translate"),X(15,"Group"),A(),A(),E(16,"mat-select",4),ee("ngModelChange",function(c){return n.groupId=c}),re(17,Ece,1,0,"uds-mat-select-search",5),re(18,Oce,3,3,"mat-option",3),A(),A(),A(),A(),E(19,"mat-dialog-actions"),E(20,"button",6),E(21,"uds-translate"),X(22,"Cancel"),A(),A(),E(23,"button",7),ee("click",function(){return n.save()}),E(24,"uds-translate"),X(25,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.pool.name,"\n"),H(7),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.groupId),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filteredGroups()))},directives:[pe,Pt,me,Dr,$r,$a,Fr,Tr,fr,$t,Ce,kt,de,g,wc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Ice(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",7),ee("changed",function(l){return ve(t),$().transportsFilter=l}),A()}}function Rce(e,a){if(1&e&&(On(0),X(1),Tn()),2&e){var t=$().$implicit;H(1),Ve(" (",t.comments,")")}}function Lce(e,a){if(1&e&&(E(0,"mat-option",8),X(1),re(2,Rce,2,1,"ng-container",9),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var Fce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.transports.summary().subscribe(function(t){a.transports=t.filter(function(n){return a.servicePool.info.allowedProtocols.includes(n.protocol)})})},e.prototype.filteredTransports=function(){var a=this;return this.transportsFilter?this.transports.filter(function(t){return t.name.toLocaleLowerCase().includes(a.transportsFilter.toLocaleLowerCase())}):this.transports},e.prototype.save=function(){var a=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"New transport for"),A(),X(3),A(),E(4,"mat-dialog-content"),E(5,"div",1),E(6,"mat-form-field"),E(7,"mat-label"),E(8,"uds-translate"),X(9,"Transport"),A(),A(),E(10,"mat-select",2),ee("ngModelChange",function(c){return n.transportId=c}),re(11,Ice,1,0,"uds-mat-select-search",3),re(12,Lce,3,3,"mat-option",4),A(),A(),A(),A(),E(13,"mat-dialog-actions"),E(14,"button",5),E(15,"uds-translate"),X(16,"Cancel"),A(),A(),E(17,"button",6),ee("click",function(){return n.save()}),E(18,"uds-translate"),X(19,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.transportId),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filteredTransports()))},directives:[pe,Pt,me,Dr,$r,$a,Fr,Tr,$t,fr,Ce,kt,de,wc,g],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Nce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.reason="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){},e.prototype.save=function(){var a=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"New publication for"),A(),X(3),A(),E(4,"mat-dialog-content"),E(5,"div",1),E(6,"mat-form-field"),E(7,"mat-label"),E(8,"uds-translate"),X(9,"Comments"),A(),A(),E(10,"input",2),ee("ngModelChange",function(c){return n.reason=c}),A(),A(),A(),A(),E(11,"mat-dialog-actions"),E(12,"button",3),E(13,"uds-translate"),X(14,"Cancel"),A(),A(),E(15,"button",4),ee("click",function(){return n.save()}),E(16,"uds-translate"),X(17,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.reason))},directives:[pe,Pt,me,Dr,$r,ta,Ui,Fr,Tr,Ce,kt,de],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Vce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1})},e.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Changelog of"),A(),X(3),A(),E(4,"mat-dialog-content"),_e(5,"uds-table",1,2),A(),E(7,"mat-dialog-actions"),E(8,"button",3),E(9,"uds-translate"),X(10,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(2),z("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[pe,Pt,me,Jr,Ce,kt,de],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Bce(e,a){1&e&&(On(0),E(1,"uds-translate"),X(2,"Edit action for"),A(),Tn())}function Hce(e,a){1&e&&(E(0,"uds-translate"),X(1,"New action for"),A())}function zce(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",14),ee("changed",function(l){return ve(t),$().calendarsFilter=l}),A()}}function Uce(e,a){if(1&e&&(E(0,"mat-option",15),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Gce(e,a){if(1&e&&(E(0,"mat-option",15),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.description," ")}}function jce(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",14),ee("changed",function(l){return ve(t),$(2).transportsFilter=l}),A()}}function Wce(e,a){if(1&e&&(E(0,"mat-option",15),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Yce(e,a){if(1&e){var t=De();On(0),E(1,"mat-form-field"),E(2,"mat-label"),E(3,"uds-translate"),X(4,"Transport"),A(),A(),E(5,"mat-select",4),ee("ngModelChange",function(c){return ve(t),$().paramValue=c}),re(6,jce,1,0,"uds-mat-select-search",5),re(7,Wce,2,2,"mat-option",6),A(),A(),Tn()}if(2&e){var n=$();H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function qce(e,a){if(1&e&&(E(0,"mat-option",15),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Xce(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",14),ee("changed",function(l){return ve(t),$(2).groupsFilter=l}),A()}}function Zce(e,a){if(1&e&&(E(0,"mat-option",15),X(1),A()),2&e){var t=a.$implicit;z("value",$(2).authenticator+"@"+t.id),H(1),Ve(" ",t.name," ")}}function Kce(e,a){if(1&e){var t=De();On(0),E(1,"mat-form-field"),E(2,"mat-label"),E(3,"uds-translate"),X(4,"Authenticator"),A(),A(),E(5,"mat-select",10),ee("ngModelChange",function(c){return ve(t),$().authenticator=c})("valueChange",function(c){return ve(t),$().changedAuthenticator(c)}),re(6,qce,2,2,"mat-option",6),A(),A(),E(7,"mat-form-field"),E(8,"mat-label"),E(9,"uds-translate"),X(10,"Group"),A(),A(),E(11,"mat-select",4),ee("ngModelChange",function(c){return ve(t),$().paramValue=c}),re(12,Xce,1,0,"uds-mat-select-search",5),re(13,Zce,2,2,"mat-option",6),A(),A(),Tn()}if(2&e){var n=$();H(5),z("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function Qce(e,a){if(1&e){var t=De();On(0),E(1,"div",8),E(2,"span",16),X(3),A(),X(4,"\xa0 "),E(5,"mat-slide-toggle",4),ee("ngModelChange",function(c){return ve(t),$().paramValue=c}),A(),A(),Tn()}if(2&e){var n=$();H(3),In(n.parameter.description),H(2),z("ngModel",n.paramValue)}}function $ce(e,a){if(1&e){var t=De();On(0),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"input",17),ee("ngModelChange",function(c){return ve(t),$().paramValue=c}),A(),A(),Tn()}if(2&e){var n=$();H(3),Ve(" ",n.parameter.description," "),H(1),z("type",n.parameter.type)("ngModel",n.paramValue)}}var Jce=function(){return["transport","group","bool"]},Gee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=l.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==l.scheduledAction&&(this.scheduledAction.id=l.scheduledAction.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t,scheduledAction:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){return a.authenticators=t}),this.rest.transports.summary().subscribe(function(t){return a.transports=t}),this.rest.calendars.summary().subscribe(function(t){return a.calendars=t}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(t){a.actionList=t,a.actionList.forEach(function(n){a.paramsDict[n.id]=n.params[0]}),void 0!==a.scheduledAction.id&&a.rest.servicesPools.detail(a.servicePool.id,"actions").get(a.scheduledAction.id).subscribe(function(n){a.scheduledAction=n,a.changedAction(a.scheduledAction.action)})})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.changedAction=function(a){if(this.parameter=this.paramsDict[a],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var t=this.paramValue.split("@");2!==t.length&&(t=["",""]),this.authenticator=t[0],this.changedAuthenticator(this.authenticator)}},e.prototype.changedAuthenticator=function(a){var t=this;!a||this.rest.authenticators.detail(a,"groups").summary().subscribe(function(n){return t.groups=n})},e.prototype.save=function(){var a=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(E(0,"h4",0),re(1,Bce,3,0,"ng-container",1),re(2,Hce,2,0,"ng-template",null,2,Ds),X(4),A(),E(5,"mat-dialog-content"),E(6,"div",3),E(7,"mat-form-field"),E(8,"mat-label"),E(9,"uds-translate"),X(10,"Calendar"),A(),A(),E(11,"mat-select",4),ee("ngModelChange",function(h){return n.scheduledAction.calendarId=h}),re(12,zce,1,0,"uds-mat-select-search",5),re(13,Uce,2,2,"mat-option",6),A(),A(),E(14,"mat-form-field"),E(15,"mat-label"),E(16,"uds-translate"),X(17,"Events offset (minutes)"),A(),A(),E(18,"input",7),ee("ngModelChange",function(h){return n.scheduledAction.eventsOffset=h}),A(),A(),E(19,"div",8),E(20,"span",9),E(21,"uds-translate"),X(22,"At the beginning of the interval?"),A(),A(),E(23,"mat-slide-toggle",4),ee("ngModelChange",function(h){return n.scheduledAction.atStart=h}),X(24),A(),A(),E(25,"mat-form-field"),E(26,"mat-label"),E(27,"uds-translate"),X(28,"Action"),A(),A(),E(29,"mat-select",10),ee("ngModelChange",function(h){return n.scheduledAction.action=h})("valueChange",function(h){return n.changedAction(h)}),re(30,Gce,2,2,"mat-option",6),A(),A(),re(31,Yce,8,3,"ng-container",11),re(32,Kce,14,5,"ng-container",11),re(33,Qce,6,2,"ng-container",11),re(34,$ce,5,3,"ng-container",11),A(),A(),E(35,"mat-dialog-actions"),E(36,"button",12),E(37,"uds-translate"),X(38,"Cancel"),A(),A(),E(39,"button",13),ee("click",function(){return n.save()}),E(40,"uds-translate"),X(41,"Ok"),A(),A(),A()),2&t){var l=Fn(3);H(1),z("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.scheduledAction.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),H(5),z("ngModel",n.scheduledAction.eventsOffset),H(5),z("ngModel",n.scheduledAction.atStart),H(1),Ve(" ",n.api.yesno(n.scheduledAction.atStart)," "),H(5),z("ngModel",n.scheduledAction.action),H(1),z("ngForOf",n.actionList),H(1),z("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","group"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf",(null==n.parameter?null:n.parameter.type)&&!GC(15,Jce).includes(n.parameter.type))}},directives:[pe,$t,me,Dr,$r,Pt,$a,Fr,Tr,fr,ta,Mg,Ui,xS,Ce,kt,de,wc,g],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}(),bq=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.userService=l.userService,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,model:n},disableClose:!1})},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Logs of"),A(),X(3),A(),E(4,"mat-dialog-content"),_e(5,"uds-logs-table",1),A(),E(6,"mat-dialog-actions"),E(7,"button",2),E(8,"uds-translate"),X(9,"Ok"),A(),A(),A()),2&t&&(H(3),Ve(" ",n.userService.name,"\n"),H(2),z("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[pe,Pt,me,MS,Ce,kt,de],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function efe(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",8),ee("changed",function(l){return ve(t),$().assignablesServicesFilter=l}),A()}}function tfe(e,a){if(1&e&&(E(0,"mat-option",9),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}function nfe(e,a){if(1&e&&(E(0,"mat-option",9),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function rfe(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",8),ee("changed",function(l){return ve(t),$().userFilter=l}),A()}}function ife(e,a){if(1&e&&(E(0,"mat-option",9),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var afe=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(t){a.assignablesServices=t})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.filteredAssignables=function(){var a=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var t=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(a.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(E(0,"h4",0),E(1,"uds-translate"),X(2,"Assign service to user manually"),A(),A(),E(3,"mat-dialog-content"),E(4,"div",1),E(5,"mat-form-field"),E(6,"mat-label"),E(7,"uds-translate"),X(8,"Service"),A(),A(),E(9,"mat-select",2),ee("ngModelChange",function(c){return n.serviceId=c}),re(10,efe,1,0,"uds-mat-select-search",3),re(11,tfe,2,2,"mat-option",4),A(),A(),E(12,"mat-form-field"),E(13,"mat-label"),E(14,"uds-translate"),X(15,"Authenticator"),A(),A(),E(16,"mat-select",5),ee("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(17,nfe,2,2,"mat-option",4),A(),A(),E(18,"mat-form-field"),E(19,"mat-label"),E(20,"uds-translate"),X(21,"User"),A(),A(),E(22,"mat-select",2),ee("ngModelChange",function(c){return n.userId=c}),re(23,rfe,1,0,"uds-mat-select-search",3),re(24,ife,2,2,"mat-option",4),A(),A(),A(),A(),E(25,"mat-dialog-actions"),E(26,"button",6),E(27,"uds-translate"),X(28,"Cancel"),A(),A(),E(29,"button",7),ee("click",function(){return n.save()}),E(30,"uds-translate"),X(31,"Ok"),A(),A(),A()),2&t&&(H(9),z("ngModel",n.serviceId),H(1),z("ngIf",n.assignablesServices.length>10),H(1),z("ngForOf",n.filteredAssignables()),H(5),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[pe,Pt,me,Dr,$r,$a,Fr,Tr,$t,fr,Ce,kt,de,wc,g],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),ofe=function(){function e(a){this.rest=a,this.chart=null}return e.prototype.onResize=function(a){this.chart&&this.chart.resize()},e.prototype.ngOnInit=function(){var a=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(t){a.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(function(n){return wu("SHORT_DATETIME_FORMAT",new Date(n.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(function(n){return n.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(function(n){return n.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(function(n){return n.value})}]}})},e.prototype.chartInit=function(a){this.chart=a},e.\u0275fac=function(t){return new(t||e)(N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,n){1&t&&ee("resize",function(c){return n.onResize(c)},!1,on)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),ee("chartInit",function(c){return n.chartInit(c)}),A(),A()),2&t&&(H(1),z("options",n.options))},directives:[PJ],styles:[""]}),e}();function sfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Summary"),A())}function lfe(e,a){if(1&e&&_e(0,"uds-information",21),2&e){var t=$(2);z("value",t.servicePool)("gui",t.gui)}}function ufe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Assigned services"),A())}function cfe(e,a){if(1&e){var t=De();E(0,"uds-table",22),ee("customButtonAction",function(c){return ve(t),$(2).onCustomAssigned(c)})("deleteAction",function(c){return ve(t),$(2).onDeleteAssigned(c)}),A()}if(2&e){var n=$(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function ffe(e,a){if(1&e){var t=De();E(0,"uds-table",23),ee("customButtonAction",function(c){return ve(t),$(2).onCustomAssigned(c)})("newAction",function(c){return ve(t),$(2).onNewAssigned(c)})("deleteAction",function(c){return ve(t),$(2).onDeleteAssigned(c)}),A()}if(2&e){var n=$(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function dfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Cache"),A())}function hfe(e,a){if(1&e){var t=De();E(0,"mat-tab"),re(1,dfe,2,0,"ng-template",9),E(2,"div",10),E(3,"uds-table",24),ee("customButtonAction",function(c){return ve(t),$(2).onCustomCached(c)})("deleteAction",function(c){return ve(t),$(2).onDeleteCache(c)}),A(),A(),A()}if(2&e){var n=$(2);H(3),z("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function pfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Groups"),A())}function vfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Transports"),A())}function gfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Publications"),A())}function mfe(e,a){if(1&e){var t=De();E(0,"mat-tab"),re(1,gfe,2,0,"ng-template",9),E(2,"div",10),E(3,"uds-table",25),ee("customButtonAction",function(c){return ve(t),$(2).onCustomPublication(c)})("newAction",function(c){return ve(t),$(2).onNewPublication(c)})("rowSelected",function(c){return ve(t),$(2).onPublicationRowSelect(c)}),A(),A(),A()}if(2&e){var n=$(2);H(3),z("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function _fe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Scheduled actions"),A())}function yfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Access calendars"),A())}function bfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Charts"),A())}function Cfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Logs"),A())}function wfe(e,a){if(1&e){var t=De();E(0,"div",6),E(1,"div",7),E(2,"mat-tab-group",8),ee("selectedIndexChange",function(h){return ve(t),$().selectedTab=h}),E(3,"mat-tab"),re(4,sfe,2,0,"ng-template",9),E(5,"div",10),re(6,lfe,1,2,"uds-information",11),A(),A(),E(7,"mat-tab"),re(8,ufe,2,0,"ng-template",9),E(9,"div",10),re(10,cfe,1,7,"uds-table",12),re(11,ffe,1,7,"ng-template",null,13,Ds),A(),A(),re(13,hfe,4,7,"mat-tab",14),E(14,"mat-tab"),re(15,pfe,2,0,"ng-template",9),E(16,"div",10),E(17,"uds-table",15),ee("newAction",function(h){return ve(t),$().onNewGroup(h)})("deleteAction",function(h){return ve(t),$().onDeleteGroup(h)}),A(),A(),A(),E(18,"mat-tab"),re(19,vfe,2,0,"ng-template",9),E(20,"div",10),E(21,"uds-table",16),ee("newAction",function(h){return ve(t),$().onNewTransport(h)})("deleteAction",function(h){return ve(t),$().onDeleteTransport(h)}),A(),A(),A(),re(22,mfe,4,6,"mat-tab",14),E(23,"mat-tab"),re(24,_fe,2,0,"ng-template",9),E(25,"div",10),E(26,"uds-table",17),ee("customButtonAction",function(h){return ve(t),$().onCustomScheduleAction(h)})("newAction",function(h){return ve(t),$().onNewScheduledAction(h)})("editAction",function(h){return ve(t),$().onEditScheduledAction(h)})("deleteAction",function(h){return ve(t),$().onDeleteScheduledAction(h)}),A(),A(),A(),E(27,"mat-tab"),re(28,yfe,2,0,"ng-template",9),E(29,"div",10),E(30,"uds-table",18),ee("newAction",function(h){return ve(t),$().onNewAccessCalendar(h)})("editAction",function(h){return ve(t),$().onEditAccessCalendar(h)})("deleteAction",function(h){return ve(t),$().onDeleteAccessCalendar(h)})("loaded",function(h){return ve(t),$().onAccessCalendarLoad(h)}),A(),A(),A(),E(31,"mat-tab"),re(32,bfe,2,0,"ng-template",9),E(33,"div",10),_e(34,"uds-service-pools-charts",19),A(),A(),E(35,"mat-tab"),re(36,Cfe,2,0,"ng-template",9),E(37,"div",10),_e(38,"uds-logs-table",20),A(),A(),A(),A(),A()}if(2&e){var n=Fn(12),l=$();H(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),H(4),z("ngIf",l.servicePool&&l.gui),H(4),z("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),H(3),z("ngIf",l.cache),H(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(1),z("ngIf",l.publications),H(4),z("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("poolUuid",l.servicePool.id),H(4),z("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var Sfe=function(e){return["/pools","service-pools",e]},Cq='event'+django.gettext("Logs")+"",kfe='computer'+django.gettext("VNC")+"",Mfe='schedule'+django.gettext("Launch now")+"",jee='perm_identity'+django.gettext("Change owner")+"",xfe='perm_identity'+django.gettext("Assign service")+"",Tfe='cancel'+django.gettext("Cancel")+"",Dfe='event'+django.gettext("Changelog")+"",Wee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:Mfe,type:li.SINGLE_SELECT},Al.getGotoButton(q9,"calendarId")],this.customButtonAccessCalendars=[Al.getGotoButton(q9,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:jee,type:li.SINGLE_SELECT},{id:"log",html:Cq,type:li.SINGLE_SELECT},Al.getGotoButton(Y9,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Cq,type:li.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Tfe,type:li.SINGLE_SELECT},{id:"changelog",html:Dfe,type:li.ALWAYS}],this.customButtonsGroups=[Al.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Al.getGotoButton(rJ,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return e.cleanInvalidSelections=function(a){return a.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(t){return a.table.selection.deselect(t)}),a.table.selection.isEmpty()},e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access"),this.rest.servicesPools.get(t).subscribe(function(n){a.servicePool=n,a.cache=a.servicePool.info.uses_cache?a.rest.servicesPools.detail(t,"cache"):null,a.publications=a.servicePool.info.needs_publication?a.rest.servicesPools.detail(t,"publications"):null,a.api.config.admin.vnc_userservices&&a.customButtonsAssignedServices.push({id:"vnc",html:kfe,type:li.ONLY_MENU}),a.servicePool.info.can_list_assignables&&a.customButtonsAssignedServices.push({id:"assign-service",html:xfe,type:li.ALWAYS}),a.rest.servicesPools.gui().subscribe(function(l){a.gui=l.filter(function(c){return!(!1===a.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(c.name)||!1===a.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===c.name||!1===a.servicePool.info.needs_manager&&"osmanager_id"===c.name)})})})},e.prototype.onNewAssigned=function(a){},e.prototype.vnc=function(a){var n=new Blob(["[connection]\nhost="+a.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,vq.saveAs)(n,a.ip+".vnc")},100)},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;zee.launch(this.api,t,this.assignedServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id?bq.launch(this.api,t,this.assignedServices):"assign-service"===a.param.id?afe.launch(this.api,this.servicePool).subscribe(function(n){return a.table.overview()}):"vnc"===a.param.id&&this.vnc(t)},e.prototype.onCustomCached=function(a){"log"===a.param.id&&bq.launch(this.api,a.table.selection.selected[0],this.cache)},e.prototype.processsAssignedElement=function(a){a.in_use=this.api.yesno(a.in_use),a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onDeleteAssigned=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onDeleteCache=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete cached service"))},e.prototype.processsCacheElement=function(a){a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onNewGroup=function(a){Uee.launch(this.api,this.servicePool,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewTransport=function(a){Fce.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteTransport=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned transport"))},e.prototype.onNewPublication=function(a){Nce.launch(this.api,this.servicePool).subscribe(function(t){a.table.overview()})},e.prototype.onPublicationRowSelect=function(a){1===a.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(a.table.selection.selected[0].state))},e.prototype.onCustomPublication=function(a){var t=this;"cancel-publication"===a.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&t.publications.invoke(a.table.selection.selected[0].id+"/cancel").subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})}):"changelog"===a.param.id&&Vce.launch(this.api,this.servicePool)},e.prototype.onNewScheduledAction=function(a){Gee.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onEditScheduledAction=function(a){Gee.launch(this.api,this.servicePool,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteScheduledAction=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete scheduled action"))},e.prototype.onCustomScheduleAction=function(a){var t=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&t.scheduledActions.invoke(a.table.selection.selected[0].id+"/execute").subscribe(function(){t.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onNewAccessCalendar=function(a){H5.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){H5.launch(this.api,this.servicePool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processsCalendarOrScheduledElement=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"a",2),E(3,"i",3),X(4,"arrow_back"),A(),A(),X(5," \xa0"),_e(6,"img",4),X(7),A(),re(8,wfe,39,38,"div",5),A()),2&t&&(H(2),z("routerLink",Go(4,Sfe,n.servicePool?n.servicePool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/pools.png"),dn),H(1),Ve(" \xa0",null==n.servicePool?null:n.servicePool.name," "),H(1),z("ngIf",null!==n.servicePool))},directives:[wl,$t,Cc,Cu,bc,Jr,ofe,MS,Pt,B5],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),e}(),Yee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New meta pool"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit meta pool"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete meta pool"))},e.prototype.onDetail=function(a){this.api.navigation.gotoMetapoolDetail(a.param.id)},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.name=this.api.safeString(this.api.gui.icon(a.thumb)+a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),e}();function Afe(e,a){1&e&&(E(0,"uds-translate"),X(1,"New member pool"),A())}function Efe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Edit member pool"),A())}function Pfe(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",11),ee("changed",function(l){return ve(t),$().servicePoolsFilter=l}),A()}}function Ofe(e,a){if(1&e&&(E(0,"mat-option",12),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var qee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=l.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},l.memberPool&&(this.memberPool.id=l.memberPool.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:n,model:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.servicesPools.summary().subscribe(function(t){return a.servicePools=t}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(t){return a.memberPool=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(E(0,"h4",0),re(1,Afe,2,0,"uds-translate",1),re(2,Efe,2,0,"uds-translate",1),A(),E(3,"mat-dialog-content"),E(4,"div",2),E(5,"mat-form-field"),E(6,"mat-label"),E(7,"uds-translate"),X(8,"Priority"),A(),A(),E(9,"input",3),ee("ngModelChange",function(c){return n.memberPool.priority=c}),A(),A(),E(10,"mat-form-field"),E(11,"mat-label"),E(12,"uds-translate"),X(13,"Service pool"),A(),A(),E(14,"mat-select",4),ee("ngModelChange",function(c){return n.memberPool.pool_id=c}),re(15,Pfe,1,0,"uds-mat-select-search",5),re(16,Ofe,2,2,"mat-option",6),A(),A(),E(17,"div",7),E(18,"span",8),E(19,"uds-translate"),X(20,"Enabled?"),A(),A(),E(21,"mat-slide-toggle",4),ee("ngModelChange",function(c){return n.memberPool.enabled=c}),X(22),A(),A(),A(),A(),E(23,"mat-dialog-actions"),E(24,"button",9),E(25,"uds-translate"),X(26,"Cancel"),A(),A(),E(27,"button",10),ee("click",function(){return n.save()}),E(28,"uds-translate"),X(29,"Ok"),A(),A(),A()),2&t&&(H(1),z("ngIf",!(null!=n.memberPool&&n.memberPool.id)),H(1),z("ngIf",null==n.memberPool?null:n.memberPool.id),H(7),z("ngModel",n.memberPool.priority),H(5),z("ngModel",n.memberPool.pool_id),H(1),z("ngIf",n.servicePools.length>10),H(1),z("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),H(5),z("ngModel",n.memberPool.enabled),H(1),Ve(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[pe,$t,me,Dr,$r,Pt,ta,Mg,Ui,Fr,Tr,$a,fr,xS,Ce,kt,de,wc,g],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function Ife(e,a){1&e&&(E(0,"uds-translate"),X(1,"Summary"),A())}function Rfe(e,a){if(1&e&&_e(0,"uds-information",17),2&e){var t=$(2);z("value",t.metaPool)("gui",t.gui)}}function Lfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Service pools"),A())}function Ffe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Assigned services"),A())}function Nfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Groups"),A())}function Vfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Access calendars"),A())}function Bfe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Logs"),A())}function Hfe(e,a){if(1&e){var t=De();E(0,"div",6),E(1,"div",7),E(2,"mat-tab-group",8),ee("selectedIndexChange",function(c){return ve(t),$().selectedTab=c}),E(3,"mat-tab"),re(4,Ife,2,0,"ng-template",9),E(5,"div",10),re(6,Rfe,1,2,"uds-information",11),A(),A(),E(7,"mat-tab"),re(8,Lfe,2,0,"ng-template",9),E(9,"div",10),E(10,"uds-table",12),ee("newAction",function(c){return ve(t),$().onNewMemberPool(c)})("editAction",function(c){return ve(t),$().onEditMemberPool(c)})("deleteAction",function(c){return ve(t),$().onDeleteMemberPool(c)}),A(),A(),A(),E(11,"mat-tab"),re(12,Ffe,2,0,"ng-template",9),E(13,"div",10),E(14,"uds-table",13),ee("customButtonAction",function(c){return ve(t),$().onCustomAssigned(c)})("deleteAction",function(c){return ve(t),$().onDeleteAssigned(c)}),A(),A(),A(),E(15,"mat-tab"),re(16,Nfe,2,0,"ng-template",9),E(17,"div",10),E(18,"uds-table",14),ee("newAction",function(c){return ve(t),$().onNewGroup(c)})("deleteAction",function(c){return ve(t),$().onDeleteGroup(c)}),A(),A(),A(),E(19,"mat-tab"),re(20,Vfe,2,0,"ng-template",9),E(21,"div",10),E(22,"uds-table",15),ee("newAction",function(c){return ve(t),$().onNewAccessCalendar(c)})("editAction",function(c){return ve(t),$().onEditAccessCalendar(c)})("deleteAction",function(c){return ve(t),$().onDeleteAccessCalendar(c)})("loaded",function(c){return ve(t),$().onAccessCalendarLoad(c)}),A(),A(),A(),E(23,"mat-tab"),re(24,Bfe,2,0,"ng-template",9),E(25,"div",10),_e(26,"uds-logs-table",16),A(),A(),A(),A(),A()}if(2&e){var n=$();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.metaPool&&n.gui),H(4),z("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),H(4),z("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var zfe=function(e){return["/pools","meta-pools",e]},Ufe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Al.getGotoButton(W9,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:jee,type:li.SINGLE_SELECT},{id:"log",html:Cq,type:li.SINGLE_SELECT},Al.getGotoButton(Y9,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(t).subscribe(function(n){a.metaPool=n,a.rest.metaPools.gui().subscribe(function(l){a.gui=l}),a.memberPools=a.rest.metaPools.detail(t,"pools"),a.memberUserServices=a.rest.metaPools.detail(t,"services"),a.groups=a.rest.metaPools.detail(t,"groups"),a.accessCalendars=a.rest.metaPools.detail(t,"access")})},e.prototype.onNewMemberPool=function(a){qee.launch(this.api,this.memberPools).subscribe(function(){return a.table.overview()})},e.prototype.onEditMemberPool=function(a){qee.launch(this.api,this.memberPools,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteMemberPool=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Remove member pool"))},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;zee.launch(this.api,t,this.memberUserServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id&&bq.launch(this.api,t,this.memberUserServices)},e.prototype.onDeleteAssigned=function(a){Wee.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onNewGroup=function(a){Uee.launch(this.api,this.metaPool.id,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewAccessCalendar=function(a){H5.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){H5.launch(this.api,this.metaPool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){console.log("ID",a.table.selection.selected[0].id),-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processElement=function(a){a.enabled=this.api.yesno(a.enabled)},e.prototype.processsCalendarItem=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"a",2),E(3,"i",3),X(4,"arrow_back"),A(),A(),X(5," \xa0"),_e(6,"img",4),X(7),A(),re(8,Hfe,27,31,"div",5),A()),2&t&&(H(2),z("routerLink",Go(4,zfe,n.metaPool?n.metaPool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/metas.png"),dn),H(1),Ve(" ",null==n.metaPool?null:n.metaPool.name," "),H(1),z("ngIf",n.metaPool))},directives:[wl,$t,Cc,Cu,bc,Jr,MS,Pt,B5],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),e}(),Xee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete pool group"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A()),2&t&&z("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Jr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),e}(),Zee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New calendar"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit calendar"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar"))},e.prototype.onDetail=function(a){this.api.navigation.gotoCalendarDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),A()),2&t&&z("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Jr],styles:[""]}),e}(),Gfe=["mat-calendar-body",""];function jfe(e,a){if(1&e&&(E(0,"tr",2),E(1,"td",3),X(2),A(),A()),2&e){var t=$();H(1),qr("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ye("colspan",t.numCols),H(1),Ve(" ",t.label," ")}}function Wfe(e,a){if(1&e&&(E(0,"td",7),X(1),A()),2&e){var t=$(2);qr("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ye("colspan",t._firstRowOffset),H(1),Ve(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function Yfe(e,a){if(1&e){var t=De();E(0,"td",8),ee("click",function(C){var D=ve(t).$implicit;return $(2)._cellClicked(D,C)}),E(1,"div",9),X(2),A(),_e(3,"div",10),A()}if(2&e){var n=a.$implicit,l=a.index,c=$().index,h=$();qr("width",h._cellWidth)("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),ct("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",h._isActiveCell(c,l))("mat-calendar-body-range-start",h._isRangeStart(n.compareValue))("mat-calendar-body-range-end",h._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",h._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",h._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",h._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",h._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",h._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",h._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",h._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",h._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",h._isInPreview(n.compareValue)),z("ngClass",n.cssClasses)("tabindex",h._isActiveCell(c,l)?0:-1),Ye("data-mat-row",c)("data-mat-col",l)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",h._isSelected(n.compareValue)),H(1),ct("mat-calendar-body-selected",h._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",h._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",h.todayValue===n.compareValue),H(1),Ve(" ",n.displayValue," ")}}function qfe(e,a){if(1&e&&(E(0,"tr",4),re(1,Wfe,2,6,"td",5),re(2,Yfe,4,46,"td",6),A()),2&e){var t=a.$implicit,n=a.index,l=$();H(1),z("ngIf",0===n&&l._firstRowOffset),H(1),z("ngForOf",t)}}function Xfe(e,a){if(1&e&&(E(0,"th",5),E(1,"abbr",6),X(2),A(),A()),2&e){var t=a.$implicit;Ye("aria-label",t.long),H(1),Ye("title",t.long),H(1),In(t.narrow)}}var Kee=["*"];function Zfe(e,a){}function Kfe(e,a){if(1&e){var t=De();E(0,"mat-month-view",5),ee("activeDateChange",function(c){return ve(t),$().activeDate=c})("_userSelection",function(c){return ve(t),$()._dateSelected(c)}),A()}if(2&e){var n=$();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function Qfe(e,a){if(1&e){var t=De();E(0,"mat-year-view",6),ee("activeDateChange",function(c){return ve(t),$().activeDate=c})("monthSelected",function(c){return ve(t),$()._monthSelectedInYearView(c)})("selectedChange",function(c){return ve(t),$()._goToDateInView(c,"month")}),A()}if(2&e){var n=$();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function $fe(e,a){if(1&e){var t=De();E(0,"mat-multi-year-view",7),ee("activeDateChange",function(c){return ve(t),$().activeDate=c})("yearSelected",function(c){return ve(t),$()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return ve(t),$()._goToDateInView(c,"year")}),A()}if(2&e){var n=$();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function Jfe(e,a){}var ede=["button"];function tde(e,a){1&e&&(Ea(),E(0,"svg",3),_e(1,"path",4),A())}var nde=[[["","matDatepickerToggleIcon",""]]],rde=["[matDatepickerToggleIcon]"],aP=function(){var e=function(){function a(){F(this,a),this.changes=new He,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return j(a,[{key:"formatYearRange",value:function(n,l){return"".concat(n," \u2013 ").concat(l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ge({factory:function(){return new e},token:e,providedIn:"root"}),e}(),wq=function e(a,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a,_=arguments.length>6?arguments[6]:void 0;F(this,e),this.value=a,this.displayValue=t,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=h,this.rawValue=_},TS=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var h=l._getCellFromElement(c.target);h&&l._ngZone.run(function(){return l.previewChange.emit({value:h.enabled?h:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&Sq(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=t.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return j(a,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,h=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?h-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/h,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/h,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(Kn(1)).subscribe(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})}},{key:"_isRangeStart",value:function(n){return kq(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return Mq(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return xq(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return kq(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var h=this.rows[l][c-1];if(!h){var _=this.rows[l-1];h=_&&_[_.length-1]}return h&&!this._isRangeEnd(h.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var h=this.rows[l][c+1];if(!h){var _=this.rows[l+1];h=_&&_[0]}return h&&!this._isRangeStart(h.compareValue)}},{key:"_isComparisonEnd",value:function(n){return Mq(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return xq(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return kq(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return Mq(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return xq(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(Sq(n)?l=n:Sq(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),h=l.getAttribute("data-mat-col");if(c&&h)return this.rows[parseInt(c)][parseInt(h)]}return null}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(lt))},e.\u0275cmp=Se({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[vn],attrs:Gfe,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,n){1&t&&(re(0,jfe,3,6,"tr",0),re(1,qfe,3,2,"tr",1)),2&t&&(z("ngIf",n._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),e}();function Sq(e){return"TD"===e.nodeName}function kq(e,a,t){return null!==t&&a!==t&&e=a&&e===t}function xq(e,a,t,n){return n&&null!==a&&null!==t&&a!==t&&e>=a&&e<=t}var yo=function e(a,t){F(this,e),this.start=a,this.end=t},Tg=function(){var e=function(){function a(t,n){F(this,a),this.selection=t,this._adapter=n,this._selectionChanged=new He,this.selectionChanged=this._selectionChanged,this.selection=t}return j(a,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(void 0),ce(Qr))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),sde=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,null,l)}return j(n,[{key:"add",value:function(c){Oe(Pe(n.prototype),"updateSelection",this).call(this,c,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Tg);return e.\u0275fac=function(t){return new(t||e)(ce(Qr))},e.\u0275prov=Ge({token:e,factory:e.\u0275fac}),e}(),Qee={provide:Tg,deps:[[new Di,new uo,Tg],Qr],useFactory:function(e,a){return e||new sde(a)}},z5=new Ee("MAT_DATE_RANGE_SELECTION_STRATEGY"),$ee=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=h,this._rerenderSubscription=We.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return j(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof yo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zr(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var C,k,l=n.value,c=this._dateAdapter.getYear(this.activeDate),h=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,h,l);this._selected instanceof yo?(C=this._getDateInCurrentMonth(this._selected.start),k=this._getDateInCurrentMonth(this._selected.end)):C=k=this._getDateInCurrentMonth(this._selected),(C!==l||k!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void((!this.dateFilter||this.dateFilter(this._activeDate))&&(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),n.preventDefault()));case 27:return void(null!=this._previewEnd&&!zi(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),h=this._dateAdapter.getDayOfWeekNames("long").map(function(_,C){return{long:_,narrow:l[C]}});this._weekdays=h.slice(n).concat(h.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,h=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),h=this._dateAdapter.getDate(n);return new Date(l,c,h).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof yo?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Gt),N(Dl,8),N(Qr,8),N(xr,8),N(z5,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-month-view"]],viewQuery:function(t,n){var l;1&t&&dt(TS,5),2&t&&Le(l=Fe())&&(n._matCalendarBody=l.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[vn],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,n){1&t&&(E(0,"table",0),E(1,"thead",1),E(2,"tr"),re(3,Xfe,3,3,"th",2),A(),E(4,"tr"),_e(5,"th",3),A(),A(),E(6,"tbody",4),ee("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),A(),A()),2&t&&(H(3),z("ngForOf",n._weekdays),H(3),z("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[fr,TS],encapsulation:2,changeDetection:0}),e}(),Jee=function(){var e=function(){function a(t,n,l){F(this,a),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=We.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return j(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),ete(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof yo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zr(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-oP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var h=0,_=[];h<24;h++)_.push(c+h),4==_.length&&(this._years.push(_.map(function(C){return n._createCellForYear(C)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),h=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),h)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-oP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-oP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n});break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_getActiveCell",value:function(){return oP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),h=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new wq(n,c,c,this._shouldEnableYear(n),h)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>h}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),h=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",tr("120ms cubic-bezier(0, 0, 0.2, 1)",rd([ot({opacity:0,transform:"scale(1, 0.8)"}),ot({opacity:1,transform:"scale(1, 1)"})]))),Wn("void => enter-dialog",tr("150ms cubic-bezier(0, 0, 0.2, 1)",rd([ot({opacity:0,transform:"scale(0.7)"}),ot({transform:"none",opacity:1})]))),Wn("* => void",tr("100ms linear",ot({opacity:0})))]),fadeInCalendar:Ci("fadeInCalendar",[Nn("void",ot({opacity:0})),Nn("enter",ot({opacity:1})),Wn("void => *",tr("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},_de=0,ite=new Ee("mat-datepicker-scroll-strategy"),bde={provide:ite,deps:[bi],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Cde=mu(function(){return function e(a){F(this,e),this._elementRef=a}}()),wde=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._changeDetectorRef=c,D._globalModel=h,D._dateAdapter=_,D._rangeSelectionStrategy=C,D._subscriptions=new We,D._animationDone=new He,D._actionsPortal=null,D._closeButtonText=k.closeCalendarLabel,D}return j(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var h=this._model.selection,_=c.value,C=h instanceof yo;if(C&&this._rangeSelectionStrategy){var k=this._rangeSelectionStrategy.selectionFinished(_,h,c.event);this._model.updateSelection(k,this)}else _&&(C||!this._dateAdapter.sameDate(_,h))&&this._model.add(_);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Cde);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(Tg),N(Qr),N(z5,8),N(aP))},e.\u0275cmp=Se({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){var l;1&t&&dt(Aq,5),2&t&&Le(l=Fe())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,n){1&t&&ll("@transformPanel.done",function(){return n._animationDone.next()}),2&t&&(_v("@transformPanel",n._animationState),ct("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[xe],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"mat-calendar",1),ee("yearSelected",function(c){return n.datepicker._selectYear(c)})("monthSelected",function(c){return n.datepicker._selectMonth(c)})("viewChanged",function(c){return n.datepicker._viewChanged(c)})("_userSelection",function(c){return n._handleUserSelection(c)}),A(),re(2,Jfe,0,0,"ng-template",2),E(3,"button",3),ee("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),X(4),A(),A()),2&t&&(ct("mat-datepicker-content-container-with-actions",n._actionsPortal),H(1),z("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),H(1),z("cdkPortalOutlet",n._actionsPortal),H(1),ct("cdk-visually-hidden",!n._closeButtonFocused),z("color",n.color||"primary"),H(1),In(n._closeButtonText))},directives:[EV,Aq,_l,vo,kt],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[rte.transformPanel,rte.fadeInCalendar]},changeDetection:0}),e}(),yb=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){F(this,a),this._overlay=n,this._ngZone=l,this._viewContainerRef=c,this._dateAdapter=_,this._dir=C,this._model=D,this._inputStateChanges=We.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(_de++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new He,this._scrollStrategy=h}return j(a,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=$e(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=$e(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=$e(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=E3(n)}},{key:"opened",get:function(){return this._opened},set:function(n){$e(n)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof td&&(this._setConnectedPositions(c),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Xh(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(Kn(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=this.datepickerInput.getOverlayLabelId(),h=new vu(wde,this._viewContainerRef),_=this._overlayRef=this._overlay.create(new mo({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")})),C=_.overlayElement;C.setAttribute("role","dialog"),c&&C.setAttribute("aria-labelledby",c),l&&C.setAttribute("aria-modal","true"),this._getCloseStream(_).subscribe(function(k){k&&k.preventDefault(),n.close()}),this._componentRef=_.attach(h),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(Kn(1)).subscribe(function(){return _.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",h="above"===this.yPosition?"bottom":"top",_="top"===h?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:h},{originX:l,originY:h,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:h},{originX:c,originY:h,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return bn(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(jn(function(c){return 27===c.keyCode&&!zi(c)||l.datepickerInput&&zi(c,"altKey")&&38===c.keyCode})))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(bi),N(lt),N(qn),N(ite),N(Qr,8),N(xr,8),N(et,8),N(Tg))},e.\u0275dir=ge({type:e,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[vn]}),e}(),ate=function(){var e=function(a){oe(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(yb);return e.\u0275fac=function(){var a;return function(n){return(a||(a=qt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Xe([Qee,{provide:yb,useExisting:e}]),xe],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0}),e}(),U5=function e(a,t){F(this,e),this.target=a,this.targetElement=t,this.value=this.target.value},ote=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new He,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=We.EMPTY,this._localeSubscription=We.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMinDate();return!C||!_||c._dateAdapter.compareDate(C,_)<=0?null:{matDatepickerMin:{min:C,actual:_}}},this._maxValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMaxDate();return!C||!_||c._dateAdapter.compareDate(C,_)>=0?null:{matDatepickerMax:{max:C,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return j(a,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=$e(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var h=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(h),l._cvaOnChange(h),l._onTouched(),l._formatValue(h),l.dateInput.emit(new U5(l,l._elementRef.nativeElement)),l.dateChange.emit(new U5(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function(e,a){for(var n=0,l=Object.keys(e);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(h)}):this._updateModelValue(h)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Gt),N(cte,8))},e.\u0275dir=ge({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,l){var c;1&t&&Wt(l,vte,5),2&t&&Le(c=Fe())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,n){2&t&&(Ye("aria-disabled",n.disabled),ct("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Xe([Ide,{provide:fte,useExisting:e}])]}),e}(),Rde=_u(function(){return function e(){F(this,e)}}()),vte=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;F(this,n),(D=t.call(this))._changeDetectorRef=c,D._elementRef=h,D._focusMonitor=_,D._isSingleSelector=!1,D._checked=!1,D.ariaLabelledby=null,D._disabled=!1,D.change=new ye;var O=Number(C);return D.tabIndex=O||0===O?O:null,D.buttonToggleGroup=l,D.appearance=k&&k.appearance?k.appearance:"standard",D}return j(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var h=$e(c);h!==this._checked&&(this._checked=h,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(c){this._disabled=$e(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(dte++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new hte(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Rde);return e.\u0275fac=function(t){return new(t||e)(N(fte,8),N(Gt),N(Be),N(wa),Er("tabindex"),N(cte,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){var l;1&t&&dt(Pde,5),2&t&&Le(l=Fe())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,n){1&t&&ee("focus",function(){return n.focus()}),2&t&&(Ye("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),ct("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[xe],ngContentSelectors:Ode,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(1&t&&(rr(),E(0,"button",0,1),ee("click",function(){return n._onButtonClick()}),E(2,"span",2),Xt(3),A(),A(),_e(4,"span",3),_e(5,"span",4)),2&t){var l=Fn(1);z("id",n.buttonId)("disabled",n.disabled||null),Ye("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Gs],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),e}(),Lde=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Jt,up],Jt]}),e}();function Fde(e,a){1&e&&(E(0,"uds-translate"),X(1,"Edit rule"),A())}function Nde(e,a){1&e&&(E(0,"uds-translate"),X(1,"New rule"),A())}function Vde(e,a){if(1&e&&(E(0,"mat-option",22),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Bde(e,a){if(1&e&&(E(0,"mat-option",22),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Hde(e,a){if(1&e&&(E(0,"mat-button-toggle",22),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function zde(e,a){if(1&e){var t=De();E(0,"div",23),E(1,"span",24),E(2,"uds-translate"),X(3,"Weekdays"),A(),A(),E(4,"mat-button-toggle-group",25),ee("ngModelChange",function(c){return ve(t),$().wDays=c}),re(5,Hde,2,2,"mat-button-toggle",8),A(),A()}if(2&e){var n=$();H(4),z("ngModel",n.wDays),H(1),z("ngForOf",n.weekDays)}}function Ude(e,a){if(1&e){var t=De();E(0,"mat-form-field",9),E(1,"mat-label"),E(2,"uds-translate"),X(3,"Repeat every"),A(),A(),E(4,"input",6),ee("ngModelChange",function(c){return ve(t),$().rule.interval=c}),A(),E(5,"div",26),X(6),A(),A()}if(2&e){var n=$();H(4),z("ngModel",n.rule.interval),H(2),Ve("\xa0",n.frequency(),"")}}var W5={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},Y5={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},gte=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],mte=function(e,a){void 0===a&&(a=!1);for(var t=new Array,n=0;n<7;n++)1&e&&t.push(gte[n].substr(0,a?100:3)),e>>=1;return t.length?t.join(", "):django.gettext("(no days)")},_te=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.dunits=Object.keys(Y5).map(function(c){return{id:c,value:Y5[c]}}),this.freqs=Object.keys(W5).map(function(c){return{id:c,value:W5[c][2]}}),this.weekDays=gte.map(function(c,h){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Y5[this.rule.duration_unit]:django.gettext("with no duration")}return a.replace("$FIELD",n)},e.prototype.save=function(){var a=this;this.rules.save(this.rule).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,n){if(1&t&&(E(0,"h4",0),re(1,Fde,2,0,"uds-translate",1),re(2,Nde,2,0,"uds-translate",1),A(),E(3,"mat-dialog-content"),E(4,"div",2),E(5,"mat-form-field"),E(6,"mat-label"),E(7,"uds-translate"),X(8,"Name"),A(),A(),E(9,"input",3),ee("ngModelChange",function(_){return n.rule.name=_}),A(),A(),E(10,"mat-form-field"),E(11,"mat-label"),E(12,"uds-translate"),X(13,"Comments"),A(),A(),E(14,"input",3),ee("ngModelChange",function(_){return n.rule.comments=_}),A(),A(),E(15,"h3"),E(16,"uds-translate"),X(17,"Event"),A(),A(),E(18,"mat-form-field",4),E(19,"mat-label"),E(20,"uds-translate"),X(21,"Start time"),A(),A(),E(22,"input",5),ee("ngModelChange",function(_){return n.startTime=_}),A(),A(),E(23,"mat-form-field",4),E(24,"mat-label"),E(25,"uds-translate"),X(26,"Duration"),A(),A(),E(27,"input",6),ee("ngModelChange",function(_){return n.rule.duration=_}),A(),A(),E(28,"mat-form-field",4),E(29,"mat-label"),E(30,"uds-translate"),X(31,"Duration units"),A(),A(),E(32,"mat-select",7),ee("ngModelChange",function(_){return n.rule.duration_unit=_}),re(33,Vde,2,2,"mat-option",8),A(),A(),E(34,"h3"),X(35," Repetition "),A(),E(36,"mat-form-field",9),E(37,"mat-label"),E(38,"uds-translate"),X(39," Start date "),A(),A(),E(40,"input",10),ee("ngModelChange",function(_){return n.startDate=_}),A(),_e(41,"mat-datepicker-toggle",11),_e(42,"mat-datepicker",null,12),A(),E(44,"mat-form-field",9),E(45,"mat-label"),E(46,"uds-translate"),X(47," Repeat until date "),A(),A(),E(48,"input",13),ee("ngModelChange",function(_){return n.endDate=_}),A(),_e(49,"mat-datepicker-toggle",11),_e(50,"mat-datepicker",null,14),A(),E(52,"div",15),E(53,"mat-form-field",9),E(54,"mat-label"),E(55,"uds-translate"),X(56,"Frequency"),A(),A(),E(57,"mat-select",16),ee("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),re(58,Bde,2,2,"mat-option",8),A(),A(),re(59,zde,6,2,"div",17),re(60,Ude,7,2,"mat-form-field",18),A(),E(61,"h3"),E(62,"uds-translate"),X(63,"Summary"),A(),A(),E(64,"div",19),X(65),A(),A(),A(),E(66,"mat-dialog-actions"),E(67,"button",20),E(68,"uds-translate"),X(69,"Cancel"),A(),A(),E(70,"button",21),ee("click",function(){return n.save()}),E(71,"uds-translate"),X(72,"Ok"),A(),A(),A()),2&t){var l=Fn(43),c=Fn(51);H(1),z("ngIf",n.rule.id),H(1),z("ngIf",!n.rule.id),H(7),z("ngModel",n.rule.name),H(5),z("ngModel",n.rule.comments),H(8),z("ngModel",n.startTime),H(5),z("ngModel",n.rule.duration),H(5),z("ngModel",n.rule.duration_unit),H(1),z("ngForOf",n.dunits),H(7),z("matDatepicker",l)("ngModel",n.startDate),H(1),z("for",l),H(7),z("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),H(1),z("for",c),H(8),z("ngModel",n.rule.frequency),H(1),z("ngForOf",n.freqs),H(1),z("ngIf","WEEKDAYS"===n.rule.frequency),H(1),z("ngIf","WEEKDAYS"!==n.rule.frequency),H(5),Ve(" ",n.summary()," "),H(5),z("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[pe,$t,me,Dr,$r,Pt,ta,Ui,Fr,Tr,Mg,$a,fr,G5,lte,_S,ate,Ce,kt,de,g,pte,vte],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),e}();function jde(e,a){1&e&&(E(0,"uds-translate"),X(1,"Rules"),A())}function Wde(e,a){if(1&e){var t=De();E(0,"div",6),E(1,"div",7),E(2,"mat-tab-group",8),E(3,"mat-tab"),re(4,jde,2,0,"ng-template",9),E(5,"div",10),E(6,"uds-table",11),ee("newAction",function(c){return ve(t),$().onNewRule(c)})("editAction",function(c){return ve(t),$().onEditRule(c)})("deleteAction",function(c){return ve(t),$().onDeleteRule(c)}),A(),A(),A(),A(),A(),A()}if(2&e){var n=$();H(2),z("@.disabled",!0),H(4),z("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var Yde=function(e){return["/pools","calendars",e]},qde=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(t).subscribe(function(n){a.calendar=n,a.calendarRules=a.rest.calendars.detail(n.id,"rules")})},e.prototype.onNewRule=function(a){_te.launch(this.api,this.calendarRules).subscribe(function(){return a.table.overview()})},e.prototype.onEditRule=function(a){_te.launch(this.api,this.calendarRules,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteRule=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar rule"))},e.prototype.processElement=function(a){!function(e){e.interval="WEEKDAYS"===e.frequency?mte(e.interval):e.interval+" "+W5[e.frequency][django.pluralidx(e.interval)],e.duration=e.duration+" "+Y5[e.duration_unit]}(a)},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"a",2),E(3,"i",3),X(4,"arrow_back"),A(),A(),X(5," \xa0"),_e(6,"img",4),X(7),A(),re(8,Wde,7,7,"div",5),A()),2&t&&(H(2),z("routerLink",Go(4,Yde,n.calendar?n.calendar.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/calendars.png"),dn),H(1),Ve(" ",null==n.calendar?null:n.calendar.name," "),H(1),z("ngIf",n.calendar))},directives:[wl,$t,Cc,Cu,bc,Jr,Pt],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),e}(),Xde='event'+django.gettext("Set time mark")+"",yte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"timemark",html:Xde,type:li.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New account"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit account"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account"))},e.prototype.onTimeMark=function(a){var t=this,n=a.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(l){l&&t.rest.accounts.timemark(n.id).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onDetail=function(a){this.api.navigation.gotoAccountDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},e.prototype.processElement=function(a){a.time_mark=78793200===a.time_mark?django.gettext("No time mark"):wu("SHORT_DATE_FORMAT",a.time_mark)},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),A()),2&t&&z("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Jr],styles:[""]}),e}();function Zde(e,a){1&e&&(E(0,"uds-translate"),X(1,"Account usage"),A())}function Kde(e,a){if(1&e){var t=De();E(0,"div",6),E(1,"div",7),E(2,"mat-tab-group",8),E(3,"mat-tab"),re(4,Zde,2,0,"ng-template",9),E(5,"div",10),E(6,"uds-table",11),ee("deleteAction",function(c){return ve(t),$().onDeleteUsage(c)}),A(),A(),A(),A(),A(),A()}if(2&e){var n=$();H(2),z("@.disabled",!0),H(4),z("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var Qde=function(e){return["/pools","accounts",e]},$de=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(t).subscribe(function(n){a.account=n,a.accountUsage=a.rest.accounts.detail(n.id,"usage")})},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account usage"))},e.prototype.processElement=function(a){a.running=this.api.yesno(a.running)},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),E(2,"a",2),E(3,"i",3),X(4,"arrow_back"),A(),A(),X(5," \xa0"),_e(6,"img",4),X(7),A(),re(8,Kde,7,6,"div",5),A()),2&t&&(H(2),z("routerLink",Go(4,Qde,n.account?n.account.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/accounts.png"),dn),H(1),Ve(" ",null==n.account?null:n.account.name," "),H(1),z("ngIf",n.account))},directives:[wl,$t,Cc,Cu,bc,Jr,Pt],styles:[""]}),e}();function Jde(e,a){1&e&&(E(0,"uds-translate"),X(1,"New image for"),A())}function ehe(e,a){1&e&&(E(0,"uds-translate"),X(1,"Edit for"),A())}var bte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},l.image&&(this.image.id=l.image.id)}return e.launch=function(a,t){void 0===t&&(t=null);var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:t},disableClose:!0}).componentInstance.onSave},e.prototype.onFileChanged=function(a){var t=this,n=a.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var l=new FileReader;l.onload=function(c){var h=l.result;t.preview=h,t.image.data=h.substr(h.indexOf("base64,")+7),t.image.name||(t.image.name=n.name)},l.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},e.prototype.ngOnInit=function(){var a=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(t){switch(a.image=t,a.image.data.substr(2)){case"iV":a.preview="data:image/png;base64,"+a.image.data;break;case"/9":a.preview="data:image/jpeg;base64,"+a.image.data;break;default:a.preview="data:image/gif;base64,"+a.image.data}})},e.prototype.background=function(){var a=this.api.config.image_size[0],t=this.api.config.image_size[1],n={"width.px":a,"height.px":t,"background-size":a+"px "+t+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},e.prototype.save=function(){var a=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){if(1&t){var l=De();E(0,"h4",0),re(1,Jde,2,0,"uds-translate",1),re(2,ehe,2,0,"uds-translate",1),A(),E(3,"mat-dialog-content"),E(4,"div",2),E(5,"mat-form-field"),E(6,"mat-label"),E(7,"uds-translate"),X(8,"Image name"),A(),A(),E(9,"input",3),ee("ngModelChange",function(h){return n.image.name=h}),A(),A(),E(10,"input",4,5),ee("change",function(h){return n.onFileChanged(h)}),A(),E(12,"mat-form-field"),E(13,"mat-label"),E(14,"uds-translate"),X(15,"Image (click to change)"),A(),A(),E(16,"input",6),ee("click",function(){return ve(l),Fn(11).click()}),A(),E(17,"div",7),ee("click",function(){return ve(l),Fn(11).click()}),_e(18,"div",8),A(),A(),E(19,"div",9),E(20,"uds-translate"),X(21,' For optimal results, use "squared" images. '),A(),E(22,"uds-translate"),X(23," The image will be resized on upload to "),A(),X(24),A(),A(),A(),E(25,"mat-dialog-actions"),E(26,"button",10),E(27,"uds-translate"),X(28,"Cancel"),A(),A(),E(29,"button",11),ee("click",function(){return n.save()}),E(30,"uds-translate"),X(31,"Ok"),A(),A(),A()}2&t&&(H(1),z("ngIf",!n.image.id),H(1),z("ngIf",n.image.id),H(7),z("ngModel",n.image.name),H(7),z("hidden",!0),H(2),z("ngStyle",n.background()),H(6),th(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[pe,$t,me,Dr,$r,Pt,ta,Ui,Fr,Tr,vF,Ce,kt,de],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),e}(),Cte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){bte.launch(this.api).subscribe(function(){return a.table.overview()})},e.prototype.onEdit=function(a){bte.launch(this.api,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete image"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},e.\u0275fac=function(t){return new(t||e)(N(Mr),N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),A()),2&t&&z("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Jr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),e}(),the='assessment'+django.gettext("Generate report")+"",wte=function(){function e(a,t){this.rest=a,this.api=t,this.customButtons=[{id:"genreport",html:the,type:li.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},e.prototype.generateReport=function(a){var t=this,n=new ye;n.subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Generating report...")),t.rest.reports.save(l,a.table.selection.selected[0].id).subscribe(function(c){for(var h=c.encoded?window.atob(c.data):c.data,_=h.length,C=new Uint8Array(_),k=0;k<_;k++)C[k]=h.charCodeAt(k);var D=new Blob([C],{type:c.mime_type});t.api.gui.snackbar.open(django.gettext("Report finished"),django.gettext("dismiss"),{duration:2e3}),setTimeout(function(){(0,vq.saveAs)(D,c.filename)},100)})}),this.api.gui.forms.typedForm(a,django.gettext("Generate report"),!1,[],void 0,a.table.selection.selected[0].id,{save:n})},e.\u0275fac=function(t){return new(t||e)(N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(t,n){1&t&&(E(0,"uds-table",0),ee("customButtonAction",function(c){return n.generateReport(c)}),A()),2&t&&z("rest",n.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Jr],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),e}();function nhe(e,a){1&e&&X(0),2&e&&Ve(" ",$().$implicit," ")}function rhe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"input",18),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),In(n),H(1),z("type",c.config[l][n].crypt?"password":"text")("ngModel",c.config[l][n].value)}}function ihe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"textarea",19),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),In(n),H(1),z("ngModel",c.config[l][n].value)}}function ahe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"input",20),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),In(n),H(1),z("ngModel",c.config[l][n].value)}}function ohe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"div",21),E(2,"span",22),X(3),A(),E(4,"mat-slide-toggle",23),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),X(5),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),In(n),H(1),z("ngModel",c.config[l][n].value),H(1),Ve(" ",c.api.yesno(c.config[l][n].value)," ")}}function she(e,a){if(1&e&&(E(0,"mat-option",25),X(1),A()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function lhe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"mat-select",23),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),re(5,she,2,2,"mat-option",24),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),Ve(" ",n," "),H(1),z("ngModel",c.config[l][n].value),H(1),z("ngForOf",c.config[l][n].params)}}function uhe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"input",26),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),In(n),H(1),z("ngModel",c.config[l][n].value)}}function che(e,a){1&e&&Yi(0)}function fhe(e,a){if(1&e){var t=De();E(0,"div"),E(1,"mat-form-field"),E(2,"mat-label"),X(3),A(),E(4,"input",27),ee("ngModelChange",function(_){ve(t);var C=$(2).$implicit,k=$().$implicit;return $(2).config[k][C].value=_}),A(),A(),A()}if(2&e){var n=$(2).$implicit,l=$().$implicit,c=$(2);H(3),In(n),H(1),z("ngModel",c.config[l][n].value)}}function dhe(e,a){if(1&e&&(On(0,15),re(1,rhe,5,3,"div",16),re(2,ihe,5,2,"div",16),re(3,ahe,5,2,"div",16),re(4,ohe,6,3,"div",16),re(5,lhe,6,3,"div",16),re(6,uhe,5,2,"div",16),re(7,che,1,0,"ng-container",16),re(8,fhe,5,2,"div",17),Tn()),2&e){var t=$().$implicit,n=$().$implicit;z("ngSwitch",$(2).config[n][t].type),H(1),z("ngSwitchCase",0),H(1),z("ngSwitchCase",1),H(1),z("ngSwitchCase",2),H(1),z("ngSwitchCase",3),H(1),z("ngSwitchCase",4),H(1),z("ngSwitchCase",5),H(1),z("ngSwitchCase",6)}}function hhe(e,a){if(1&e&&(E(0,"div",13),re(1,dhe,9,8,"ng-container",14),A()),2&e){var t=a.$implicit,n=$().$implicit,l=$(2);H(1),z("ngIf",l.config[n][t])}}function phe(e,a){if(1&e&&(E(0,"mat-tab"),re(1,nhe,1,1,"ng-template",10),E(2,"div",11),re(3,hhe,2,1,"div",12),A(),A()),2&e){var t=a.$implicit,n=$(2);H(3),z("ngForOf",n.configElements(t))}}function vhe(e,a){if(1&e){var t=De();E(0,"div",4),E(1,"div",5),E(2,"mat-tab-group",6),re(3,phe,4,1,"mat-tab",7),A(),E(4,"div",8),E(5,"button",9),ee("click",function(){return ve(t),$().save()}),E(6,"uds-translate"),X(7,"Save"),A(),A(),A(),A(),A()}if(2&e){var n=$();H(2),z("@.disabled",!0),H(1),z("ngForOf",n.sections())}}var Ste=["UDS","Security"],kte=["UDS ID"],yhe=[{path:"",canActivate:[aie],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:nae},{path:"providers",component:xee},{path:"providers/:provider/detail",component:Tee},{path:"providers/:provider",component:xee},{path:"providers/:provider/detail/:service",component:Tee},{path:"authenticators",component:Dee},{path:"authenticators/:authenticator/detail",component:yq},{path:"authenticators/:authenticator",component:Dee},{path:"authenticators/:authenticator/detail/groups/:group",component:yq},{path:"authenticators/:authenticator/detail/users/:user",component:yq},{path:"osmanagers",component:Fee},{path:"osmanagers/:osmanager",component:Fee},{path:"transports",component:Nee},{path:"transports/:transport",component:Nee},{path:"networks",component:Vee},{path:"networks/:network",component:Vee},{path:"proxies",component:Bee},{path:"proxies/:proxy",component:Bee},{path:"pools/service-pools",component:Hee},{path:"pools/service-pools/:pool",component:Hee},{path:"pools/service-pools/:pool/detail",component:Wee},{path:"pools/meta-pools",component:Yee},{path:"pools/meta-pools/:metapool",component:Yee},{path:"pools/meta-pools/:metapool/detail",component:Ufe},{path:"pools/pool-groups",component:Xee},{path:"pools/pool-groups/:poolgroup",component:Xee},{path:"pools/calendars",component:Zee},{path:"pools/calendars/:calendar",component:Zee},{path:"pools/calendars/:calendar/detail",component:qde},{path:"pools/accounts",component:yte},{path:"pools/accounts/:account",component:yte},{path:"pools/accounts/:account/detail",component:$de},{path:"tools/gallery",component:Cte},{path:"tools/gallery/:image",component:Cte},{path:"tools/reports",component:wte},{path:"tools/reports/:report",component:wte},{path:"tools/configuration",component:function(){function e(a,t){this.rest=a,this.api=t}return e.prototype.ngOnInit=function(){var a=this;this.rest.configuration.overview().subscribe(function(t){for(var n in a.config=t,a.config)if(a.config.hasOwnProperty(n))for(var l in a.config[n])if(a.config[n].hasOwnProperty(l)){var c=a.config[n][l];c.crypt?c.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===c.type&&(c.value=!!["1",1,!0].includes(c.value)),c.original_value=c.value}})},e.prototype.sections=function(){var a=[];for(var t in this.config)this.config.hasOwnProperty(t)&&!Ste.includes(t)&&a.push(t);return(a=a.sort(function(n,l){return n.localeCompare(l)})).unshift.apply(a,Ste),a},e.prototype.configElements=function(a){var t=[],n=this.config[a];if(n)for(var l in n)n.hasOwnProperty(l)&&("UDS"!==a||!kte.includes(l))&&t.push(l);return t=t.sort(function(c,h){return c.localeCompare(h)}),"UDS"===a&&t.unshift.apply(t,kte),t},e.prototype.save=function(){var a=this,t={};for(var n in this.config)if(this.config.hasOwnProperty(n))for(var l in this.config[n])if(this.config[n].hasOwnProperty(l)){var c=this.config[n][l];if(c.original_value!==c.value){c.original_value=c.value,t[n]||(t[n]={});var h=c.value;3===c.type&&(h=["1",1,!0].includes(c.value)?"1":"0"),t[n][l]={value:h}}}this.rest.configuration.save(t).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})},e.\u0275fac=function(t){return new(t||e)(N(sn),N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"slider-label"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"div",1),_e(2,"img",2),X(3,"\xa0"),E(4,"uds-translate"),X(5,"UDS Configuration"),A(),A(),re(6,vhe,8,2,"div",3),A()),2&t&&(H(2),z("src",n.api.staticURL("admin/img/icons/configuration.png"),dn),H(4),z("ngIf",n.config))},directives:[Pt,$t,Cc,fr,kt,Cu,bc,cu,Uf,Tw,Dr,$r,ta,Ui,Fr,Tr,Mg,xS,$a,g],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),e}()},{path:"tools/tokens/actor",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("deleteAction",function(c){return n.onDelete(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[""]}),e}()},{path:"tools/tokens/tunnel",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Et),N(Mr),N(sn))},e.\u0275cmp=Se({type:e,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(E(0,"div"),E(1,"uds-table",0),ee("deleteAction",function(c){return n.onDelete(c)}),A(),A()),2&t&&(H(1),z("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Jr],styles:[""]}),e}()}]},{path:"**",redirectTo:"summary"}],bhe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[S3.forRoot(yhe,{relativeLinkResolution:"legacy"})],S3]}),e}(),Tte=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),Ohe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[up,Jt,Yy,Tte],Jt,Tte]}),e}(),Ihe=["*"],Dte=new Ee("MatChipRemove"),Ate=new Ee("MatChipAvatar"),Ete=new Ee("MatChipTrailingIcon"),Lhe=Tl(mu(_u(function e(a){F(this,e),this._elementRef=a}),"primary"),-1),q5=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,O){var L;return F(this,n),(L=t.call(this,l))._ngZone=c,L._changeDetectorRef=C,L._hasFocus=!1,L.chipListSelectable=!0,L._chipListMultiple=!1,L._chipListDisabled=!1,L._selected=!1,L._selectable=!0,L._disabled=!1,L._removable=!0,L._onFocus=new He,L._onBlur=new He,L.selectionChange=new ye,L.destroyed=new ye,L.removed=new ye,L._addHostClassName(),L._chipRippleTarget=k.createElement("div"),L._chipRippleTarget.classList.add("mat-chip-ripple"),L._elementRef.nativeElement.appendChild(L._chipRippleTarget),L._chipRipple=new XE(Rt(L),c,L._chipRippleTarget,h),L._chipRipple.setupTriggerEvents(l),L.rippleConfig=_||{},L._animationsDisabled="NoopAnimations"===D,L.tabIndex=null!=O&&parseInt(O)||-1,L}return j(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var h=$e(c);h!==this._selected&&(this._selected=h,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=$e(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=$e(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=$e(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",h=this._elementRef.nativeElement;h.hasAttribute(c)||h.tagName.toLowerCase()===c?h.classList.add(c):h.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(c){this.disabled?c.preventDefault():c.stopPropagation()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(Kn(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(Lhe);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(lt),N(cn),N(lS,8),N(Gt),N(et),N(Rr,8),Er("tabindex"))},e.\u0275dir=ge({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,n,l){var c;1&t&&(Wt(l,Ate,5),Wt(l,Ete,5),Wt(l,Dte,5)),2&t&&(Le(c=Fe())&&(n.avatar=c.first),Le(c=Fe())&&(n.trailingIcon=c.first),Le(c=Fe())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,n){1&t&&ee("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&t&&(Ye("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),ct("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[xe]}),e}(),Pte=function(){var e=function(){function a(t,n){F(this,a),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return j(a,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(q5),N(Be))},e.\u0275dir=ge({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,n){1&t&&ee("click",function(c){return n._handleClick(c)})},features:[Xe([{provide:Dte,useExisting:e}])]}),e}(),Ote=new Ee("mat-chips-default-options"),Vhe=hb(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),Bhe=0,Hhe=function e(a,t){F(this,e),this.source=a,this.value=t},Ite=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var O;return F(this,n),(O=t.call(this,k,_,C,D))._elementRef=l,O._changeDetectorRef=c,O._dir=h,O.controlType="mat-chip-list",O._lastDestroyedChipIndex=null,O._destroyed=new He,O._uid="mat-chip-list-".concat(Bhe++),O._tabIndex=0,O._userTabIndex=null,O._onTouched=function(){},O._onChange=function(){},O._multiple=!1,O._compareWith=function(L,U){return L===U},O._required=!1,O._disabled=!1,O.ariaOrientation="horizontal",O._selectable=!0,O.change=new ye,O.valueChange=new ye,O.ngControl&&(O.ngControl.valueAccessor=Rt(O)),O}return j(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=$e(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=$e(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(c){this._disabled=$e(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var h=this;this._selectable=$e(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=h._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return bn.apply(void 0,xt(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return bn.apply(void 0,xt(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return bn.apply(void 0,xt(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return bn.apply(void 0,xt(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new L1(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ft(this._destroyed)).subscribe(function(h){return c._keyManager.withHorizontalOrientation(h)}),this._keyManager.tabOut.pipe(Ft(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe(Zr(null),Ft(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Ny(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var h=c.target;h&&h.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(k){return k.deselect()}),Array.isArray(c))c.forEach(function(k){return h._selectValue(k,_)}),this._sortValues();else{var C=this._selectValue(c,_);C&&_&&this._keyManager.setActiveItem(C)}}},{key:"_selectValue",value:function(c){var h=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],C=this.chips.find(function(k){return null!=k.value&&h._compareWith(k.value,c)});return C&&(_?C.selectViaInteraction():C.select(),this._selectionModel.select(C)),C}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(h){h!==c&&h.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(h){h.selected&&c._selectionModel.select(h)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var h;h=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.change.emit(new Hhe(this,h)),this.valueChange.emit(h),this._onChange(h),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(h){h.source.selected?c._selectionModel.select(h.source):c._selectionModel.deselect(h.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),h.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(h){var _=c.chips.toArray().indexOf(h.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(h){var _=h.chip,C=c.chips.toArray().indexOf(h.chip);c._isValidIndex(C)&&_._hasFocus&&(c._lastDestroyedChipIndex=C)})}},{key:"_originatesFromChip",value:function(c){for(var h=c.target;h&&h!==this._elementRef.nativeElement;){if(h.classList.contains("mat-chip"))return!0;h=h.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(h){h._chipListDisabled=c._disabled,h._chipListMultiple=c.multiple})}}]),n}(Vhe);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Gt),N(xr,8),N(_c,8),N(fp,8),N(od),N(yu,10))},e.\u0275cmp=Se({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,n,l){var c;1&t&&Wt(l,q5,5),2&t&&Le(c=Fe())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,n){1&t&&ee("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&t&&(qi("id",n._uid),Ye("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),ct("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Xe([{provide:mS,useExisting:e}]),xe],ngContentSelectors:Ihe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,n){1&t&&(rr(),E(0,"div",0),Xt(1),A())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),zhe=0,Rte=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat(zhe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return j(a,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=$e(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=$e(n)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(n){if(n){if(9===n.keyCode&&!zi(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!zi(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Be),N(Ote))},e.\u0275dir=ge({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,n){1&t&&ee("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&t&&(qi("id",n.id),Ye("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[vn]}),e}(),Uhe={separatorKeyCodes:[13]},Ghe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[od,{provide:Ote,useValue:Uhe}],imports:[[Jt]]}),e}(),Zhe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({}),e}(),cpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Za,Jt,Zhe,Qh]]}),e}(),fpe=["*",[["mat-toolbar-row"]]],dpe=["*","mat-toolbar-row"],hpe=mu(function(){return function e(a){F(this,e),this._elementRef=a}}()),ppe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ge({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),vpe=function(){var e=function(a){oe(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l))._platform=c,_._document=h,_}return j(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(hpe);return e.\u0275fac=function(t){return new(t||e)(N(Be),N(cn),N(et))},e.\u0275cmp=Se({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,l){var c;1&t&&Wt(l,ppe,5),2&t&&Le(c=Fe())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&ct("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[xe],ngContentSelectors:dpe,decls:2,vars:0,template:function(t,n){1&t&&(rr(fpe),Xt(0),Xt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),gpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({imports:[[Jt],Jt]}),e}(),mpe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e}),e.\u0275inj=ft({providers:[{provide:VJ,useValue:{floatLabel:"always"}},{provide:GE,useValue:udsData.language}],imports:[Za,Une,Gne,gpe,Qn,Gse,ZJ,cpe,ze,y5,ase,jJ,Ede,t5,Xoe,doe,woe,Rse,Ohe,Cre,Ghe,Lde,Oue,hue,fJ,Wse,Mse]}),e}();function _pe(e,a){if(1&e){var t=De();E(0,"button",6),ee("click",function(){var h=ve(t).$implicit;return $().changeLang(h)}),X(1),A()}if(2&e){var n=a.$implicit;H(1),In(n.name)}}function ype(e,a){if(1&e&&(E(0,"button",12),E(1,"i",7),X(2,"face"),A(),X(3),A()),2&e){var t=$();z("matMenuTriggerFor",Fn(7)),H(3),In(t.api.user.user)}}function bpe(e,a){if(1&e&&(E(0,"button",18),X(1),E(2,"i",7),X(3,"arrow_drop_down"),A(),A()),2&e){var t=$();z("matMenuTriggerFor",Fn(7)),H(1),Ve("",t.api.user.user," ")}}var Cpe=function(){function e(a){this.api=a,this.isNavbarCollapsed=!0;var t=a.config.language;this.langs=[];for(var n=0,l=a.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),e}();function xpe(e,a){1&e&&_e(0,"div",1),2&e&&z("innerHTML",$().messages,Pr)}var Tpe=function(){function e(a){this.api=a,this.messages="",this.visible=!1}return e.prototype.ngOnInit=function(){var a=this;if(this.api.notices.length>0){var n='
';this.messages='
'+n+this.api.notices.map(function(l){return l.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){a.visible=!0})}},e.\u0275fac=function(t){return new(t||e)(N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,n){1&t&&re(0,xpe,1,1,"div",0),2&t&&z("ngIf",n.visible)},directives:[$t],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),e}(),Dpe=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,n){1&t&&(E(0,"div"),X(1,"\xa9 2012-2020 "),E(2,"a",0),X(3,"Virtual Cable S.L.U."),A(),A())},styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),e}(),Ape=function(){function e(a){this.api=a,this.title="UDS Admin",this.blackTheme=!1}return e.prototype.handleKeyboardEvent=function(a){a.altKey&&a.ctrlKey&&"b"===a.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},e.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},e.\u0275fac=function(t){return new(t||e)(N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-root"]],hostBindings:function(t,n){1&t&&ee("keydown",function(c){return n.handleKeyboardEvent(c)},!1,gt)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,n){1&t&&(_e(0,"uds-navbar"),_e(1,"uds-sidebar"),E(2,"div",0),E(3,"div",1),_e(4,"uds-notices"),_e(5,"router-outlet"),A(),E(6,"div",2),_e(7,"uds-footer"),A(),A())},directives:[Cpe,Mpe,Tpe,Iy,Dpe],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),e}(),Epe=function(e){function a(){var t=e.call(this)||this;return t.itemsPerPageLabel=django.gettext("Items per page"),t}return ea(a,e),a.\u0275prov=Ge({token:a,factory:a.\u0275fac=function(n){return new(n||a)}}),a}(mb),Ppe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,n){1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"input",1),ee("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[Dr,$r,ta,Ui,Fr,Tr,yc,G9],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Ope=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"input",1),ee("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[Dr,$r,ta,Mg,Ui,Fr,Tr,yc],styles:[""]}),e}(),Ipe=function(){function e(){this.changed=new ye,this.passwordType="password"}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,n){1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"input",1),ee("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),A(),E(4,"a",2),ee("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),E(5,"i",3),X(6,"remove_red_eye"),A(),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[Dr,$r,ta,Ui,Fr,Tr,yc,Lr,_S],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Rpe=function(){function e(){}return e.prototype.ngOnInit=function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,n){},styles:[""]}),e}(),Lpe=function(){function e(){}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,n){1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"textarea",1),ee("ngModelChange",function(c){return n.field.value=c}),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[Dr,$r,ta,Ui,Fr,Tr,yc],styles:[""]}),e}();function Fpe(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",3),ee("changed",function(l){return ve(t),$().filter=l}),A()}}function Npe(e,a){if(1&e&&(E(0,"mat-option",4),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var Vpe=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"mat-select",0),ee("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Fpe,1,0,"uds-mat-select-search",1),re(5,Npe,2,2,"mat-option",2),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[Dr,$r,$a,Fr,Tr,yc,$t,fr,wc,g],styles:[""]}),e}();function Bpe(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",3),ee("changed",function(l){return ve(t),$().filter=l}),A()}}function Hpe(e,a){if(1&e&&(E(0,"mat-option",4),X(1),A()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var zpe=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(a,t,n){n[t]=""+a.id}):this.field.values=new Array},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"mat-select",0),ee("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Bpe,1,0,"uds-mat-select-search",1),re(5,Hpe,2,2,"mat-option",2),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[Dr,$r,$a,Fr,Tr,yc,$t,fr,wc,g],styles:[""]}),e}();function Upe(e,a){if(1&e){var t=De();E(0,"div",12),E(1,"div",13),X(2),A(),E(3,"div",14),X(4," \xa0"),E(5,"a",15),ee("click",function(){var h=ve(t).index;return $().removeElement(h)}),E(6,"i",16),X(7,"close"),A(),A(),A(),A()}if(2&e){var n=a.$implicit;H(2),Ve(" ",n," ")}}var Gpe=function(){function e(a,t,n,l){var c=this;this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(h){return c.values.push(h)})}return e.launch=function(a,t,n){var l=window.innerWidth<800?"50%":"30%";return a.gui.dialog.open(e,{width:l,data:{title:t,values:n},disableClose:!0}).componentInstance.onSave},e.prototype.addElements=function(){var a=this;this.input.split(",").forEach(function(t){a.values.push(t)}),this.input=""},e.prototype.checkKey=function(a){"Enter"===a.code&&this.addElements()},e.prototype.removeAll=function(){this.values.length=0},e.prototype.removeElement=function(a){this.values.splice(a,1)},e.prototype.save=function(){var a=this;this.data.values.length=0,this.values.forEach(function(t){return a.data.values.push(t)}),this.onSave.emit(this.values),this.dialogRef.close()},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Et),N(sn),N(R),N(V))},e.\u0275cmp=Se({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(E(0,"h4",0),X(1),A(),E(2,"mat-dialog-content"),E(3,"div",1),E(4,"div",2),re(5,Upe,8,1,"div",3),A(),E(6,"div",4),E(7,"button",5),ee("click",function(){return n.removeAll()}),E(8,"uds-translate"),X(9,"Remove all"),A(),A(),A(),E(10,"div",6),E(11,"mat-form-field",7),E(12,"input",8),ee("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),A(),E(13,"button",9),ee("click",function(){return n.addElements()}),E(14,"uds-translate"),X(15,"Add"),A(),A(),A(),A(),A(),A(),E(16,"mat-dialog-actions"),E(17,"button",10),E(18,"uds-translate"),X(19,"Cancel"),A(),A(),E(20,"button",11),ee("click",function(){return n.save()}),E(21,"uds-translate"),X(22,"Ok"),A(),A(),A()),2&t&&(H(1),Ve(" ",n.data.title,"\n"),H(4),z("ngForOf",n.values),H(7),z("ngModel",n.input))},directives:[pe,me,fr,kt,Pt,Dr,ta,Ui,Fr,Tr,_S,Ce,de],styles:['.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),jpe=function(){function e(a){this.api=a,this.changed=new ye}return e.prototype.ngOnInit=function(){},e.prototype.launch=function(){var a=this;void 0===this.field.values&&(this.field.values=[]),Gpe.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(t){a.changed.emit({field:a.field})})},e.prototype.getValue=function(){if(void 0===this.field.values)return"";var a=this.field.values.filter(function(t,n,l){return n<5}).join(", ");return this.field.values.length>5&&(a+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),a},e.\u0275fac=function(t){return new(t||e)(N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,n){1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"input",1),ee("click",function(){return n.launch()}),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[Dr,$r,ta],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),Wpe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=function(e){return""===e||null==e}(this.field.value)?$9(this.field.gui.defvalue):$9(this.field.value)},e.prototype.getValue=function(){return $9(this.field.value)?django.gettext("Yes"):django.gettext("No")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(E(0,"div",0),E(1,"span",1),X(2),A(),E(3,"mat-slide-toggle",2),ee("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),X(4),A(),A()),2&t&&(H(2),In(n.field.gui.label),H(1),z("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),Ve(" ",n.getValue()," "))},directives:[xS,Iee,Fr,Tr,yc],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function Ype(e,a){if(1&e&&_e(0,"div",5),2&e){var t=$().$implicit;z("innerHTML",$().asIcon(t),Pr)}}function qpe(e,a){if(1&e&&(E(0,"div"),re(1,Ype,1,1,"div",4),A()),2&e){var t=a.$implicit,n=$();H(1),z("ngIf",t.id==n.field.value)}}function Xpe(e,a){if(1&e){var t=De();E(0,"uds-mat-select-search",6),ee("changed",function(l){return ve(t),$().filter=l}),A()}}function Zpe(e,a){if(1&e&&(E(0,"mat-option",7),_e(1,"div",5),A()),2&e){var t=a.$implicit,n=$();z("value",t.id),H(1),z("innerHTML",n.asIcon(t),Pr)}}var Kpe=function(){function e(a){this.api=a,this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},e.prototype.asIcon=function(a){return this.api.safeString(this.api.gui.icon(a.img)+a.text)},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)(N(Et))},e.\u0275cmp=Se({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(E(0,"mat-form-field"),E(1,"mat-label"),X(2),A(),E(3,"mat-select",0),ee("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),E(4,"mat-select-trigger"),re(5,qpe,2,1,"div",1),A(),re(6,Xpe,1,0,"uds-mat-select-search",2),re(7,Zpe,2,2,"mat-option",3),A(),A()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.gui.values),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[Dr,$r,$a,Fr,Tr,yc,Uae,fr,$t,wc,g],styles:[""]}),e}(),Qpe=function(){function e(){this.changed=new ye,this.value=new Date}return Object.defineProperty(e.prototype,"date",{get:function(){return this.value},set:function(a){this.value!==a&&(this.value=a,this.field.value=pS("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=pS("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=pS("%Y-12-31"));var a=this.field.value.split("-");3===a.length&&(this.value=new Date(+a[0],+a[1]-1,+a[2]))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,n){if(1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"input",1),ee("ngModelChange",function(h){return n.date=h}),A(),_e(4,"mat-datepicker-toggle",2),_e(5,"mat-datepicker",null,3),A()),2&t){var l=Fn(6);H(2),Ve(" ",n.field.gui.label," "),H(1),z("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),H(1),z("for",l)}},directives:[Dr,$r,ta,G5,Ui,Fr,Tr,lte,_S,ate],styles:[""]}),e}();function $pe(e,a){if(1&e){var t=De();E(0,"mat-chip",5),ee("removed",function(){var _=ve(t).$implicit;return $().remove(_)}),X(1),E(2,"i",6),X(3,"cancel"),A(),A()}if(2&e){var n=a.$implicit,l=$();z("selectable",!1)("removable",!0!==l.field.gui.rdonly),H(1),Ve(" ",n," ")}}var a,t,n,Jpe=function(){function e(){this.changed=new ye,this.separatorKeysCodes=[13,188]}return e.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(a,t,n){""===a.trim()&&n.splice(t,1)})},e.prototype.add=function(a){var t=a.input,n=a.value;(n||"").trim()&&this.field.values.push(n.trim()),t&&(t.value="")},e.prototype.remove=function(a){var t=this.field.values.indexOf(a);t>=0&&this.field.values.splice(t,1)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,n){if(1&t&&(E(0,"mat-form-field",0),E(1,"mat-label"),X(2),A(),E(3,"mat-chip-list",1,2),ee("change",function(){return n.changed.emit(n)}),re(5,$pe,4,3,"mat-chip",3),E(6,"input",4),ee("matChipInputTokenEnd",function(h){return n.add(h)}),A(),A(),A()),2&t){var l=Fn(4);H(2),Ve(" ",n.field.gui.label," "),H(1),z("selectable",!1)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.values),H(1),z("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[Dr,$r,Ite,fr,Rte,q5,Pte],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),e}(),eve=(Mt(41419),function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=vt({type:e,bootstrap:[Ape]}),e.\u0275inj=ft({providers:[Et,sn,{provide:mb,useClass:Epe}],imports:[[RD,ij,bhe,i9,mpe,$ie.forRoot({echarts:function(){return Promise.resolve().then(Mt.bind(Mt,59737))}})]]}),e}());a=[cu,XJ,Uf,Ppe,Lpe,Ope,Ipe,Rpe,Vpe,zpe,jpe,Wpe,Kpe,Qpe,Jpe],t=[],(n=$$.\u0275cmp).directiveDefs=function(){return a.map(oH)},n.pipeDefs=function(){return t.map(xP)},function(){if(B_)throw new Error("Cannot enable prod mode after platform setup.");oL=!1}(),V6().bootstrapModule(eve).catch(function(e){return console.log(e)})},25510:function(ns){var dr=function(Mt){"use strict";var Oe,Pe=Object.prototype,ji=Pe.hasOwnProperty,Co="function"==typeof Symbol?Symbol:{},j=Co.iterator||"@@iterator",F=Co.asyncIterator||"@@asyncIterator",ht=Co.toStringTag||"@@toStringTag";function oe(je,Ne,Je){return Object.defineProperty(je,Ne,{value:Je,enumerable:!0,configurable:!0,writable:!0}),je[Ne]}try{oe({},"")}catch(je){oe=function(Ne,Je,We){return Ne[Je]=We}}function Ar(je,Ne,Je,We){var Gr=Object.create((Ne&&Ne.prototype instanceof rn?Ne:rn).prototype),_r=new vp(We||[]);return Gr._invoke=function(je,Ne,Je){var We=Rt;return function(Gr,_r){if(We===ue)throw new Error("Generator is already running");if(We===he){if("throw"===Gr)throw _r;return Pg()}for(Je.method=Gr,Je.arg=_r;;){var ci=Je.delegate;if(ci){var yr=xt(ci,Je);if(yr){if(yr===ui)continue;return yr}}if("next"===Je.method)Je.sent=Je._sent=Je.arg;else if("throw"===Je.method){if(We===Rt)throw We=he,Je.arg;Je.dispatchException(Je.arg)}else"return"===Je.method&&Je.abrupt("return",Je.arg);We=ue;var Si=Hn(je,Ne,Je);if("normal"===Si.type){if(We=Je.done?he:Mu,Si.arg===ui)continue;return{value:Si.arg,done:Je.done}}"throw"===Si.type&&(We=he,Je.method="throw",Je.arg=Si.arg)}}}(je,Je,_r),Gr}function Hn(je,Ne,Je){try{return{type:"normal",arg:je.call(Ne,Je)}}catch(We){return{type:"throw",arg:We}}}Mt.wrap=Ar;var Rt="suspendedStart",Mu="suspendedYield",ue="executing",he="completed",ui={};function rn(){}function rs(){}function ld(){}var Eg={};Eg[j]=function(){return this};var hr=Object.getPrototypeOf,ud=hr&&hr(hr(xu([])));ud&&ud!==Pe&&ji.call(ud,j)&&(Eg=ud);var Ol=ld.prototype=rn.prototype=Object.create(Eg);function AS(je){["next","throw","return"].forEach(function(Ne){oe(je,Ne,function(Je){return this._invoke(Ne,Je)})})}function cd(je,Ne){function Je(Gr,_r,ci,yr){var Si=Hn(je[Gr],je,_r);if("throw"!==Si.type){var Ot=Si.arg,Pn=Ot.value;return Pn&&"object"==typeof Pn&&ji.call(Pn,"__await")?Ne.resolve(Pn.__await).then(function(js){Je("next",js,ci,yr)},function(js){Je("throw",js,ci,yr)}):Ne.resolve(Pn).then(function(js){Ot.value=js,ci(Ot)},function(js){return Je("throw",js,ci,yr)})}yr(Si.arg)}var We;this._invoke=function(Gr,_r){function ci(){return new Ne(function(yr,Si){Je(Gr,_r,yr,Si)})}return We=We?We.then(ci,ci):ci()}}function xt(je,Ne){var Je=je.iterator[Ne.method];if(Je===Oe){if(Ne.delegate=null,"throw"===Ne.method){if(je.iterator.return&&(Ne.method="return",Ne.arg=Oe,xt(je,Ne),"throw"===Ne.method))return ui;Ne.method="throw",Ne.arg=new TypeError("The iterator does not provide a 'throw' method")}return ui}var We=Hn(Je,je.iterator,Ne.arg);if("throw"===We.type)return Ne.method="throw",Ne.arg=We.arg,Ne.delegate=null,ui;var Lt=We.arg;return Lt?Lt.done?(Ne[je.resultName]=Lt.value,Ne.next=je.nextLoc,"return"!==Ne.method&&(Ne.method="next",Ne.arg=Oe),Ne.delegate=null,ui):Lt:(Ne.method="throw",Ne.arg=new TypeError("iterator result is not an object"),Ne.delegate=null,ui)}function eo(je){var Ne={tryLoc:je[0]};1 in je&&(Ne.catchLoc=je[1]),2 in je&&(Ne.finallyLoc=je[2],Ne.afterLoc=je[3]),this.tryEntries.push(Ne)}function Mc(je){var Ne=je.completion||{};Ne.type="normal",delete Ne.arg,je.completion=Ne}function vp(je){this.tryEntries=[{tryLoc:"root"}],je.forEach(eo,this),this.reset(!0)}function xu(je){if(je){var Ne=je[j];if(Ne)return Ne.call(je);if("function"==typeof je.next)return je;if(!isNaN(je.length)){var Je=-1,We=function Lt(){for(;++Je=0;--We){var Lt=this.tryEntries[We],Gr=Lt.completion;if("root"===Lt.tryLoc)return Je("end");if(Lt.tryLoc<=this.prev){var _r=ji.call(Lt,"catchLoc"),ci=ji.call(Lt,"finallyLoc");if(_r&&ci){if(this.prev=0;--Je){var We=this.tryEntries[Je];if(We.tryLoc<=this.prev&&ji.call(We,"finallyLoc")&&this.prev=0;--Ne){var Je=this.tryEntries[Ne];if(Je.finallyLoc===je)return this.complete(Je.completion,Je.afterLoc),Mc(Je),ui}},catch:function(je){for(var Ne=this.tryEntries.length-1;Ne>=0;--Ne){var Je=this.tryEntries[Ne];if(Je.tryLoc===je){var We=Je.completion;if("throw"===We.type){var Lt=We.arg;Mc(Je)}return Lt}}throw new Error("illegal catch attempt")},delegateYield:function(je,Ne,Je){return this.delegate={iterator:xu(je),resultName:Ne,nextLoc:Je},"next"===this.method&&(this.arg=Oe),ui}},Mt}(ns.exports);try{regeneratorRuntime=dr}catch(Mt){Function("r","regeneratorRuntime = r")(dr)}},79052:function(ns,dr,Mt){ns.exports=Mt(25510)}},function(ns){ns(ns.s=65686)}]); \ No newline at end of file diff --git a/server/src/uds/static/admin/polyfills-es5.js b/server/src/uds/static/admin/polyfills-es5.js index 32519200b..eeae56468 100644 --- a/server/src/uds/static/admin/polyfills-es5.js +++ b/server/src/uds/static/admin/polyfills-es5.js @@ -1 +1 @@ -(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[698,429],{2975:function(t,e,n){"use strict";n(4791),n(7037),n(477),n(9213),n(2368),n(6179),n(905),n(2472),n(8272),n(3080),n(1979),n(6152),n(2953),n(410),n(530),n(6270),n(420),n(8868),n(8902),n(3482),n(5704),n(3958),n(7598),n(1519),n(8294),n(8974),n(9394),n(6388),n(5842),n(1180),n(4469),n(3047),n(1097),n(4690),n(8004),n(5443),n(7328),n(7678),n(5319),n(7921),n(4984),n(7400),n(7347),n(6244),n(4626),n(6485),n(6837),n(4049),n(4991),n(3311),n(6477),n(7163),n(7176),n(3744),n(6261),n(706),n(3358),n(1),n(5139),n(9139),n(2786),n(4260),n(890),n(8147),n(6475),n(9305),n(7285),n(8432),n(1323),n(7371),n(352),n(912),n(6954),n(8170),n(2426),n(5374),n(1581),n(4104),n(9719),n(6446),n(9134),n(4378),n(4119),n(7741),n(8854),n(3438),n(3014),n(4098),n(2603),n(4541),n(4932),n(5579),n(9465)},5579:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=Object.create((e&&e.prototype instanceof g?e:g).prototype),i=new P(r||[]);return o._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=f(t,e,n);if("normal"===u.type){if(r=n.done?d:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,i),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",p="executing",d="completed",v={};function g(){}function m(){}function y(){}var b={};b[i]=function(){return this};var _=Object.getPrototypeOf,x=_&&_(_(M([])));x&&x!==n&&r.call(x,i)&&(b=x);var k=y.prototype=g.prototype=Object.create(b);function w(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function T(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e(function(e,o){n(t,r,e,o)})}return o=o?o.then(i,i):i()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function M(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(n){Function("r","regeneratorRuntime = r")(e)}},9465:function(){"use strict";var t,e,n,r,o,i;function a(){t=Zone.__symbol__,e=Object[t("defineProperty")]=Object.defineProperty,n=Object[t("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,r=Object.create,o=t("unconfigurables"),Object.defineProperty=function(t,e,n){if(u(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);var r=n.configurable;return"prototype"!==e&&(n=s(t,e,n)),f(t,e,n,r)},Object.defineProperties=function(t,e){return Object.keys(e).forEach(function(n){Object.defineProperty(t,n,e[n])}),t},Object.create=function(t,e){return"object"!=typeof e||Object.isFrozen(e)||Object.keys(e).forEach(function(n){e[n]=s(t,n,e[n])}),r(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var r=n(t,e);return r&&u(t,e)&&(r.configurable=!1),r}}function c(t,e,n){var r=n.configurable;return f(t,e,n=s(t,e,n),r)}function u(t,e){return t&&t[o]&&t[o][e]}function s(t,n,r){return Object.isFrozen(r)||(r.configurable=!0),r.configurable||(t[o]||Object.isFrozen(t)||e(t,o,{writable:!0,value:{}}),t[o]&&(t[o][n]=!0)),r}function f(t,n,r,o){try{return e(t,n,r)}catch(c){if(!r.configurable)throw c;void 0===o?delete r.configurable:r.configurable=o;try{return e(t,n,r)}catch(c){var i=!1;if("createdCallback"!==n&&"attachedCallback"!==n&&"detachedCallback"!==n&&"attributeChangedCallback"!==n||(i=!0),!i)throw c;var a=null;try{a=JSON.stringify(r)}catch(c){a=r.toString()}console.log("Attempting to configure '".concat(n,"' with descriptor '").concat(a,"' on object '").concat(t,"' and got error, giving up: ").concat(c))}}}function l(t,e){var n=e.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,s="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),f=[],l=t.wtf,h="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");l?f=h.map(function(t){return"HTML"+t+"Element"}).concat(s):t.EventTarget?f.push("EventTarget"):f=s;for(var p=t.__Zone_disable_IE_check||!1,d=t.__Zone_enable_cross_context_check||!1,v=e.isIEOrEdge(),g="[object FunctionWrapper]",m="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",y={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},b=0;b1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(u),c=u,[r,o,"send","close"].forEach(function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[e].apply(u,n)}})):a=u,t.patchOnProperties(a,["close","error","message","open"],c),a};var a=e.WebSocket;for(var c in i)a[c]=i[c]}(t,e),Zone[t.symbol("patchEvents")]=!0}}(i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(i.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=i.Zone;t.__load_patch("defineProperty",function(t,e,n){n._redefineProperty=c,a()}),t.__load_patch("registerElement",function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)}),t.__load_patch("EventTargetLegacy",function(t,e,n){l(t,n),h(n,t)})}},2167:function(t,e,n){"use strict";var r=n(5554).default,o=n(5725).default,i=n(3560).default,a=(function(t){var e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");var a=t.__Zone_symbol_prefix||"__zone_symbol__";function c(t){return a+t}var u=!0===t[c("forceDuplicateZoneCheck")];if(t.Zone){if(u||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}var s=function(){function e(t,n){o(this,e),this._parent=t,this._name=n?n.name||"unnamed":"",this._properties=n&&n.properties||{},this._zoneDelegate=new h(this,this._parent&&this._parent._zoneDelegate,n)}return i(e,[{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}},{key:"get",value:function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]}},{key:"getZoneWith",value:function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}},{key:"fork",value:function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}},{key:"wrap",value:function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}},{key:"run",value:function(t,e,n,r){N={parent:N,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{N=N.parent}}},{key:"runGuarded",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;N={parent:N,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{N=N.parent}}},{key:"runTask",value:function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||x).name+"; Execution: "+this.name+")");if(t.state!==k||t.type!==R&&t.type!==M){var r=t.state!=S;r&&t._transitionTo(S,T),t.runCount++;var o=I;I=t,N={parent:N,zone:this};try{t.type==M&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==k&&t.state!==O&&(t.type==R||t.data&&t.data.isPeriodic?r&&t._transitionTo(T,S):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(k,S,k))),N=N.parent,I=o}}}},{key:"scheduleTask",value:function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(t.zone.name));e=e.parent}t._transitionTo(w,k);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(O,w,k),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==w&&t._transitionTo(T,w),t}},{key:"scheduleMicroTask",value:function(t,e,n,r){return this.scheduleTask(new p(P,t,e,n,r,void 0))}},{key:"scheduleMacroTask",value:function(t,e,n,r,o){return this.scheduleTask(new p(M,t,e,n,r,o))}},{key:"scheduleEventTask",value:function(t,e,n,r,o){return this.scheduleTask(new p(R,t,e,n,r,o))}},{key:"cancelTask",value:function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||x).name+"; Execution: "+this.name+")");t._transitionTo(E,T,S);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(O,E),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(k,E),t.runCount=0,t}},{key:"_updateTaskCount",value:function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];if(A.hasOwnProperty(o)){if(!a&&u)throw Error("Already loaded patch: "+o)}else if(!t["__Zone_disable_"+o]){var c="Zone:"+o;n(c),A[o]=i(t,e,j),r(c,c)}}}]),e}();s.__symbol__=c;var f,l={name:"",onHasTask:function(t,e,n,r){return t.hasTask(n,r)},onScheduleTask:function(t,e,n,r){return t.scheduleTask(n,r)},onInvokeTask:function(t,e,n,r,o,i){return t.invokeTask(n,r,o,i)},onCancelTask:function(t,e,n,r){return t.cancelTask(n,r)}},h=function(){function t(e,n,r){o(this,t),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=n,this._forkZS=r&&(r&&r.onFork?r:n._forkZS),this._forkDlgt=r&&(r.onFork?n:n._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:n._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:n._interceptZS),this._interceptDlgt=r&&(r.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:n._invokeZS),this._invokeDlgt=r&&(r.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:n._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:n._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:n._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:n._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var i=r&&r.onHasTask;(i||n&&n._hasTaskZS)&&(this._hasTaskZS=i?r:l,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,r.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}return i(t,[{key:"fork",value:function(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}},{key:"intercept",value:function(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}},{key:"invoke",value:function(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)}},{key:"handleError",value:function(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}},{key:"scheduleTask",value:function(t,e){var n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e))||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=P)throw new Error("Task is missing scheduleFn.");b(e)}return n}},{key:"invokeTask",value:function(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}},{key:"cancelTask",value:function(t,e){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}},{key:"hasTask",value:function(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(n){this.handleError(t,n)}}},{key:"_updateTaskCount",value:function(t,e){var n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}]),t}(),p=function(){function e(n,r,i,a,c,u){if(o(this,e),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=a,this.scheduleFn=c,this.cancelFn=u,!i)throw new Error("callback is not defined");this.callback=i;var s=this;this.invoke=n===R&&a&&a.useG?e.invokeTask:function(){return e.invokeTask.call(t,s,this,arguments)}}return i(e,[{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}},{key:"cancelScheduleRequest",value:function(){this._transitionTo(k,w)}},{key:"_transitionTo",value:function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(t,"', expecting state '").concat(e,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=t,t==k&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function(t,e,n){t||(t=this),D++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==D&&_(),D--}}}]),e}(),d=c("setTimeout"),v=c("Promise"),g=c("then"),m=[],y=!1;function b(e){if(0===D&&0===m.length)if(f||t[v]&&(f=t[v].resolve(0)),f){var n=f[g];n||(n=f.then),n.call(f,_)}else t[d](_,0);e&&m.push(e)}function _(){if(!y){for(y=!0;m.length;){var t=m;m=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=y(t[n],e+"_"+n));return t}function E(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var O="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,P=!("nw"in w)&&void 0!==w.process&&"[object process]"==={}.toString.call(w.process),M=!P&&!O&&!(!x||!k.HTMLElement),R=void 0!==w.process&&"[object process]"==={}.toString.call(w.process)&&!O&&!(!x||!k.HTMLElement),A={},j=function(t){if(t=t||w.event){var e=A[t.type];e||(e=A[t.type]=_("ON_PROPERTY"+t.type));var n,r=this||t.target||w,o=r[e];if(M&&r===k&&"error"===t.type){var i=t;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&t.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||t.preventDefault();return n}};function N(t,e,n){var r=a(t,e);if(!r&&n&&a(n,e)&&(r={enumerable:!0,configurable:!0}),r&&r.configurable){var o=_("on"+e+"patched");if(!t.hasOwnProperty(o)||!t[o]){delete r.writable,delete r.value;var i=r.get,u=r.set,s=e.substr(2),f=A[s];f||(f=A[s]=_("ON_PROPERTY"+s)),r.set=function(e){var n=this;n||t!==w||(n=w),n&&(n[f]&&n.removeEventListener(s,j),u&&u.apply(n,T),"function"==typeof e?(n[f]=e,n.addEventListener(s,j,!1)):n[f]=null)},r.get=function(){var n=this;if(n||t!==w||(n=w),!n)return null;var o=n[f];if(o)return o;if(i){var a=i&&i.call(this);if(a)return r.set.call(this,a),"function"==typeof n.removeAttribute&&n.removeAttribute(e),a}return null},c(t,e,r),t[o]=!0}}}function I(t,e,n){if(e)for(var r=0;r=0&&"function"==typeof r[i.cbIdx]?b(i.name,r[i.cbIdx],i,o):t.apply(e,r)}})}function F(t,e){t[_("OriginalDelegate")]=e}var Z=!1,H=!1;function W(){if(Z)return H;Z=!0;try{var t=k.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(H=!0)}catch(e){}return H}Zone.__load_patch("ZoneAwarePromise",function(t,e,n){var a=Object.getOwnPropertyDescriptor,c=Object.defineProperty,u=n.symbol,s=[],f=!0===t[u("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=u("Promise"),h=u("then");n.onUnhandledError=function(t){if(n.showUncaughtError()){var e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=function(){for(var t=function(){var t=s.shift();try{t.zone.runGuarded(function(){if(t.throwOriginal)throw t.rejection;throw t})}catch(r){!function(t){n.onUnhandledError(t);try{var r=e[p];"function"==typeof r&&r.call(this,t)}catch(o){}}(r)}};s.length;)t()};var p=u("unhandledPromiseRejectionHandler");function d(t){return t&&t.then}function v(t){return t}function g(t){return j.reject(t)}var m=u("state"),y=u("value"),b=u("finally"),_=u("parentPromiseValue"),x=u("parentPromiseState"),k=null,w=!0,T=!1;function S(t,e){return function(n){try{O(t,e,n)}catch(r){O(t,!1,r)}}}var E=u("currentTaskTrace");function O(t,r,o){var i,a,u=(i=!1,function(t){return function(){i||(i=!0,t.apply(null,arguments))}});if(t===o)throw new TypeError("Promise resolved with itself");if(t[m]===k){var l=null;try{"object"!=typeof o&&"function"!=typeof o||(l=o&&o.then)}catch(g){return u(function(){O(t,!1,g)})(),t}if(r!==T&&o instanceof j&&o.hasOwnProperty(m)&&o.hasOwnProperty(y)&&o[m]!==k)M(o),O(t,o[m],o[y]);else if(r!==T&&"function"==typeof l)try{l.call(o,u(S(t,r)),u(S(t,!1)))}catch(g){u(function(){O(t,!1,g)})()}else{t[m]=r;var h=t[y];if(t[y]=o,t[b]===b&&r===w&&(t[m]=t[x],t[y]=t[_]),r===T&&o instanceof Error){var p=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;p&&c(o,E,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var d=0;d4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var u=this||t,s=arguments[0];n&&n.transferEventName&&(s=n.transferEventName(s));var p=arguments[1];if(!p)return e.apply(this,arguments);if(P&&"uncaughtException"===s)return e.apply(this,arguments);var d=!1;if("function"!=typeof p){if(!p.handleEvent)return e.apply(this,arguments);d=!0}if(!l||l(e,p,u,arguments)){var m=G&&!!I&&-1!==I.indexOf(s),y=M(arguments[2],m);if(N)for(var b=0;b0){var o=t.invoke;t.invoke=function(){for(var n=a[e.__symbol__("loadfalse")],i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f: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.")}var a,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}},t.exports.default=t.exports,t.exports.__esModule=!0},4466:function(t,e,n){var r=n(795);t.exports=function(t,e){if(t){if("string"==typeof t)return r(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)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},8011:function(t,e,n){n(3744),n(6388),n(9394),n(5842),n(8974),n(7347),n(7678),n(6244),n(5443),n(4626),n(6485),n(4991),n(3311),n(4690),n(4049),n(4984),n(6837),n(1180),n(7400),n(8004),n(5319),n(7921),n(7353),n(4469),n(7328),n(1097),n(3178),n(3047),n(4866),n(2314);var r=n(6950);t.exports=r.Array},9134:function(t,e,n){n(2804),n(4636),n(8579),n(8441),n(7585),n(5982),n(6251),n(3073);var r=n(6950);t.exports=r.Date},5935:function(t,e,n){n(7037),n(477),n(9213);var r=n(6950);t.exports=r.Function},5697:function(t,e,n){n(8854),n(5704),n(3744),n(2603);var r=n(6950);t.exports=r.Map},6446:function(t,e,n){n(2203),n(6440),n(9244),n(3129),n(4161),n(298),n(5817),n(4523),n(2325),n(3042),n(8937),n(1209),n(5133),n(110),n(51),n(5189),n(663),n(3862);var r=n(6950);t.exports=r.Math},9719:function(t,e,n){n(6455),n(7298),n(7135),n(707),n(938),n(7530),n(2527),n(270),n(9101),n(5803),n(2583),n(6544);var r=n(6950);t.exports=r.Number},7658:function(t,e,n){n(5619),n(8868),n(2368),n(6179),n(905),n(3958),n(6152),n(8294),n(2472),n(1519),n(1979),n(8272),n(8902),n(420),n(530),n(6270),n(3080),n(410),n(2953),n(3482),n(7598),n(5704),n(7810),n(6304),n(7731),n(8020),n(4932),n(663),n(4144);var r=n(6950);t.exports=r.Object},8298:function(t,e,n){n(4104);var r=n(6950);t.exports=r.parseFloat},4091:function(t,e,n){n(1581);var r=n(6950);t.exports=r.parseInt},333:function(t,e,n){n(8115),n(7821),n(3138),n(6263),n(2633),n(6718),n(6989),n(941),n(9062),n(4101),n(8905),n(9421),n(408),n(4144);var r=n(6950);t.exports=r.Reflect},5655:function(t,e,n){n(4378),n(4119),n(2842),n(9665),n(7741),n(232),n(8682),n(6954),n(8170),n(2426),n(5374)},5252:function(t,e,n){n(3014),n(5704),n(3744),n(2603);var r=n(6950);t.exports=r.Set},8615:function(t,e,n){n(9665),n(6477),n(7163),n(6261),n(706),n(3358),n(6954),n(7279),n(158),n(5569),n(1),n(8170),n(7208),n(2426),n(5374),n(5139),n(1317),n(7176),n(2164),n(5693),n(3744),n(9139),n(2786),n(4260),n(890),n(8147),n(6475),n(9305),n(7285),n(8432),n(1323),n(7371),n(352),n(912);var r=n(6950);t.exports=r.String},4791:function(t,e,n){n(8974),n(5704),n(5619),n(9666),n(1005),n(2372),n(5126),n(505),n(838),n(963),n(7624),n(1548),n(4702),n(9169),n(4759),n(6142),n(5745),n(4932),n(663),n(4144);var r=n(6950);t.exports=r.Symbol},2057:function(t,e,n){n(5704),n(3438),n(2603);var r=n(6950);t.exports=r.WeakMap},7625:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},5143:function(t,e,n){var r=n(726);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},4094:function(t,e,n){var r=n(4563),o=n(8724),i=n(3202),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},3274:function(t,e,n){"use strict";var r=n(4487).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},6063:function(t){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},1099:function(t,e,n){var r=n(726);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},4514:function(t,e,n){"use strict";var r=n(6174),o=n(222),i=n(5902),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),c=i(n.length),u=o(t,c),s=o(e,c),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?c:o(f,c))-s,c-u),h=1;for(s0;)s in n?n[u]=n[s]:delete n[u],u+=h,s+=h;return n}},5378:function(t,e,n){"use strict";var r=n(6174),o=n(222),i=n(5902);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,c=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>c;)e[c++]=t;return e}},7462:function(t,e,n){"use strict";var r=n(4115).forEach,o=n(7051)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},4362:function(t,e,n){"use strict";var r=n(9727),o=n(6174),i=n(7651),a=n(1643),c=n(5902),u=n(5347),s=n(3076);t.exports=function(t){var e,n,f,l,h,p,d=o(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=s(d),_=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=c(d.length));e>_;_++)p=y?m(d[_],_):d[_],u(n,_,p);else for(h=(l=b.call(d)).next,n=new v;!(f=h.call(l)).done;_++)p=y?i(l,m,[f.value,_],!0):f.value,u(n,_,p);return n.length=_,n}},452:function(t,e,n){var r=n(8643),o=n(5902),i=n(222),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4115:function(t,e,n){var r=n(9727),o=n(6169),i=n(6174),a=n(5902),c=n(2889),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(d,v,g,m){for(var y,b,_=i(d),x=o(_),k=r(v,g,3),w=a(x.length),T=0,S=m||c,E=e?S(d,w):n||h?S(d,0):void 0;w>T;T++)if((p||T in x)&&(b=k(y=x[T],T,_),t))if(e)E[T]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return T;case 2:u.call(E,y)}else switch(t){case 4:return!1;case 7:u.call(E,y)}return l?-1:s||f?f:E}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},1275:function(t,e,n){"use strict";var r=n(8643),o=n(9463),i=n(5902),a=n(7051),c=Math.min,u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf");t.exports=s||!f?function(t){if(s)return u.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:u},7394:function(t,e,n){var r=n(8597),o=n(4563),i=n(7189),a=o("species");t.exports=function(t){return i>=51||!r(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},7051:function(t,e,n){"use strict";var r=n(8597);t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},4716:function(t,e,n){var r=n(7625),o=n(6174),i=n(6169),a=n(5902),c=function(t){return function(e,n,c,u){r(n);var s=o(e),f=i(s),l=a(s.length),h=t?l-1:0,p=t?-1:1;if(c<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(u=n(u,f[h],h,s));return u}};t.exports={left:c(!1),right:c(!0)}},7906:function(t){var e=Math.floor,n=function(t,i){var a=t.length,c=e(a/2);return a<8?r(t,i):o(n(t.slice(0,c),i),n(t.slice(c),i),i)},r=function(t,e){for(var n,r,o=t.length,i=1;i0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},o=function(t,e,n){for(var r=t.length,o=e.length,i=0,a=0,c=[];i1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(f.prototype,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);s(t,e,function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),f(e)}}},6491:function(t,e,n){"use strict";var r=n(8715),o=n(4238).getWeakData,i=n(1099),a=n(726),c=n(6063),u=n(3284),s=n(4115),f=n(7791),l=n(2493),h=l.set,p=l.getterFor,d=s.find,v=s.findIndex,g=0,m=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return d(t.entries,function(t){return t[0]===e})};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,s){var l=t(function(t,r){c(t,l,e),h(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[s],{that:t,AS_ENTRIES:n})}),d=p(e),v=function(t,e,n){var r=d(t),a=o(i(e),!0);return!0===a?m(r).set(e,n):a[r.id]=n,t};return r(l.prototype,{delete:function(t){var e=d(this);if(!a(t))return!1;var n=o(t);return!0===n?m(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!a(t))return!1;var n=o(t);return!0===n?m(e).has(t):n&&f(n,e.id)}}),r(l.prototype,n?{get:function(t){var e=d(this);if(a(t)){var n=o(t);return!0===n?m(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),l}}},1603:function(t,e,n){"use strict";var r=n(1163),o=n(1864),i=n(7215),a=n(7763),c=n(4238),u=n(3284),s=n(6063),f=n(726),l=n(8597),h=n(6297),p=n(8242),d=n(8267);t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),m=v?"set":"add",y=o[t],b=y&&y.prototype,_=y,x={},k=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof y||!(g||b.forEach&&!l(function(){(new y).entries().next()}))))_=n.getConstructor(e,t,v,m),c.REQUIRED=!0;else if(i(t,!0)){var w=new _,T=w[m](g?{}:-0,1)!=w,S=l(function(){w.has(1)}),E=h(function(t){new y(t)}),O=!g&&l(function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)});E||((_=e(function(e,n){s(e,_,t);var r=d(new y,e,_);return null!=n&&u(n,r[m],{that:r,AS_ENTRIES:v}),r})).prototype=b,b.constructor=_),(S||O)&&(k("delete"),k("has"),v&&k("get")),(O||T)&&k(m),g&&b.clear&&delete b.clear}return x[t]=_,r({global:!0,forced:_!=y},x),p(_,t),g||n.setStrong(_,t,v),_}},9:function(t,e,n){var r=n(7791),o=n(9376),i=n(3099),a=n(3202);t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s"+a+""}},7453:function(t,e,n){"use strict";var r=n(2053).IteratorPrototype,o=n(8724),i=n(3203),a=n(8242),c=n(2339),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,s,!1,!0),c[s]=u,t}},815:function(t,e,n){var r=n(7012),o=n(3202),i=n(3203);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},3203:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5347:function(t,e,n){"use strict";var r=n(8495),o=n(3202),i=n(3203);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},6194:function(t,e,n){"use strict";var r=n(8597),o=n(4164).start,i=Math.abs,a=Date.prototype,c=a.getTime,u=a.toISOString;t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))})||!r(function(){u.call(new Date(NaN))})?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+o(i(e),r?6:4,0)+"-"+o(t.getUTCMonth()+1,2,0)+"-"+o(t.getUTCDate(),2,0)+"T"+o(t.getUTCHours(),2,0)+":"+o(t.getUTCMinutes(),2,0)+":"+o(t.getUTCSeconds(),2,0)+"."+o(n,3,0)+"Z"}:u},4256:function(t,e,n){"use strict";var r=n(1099),o=n(8495);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},6038:function(t,e,n){"use strict";var r=n(1163),o=n(7453),i=n(3963),a=n(1464),c=n(8242),u=n(815),s=n(7763),f=n(4563),l=n(7515),h=n(2339),p=n(2053),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m="keys",y="values",b="entries",_=function(){return this};t.exports=function(t,e,n,f,p,x,k){o(n,e,f);var w,T,S,E=function(t){if(t===p&&A)return A;if(!v&&t in M)return M[t];switch(t){case m:case y:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",P=!1,M=t.prototype,R=M[g]||M["@@iterator"]||p&&M[p],A=!v&&R||E(p),j="Array"==e&&M.entries||R;if(j&&(w=i(j.call(new t)),d!==Object.prototype&&w.next&&(l||i(w)===d||(a?a(w,d):"function"!=typeof w[g]&&u(w,g,_)),c(w,O,!0,!0),l&&(h[O]=_))),p==y&&R&&R.name!==y&&(P=!0,A=function(){return R.call(this)}),l&&!k||M[g]===A||u(M,g,A),h[e]=A,p)if(T={values:E(y),keys:x?A:E(m),entries:E(b)},k)for(S in T)(v||P||!(S in M))&&s(M,S,T[S]);else r({target:e,proto:!0,forced:v||P},T);return T}},7007:function(t,e,n){var r=n(6950),o=n(7791),i=n(3589),a=n(3202).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},7012:function(t,e,n){var r=n(8597);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},5815:function(t,e,n){var r=n(1864),o=n(726),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},6877:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6504:function(t,e,n){var r=n(3792).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},2846:function(t){t.exports="object"==typeof window},2534:function(t,e,n){var r=n(3792);t.exports=/MSIE|Trident/.test(r)},586:function(t,e,n){var r=n(3792);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},2002:function(t,e,n){var r=n(6644),o=n(1864);t.exports="process"==r(o.process)},6607:function(t,e,n){var r=n(3792);t.exports=/web0s(?!.*chrome)/i.test(r)},3792:function(t,e,n){var r=n(3626);t.exports=r("navigator","userAgent")||""},7189:function(t,e,n){var r,o,i=n(1864),a=n(3792),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},3295:function(t,e,n){var r=n(3792).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},1001:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1163:function(t,e,n){var r=n(1864),o=n(3099).f,i=n(815),a=n(7763),c=n(2341),u=n(9),s=n(7215);t.exports=function(t,e){var n,f,l,h,p,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||c(d,{}):(r[d]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(n,f))&&p.value:n[f],!s(v?f:d+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(n,f,h,t)}}},8597:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},9357:function(t,e,n){"use strict";n(9665);var r=n(7763),o=n(3084),i=n(8597),a=n(4563),c=n(815),u=a("species"),s=RegExp.prototype;t.exports=function(t,e,n,f){var l=a(t),h=!i(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)}),p=h&&!i(function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e});if(!h||!p||n){var d=/./[l],v=e(l,""[t],function(t,e,n,r,i){var a=e.exec;return a===o||a===s.exec?h&&!i?{done:!0,value:d.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}});r(String.prototype,t,v[0]),r(s,l,v[1])}f&&c(s[l],"sham",!0)}},6507:function(t,e,n){"use strict";var r=n(7883),o=n(5902),i=n(9727),a=function(t,e,n,c,u,s,f,l){for(var h,p=u,d=0,v=!!f&&i(f,l,3);d0&&r(h))p=a(t,e,h,o(h.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=h}p++}d++}return p};t.exports=a},9352:function(t,e,n){var r=n(8597);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},9727:function(t,e,n){var r=n(7625);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},2702:function(t,e,n){"use strict";var r=n(7625),o=n(726),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,u,s,f){var l=n+t.length,h=u.length,p=c;return void 0!==s&&(s=r(s),p=a),i.call(f,p,function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=s[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>h){var f=o(c/10);return 0===f?r:f<=h?void 0===u[f-1]?i.charAt(1):u[f-1]+i.charAt(1):r}a=u[c-1]}return void 0===a?"":a})}},1864:function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},7791:function(t,e,n){var r=n(6174),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},3536:function(t){t.exports={}},9989:function(t,e,n){var r=n(1864);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},7538:function(t,e,n){var r=n(3626);t.exports=r("document","documentElement")},7091:function(t,e,n){var r=n(7012),o=n(8597),i=n(5815);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},6169:function(t,e,n){var r=n(8597),o=n(6644),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},8267:function(t,e,n){var r=n(726),o=n(1464);t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},7720:function(t,e,n){var r=n(9941),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},4238:function(t,e,n){var r=n(3536),o=n(726),i=n(7791),a=n(3202).f,c=n(4295),u=n(9352),s=c("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[s].weakData},onFreeze:function(t){return u&&p.REQUIRED&&l(t)&&!i(t,s)&&h(t),t}};r[s]=!0},2493:function(t,e,n){var r,o,i,a=n(1635),c=n(1864),u=n(726),s=n(815),f=n(7791),l=n(9941),h=n(2650),p=n(3536),d="Object already initialized";if(a||l.state){var v=l.state||(l.state=new(0,c.WeakMap)),g=v.get,m=v.has,y=v.set;r=function(t,e){if(m.call(v,t))throw new TypeError(d);return e.facade=t,y.call(v,t,e),e},o=function(t){return g.call(v,t)||{}},i=function(t){return m.call(v,t)}}else{var b=h("state");p[b]=!0,r=function(t,e){if(f(t,b))throw new TypeError(d);return e.facade=t,s(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},1643:function(t,e,n){var r=n(4563),o=n(2339),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},7883:function(t,e,n){var r=n(6644);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7215:function(t,e,n){var r=n(8597),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},9829:function(t,e,n){var r=n(726),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},726:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},7515:function(t){t.exports=!1},9482:function(t,e,n){var r=n(726),o=n(6644),i=n(4563)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},3284:function(t,e,n){var r=n(1099),o=n(1643),i=n(5902),a=n(9727),c=n(3076),u=n(8456),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var f,l,h,p,d,v,g,m=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),_=a(e,n&&n.that,1+m+b),x=function(t){return f&&u(f),new s(!0,t)},k=function(t){return m?(r(t),b?_(t[0],t[1],x):_(t[0],t[1])):b?_(t,x):_(t)};if(y)f=t;else{if("function"!=typeof(l=c(t)))throw TypeError("Target is not iterable");if(o(l)){for(h=0,p=i(t.length);p>h;h++)if((d=k(t[h]))&&d instanceof s)return d;return new s(!1)}f=l.call(t)}for(v=f.next;!(g=v.call(f)).done;){try{d=k(g.value)}catch(w){throw u(f),w}if("object"==typeof d&&d&&d instanceof s)return d}return new s(!1)}},8456:function(t,e,n){var r=n(1099);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},2053:function(t,e,n){"use strict";var r,o,i,a=n(8597),c=n(3963),u=n(815),s=n(7791),f=n(4563),l=n(7515),h=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):p=!0);var d=null==r||a(function(){var t={};return r[h].call(t)!==t});d&&(r={}),l&&!d||s(r,h)||u(r,h,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},2339:function(t){t.exports={}},2914:function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},5262:function(t,e,n){var r=n(2595),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),f=r(t);return iu||n!=n?f*(1/0):f*n}},6872:function(t){var e=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},2595:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},1463:function(t,e,n){var r,o,i,a,c,u,s,f,l=n(1864),h=n(3099).f,p=n(2040).set,d=n(586),v=n(6607),g=n(2002),m=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,_=l.Promise,x=h(l,"queueMicrotask"),k=x&&x.value;k||(r=function(){var t,e;for(g&&(t=b.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(n){throw o?a():i=void 0,n}}i=void 0,t&&t.enter()},d||g||v||!m||!y?_&&_.resolve?((s=_.resolve(void 0)).constructor=_,f=s.then,a=function(){f.call(s,r)}):a=g?function(){b.nextTick(r)}:function(){p.call(l,r)}:(c=!0,u=y.createTextNode(""),new m(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c})),t.exports=k||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},6866:function(t,e,n){var r=n(1864);t.exports=r.Promise},7040:function(t,e,n){var r=n(7189),o=n(8597);t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},1635:function(t,e,n){var r=n(1864),o=n(7720),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},9723:function(t,e,n){"use strict";var r=n(7625),o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},3270:function(t,e,n){var r=n(9482);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},87:function(t,e,n){var r=n(1864).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},8884:function(t,e,n){var r=n(1864),o=n(1664).trim,i=n(2781),a=r.parseFloat,c=1/a(i+"-0")!=-1/0;t.exports=c?function(t){var e=o(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},3656:function(t,e,n){var r=n(1864),o=n(1664).trim,i=n(2781),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(c.test(n)?16:10))}:a},1746:function(t,e,n){"use strict";var r=n(7012),o=n(8597),i=n(8032),a=n(7593),c=n(5600),u=n(6174),s=n(6169),f=Object.assign,l=Object.defineProperty;t.exports=!f||o(function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||i(f({},e)).join("")!=o})?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,h=c.f;o>f;)for(var p,d=s(arguments[f++]),v=l?i(d).concat(l(d)):i(d),g=v.length,m=0;g>m;)p=v[m++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:f},8724:function(t,e,n){var r,o=n(1099),i=n(988),a=n(1001),c=n(3536),u=n(7538),s=n(5815),f=n(2650)("IE_PROTO"),l=function(){},h=function(t){return" + \ No newline at end of file diff --git a/server/src/uds/web/util/configjs.py b/server/src/uds/web/util/configjs.py index 4fac5d94f..72b94961d 100644 --- a/server/src/uds/web/util/configjs.py +++ b/server/src/uds/web/util/configjs.py @@ -219,10 +219,12 @@ def udsJs(request: 'ExtendedHttpRequest') -> str: config['urls']['rest'] = reverse('REST', kwargs={'arguments': ''}) # Admin config page_size = GlobalConfig.ADMIN_PAGESIZE.getInt(True) + vnc_userservices = GlobalConfig.ADMIN_ENABLE_USERSERVICES_VNC.getBool(True) # Fix page size to razonable usable values page_size = 10 if page_size < 10 else 100 if page_size > 100 else page_size config['admin'] = { 'page_size': page_size, + 'vnc_userservices': vnc_userservices, } errors: typing.List = []