1!function(n){function r(n,t){return"all"==t?n:n.filter(function(n){return-1!=t.toLowerCase().indexOf(n)})}var u="application/x-dnd",f="application/json",i="Text",e=["move","copy","link"],t;n.directive("dndDraggable",["$parse","$timeout",function(n,o){return function(s,h,c){h.attr("draggable","true");c.dndDisableIf&&s.$watch(c.dndDisableIf,function(n){h.attr("draggable",!n)});h.on("dragstart",function(l){var a,y,v,p,w;if(l=l.originalEvent||l,"false"==h.attr("draggable"))return!0;t.isDragging=!0;t.itemType=c.dndType&&s.$eval(c.dndType).toLowerCase();t.dropEffect="none";t.effectAllowed=c.dndEffectAllowed||e[0];l.dataTransfer.effectAllowed=t.effectAllowed;a=s.$eval(c.dndDraggable);y=u+(t.itemType?"-"+t.itemType:"");try{l.dataTransfer.setData(y,angular.toJson(a))}catch(b){v=angular.toJson({item:a,type:t.itemType});try{l.dataTransfer.setData(f,v)}catch(b){p=r(e,t.effectAllowed);l.dataTransfer.effectAllowed=p[0];l.dataTransfer.setData(i,v)}}(h.addClass("dndDragging"),o(function(){h.addClass("dndDraggingSource")},0),l._dndHandle&&l.dataTransfer.setDragImage&&l.dataTransfer.setDragImage(h[0],0,0),n(c.dndDragstart)(s,{event:l}),c.dndCallback)&&(w=n(c.dndCallback),t.callback=function(n){return w(s,n||{})});l.stopPropagation()});h.on("dragend",function(i){i=i.originalEvent||i;s.$apply(function(){var r=t.dropEffect;n(c[{copy:"dndCopied",link:"dndLinked",move:"dndMoved",none:"dndCanceled"}[r]])(s,{event:i});n(c.dndDragend)(s,{event:i,dropEffect:r})});t.isDragging=!1;t.callback=void 0;h.removeClass("dndDragging");h.removeClass("dndDraggingSource");i.stopPropagation();o(function(){h.removeClass("dndDraggingSource")},0)});h.on("click",function(t){c.dndSelected&&(t=t.originalEvent||t,s.$apply(function(){n(c.dndSelected)(s,{event:t})}),t.stopPropagation())});h.on("selectstart",function(){this.dragDrop&&this.dragDrop()})}}]);n.directive("dndList",["$parse",function(n){return function(o,s,h){function w(n){if(!n)return i;for(var t=0;t<n.length;t++)if(n[t]==i||n[t]==f||n[t].substr(0,u.length)==u)return n[t];return null}function b(n){return t.isDragging?t.itemType||void 0:n==i||n==f?null:n&&n.substr(u.length+1)||void 0}function v(n){return a.disabled?!1:a.externalSources||t.isDragging?a.allowedTypes&&null!==n?n&&-1!=a.allowedTypes.indexOf(n):!0:!1}function d(n,i){var u=e;return i||(u=r(u,n.dataTransfer.effectAllowed)),t.isDragging&&(u=r(u,t.effectAllowed)),h.dndEffectAllowed&&(u=r(u,h.dndEffectAllowed)),u.length?n.ctrlKey&&-1!=u.indexOf("copy")?"copy":n.altKey&&-1!=u.indexOf("link")?"link":u[0]:"none"}function c(){return y.remove(),s.removeClass("dndDragover"),!0}function k(i,r,u,f,e,s){return n(i)(o,{callback:t.callback,dropEffect:u,event:r,external:!t.isDragging,index:void 0!==e?e:g(),item:s||void 0,type:f})}function g(){return Array.prototype.indexOf.call(l.children,p)}function nt(){var n;return angular.forEach(s.children(),function(t){var i=angular.element(t);i.hasClass("dndPlaceholder")&&(n=i)}),n||angular.element("<li class='dndPlaceholder'><\/li>")}var y=nt();y.remove();var p=y[0],l=s[0],a={};s.on("dragenter",function(n){var t,i;return n=n.originalEvent||n,t=h.dndAllowedTypes&&o.$eval(h.dndAllowedTypes),a={allowedTypes:angular.isArray(t)&&t.join("|").toLowerCase().split("|"),disabled:h.dndDisableIf&&o.$eval(h.dndDisableIf),externalSources:h.dndExternalSources&&o.$eval(h.dndExternalSources),horizontal:h.dndHorizontalList&&o.$eval(h.dndHorizontalList)},i=w(n.dataTransfer.types),i&&v(b(i))?void n.preventDefault():!0});s.on("dragover",function(n){var u,e,t,r,g,o,f;if(n=n.originalEvent||n,u=w(n.dataTransfer.types),e=b(u),!u||!v(e))return!0;if(p.parentNode!=l&&s.append(y),n.target!=l){for(t=n.target;t.parentNode!=l&&t.parentNode;)t=t.parentNode;t.parentNode==l&&t!=p&&(r=t.getBoundingClientRect(),g=a.horizontal?n.clientX<r.left+r.width/2:n.clientY<r.top+r.height/2,l.insertBefore(p,g?t:t.nextSibling))}return o=u==i,f=d(n,o),"none"==f?c():h.dndDragover&&!k(h.dndDragover,n,f,e)?c():(n.preventDefault(),o||(n.dataTransfer.dropEffect=f),s.addClass("dndDragover"),n.stopPropagation(),!1)});s.on("drop",function(n){var u,e,r,a,s,l;if(n=n.originalEvent||n,u=w(n.dataTransfer.types),e=b(u),!u||!v(e))return!0;n.preventDefault();try{r=JSON.parse(n.dataTransfer.getData(u))}catch(y){return c()}return(u==i||u==f)&&(e=r.type||void 0,r=r.item,!v(e))?c():(a=u==i,s=d(n,a),"none"==s)?c():(l=g(),h.dndDrop&&(r=k(h.dndDrop,n,s,e,l,r),!r)?c():(t.dropEffect=s,a||(n.dataTransfer.dropEffect=s),r!==!0&&o.$apply(function(){o.$eval(h.dndList).splice(l,0,r)}),k(h.dndInserted,n,s,e,l,r),c(),n.stopPropagation(),!1))});s.on("dragleave",function(n){n=n.originalEvent||n;var t=document.elementFromPoint(n.clientX,n.clientY);l.contains(t)&&!n._dndPhShown?n._dndPhShown=!0:c()})}}]);n.directive("dndNodrag",function(){return function(n,t){t.attr("draggable","true");t.on("dragstart",function(n){n=n.originalEvent||n;n._dndHandle||(n.dataTransfer.types&&n.dataTransfer.types.length||n.preventDefault(),n.stopPropagation())});t.on("dragend",function(n){n=n.originalEvent||n;n._dndHandle||n.stopPropagation()})}});n.directive("dndHandle",function(){return function(n,t){t.attr("draggable","true");t.on("dragstart dragend",function(n){n=n.originalEvent||n;n._dndHandle=!0})}});t={}}(angular.module("dndLists",[]))
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.