PageSourceSearch

https://researgence.ai/573.8536cab873d12b14.js

js researgence.ai collected 2026-10-05 12:32:39 UTC 51,928 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreseargence=self.webpackChunkreseargence||[]).push([[573],{15573:(ut,Ie,_)=>{_.d(Ie,{Zt:()=>at,Wj:()=>nt,_t:()=>ct,bA:()=>_e});var Te=_(97685),z=_(74902),k=_(15671),E=_(43144),u=_(5e3),x=_(69808),D=_(70925),v=_(63191),g=_(8929),T=_(24096),Ze=_(61715),Ge=_(90352),$=_(34202),q=_(36787),R=_(7625),N=_(1059),Ve=_(24850),J=_(72986),je=_(2994),We=_(87545),H=_(74296),ee=_(50226);function B(s,n,e){for(var t in n)if(n.hasOwnProperty(t)){var i=n[t];i?s.setProperty(t,i,null!=e&&e.has(t)?"important":""):s.removeProperty(t)}return s}function I(s,n){var e=n?"":"none";B(s.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function te(s,n,e){B(s.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function M(s,n){return n&&"none"!=n?s+" "+n:s}function ie(s){var n=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*n}function U(s,n){return s.getPropertyValue(n).split(",").map(function(t){return t.trim()})}function K(s){var n=s.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function G(s,n,e){return e>=s.top&&e<=s.bottom&&n>=s.left&&n<=s.right}function S(s,n,e){s.top+=n,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function ne(s,n,e,t){var d=s.width*n,h=s.height*n;return t>s.top-h&&t<s.bottom+h&&e>s.left-d&&e<s.right+d}var re=function(){function s(n){(0,k.Z)(this,s),this._document=n,this.positions=new Map}return(0,E.Z)(s,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(function(i){t.positions.set(i,{scrollPosition:{top:i.scrollTop,left:i.scrollLeft},clientRect:K(i)})})}},{key:"handleScroll",value:function(e){var t=(0,D.sA)(e),i=this.positions.get(t);if(!i)return null;var o,a,r=i.scrollPosition;if(t===this._document){var c=this.getViewportScrollPosition();o=c.top,a=c.left}else o=t.scrollTop,a=t.scrollLeft;var l=r.top-o,d=r.left-a;return this.positions.forEach(function(h,f){h.clientRect&&t!==f&&t.contains(f)&&S(h.clientRect,l,d)}),r.top=o,r.left=a,{top:l,left:d}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),s}();function se(s){var n=s.cloneNode(!0),e=n.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();n.removeAttribute("id");for(var i=0;i<e.length;i++)e[i].removeAttribute("id");return"canvas"===t?ce(s,n):("input"===t||"select"===t||"textarea"===t)&&ae(s,n),oe("canvas",s,n,ce),oe("input, textarea, select",s,n,ae),n}function oe(s,n,e,t){var i=n.querySelectorAll(s);if(i.length)for(var r=e.querySelectorAll(s),o=0;o<i.length;o++)t(i[o],r[o])}var Ye=0;function ae(s,n){"file"!==n.type&&(n.value=s.value),"radio"===n.type&&n.name&&(n.name="mat-clone-".concat(n.name,"-").concat(Ye++))}function ce(s,n){var e=n.getContext("2d");if(e)try{e.drawImage(s,0,0)}catch(t){}}var le=(0,D.i$)({passive:!0}),F=(0,D.i$)({passive:!1}),V=new Set(["position"]),Xe=function(){function s(n,e,t,i,r,o){var a=this;(0,k.Z)(this,s),this._config=e,this._document=t,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new g.xQ,this._pointerMoveSubscription=T.w.EMPTY,this._pointerUpSubscription=T.w.EMPTY,this._scrollSubscription=T.w.EMPTY,this._resizeSubscription=T.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new g.xQ,this.started=new g.xQ,this.released=new g.xQ,this.ended=new g.xQ,this.entered=new g.xQ,this.exited=new g.xQ,this.dropped=new g.xQ,this.moved=this._moveEvents,this._pointerDown=function(c){if(a.beforeStarted.next(),a._handles.length){var l=a._getTargetHandle(c);l&&!a._disabledHandles.has(l)&&!a.disabled&&a._initializeDragSequence(l,c)}else a.disabled||a._initializeDragSequence(a._rootElement,c)},this._pointerMove=function(c){var l=a._getPointerPositionOnPage(c);if(a._hasStartedDragging){c.preventDefault();var y=a._getConstrainedPointerPosition(l);if(a._hasMoved=!0,a._lastKnownPointerPosition=l,a._updatePointerDirectionDelta(y),a._dropContainer)a._updateActiveDropContainer(y,l);else{var C=a.constrainPosition?a._initialClientRect:a._pickupPositionOnPage,m=a._activeTransform;m.x=y.x-C.x+a._passiveTransform.x,m.y=y.y-C.y+a._passiveTransform.y,a._applyRootElementTransform(m.x,m.y)}a._moveEvents.observers.length&&a._ngZone.run(function(){a._moveEvents.next({source:a,pointerPosition:y,event:c,distance:a._getDragDistance(y),delta:a._pointerDirectionDelta})})}
1else if(Math.abs(l.x-a._pickupPositionOnPage.x)+Math.abs(l.y-a._pickupPositionOnPage.y)>=a._config.dragStartThreshold){var p=Date.now()>=a._dragStartTime+a._getDragStartDelay(c),b=a._dropContainer;if(!p)return void a._endDragSequence(c);(!b||!b.isDragging()&&!b.isReceiving())&&(c.preventDefault(),a._hasStartedDragging=!0,a._ngZone.run(function(){return a._startDragSequence(c)}))}},this._pointerUp=function(c){a._endDragSequence(c)},this._nativeDragStart=function(c){if(a._handles.length){var l=a._getTargetHandle(c);l&&!a._disabledHandles.has(l)&&!a.disabled&&c.preventDefault()}else a.disabled||c.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new re(t),o.registerDragItem(this)}return(0,E.Z)(s,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=(0,v.Ig)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(i){return I(i,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(r){return(0,v.fI)(r)}),this._handles.forEach(function(r){return I(r,t.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(r){t._handles.indexOf(r)>-1&&i.add(r)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,i=(0,v.fI)(e);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",t._pointerDown,F),i.addEventListener("touchstart",t._pointerDown,le),i.addEventListener("dragstart",t._nativeDragStart,F)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?(0,v.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){var e,t;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(t=this._anchor)||void 0===t||t.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),I(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),I(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var e,t;null===(e=this._preview)||void 0===e||e.remove(),null===(t=this._previewRef)||void 0===t||t.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var e,t;null===(e=this._placeholder)||void 0===e||e.remove(),null===(t=this._placeholderRef)||void 0===t||t.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._
1cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var i=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(i),dropPoint:i,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){w(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),te(i,!1,V),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:e}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var i=this;this._parentDragRef&&t.stopPropagation();var r=this.isDragging(),o=w(t),a=!o&&0!==t.button,c=this._rootElement,l=(0,D.sA)(t),d=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=o?function Ue(s){var n=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(t):function Be(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}(t);if(l&&l.draggable&&"mousedown"===t.type&&t.preventDefault(),!(r||a||d||h)){if(this._handles.length){var f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(y){return i._updateOnScroll(y)}),this._boundaryElement&&(this._boundaryRect=K(this._boundaryElement));var p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,t);var b=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:b.x,y:b.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;te(this._rootElement,!0,V),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var i=t._dropContainer,r=i.getItemIndex(t),o=t._getPointerPositionOnPage(e),a=t._getDragDistance(o),c=i._isOverContainer(o.x,o.y);t.ended.next({source:t,distance:a,dropPoint:o,event:e}),t.dropped.next({item:t,currentIndex:r,previousIndex:t._initialIndex,container:i,previousContainer:t._initialContainer,isPointerOverContainer:c,distance:a,dropPoint:o,event:e}),i.drop(t,r,t._initialIndex,t._initialContainer,c,a,o,e),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var i=this,r=e.x,o=e.y,a=t.x,c=t.y,l=this._initialContainer._getSiblingContainerFromPosition(this,r,o);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,o)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=l,i._dropContainer.enter(i,r,o,l===i._initialContainer&&l.sortingDisabled?
1i._initialIndex:void 0),i.entered.next({item:i,container:l,currentIndex:l.getItemIndex(i)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,c),this._dropContainer._sortItem(this,r,o,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,o):this._applyPreviewTransform(r-this._pickupPositionInElement.x,o-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var r,e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;if(i&&e){var o=e.matchSize?this._initialClientRect:null,a=e.viewContainer.createEmbeddedView(i,e.context);a.detectChanges(),r=de(a,this._document),this._previewRef=a,e.matchSize?he(r,o):r.style.transform=L(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else he(r=se(this._rootElement),this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return B(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},V),I(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(function(c){return r.classList.add(c)}):r.classList.add(t)),r}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var i=function ze(s){var n=getComputedStyle(s),e=U(n,"transition-property"),t=e.find(function(a){return"transform"===a||"all"===a});if(!t)return 0;var i=e.indexOf(t),r=U(n,"transition-duration"),o=U(n,"transition-delay");return ie(r[i])+ie(o[i])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(r){var o=function c(l){var d;(!l||(0,D.sA)(l)===e._preview&&"transform"===l.propertyName)&&(null===(d=e._preview)||void 0===d||d.removeEventListener("transitionend",c),r(),clearTimeout(a))},a=setTimeout(o,1.5*i);e._preview.addEventListener("transitionend",o)})})}},{key:"_createPlaceholderElement",value:function(){var i,e=this._placeholderTemplate,t=e?e.template:null;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=de(this._placeholderRef,this._document)):i=se(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}},{key:"_getPointerPositionInElement",value:function(e,t,i){var r=t===this._rootElement?null:t,o=r?r.getBoundingClientRect():e,a=w(i)?i.targetTouches[0]:i,c=this._getViewportScrollPosition();return{x:o.left-e.left+(a.pageX-o.left-c.left),y:o.top-e.top+(a.pageY-o.top-c.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),i=w(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,r=i.pageX-t.left,o=i.pageY-t.top;if(this._ownerSVGElement){var a=this._ownerSVGElement.getScreenCTM();if(a){var c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e,r=i.x,o=i.y;if("x"===this.lockAxis||"x"===t?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(r=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,c=a.x,l=a.y,d=this._boundaryRect,h=this._getPreviewRect(),b=d.top+l,y=d.bottom-(h.height-l);r=ue(r,d.left+c,d.right-(h.width-c)),o=ue(o,b,y)}return{x:r,y:o}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,i=e.y,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=t>o.x?1:-1,o.x=t),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,I(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,F),e.removeEventListener("touchstart",this._pointerDown,le),e.removeEventListener("dragstart",this._nativeDragStart,F)}},{key:"_applyRootElementTransform",value:function(e,t){var i=L(e,t),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=M(i,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var i,r=null!==(i=this._previewTemplate)&&void 0!==i&&i.template?void 0:this._initialTransform,o=L(e,t);this._preview.style.transform=M(o,r)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,i=e.y;if(!(0===t&&0===i||this.isDragging())&&this._boundaryElement){var r=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(!(0===o.width&&0===o.height||0===r.width&&0===r.height)){var a=o.left-r.left,c=r.right-o.right,l=o.top-r.top,d=r.bottom-o.bottom;o.width>r.width?(a>0&&(t+=a),c>0&&(t-=c)):t=0,o.height>r.height?(l>0&&(i+=l),d>0&&(i-=d)):i=0,(t!==this._passiveTransform.x||i!==this._passiveTransform.y)&&this.setFreeDragPosition({y:i,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:w(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);
1if(t){var i=(0,D.sA)(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&S(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,D.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){var r=this._document;return t||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return(0,v.fI)(i)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(t){return e.target&&(e.target===t||t.contains(e.target))})}}]),s}();function L(s,n){return"translate3d(".concat(Math.round(s),"px, ").concat(Math.round(n),"px, 0)")}function ue(s,n,e){return Math.max(n,Math.min(e,s))}function w(s){return"t"===s.type[0]}function de(s,n){var e=s.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];var t=n.createElement("div");return e.forEach(function(i){return t.appendChild(i)}),t}function he(s,n){s.style.width="".concat(n.width,"px"),s.style.height="".concat(n.height,"px"),s.style.transform=L(n.left,n.top)}function _e(s,n,e){var t=P(n,s.length-1),i=P(e,s.length-1);if(t!==i){for(var r=s[t],o=i<t?-1:1,a=t;a!==i;a+=o)s[a]=s[a+o];s[i]=r}}function P(s,n){return Math.max(0,Math.min(n,s))}var $e=function(){function s(n,e){(0,k.Z)(this,s),this._element=n,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,E.Z)(s,[{key:"start",value:function(e){this.withItems(e)}},{key:"sort",value:function(e,t,i,r){var o=this._itemPositions,a=this._getItemIndexFromPointerPosition(e,t,i,r);if(-1===a&&o.length>0)return null;var c="horizontal"===this.orientation,l=o.findIndex(function(m){return m.drag===e}),d=o[a],f=d.clientRect,p=l>a?1:-1,b=this._getItemOffsetPx(o[l].clientRect,f,p),y=this._getSiblingOffsetPx(l,o,p),C=o.slice();return _e(o,l,a),o.forEach(function(m,lt){if(C[lt]!==m){var ke=m.drag===e,W=ke?b:y,Ee=ke?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=W,c?(Ee.style.transform=M("translate3d(".concat(Math.round(m.offset),"px, 0, 0)"),m.initialTransform),S(m.clientRect,0,W)):(Ee.style.transform=M("translate3d(0, ".concat(Math.round(m.offset),"px, 0)"),m.initialTransform),S(m.clientRect,W,0))}}),this._previousSwap.overlaps=G(f,t,i),this._previousSwap.drag=d.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:l,currentIndex:a}}},{key:"enter",value:function(e,t,i,r){var o=null==r||r<0?this._getItemIndexFromPointerPosition(e,t,i):r,a=this._activeDraggables,c=a.indexOf(e),l=e.getPlaceholderElement(),d=a[o];if(d===e&&(d=a[o+1]),!d&&(null==o||-1===o||o<a.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(d=a[0]),c>-1&&a.splice(c,1),d&&!this._dragDropRegistry.isDragging(d)){var h=d.getRootElement();h.parentElement.insertBefore(l,h),a.splice(o,0,e)}else(0,v.fI)(this._element).appendChild(l),a.push(e);l.style.transform="",this._cacheItemPositions()}},{key:"withItems",value:function(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}},{key:"withSortPredicate",value:function(e){this._sortPredicate=e}},{key:"reset",value:function(){var e=this;this._activeDraggables.forEach(function(t){var i,r=t.getRootElement();if(r){var o=null===(i=e._itemPositions.find(function(a){return a.drag===t}))||void 0===i?void 0:i.initialTransform;r.style.transform=o||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}},{key:"getActiveItemsSnapshot",value:function(){return this._activeDraggables}},{key:"getItemIndex",value:function(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(i){return i.drag===e})}},{key:"updateOnScroll",value:function(e,t){var i=this;this._itemPositions.forEach(function(r){S(r.clientRect,e,t)}),this._itemPositions.forEach(function(r){var o=r.drag;i._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(t){var i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:K(i)}}).sort(function(t,i){return e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top})}},{key:"_getItemOffsetPx",value:function(e,t,i){var r="horizontal"===this.orientation,o=r?t.left-e.left:t.top-e.top;return-1===i&&(o+=r?t.width-e.width:t.height-e.height),o}},{key:"_getSiblingOffsetPx",value:function(e,t,i){var r="horizontal"===this.orientation,o=t[e].clientRect,a=t[e+-1*i],c=o[r?"width":"height"]*i;if(a){var l=r?"left":"top",d=r?"right":"bottom";-1===i?c-=a.clientRect[l]-o[d]:c+=o[l]-a.clientRect[d]}return c}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){var a=i[i.length-1].clientRect;return r?e>=a.right:t>=a.bottom}var c=i[0].clientRect;return r?e<=c.left:t<=c.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,i,r){var o=this,a="horizontal"===this.orientation,c=this._itemPositions.findIndex(function(l){var d=l.drag,h=l.clientRect;return d!==e&&((!r||d!==o._previousSwap.drag||!o._previousSwap.overlaps||(a?r.x:r.y)!==o._previousSwap.delta)&&(a?t>=Math.floor(h.left)&&t<Math.floor(h.right):i>=Math.floor(h.top)&&i<Math.floor(h.bottom)))});return-1!==c&&this._sortPredicate(c,e)?c:-1}}]),s}(),qe=function(){function s(n,e,t,i,r){var o=this;(0,k.Z)(this,s),this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler
1=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new g.xQ,this.entered=new g.xQ,this.exited=new g.xQ,this.dropped=new g.xQ,this.sorted=new g.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=T.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new g.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){o._stopScrolling(),(0,Ze.F)(0,Ge.Z).pipe((0,R.R)(o._stopScrollTimers)).subscribe(function(){var a=o._scrollNode,c=o.autoScrollStep;1===o._verticalScrollDirection?a.scrollBy(0,-c):2===o._verticalScrollDirection&&a.scrollBy(0,c),1===o._horizontalScrollDirection?a.scrollBy(-c,0):2===o._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=(0,v.fI)(n),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new re(t),this._sortStrategy=new $e(this.element,e),this._sortStrategy.withSortPredicate(function(a,c){return o.sortPredicate(a,c,o)})}return(0,E.Z)(s,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,i,r,o,a,c){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c,event:l})}},{key:"withItems",value:function(e){var t=this,i=this._draggables;return this._draggables=e,e.forEach(function(o){return o._withDropContainer(t)}),this.isDragging()&&(i.filter(function(o){return o.isDragging()}).every(function(o){return-1===e.indexOf(o)})?this._reset():this._sortStrategy.withItems(this._draggables)),this}},{key:"withDirection",value:function(e){return this._sortStrategy.direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._sortStrategy.orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=(0,v.fI)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat((0,z.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,i,r){if(!this.sortingDisabled&&this._clientRect&&ne(this._clientRect,.05,t,i)){var o=this._sortStrategy.sort(e,t,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:e})}}},{key:"_startScrollingIfNecessary",value:function(e,t){var i=this;if(!this.autoScrollDisabled){var r,o=0,a=0;if(this._parentPositions.positions.forEach(function(f,p){if(p!==i._document&&f.clientRect&&!r&&ne(f.clientRect,.05,e,t)){var b=function Je(s,n,e,t){var i=ge(n,t),r=me(n,e),o=0,a=0;if(i){var c=s.scrollTop;1===i?c>0&&(o=1):s.scrollHeight-c>s.clientHeight&&(o=2)}if(r){var l=s.scrollLeft;1===r?l>0&&(a=1):s.scrollWidth-l>s.clientWidth&&(a=2)}return[o,a]}(p,f.clientRect,e,t),y=(0,Te.Z)(b,2);a=y[1],((o=y[0])||a)&&(r=p)}}),!o&&!a){var c=this._viewportRuler.getViewportSize(),l=c.width,d=c.height,h={width:l,height:d,top:0,right:l,bottom:d,left
1:0};o=ge(h,t),a=me(h,e),r=window}r&&(o!==this._verticalScrollDirection||a!==this._horizontalScrollDirection||r!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=a,this._scrollNode=r,(o||a)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=(0,v.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,v.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=(0,v.fI)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(function(i){return i._stopReceiving(e)}),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_isOverContainer",value:function(e,t){return null!=this._clientRect&&G(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,i){return this._siblings.find(function(r){return r._canReceive(e,t,i)})}},{key:"_canReceive",value:function(e,t,i){if(!this._clientRect||!G(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;var r=this._getShadowRoot().elementFromPoint(t,i);if(!r)return!1;var o=(0,v.fI)(this.element);return r===o||o.contains(r)}},{key:"_startReceiving",value:function(e,t){var i=this,r=this._activeSiblings;!r.has(e)&&t.every(function(o){return i.enterPredicate(o,i)||i._draggables.indexOf(o)>-1})&&(r.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(t){if(e.isDragging()){var i=e._parentPositions.handleScroll(t);i&&e._sortStrategy.updateOnScroll(i.top,i.left)}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,D.kV)((0,v.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._sortStrategy.getActiveItemsSnapshot().filter(function(i){return i.isDragging()});this._siblings.forEach(function(i){return i._startReceiving(e,t)})}}]),s}();function ge(s,n){var e=s.top,t=s.bottom,r=.05*s.height;return n>=e-r&&n<=e+r?1:n>=t-r&&n<=t+r?2:0}function me(s,n){var e=s.left,t=s.right,r=.05*s.width;return n>=e-r&&n<=e+r?1:n>=t-r&&n<=t+r?2:0}var O=(0,D.i$)({passive:!1,capture:!0}),et=function(){var s=function(){function n(e,t){var i=this;(0,k.Z)(this,n),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(r){return r.isDragging()},this.pointerMove=new g.xQ,this.pointerUp=new g.xQ,this.scroll=new g.xQ,this._preventDefaultWhileDragging=function(r){i._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=function(r){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&r.preventDefault(),i.pointerMove.next(r))},this._document=t}return(0,E.Z)(n,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var i=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){i._document.addEventListener("touchmove",i._persistentTouchmoveListener,O)})}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,O)}},{key:"startDragging",value:function(t,i){var r=this;if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){var o=i.t
1ype.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:function(c){return r.pointerUp.next(c)},options:!0}).set("scroll",{handler:function(c){return r.scroll.next(c)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:O}),o||this._globalListeners.set("mousemove",{handler:function(c){return r.pointerMove.next(c)},options:O}),this._ngZone.runOutsideAngular(function(){r._globalListeners.forEach(function(a,c){r._document.addEventListener(c,a.handler,a.options)})})}}},{key:"stopDragging",value:function(t){var i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(t){return this._activeDragInstances.indexOf(t)>-1}},{key:"scrolled",value:function(t){var i=this,r=[this.scroll];return t&&t!==this._document&&r.push(new $.y(function(o){return i._ngZone.runOutsideAngular(function(){var c=function(d){i._activeDragInstances.length&&o.next(d)};return t.addEventListener("scroll",c,!0),function(){t.removeEventListener("scroll",c,!0)}})})),q.T.apply(void 0,r)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach(function(i){return t.removeDragItem(i)}),this._dropInstances.forEach(function(i){return t.removeDropContainer(i)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach(function(i,r){t._document.removeEventListener(r,i.handler,i.options)}),this._globalListeners.clear()}}]),n}();return s.\u0275fac=function(e){return new(e||s)(u.LFG(u.R0b),u.LFG(x.K0))},s.\u0275prov=u.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s}(),tt={dragStartThreshold:5,pointerDirectionChangeThreshold:5},j=function(){var s=function(){function n(e,t,i,r){(0,k.Z)(this,n),this._document=e,this._ngZone=t,this._viewportRuler=i,this._dragDropRegistry=r}return(0,E.Z)(n,[{key:"createDrag",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return new Xe(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new qe(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();return s.\u0275fac=function(e){return new(e||s)(u.LFG(x.K0),u.LFG(u.R0b),u.LFG(H.rL),u.LFG(et))},s.\u0275prov=u.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s}(),pe=new u.OlP("CDK_DRAG_PARENT"),ye=new u.OlP("CdkDropListGroup"),be=new u.OlP("CDK_DRAG_CONFIG"),it=0,De=new u.OlP("CdkDropList"),nt=function(){var s=function(){function n(e,t,i,r,o,a,c){var l=this;(0,k.Z)(this,n),this.element=e,this._changeDetectorRef=i,this._scrollDispatcher=r,this._dir=o,this._group=a,this._destroyed=new g.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(it++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new u.vpe,this.entered=new u.vpe,this.exited=new u.vpe,this.sorted=new u.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(d,h){return l.enterPredicate(d.data,h.data)},this._dropListRef.sortPredicate=function(d,h,f){return l.sortPredicate(d,h.data,f.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),a&&a._items.add(this)}return(0,E.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=(0,v.Ig)(t)}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(t,i){return t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var t=n._dropLists.indexOf(this);t>-1&&n._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var i=this;this._dir&&this._dir.change.pipe((0,N.O)(this._dir.value),(0,R.R)(this._destroyed)).subscribe(function(r){return t.withDirection(r)}
1),t.beforeStarted.subscribe(function(){var r=(0,v.Eq)(i.connectedTo).map(function(a){return"string"==typeof a?n._dropLists.find(function(l){return l.id===a}):a});if(i._group&&i._group._items.forEach(function(a){-1===r.indexOf(a)&&r.push(a)}),!i._scrollableParentsResolved){var o=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(a){return a.getElementRef().nativeElement});i._dropListRef.withScrollableParents(o),i._scrollableParentsResolved=!0}t.disabled=i.disabled,t.lockAxis=i.lockAxis,t.sortingDisabled=(0,v.Ig)(i.sortingDisabled),t.autoScrollDisabled=(0,v.Ig)(i.autoScrollDisabled),t.autoScrollStep=(0,v.su)(i.autoScrollStep,2),t.connectedTo(r.filter(function(a){return a&&a!==i}).map(function(a){return a._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(t){var i=this;t.beforeStarted.subscribe(function(){i._syncItemsWithRef(),i._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(r){i.entered.emit({container:i,item:r.item.data,currentIndex:r.currentIndex})}),t.exited.subscribe(function(r){i.exited.emit({container:i,item:r.item.data}),i._changeDetectorRef.markForCheck()}),t.sorted.subscribe(function(r){i.sorted.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:i,item:r.item.data})}),t.dropped.subscribe(function(r){i.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,item:r.item.data,isPointerOverContainer:r.isPointerOverContainer,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),i._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(t){var i=t.lockAxis,r=t.draggingDisabled,o=t.sortingDisabled,a=t.listAutoScrollDisabled,c=t.listOrientation;this.disabled=null!=r&&r,this.sortingDisabled=null!=o&&o,this.autoScrollDisabled=null!=a&&a,this.orientation=c||"vertical",i&&(this.lockAxis=i)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(t){return t._dragRef}))}}]),n}();return s._dropLists=[],s.\u0275fac=function(e){return new(e||s)(u.Y36(u.SBq),u.Y36(j),u.Y36(u.sBO),u.Y36(H.mF),u.Y36(ee.Is,8),u.Y36(ye,12),u.Y36(be,8))},s.\u0275dir=u.lG2({type:s,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(u.uIk("id",t.id),u.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[u._Bn([{provide:ye,useValue:void 0},{provide:De,useExisting:s}])]}),s}(),Ce=new u.OlP("CdkDragHandle"),rt=new u.OlP("CdkDragPlaceholder"),st=new u.OlP("CdkDragPreview"),at=function(){var s=function(){function n(e,t,i,r,o,a,c,l,d,h,f){var p=this;(0,k.Z)(this,n),this.element=e,this.dropContainer=t,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=d,this._selfHandle=h,this._parentDrag=f,this._destroyed=new g.xQ,this.started=new u.vpe,this.released=new u.vpe,this.ended=new u.vpe,this.entered=new u.vpe,this.exited=new u.vpe,this.dropped=new u.vpe,this.moved=new $.y(function(b){var y=p._dragRef.moved.pipe((0,Ve.U)(function(C){return{source:p,pointerPosition:C.pointerPosition,event:C.event,delta:C.delta,distance:C.distance}})).subscribe(b);return function(){y.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),a&&this._assignDefaults(a),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return(0,E.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=(0,v.Ig)(t),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"setFreeDragPosition",value:function(t){this._dragRef.setFreeDragPosition(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,J.q)(1),(0,R.R)(t._destroyed)).subscribe(function(){t._updateRootElement(),t._setupHandlesListener(),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)})})}},{key:"ngOnChanges",value:function(t){var i=t.rootElementSelector,r=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){var t=this;this.dropContainer&&this.dropContainer.removeItem(this);var i=n._dragInstances.indexOf(this);i>-1&&n._dragInstances.splice(i,1),this._ngZone.runOutsideAngular(function(){t._destroyed.next(),t._destroyed.complete(),t._dragRef.dispose()})}},{key:"_updateRootElement",value:function(){var t,i=this.element.nativeElement,r=i;this.rootElementSelector&&(r=void 0!==i.closest?i.closest(this.rootElementSelector):null===(t=i.parentElement)||void 0===t?void 0:t.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||i)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):(0,v.fI)(t):null}},{key:"_syncInputs",value:function(t){var i=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var r=i._dir,o=i.dragStartDelay,a=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,c=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;t.disabled=i.disabled,t.lockAxis=i.lockAxis,t.dragStartDelay="object"==typeof o&&o?o:(0,v.su)(o),t.constrainPosition=i.constrainPosition,t.previewClass=i.previewClass,t.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(c).withPreviewContainer(i.previewContainer||"global"),r&&t.withDirection(r.value)}}),t.beforeStarted.pipe((0,J.q)(1)).subscribe(function(){var r;if(i._parentDrag)t.withParent(i._parentDrag._dragRef);else for(var o=i.element.nativeElement.parentElement;o;){if(o.classList.contains("cdk-drag")){t.withParent((null===(r=n._dragInstances.find(function(a){return a.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(t){var i=this;t.started.subscribe(function(r){i.started.emit({source:i,event:r.event}),i._changeDetectorRef.markForCheck()}
1),t.released.subscribe(function(r){i.released.emit({source:i,event:r.event})}),t.ended.subscribe(function(r){i.ended.emit({source:i,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),i._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(r){i.entered.emit({container:r.container.data,item:i,currentIndex:r.currentIndex})}),t.exited.subscribe(function(r){i.exited.emit({container:r.container.data,item:i})}),t.dropped.subscribe(function(r){i.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:i,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}},{key:"_assignDefaults",value:function(t){var i=t.lockAxis,r=t.dragStartDelay,o=t.constrainPosition,a=t.previewClass,c=t.boundaryElement,l=t.draggingDisabled,d=t.rootElementSelector,h=t.previewContainer;this.disabled=null!=l&&l,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var t=this;this._handles.changes.pipe((0,N.O)(this._handles),(0,je.b)(function(i){var r=i.filter(function(o){return o._parentDrag===t}).map(function(o){return o.element});t._selfHandle&&t.rootElementSelector&&r.push(t.element),t._dragRef.withHandles(r)}),(0,We.w)(function(i){return q.T.apply(void 0,(0,z.Z)(i.map(function(r){return r._stateChanges.pipe((0,N.O)(r))})))}),(0,R.R)(this._destroyed)).subscribe(function(i){var r=t._dragRef,o=i.element.nativeElement;i.disabled?r.disableHandle(o):r.enableHandle(o)})}}]),n}();return s._dragInstances=[],s.\u0275fac=function(e){return new(e||s)(u.Y36(u.SBq),u.Y36(De,12),u.Y36(x.K0),u.Y36(u.R0b),u.Y36(u.s_b),u.Y36(be,8),u.Y36(ee.Is,8),u.Y36(j),u.Y36(u.sBO),u.Y36(Ce,10),u.Y36(pe,12))},s.\u0275dir=u.lG2({type:s,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){var r;1&e&&(u.Suo(i,st,5),u.Suo(i,rt,5),u.Suo(i,Ce,5)),2&e&&(u.iGM(r=u.CRH())&&(t._previewTemplate=r.first),u.iGM(r=u.CRH())&&(t._placeholderTemplate=r.first),u.iGM(r=u.CRH())&&(t._handles=r))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[u._Bn([{provide:pe,useExisting:s}]),u.TTD]}),s}(),ct=function(){var s=(0,E.Z)(function n(){(0,k.Z)(this,n)});return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=u.oAB({type:s}),s.\u0275inj=u.cJS({providers:[j],imports:[H.ZD]}),s}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.