ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
105 lines • 50.3 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/animations"),require("@angular/cdk/coercion"),require("@angular/cdk/overlay"),require("@angular/common"),require("@angular/platform-browser/animations"),require("@angular/cdk/platform"),require("rxjs"),require("@angular/core")):"function"==typeof define&&define.amd?define("ng-zorro-antd/core",["exports","@angular/animations","@angular/cdk/coercion","@angular/cdk/overlay","@angular/common","@angular/platform-browser/animations","@angular/cdk/platform","rxjs","@angular/core"],t):t((e["ng-zorro-antd"]=e["ng-zorro-antd"]||{},e["ng-zorro-antd"].core={}),e.ng.animations,e.ng.cdk.coercion,e.ng.cdk.overlay,e.ng.common,e.ng.platformBrowser.animations,e.ng.cdk.platform,e.rxjs,e.ng.core)}(this,function(e,t,n,i,r,o,a,s,c){"use strict";var l=(Object.defineProperty(d.prototype,"nzClassListAdd",{set:function(e){var t=this;this.classList.forEach(function(e){t.renderer.removeClass(t.elementRef.nativeElement,e)}),e.forEach(function(e){t.renderer.addClass(t.elementRef.nativeElement,e)}),this.classList=e},enumerable:!0,configurable:!0}),d.decorators=[{type:c.Directive,args:[{selector:"[nzClassListAdd]",exportAs:"nzClassListAdd"}]}],d.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2}]},d.propDecorators={nzClassListAdd:[{type:c.Input}]},d);function d(e,t){this.elementRef=e,this.renderer=t,this.classList=[]}var u=(Object.defineProperty(h.prototype,"nzStringTemplateOutlet",{set:function(e){e instanceof c.TemplateRef?(this.isTemplate=!0,this.inputTemplate=e):this.isTemplate=!1,this.updateView()},enumerable:!0,configurable:!0}),h.prototype.updateView=function(){this.isTemplate?this.inputViewRef||(this.viewContainer.clear(),this.defaultViewRef=null,this.inputTemplate&&(this.inputViewRef=this.viewContainer.createEmbeddedView(this.inputTemplate))):this.defaultViewRef||(this.viewContainer.clear(),this.inputViewRef=null,this.defaultTemplate&&(this.defaultViewRef=this.viewContainer.createEmbeddedView(this.defaultTemplate)))},h.decorators=[{type:c.Directive,args:[{selector:"[nzStringTemplateOutlet]",exportAs:"nzStringTemplateOutlet"}]}],h.ctorParameters=function(){return[{type:c.ViewContainerRef},{type:c.TemplateRef}]},h.propDecorators={nzStringTemplateOutlet:[{type:c.Input}]},h);function h(e,t){this.viewContainer=e,this.defaultTemplate=t,this.inputTemplate=null,this.inputViewRef=null,this.defaultViewRef=null}var f=(p.decorators=[{type:c.NgModule,args:[{imports:[r.CommonModule],exports:[u,l],declarations:[u,l]}]}],p);
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/function p(){}var y=(g.SLOW="0.3s",g.BASE="0.2s",g.FAST="0.1s",g);function g(){}var v=(m.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",m.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",m.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",m.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",m.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",m.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",m.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",m.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",m.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",m.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",m.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",m.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",m.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",m.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",m);function m(){}var b=t.trigger("collapseMotion",[t.state("expanded",t.style({height:"*"})),t.state("collapsed",t.style({height:0,overflow:"hidden"})),t.state("hidden",t.style({height:0,display:"none"})),t.transition("expanded => collapsed",t.animate("150ms "+v.EASE_IN_OUT)),t.transition("expanded => hidden",t.animate("150ms "+v.EASE_IN_OUT)),t.transition("collapsed => expanded",t.animate("150ms "+v.EASE_IN_OUT)),t.transition("hidden => expanded",t.animate("150ms "+v.EASE_IN_OUT))]),N=t.trigger("fadeMotion",[t.transition(":enter",[t.style({opacity:0}),t.animate(""+y.BASE,t.style({opacity:1}))]),t.transition(":leave",[t.style({opacity:1}),t.animate(""+y.BASE,t.style({opacity:0}))])]),C=t.trigger("helpMotion",[t.transition(":enter",[t.style({opacity:0,transform:"translateY(-5px)"}),t.animate(y.SLOW+" "+v.EASE_IN_OUT,t.style({opacity:1,transform:"translateY(0)"}))]),t.transition(":leave",[t.style({opacity:1,transform:"translateY(0)"}),t.animate(y.SLOW+" "+v.EASE_IN_OUT,t.style({opacity:0,transform:"translateY(-5px)"}))])]),E=t.trigger("moveUpMotion",[t.transition("* => enter",[t.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),t.animate(""+y.BASE,t.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),t.transition("* => leave",[t.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),t.animate(""+y.BASE,t.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),k=t.trigger("notificationMotion",[t.state("enterRight",t.style({opacity:1,transform:"translateX(0)"})),t.transition("* => enterRight",[t.style({opacity:0,transform:"translateX(5%)"}),t.animate("100ms linear")]),t.state("enterLeft",t.style({opacity:1,transform:"translateX(0)"})),t.transition("* => enterLeft",[t.style({opacity:0,transform:"translateX(-5%)"}),t.animate("100ms linear")]),t.state("leave",t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),t.transition("* => leave",[t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),t.animate("100ms linear")])]),S=y.BASE+" "+v.EASE_OUT_QUINT,w=y.BASE+" "+v.EASE_IN_QUINT,O=t.trigger("slideMotion",[t.state("bottom",t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"})),t.state("top",t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 100%"})),t.transition("void => bottom",[t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}),t.animate(S)]),t.transition("bottom => void",[t.animate(w,t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}))]),t.transition("void => top",[t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}),t.animate(S)]),t.transition("top => void",[t.animate(w,t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}))])]),_=t.trigger("slideAlertMotion",[t.transition(":leave",[t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),t.animate(y.SLOW+" "+v.EASE_IN_OUT_CIRC,t.style({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),L=t.trigger("zoomMotion",[t.transition(":enter",[t.style({opacity:0,transform:"scale(0.2)"}),t.animate(y.BASE+" "+v.EASE_OUT_CIRC,t.style({opacity:1,transform:"scale(1)"}))]),t.transition(":leave",[t.style({opacity:1,transform:"scale(1)"}),t.animate(y.BASE+" "+v.EASE_IN_OUT_CIRC,t.style({opacity:0,transform:"scale(0.2)"}))])]),T=t.trigger("zoomBigMotion",[t.transition("void => active",[t.style({opacity:0,transform:"scale(0.8)"}),t.animate(y.BASE+" "+v.EASE_OUT_CIRC,t.style({opacity:1,transform:"scale(1)"}))]),t.transition("active => void",[t.style({opacity:1,transform:"scale(1)"}),t.animate(y.BASE+" "+v.EASE_IN_OUT_CIRC,t.style({opacity:0,transform:"scale(0.8)"}))])]),A=t.trigger("zoomBadgeMotion",[t.transition(":enter",[t.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}),t.animate(y.SLOW+" "+v.EASE_OUT_BACK,t.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),t.transition(":leave",[t.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}),t.animate(y.SLOW+" "+v.EASE_IN_BACK,t.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]),I=function(e,t){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var P=function(){return(P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function x(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a}function R(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(x(arguments[t]));return e}function z(e){return n.coerceBooleanProperty(e)}function D(e,t){return void 0===t&&(t=0),n._isNumberValue(e)?Number(e):t}function M(e){return n.coerceCssPixelValue(e)}function j(i,r){return function o(e,t){var n="$$__"+t;Object.prototype.hasOwnProperty.call(e,n)&&console.warn('The prop "'+n+'" is already exist, it will be overrided by '+i+" decorator."),Object.defineProperty(e,n,{configurable:!0,writable:!0}),Object.defineProperty(e,t,{get:function(){return this[n]},set:function(e){this[n]=r(e)}})}}function Y(){return j("InputBoolean",z)}var B="nz-animate-disabled",U=(V.prototype.ngOnChanges=function(){this.updateClass()},V.prototype.ngAfterViewInit=function(){this.updateClass()},V.prototype.updateClass=function(){var e=n.coerceElement(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,B):this.renderer.removeClass(e,B))},V.decorators=[{type:c.Directive,args:[{selector:"[nzNoAnimation]",exportAs:"nzNoAnimation",host:{"[@.disabled]":"nzNoAnimation"}}]}],V.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:String,decorators:[{type:c.Optional},{type:c.Inject,args:[o.ANIMATION_MODULE_TYPE]}]}]},V.propDecorators={nzNoAnimation:[{type:c.Input}]},function st(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;0<=s;s--)(r=e[s])&&(a=(o<3?r(a):3<o?r(t,n,a):r(t,n))||a);return 3<o&&a&&Object.defineProperty(t,n,a),a}([Y(),function ct(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Boolean)],V.prototype,"nzNoAnimation",void 0),V);function V(e,t,n){this.element=e,this.renderer=t,this.animationType=n,this.nzNoAnimation=!1}var F=(X.decorators=[{type:c.NgModule,args:[{declarations:[U],exports:[U],imports:[r.CommonModule]}]}],X);function X(){}var W=(H.decorators=[{type:c.Directive,args:[{selector:"[cdkConnectedOverlay][nzConnectedOverlay]",exportAs:"nzConnectedOverlay"}]}],H.ctorParameters=function(){return[{type:i.CdkConnectedOverlay}]},H);function H(e){this.cdkConnectedOverlay=e,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop"}var G=($.decorators=[{type:c.NgModule,args:[{declarations:[W],exports:[W]}]}],$);function $(){}var q={top:new i.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new i.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new i.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new i.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new i.ConnectionPositionPair({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new i.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new i.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new i.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new i.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new i.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new i.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new i.ConnectionPositionPair({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new i.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new i.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},K=[q.top,q.right,q.bottom,q.left],Z=[q.bottomLeft,q.bottomRight,q.topLeft,q.topRight],Q=[q.rightTop,q.leftTop],J=[q.bottomLeft,q.bottomRight,q.topLeft,q.topRight],ee=[q.bottomLeft,new i.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"})];
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var te=["moz","ms","webkit"];function ne(e){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=te.filter(function(e){return e+"CancelAnimationFrame"in window||e+"CancelRequestAnimationFrame"in window})[0];return t?(window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]).call(this,e):clearTimeout(e)}var ie=function lt(){if("undefined"==typeof window)return function(){return 0};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var e=te.filter(function(e){return e+"RequestAnimationFrame"in window})[0];return e?window[e+"RequestAnimationFrame"]:function t(){var r=0;return function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),i=setTimeout(function(){e(t+n)},n);return r=t+n,i}}()}();var re=(oe.prototype.setScrollTop=function(e,t){void 0===t&&(t=0),e===window?(this.doc.body.scrollTop=t,this.doc.documentElement.scrollTop=t):e.scrollTop=t},oe.prototype.getOffset=function(e){var t={top:0,left:0};if(!e||!e.getClientRects().length)return t;var n=e.getBoundingClientRect();if(n.width||n.height){var i=e.ownerDocument.documentElement;t.top=n.top-i.clientTop,t.left=n.left-i.clientLeft}else t.top=n.top,t.left=n.left;return t},oe.prototype.getScroll=function(e,t){void 0===t&&(t=!0);var n=e||window,i=t?"scrollTop":"scrollLeft",r=n===window,o=r?n[t?"pageYOffset":"pageXOffset"]:n[i];return r&&"number"!=typeof o&&(o=this.doc.documentElement[i]),o},oe.prototype.scrollTo=function(e,t,n,i){var r=this;void 0===t&&(t=0);var o=e||window,s=this.getScroll(o),c=Date.now(),l=function(){var e=Date.now()-c;r.setScrollTop(o,(n||function a(e,t,n,i){var r=n-t,o=e/(i/2);return o<1?r/2*o*o*o+t:r/2*((o-=2)*o*o+2)+t})(e,s,t,450)),e<450?ie(l):i&&i()};ie(l)},oe.decorators=[{type:c.Injectable}],oe.ctorParameters=function(){return[{type:undefined,decorators:[{type:c.Inject,args:[r.DOCUMENT]}]}]},oe);function oe(e){this.doc=e}function ae(e,t){return t||new re(e)}var se={provide:re,useFactory:ae,deps:[r.DOCUMENT,[new c.Optional,new c.SkipSelf,re]]};function ce(e){return null!=e}function le(e){return e?1===e.nodeType&&0!==e.outerHTML.toString().trim().length?e:3===e.nodeType&&0!==e.textContent.toString().trim().length?e:null:null}var de=(Object.defineProperty(ue.prototype,"scrollBarWidth",{get:function(){return ce(this._scrollbarWidth)||this.initScrollBarWidth(),this._scrollbarWidth},enumerable:!0,configurable:!0}),ue.prototype.initScrollBarWidth=function(){var e=this.document.createElement("div");for(var t in this.scrollbarMeasure)this.scrollbarMeasure.hasOwnProperty(t)&&(e.style[t]=this.scrollbarMeasure[t]);this.document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;this.document.body.removeChild(e),this._scrollbarWidth=n},ue.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],ue.ctorParameters=function(){return[{type:undefined,decorators:[{type:c.Inject,args:[r.DOCUMENT]}]}]},ue.ngInjectableDef=c.defineInjectable({factory:function(){return new ue(c.inject(r.DOCUMENT))},token:ue,providedIn:"root"}),ue);function ue(e){this.document=e,this.scrollbarMeasure={position:"absolute",top:"-9999px",width:"50px",height:"50px",overflow:"scroll"},this.initScrollBarWidth()}var he=(fe.prototype.updateHostClass=function(e,t){this.removeClass(e,this.classMap,this.renderer),this.classMap=P({},t),this.addClass(e,this.classMap,this.renderer)},fe.prototype.removeClass=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&n.removeClass(e,i)},fe.prototype.addClass=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.addClass(e,i)},fe.decorators=[{type:c.Injectable}],fe.ctorParameters=function(){return[{type:c.RendererFactory2}]},fe);
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function fe(e){this.classMap={},this.renderer=e.createRenderer(null,null)}function pe(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("MouseEvent");return i.initMouseEvent(e,!1,!1,window,0,t,n,t,n,!1,!1,!1,!1,0,null),i}function ye(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("UIEvent"),r={pageX:t,pageY:n};return i.initUIEvent(e,!0,!0,window,0),Object.defineProperties(i,{touches:{value:[r]}}),i}function ge(e,t,n,i){var r=document.createEvent("KeyboardEvent"),o=(r.initKeyEvent||r.initKeyboardEvent).bind(r),a=r.preventDefault;return o(e,!0,!0,window,0,0,0,0,0,t),Object.defineProperties(r,{keyCode:{get:function(){return t}},key:{get:function(){return i}},target:{get:function(){return n}}}),r.preventDefault=function(){return Object.defineProperty(r,"defaultPrevented",{get:function(){return!0}}),a.apply(this,arguments)},r}function ve(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!0);var i=document.createEvent("Event");return i.initEvent(e,t,n),i}function me(e,t){return e.dispatchEvent(t),t}function be(e,t,n){return me(e,ve(t,n))}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ne=(Ce.prototype.getViewportRect=function(){return{left:0,top:0,width:1014,height:686,bottom:686,right:1014}},Ce.prototype.getViewportSize=function(){return{width:1014,height:686}},Ce.prototype.getViewportScrollPosition=function(){return{top:0,left:0}},Ce);function Ce(){}var Ee,ke=(function dt(e,t){function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(Se,Ee=c.NgZone),Se.prototype.run=function(e){return e()},Se.prototype.runOutsideAngular=function(e){return e()},Se.prototype.simulateZoneExit=function(){this.onStable.emit(null)},Se.decorators=[{type:c.Injectable}],Se.ctorParameters=function(){return[]},Se);function Se(){var e=Ee.call(this,{enableLongStackTrace:!1})||this;return e.onStable=new c.EventEmitter(!1),e}var we=(Object.defineProperty(Oe.prototype,"treeService",{get:function(){return this.service||this.parentNode&&this.parentNode.treeService},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"children",{get:function(){return this._children},set:function(e){this._children=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isLeaf",{get:function(){return this._isLeaf},set:function(e){this._isLeaf=e},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isChecked",{get:function(){return this._isChecked},set:function(e){this._isChecked=e,this._isAllChecked=e,this.origin.checked=e,this.afterValueChange("isChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isAllChecked",{get:function(){return this._isAllChecked},set:function(e){this._isAllChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isHalfChecked",{get:function(){return this._isHalfChecked},set:function(e){this._isHalfChecked=e,this.afterValueChange("isHalfChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isSelectable",{get:function(){return this._isSelectable},set:function(e){this._isSelectable=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(e){this._isDisabled=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isDisableCheckbox",{get:function(){return this._isDisableCheckbox},set:function(e){this._isDisableCheckbox=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isExpanded",{get:function(){return this._isExpanded},set:function(e){this._isExpanded=e,this.origin.expanded=e,this.afterValueChange("isExpanded")},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.origin.selected=e,this.afterValueChange("isSelected")},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"isLoading",{get:function(){return this._isLoading},set:function(e){this._isLoading=e,this.update()},enumerable:!0,configurable:!0}),Oe.prototype.setSyncChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.setChecked(e,t),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)},Oe.prototype.setChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.origin.checked=e,this.isChecked=e,this.isAllChecked=e,this.isHalfChecked=t},Oe.prototype.setExpanded=function(e){this.isExpanded=e},Oe.prototype.setSelected=function(e){this.isDisabled||(this.isSelected=e)},Oe.prototype.getParentNode=function(){return this.parentNode},Oe.prototype.getChildren=function(){return this.children},Oe.prototype.addChildren=function(e,r){var o=this;void 0===r&&(r=-1),this.isLeaf||(e.forEach(function(e){var t=function(e){e.getChildren().forEach(function(e){e.level=e.getParentNode().level+1,e.origin.level=e.level,t(e)})},n=e;n instanceof Oe?n.parentNode=o:n=new Oe(e,o),n.level=o.level+1,n.origin.level=n.level,t(n);try{-1===r?o.children.push(n):o.children.splice(r,0,n)}catch(i){}}),this.origin.children=this.getChildren().map(function(e){return e.origin}),this.isLoading=!1)},Oe.prototype.clearChildren=function(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[]},Oe.prototype.remove=function(){var t=this,e=this.getParentNode();e&&(e.children=e.getChildren().filter(function(e){return e.key!==t.key}),e.origin.children=e.origin.children.filter(function(e){return e.key!==t.key}),this.afterValueChange("remove"))},Oe.prototype.afterValueChange=function(e){if(this.treeService)switch(e){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this])}this.update()},Oe.prototype.update=function(){this.component&&(this.component.setClassMap(),this.component.markForCheck())},Oe);
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/function Oe(n,e,t){void 0===e&&(e=null),void 0===t&&(t=null);var i=this;if(this.level=0,n instanceof Oe)return n;this.service=t||null,this.origin=n,this.key=n.key,this.parentNode=e,this._title=n.title||"---",this._icon=n.icon||"",this._isLeaf=n.isLeaf||!1,this._children=[],this._isChecked=n.checked||!1,this._isSelectable=n.disabled||!1!==n.selectable,this._isDisabled=n.disabled||!1,this._isDisableCheckbox=n.disableCheckbox||!1,this._isExpanded=!n.isLeaf&&(n.expanded||!1),this._isHalfChecked=!1,this._isSelected=!n.disabled&&n.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=e?e.level+1:0,"undefined"!=typeof n.children&&null!==n.children&&n.children.forEach(function(e){var t=i.treeService;!t||t.isCheckStrictly||!n.checked||n.disabled||e.disabled||e.disableCheckbox||(e.checked=n.checked),i._children.push(new Oe(e,i))})}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function _e(e){var t=Array.isArray(e)?e:[e],n=t.join("").replace(/(\$|\^)/g,"\\$1");return 1<t.length&&(n="["+n+"]"),new RegExp("(\\s|^)("+n+")[^\\s]*","g")}function Le(e,t){return Array(e).fill(t).join("")}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/function Te(e){return parseInt(e,10)}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Ae=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],Ie="undefined"!=typeof window,Pe=Ie&&null!=window.mozInnerScreenX;function xe(e,t){var n=getComputedStyle(e).getPropertyValue("font-size"),i=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(i),i.id="DEBUG",i.style.position="absolute",i.style.backgroundColor="red",i.style.height=n,i.style.width="1px",i.style.top=e.getBoundingClientRect().top-e.scrollTop+window.pageYOffset+t.top+"px",i.style.left=e.getBoundingClientRect().left-e.scrollLeft+window.pageXOffset+t.left+"px",console.log(i.style.top),console.log(i.style.left)}function Re(n){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null==i&&(i=ie(function(e){return function(){i=null,n.apply(void 0,R(e))}}(e)))}var i;return e.cancel=function(){return ne(i)},e}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function ze(e){var t=e.isDisabled,n=e.isDisableCheckbox;return!(!t&&!n)}function De(e,t){return 0<t.length&&-1<t.indexOf(e)}var Me=(je.prototype.eventTriggerChanged=function(){return this.triggerEventChange$.asObservable()},je.prototype.initTree=function(e){var t=this;this.rootNodes=e,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[],setTimeout(function(){t.refreshCheckState(t.isCheckStrictly)})},je.prototype.getSelectedNode=function(){return this.selectedNode},je.prototype.getSelectedNodeList=function(){return this.conductNodeState("select")},je.prototype.getCheckedNodeList=function(){return this.conductNodeState("check")},je.prototype.getHalfCheckedNodeList=function(){return this.conductNodeState("halfCheck")},je.prototype.getExpandedNodeList=function(){return this.conductNodeState("expand")},je.prototype.getMatchedNodeList=function(){return this.conductNodeState("match")},je.prototype.isArrayOfNzTreeNode=function(e){return e.every(function(e){return e instanceof we})},je.prototype.calcSelectedKeys=function(t,e,n){void 0===n&&(n=!1);var i=function(e){return e.every(function(e){if(De(e.key,t)){if(e.isSelected=!0,!n)return!1}else e.isSelected=!1;return!(0<e.children.length)||i(e.children)})};i(e)},je.prototype.calcExpandedKeys=function(t,e){this.expandedNodeList=[];var n=function(e){e.forEach(function(e){e.isExpanded=De(e.key,t),0<e.children.length&&n(e.children)})};n(e)},je.prototype.calcCheckedKeys=function(t,e,n){void 0===n&&(n=!1),this.checkedNodeList=[],this.halfCheckedNodeList=[];var i=function(e){e.forEach(function(e){De(e.key,t)?e.isChecked=!0:e.isChecked=!1,e.isHalfChecked=!1,0<e.children.length&&i(e.children)})};i(e),this.refreshCheckState(n)},je.prototype.setSelectedNode=function(e){this.selectedNode=e},je.prototype.setNodeActive=function(t){!this.isMultiple&&t.isSelected&&(this.selectedNodeList.forEach(function(e){t.key!==e.key&&(e.isSelected=!1)}),this.selectedNodeList=[]),this.setSelectedNodeList(t,this.isMultiple)},je.prototype.setSelectedNodeList=function(t,e){void 0===e&&(e=!1);var n=this.selectedNodeList.findIndex(function(e){return t.key===e.key});e?t.isSelected&&-1===n&&this.selectedNodeList.push(t):t.isSelected&&-1===n&&(this.selectedNodeList=[t]),t.isSelected||(this.selectedNodeList=this.selectedNodeList.filter(function(e){return e.key!==t.key}))},je.prototype.setHalfCheckedNodeList=function(t){var e=this.halfCheckedNodeList.findIndex(function(e){return t.key===e.key});t.isHalfChecked&&-1===e?this.halfCheckedNodeList.push(t):!t.isHalfChecked&&-1<e&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter(function(e){return t.key!==e.key}))},je.prototype.setCheckedNodeList=function(t){var e=this.checkedNodeList.findIndex(function(e){return t.key===e.key});t.isChecked&&-1===e?this.checkedNodeList.push(t):!t.isChecked&&-1<e&&(this.checkedNodeList=this.checkedNodeList.filter(function(e){return t.key!==e.key}))},je.prototype.conductNodeState=function(e){var n=this;void 0===e&&(e="check");var t=[];switch(e){case"select":t=this.selectedNodeList;break;case"expand":t=this.expandedNodeList;break;case"match":t=this.matchedNodeList;break;case"check":t=this.checkedNodeList;var i=function(e){var t=e.getParentNode();return!!t&&(-1<n.checkedNodeList.findIndex(function(e){return e.key===t.key})||i(t))};this.isCheckStrictly||(t=this.checkedNodeList.filter(function(e){return!i(e)}));break;case"halfCheck":this.isCheckStrictly||(t=this.halfCheckedNodeList)}return t},je.prototype.setExpandedNodeList=function(t){if(!t.isLeaf){var e=this.expandedNodeList.findIndex(function(e){return t.key===e.key});t.isExpanded&&-1===e?this.expandedNodeList.push(t):!t.isExpanded&&-1<e&&(this.expandedNodeList=this.expandedNodeList.filter(function(e){return t.key!==e.key}))}},je.prototype.refreshCheckState=function(e){var t=this;void 0===e&&(e=!1),e||this.checkedNodeList.forEach(function(e){t.conduct(e)})},je.prototype.conduct=function(e){var t=e.isChecked;e&&(this.conductUp(e),this.conductDown(e,t))},je.prototype.conductUp=function(e){var t=e.getParentNode();t&&(ze(t)||(t.children.every(function(e){return ze(e)||!e.isHalfChecked&&e.isChecked})?(t.isChecked=!0,t.isHalfChecked=!1):t.children.some(function(e){return e.isHalfChecked||e.isChecked})?(t.isChecked=!1,t.isHalfChecked=!0):(t.isChecked=!1,t.isHalfChecked=!1)),this.setCheckedNodeList(t),this.setHalfCheckedNodeList(t),this.conductUp(t))},je.prototype.conductDown=function(e,t){var n=this;ze(e)||(e.isChecked=t,e.isHalfChecked=!1,this.setCheckedNodeList(e),this.setHalfCheckedNodeList(e),e.children.forEach(function(e){n.conductDown(e,t)}))},je.prototype.searchExpand=function(t){var n=this;this.matchedNodeList=[];var i=[];if(ce(t)){var r=function(e){var t=e.getParentNode();t&&(i.push(t.key),r(t))},o=function(e){t&&e.title.includes(t)?(e.isMatched=!0,n.matchedNodeList.push(e),r(e)):e.isMatched=!1,e.children.forEach(function(e){o(e)})};this.rootNodes.forEach(function(e){o(e)}),this.calcExpandedKeys(i,this.rootNodes)}},je.prototype.afterRemove=function(e){var n=this,i=function(t){n.selectedNodeList=n.selectedNodeList.filter(function(e){return e.key!==t.key}),n.expandedNodeList=n.expandedNodeList.filter(function(e){return e.key!==t.key}),n.checkedNodeList=n.checkedNodeList.filter(function(e){return e.key!==t.key}),t.children&&t.children.forEach(function(e){i(e)})};e.forEach(function(e){i(e)}),this.refreshCheckState(this.isCheckStrictly)},je.prototype.refreshDragNode=function(e){var t=this;0===e.children.length?this.conductUp(e):e.children.forEach(function(e){t.refreshDragNode(e)})},je.prototype.resetNodeLevel=function(e){var t,n,i=e.getParentNode();e.level=i?i.level+1:0;try{for(var r=function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(e.children),o=r.next();!o.done;o=r.next()){var a=o.value;this.resetNodeLevel(a)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(t)throw t.error}}},je.prototype.calcDropPosition=function(e){var t=e.clientY,n=e.srcElement?e.srcElement.getBoundingClientRect():e.target.getBoundingClientRect(),i=n.top,r=n.bottom,o=n.height,a=Math.max(o*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return t<=i+a?-1:r-a<=t?1:0},je.prototype.dropAndApply=function(e,t){var n=this;if(void 0===t&&(t=-1),e&&!(1<t)){var i=e.treeService,r=e.getParentNode(),o=this.selectedNode.getParentNode();switch(o?o.children=o.children.filter(function(e){return e.key!==n.selectedNode.key}):this.rootNodes=this.rootNodes.filter(function(e){return e.key!==n.selectedNode.key}),t){case 0:e.addChildren([this.selectedNode]),this.resetNodeLevel(e);break;case-1:case 1:var a=1===t?1:0;if(r){r.addChildren([this.selectedNode],r.children.indexOf(e)+a);var s=this.selectedNode.getParentNode();s&&this.resetNodeLevel(s)}else{var c=this.rootNodes.indexOf(e)+a;this.rootNodes.splice(c,0,this.selectedNode),this.rootNodes[c].parentNode=null,this.rootNodes[c].level=0}}this.rootNodes.forEach(function(e){e.treeService||(e.service=i),n.refreshDragNode(e)})}},je.prototype.formatEvent=function(e,t,n){var i={eventName:e,node:t,event:n};switch(e){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(i,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(i,{selectedKeys:this.selectedNodeList}),Object.assign(i,{nodes:this.selectedNodeList}),Object.assign(i,{keys:this.selectedNodeList.map(function(e){return e.key})});break;case"check":var r=this.getCheckedNodeList();Object.assign(i,{checkedKeys:r}),Object.assign(i,{nodes:r}),Object.assign(i,{keys:r.map(function(e){return e.key})});break;case"search":Object.assign(i,{matchedKeys:this.getMatchedNodeList()}),Object.assign(i,{nodes:this.getMatchedNodeList()}),Object.assign(i,{keys:this.getMatchedNodeList().map(function(e){return e.key})});break;case"expand":Object.assign(i,{nodes:this.expandedNodeList}),Object.assign(i,{keys:this.expandedNodeList.map(function(e){return e.key})})}return i},je.prototype.ngOnDestroy=function(){this.triggerEventChange$.complete()},je.decorators=[{type:c.Injectable}],je);function je(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[],this.triggerEventChange$=new s.Subject}var Ye=new c.InjectionToken("NzTreeHigherOrder"),Be=(Ue.prototype.coerceTreeNodes=function(e){var t=this;return this.nzTreeService.isArrayOfNzTreeNode(e)?e.map(function(e){return e.service=t.nzTreeService,e}):e.map(function(e){return new we(e,null,t.nzTreeService)})},Ue.prototype.getTreeNodes=function(){return this.nzTreeService.rootNodes},Ue.prototype.getTreeNodeByKey=function(t){var n=[],i=function(e){n.push(e),e.getChildren().forEach(function(e){i(e)})};return this.getTreeNodes().forEach(function(e){i(e)}),n.find(function(e){return e.key===t})||null},Ue.prototype.getCheckedNodeList=function(){return this.nzTreeService.getCheckedNodeList()},Ue.prototype.getSelectedNodeList=function(){return this.nzTreeService.getSelectedNodeList()},Ue.prototype.getHalfCheckedNodeList=function(){return this.nzTreeService.getHalfCheckedNodeList()},Ue.prototype.getExpandedNodeList=function(){return this.nzTreeService.getExpandedNodeList()},Ue.prototype.getMatchedNodeList=function(){return this.nzTreeService.getMatchedNodeList()},Ue);function Ue(e){this.nzTreeService=e}var Ve=(Object.defineProperty(Fe.prototype,"waveAttributeName",{get:function(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"},enumerable:!0,configurable:!0}),Fe.prototype.bindTriggerEvent=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.triggerElement&&e.triggerElement.addEventListener("click",e.onClick,!0)})},Fe.prototype.removeTriggerEvent=function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.onClick,!0)},Fe.prototype.removeStyleAndExtraNode=function(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)},Fe.prototype.destroy=function(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()},Fe.prototype.fadeOutWave=function(){var e=this,t=this.triggerElement,n=this.getWaveColor(t);t.setAttribute(this.waveAttributeName,"true"),Date.now()<this.lastTime+this.waveTransitionDuration||(this.isValidColor(n)&&(this.styleForPseudo||(this.styleForPseudo=document.createElement("style")),this.styleForPseudo.innerHTML="[ant-click-animating-without-extra-node]:after { border-color: "+n+"; }",document.body.appendChild(this.styleForPseudo)),this.insertExtraNode&&(this.extraNode||(this.extraNode=document.createElement("div")),this.extraNode.className="ant-click-animating-node",t.appendChild(this.extraNode)),this.lastTime=Date.now(),this.runTimeoutOutsideZone(function(){t.removeAttribute(e.waveAttributeName),e.removeStyleAndExtraNode()},this.waveTransitionDuration))},Fe.prototype.isValidColor=function(e){return!!e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&this.isNotGrey(e)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(e)&&"transparent"!==e},Fe.prototype.isNotGrey=function(e){var t=e.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])},Fe.prototype.getWaveColor=function(e){var t=getComputedStyle(e);return t.getPropertyValue("border-top-color")||t.getPropertyValue("border-color")||t.getPropertyValue("background-color")},Fe.prototype.runTimeoutOutsideZone=function(e,t){this.ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},Fe);function Fe(e,t,n){var i=this;this.triggerElement=e,this.ngZone=t,this.insertExtraNode=n,this.waveTransitionDuration=400,this.lastTime=0,this.onClick=function(e){!i.triggerElement||!i.triggerElement.getAttribute||i.triggerElement.getAttribute("disabled")||"INPUT"===e.target.tagName||0<=i.triggerElement.className.indexOf("disabled")||i.fadeOutWave()},(new a.Platform).isBrowser&&this.bindTriggerEvent()}var Xe={disabled:!1},We=new c.InjectionToken("nz-wave-global-options",{providedIn:"root",factory:He});function He(){return Xe}var Ge=($e.prototype.ngOnDestroy=function(){this.waveRenderer&&this.waveRenderer.destroy()},$e.prototype.ngOnInit=function(){this.renderWaveIfEnabled()},$e.prototype.renderWaveIfEnabled=function(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new Ve(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode))},$e.decorators=[{type:c.Directive,args:[{selector:"[nz-wave]",exportAs:"nzWave"}]}],$e.ctorParameters=function(){return[{type:c.NgZone},{type:c.ElementRef},{type:undefined,decorators:[{type:c.Optional},{type:c.Inject,args:[We]}]},{type:String,decorators:[{type:c.Optional},{type:c.Inject,args:[o.ANIMATION_MODULE_TYPE]}]}]},$e.propDecorators={nzWaveExtraNode:[{type:c.Input}]},$e);function $e(e,t,n,i){this.ngZone=e,this.elementRef=t,this.animationType=i,this.nzWaveExtraNode=!1,this.waveDisabled=!1,n&&"boolean"==typeof n.disabled&&(this.waveDisabled=n.disabled),"NoopAnimations"===this.animationType&&(this.waveDisabled=!0)}var qe=(Ke.decorators=[{type:c.NgModule,args:[{imports:[a.PlatformModule],exports:[Ge],declarations:[Ge]}]}],Ke);function Ke(){}var Ze=(Qe.prototype.onMenuItemClick=function(e){this.menuItemClick$.next(e)},Qe.prototype.setMode=function(e){this.mode=e,this.mode$.next(e)},Qe.prototype.setTheme=function(e){this.theme=e,this.theme$.next(e)},Qe.prototype.setInlineIndent=function(e){this.inlineIndent=e,this.inlineIndent$.next(e)},Qe.decorators=[{type:c.Injectable}],Qe);function Qe(){this.menuItemClick$=new s.Subject,this.theme$=new s.Subject,this.mode$=new s.BehaviorSubject("vertical"),this.inlineIndent$=new s.BehaviorSubject(24),this.check$=s.merge(this.theme$,this.mode$,this.inlineIndent$),this.theme="light",this.mode="vertical",this.inlineIndent=24,this.menuOpen$=new s.BehaviorSubject(!1)}var Je=new c.InjectionToken("NzTreeHigherOrder"),et=new c.InjectionToken("nz-logger-state"),tt=(nt.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,R(e))},nt.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.warn.apply(console,R(e))},nt.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.error.apply(console,R(e))},nt.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,R(e))},nt.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,R(["[NG-ZORRO-DEBUG]"],e))},nt.decorators=[{type:c.Injectable}],nt.ctorParameters=function(){return[{type:Boolean,decorators:[{type:c.Inject,args:[et]}]}]},nt);function nt(e){this._loggerState=e}function it(e,t){return e||new tt(t)}var rt={provide:tt,useFactory:it,deps:[[new c.Optional,new c.SkipSelf,tt],et]},ot=(at.decorators=[{type:c.NgModule,args:[{providers:[{provide:et,useValue:!1},rt]}]}],at);function at(){}e.NzAddOnModule=f,e.NzClassListAddDirective=l,e.NzStringTemplateOutletDirective=u,e.AnimationDuration=y,e.AnimationCurves=v,e.collapseMotion=b,e.fadeMotion=N,e.helpMotion=C,e.moveUpMotion=E,e.notificationMotion=k,e.slideMotion=O,e.slideAlertMotion=_,e.zoomMotion=L,e.zoomBigMotion=T,e.zoomBadgeMotion=A,e.NzNoAnimationModule=F,e.NzNoAnimationDirective=U,e.NzConnectedOverlayDirective=W,e.NzOverlayModule=G,e.getPlacementName=function ut(n){function e(t){if(i.every(function(e){return n.connectionPair[e]===q[t][e]}))return{value:t}}var i=["originX","originY","overlayX","overlayY"];for(var t in q){var r=e(t);if("object"==typeof r)return r.value}},e.POSITION_MAP=q,e.DEFAULT_TOOLTIP_POSITIONS=K,e.DEFAULT_DROPDOWN_POSITIONS=Z,e.DEFAULT_SUBMENU_POSITIONS=Q,e.DEFAULT_CASCADER_POSITIONS=J,e.DEFAULT_MENTION_POSITIONS=ee,e.cancelRequestAnimationFrame=ne,e.reqAnimFrame=ie,e.SCROLL_SERVICE_PROVIDER_FACTORY=ae,e.NzScrollService=re,e.SCROLL_SERVICE_PROVIDER=se,e.NzMeasureScrollbarService=de,e.NzUpdateHostClassService=he,e.dispatchEvent=me,e.dispatchFakeEvent=be,e.dispatchKeyboardEvent=function ht(e,t,n,i){return me(e,ge(t,n,i))},e.dispatchMouseEvent=function ft(e,t,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=pe(t,n,i)),me(e,r)},e.dispatchTouchEvent=function pt(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),me(e,ye(t,n,i))},e.createMouseEvent=pe,e.createTouchEvent=ye,e.createKeyboardEvent=ge,e.createFakeEvent=ve,e.typeInElement=function yt(e,t){t.focus(),t.value=e,be(t,"input")}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/,e.wrappedErrorMessage=function gt(e){var t=e.message.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");return new RegExp(t)},e.FakeViewportRuler=Ne,e.MockNgZone=ke,e.NzTreeNode=we,e.NzTreeBaseService=Me,e.NzTreeHigherOrderServiceToken=Ye,e.NzTreeBase=Be,e.toArray=function vt(e){return null==e?[]:Array.isArray(e)?e:[e]},e.arraysEqual=function mt(e,t){if(!e||!t||e.length!==t.length)return!1;for(var n=e.length,i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0},e.shallowCopyArray=function bt(e){return e.slice()},e.isNotNil=ce,e.isNil=function Nt(e){return null==e},e.shallowEqual=function Ct(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(t),o=0;o<n.length;o++){var a=n[o];if(!r(a))return!1;if(e[a]!==t[a])return!1}return!0},e.isInteger=function Et(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isEmpty=function kt(e){for(var t=e.childNodes,n=0;n<t.length;n++)if(le(t.item(n)))return!1;return!0},e.filterNotEmptyNode=le,e.isNonEmptyString=function St(e){return"string"==typeof e&&""!==e},e.isTemplateRef=function wt(e){return e instanceof c.TemplateRef},e.isComponent=function Ot(e){return e instanceof c.Type},e.toBoolean=z,e.toNumber=D,e.toCssPixel=M,e.valueFunctionProp=function _t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,R(t)):e},e.InputBoolean=Y,e.InputCssPixel=function Lt(){return j("InputCssPixel",M)},e.InputNumber=function Tt(){return j("InputNumber",D)},e.silentEvent=function At(e){e.stopPropagation(),e.preventDefault()},e.getElementOffset=function It(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},e.findFirstNotEmptyNode=function Pt(e){for(var t=e.childNodes,n=0;n<t.length;n++){var i=t.item(n);if(le(i))return i}return null},e.findLastNotEmptyNode=function xt(e){for(var t=e.childNodes,n=t.length-1;0<=n;n--){var i=t.item(n);if(le(i))return i}return null},e.reverseChildNodes=function Rt(e){var t=e.childNodes,n=t.length;if(n){var i=[];for(t.forEach(function(e,t){return i[t]=e});n--;)e.appendChild(i[n])}},e.isTouchEvent=function zt(e){return e.type.startsWith("touch")},e.getRegExp=_e,e.getMentions=function Dt(e,t){if(void 0===t&&(t="@"),"string"!=typeof e)return[];var n=_e(t),i=e.match(n);return null!==i?i.map(function(e){return e.trim()}):[]}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.padStart=function Mt(e,t,n){if(e.length>t)return e;var i=""+Le(t,n)+e;return i.slice(i.length-t,i.length)},e.padEnd=function jt(e,t,n){return(""+e+Le(t,n)).slice(0,t)},e.getRepeatedElement=Le,e.isPromise=function Yt(e){return!!e&&"function"==typeof e.then&&"function"==typeof e["catch"]}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.getPercent=function Bt(e,t,n){return(n-e)/(t-e)*100},e.getPrecision=function Ut(e){var t=e.toString(),n=t.indexOf(".");return 0<=n?t.length-n-1:0},e.ensureNumberInRange=function Vt(e,t,n){return isNaN(e)||e<t?t:n<e?n:e}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.scrollIntoView=function Ft(e){var t=e;t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):e.scrollIntoView&&e.scrollIntoView(!1)},e.getCaretCoordinates=function Xt(e,t,n){if(!Ie)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=n&&n.debug||!1;if(i){var r=document.querySelector("#input-textarea-caret-position-mirror-div");r&&r.parentNode.removeChild(r)}var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var a=o.style,s=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,c="INPUT"===e.nodeName;a.whiteSpace="pre-wrap",c||(a.wordWrap="break-word"),a.position="absolute",i||(a.visibility="hidden"),Ae.forEach(function(e){c&&"lineHeight"===e?a.lineHeight=s.height:a[e]=s[e]}),Pe?e.scrollHeight>Te(s.height)&&(a.overflowY="scroll"):a.overflow="hidden",o.textContent=e.value.substring(0,t),c&&(o.textContent=o.textContent.replace(/\s/g," "));var l=document.createElement("span");l.textContent=e.value.substring(t)||".",o.appendChild(l);var d={top:l.offsetTop+Te(s.borderTopWidth),left:l.offsetLeft+Te(s.borderLeftWidth),height:Te(s.lineHeight)};return i?(l.style.backgroundColor="#eee",xe(e,d)):document.body.removeChild(o),d},e.createDebugEle=xe,e.properties=Ae,e.throttleByAnimationFrameDecorator=function Wt(){return function(t,n,e){var i=e.value,r=!1;return{configurable:!0,get:function(){if(r||this===t.prototype||this.hasOwnProperty(n))return i;var e=Re(i.bind(this));return r=!0,Object.defineProperty(this,n,{value:e,configurable:!0,writable:!0}),r=!1,e}}}}
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.timeUnits=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],e.NzWaveRenderer=Ve,e.NZ_WAVE_GLOBAL_CONFIG_FACTORY=He,e.NZ_WAVE_GLOBAL_DEFAULT_CONFIG=Xe,e.NZ_WAVE_GLOBAL_CONFIG=We,e.NzWaveDirective=Ge,e.NzWaveModule=qe,e.NzMenuBaseService=Ze,e.NzDropdownHigherOrderServiceToken=Je,e.LoggerModule=ot,e.LoggerService=tt,e.NZ_LOGGER_STATE=et,e.LOGGER_SERVICE_PROVIDER=rt,e.LOGGER_SERVICE_PROVIDER_FACTORY=it,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-zorro-antd-core.umd.min.js.map