fe-drone-ci/static/js/chunk-2d0c84d3.48442b79.js

7 lines
25 KiB
JavaScript
Raw Permalink Normal View History

2020-09-07 13:47:42 +00:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c84d3"],{"53fe":function(t,e,n){var o,i;
/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/(function(r){"use strict";o=r,i="function"===typeof o?o.call(e,n,e,t):o,void 0===i||(t.exports=i)})((function(){"use strict";if("undefined"===typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,o,i,r,a,l,s,c,h,d,u,f,p,v,g,m,b,w,_,y,D,T,S,C,E=[],x=!1,N=!1,M=!1,k=[],P=!1,X=!1,Y=[],A=/\s+/g,I="Sortable"+(new Date).getTime(),B=window,O=B.document,H=B.parseInt,R=B.setTimeout,L=B.jQuery||B.Zepto,W=B.Polymer,F={capture:!1,passive:!1},z=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),j=!!navigator.userAgent.match(/Edge/i),U=!!navigator.userAgent.match(/firefox/i),V=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),q=!!navigator.userAgent.match(/iP(ad|od|hone)/i),G=q,J=j||z?"cssFloat":"float",K="draggable"in O.createElement("div"),Z=function(){if(z)return!1;var t=O.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Q=!1,$=!1,tt=Math.abs,et=Math.min,nt=Math.max,ot=[],it=function(t,e){var n=Nt(t),o=H(n.width)-H(n.paddingLeft)-H(n.paddingRight)-H(n.borderLeftWidth)-H(n.borderRightWidth),i=It(t,0,e),r=It(t,1,e),a=i&&Nt(i),l=r&&Nt(r),s=a&&H(a.marginLeft)+H(a.marginRight)+Kt(i).width,c=l&&H(l.marginLeft)+H(l.marginRight)+Kt(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&"none"!==a.float){var h="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==h?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[J]||r&&"none"===n[J]&&s+c>o)?"vertical":"horizontal"},rt=function(t,e){for(var n=0;n<k.length;n++)if(!Bt(k[n])){var o=Kt(k[n]),i=k[n][I].options.emptyInsertThreshold,r=t>=o.left-i&&t<=o.right+i,a=e>=o.top-i&&e<=o.bottom+i;if(r&&a)return k[n]}},at=function(t,e,n,o,i){var r=Kt(n),a="vertical"===o?r.left:r.top,l="vertical"===o?r.right:r.bottom,s="vertical"===o?t:e;return a<s&&s<l},lt=function(e,n,o){var i=e===t&&C||Kt(e),r=n===t&&C||Kt(n),a="vertical"===o?i.left:i.top,l="vertical"===o?i.right:i.bottom,s="vertical"===o?i.width:i.height,c="vertical"===o?r.left:r.top,h="vertical"===o?r.right:r.bottom,d="vertical"===o?r.width:r.height;return a===c||l===h||a+s/2===c+d/2},st=function(t,e){if(!t||!t.getBoundingClientRect)return ct();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Nt(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n||!n.getBoundingClientRect||n===O.body)return ct();if(o||e)return n;o=!0}}}while(n=n.parentNode);return ct()},ct=function(){return z?O.documentElement:O.scrollingElement},ht=function(t,e,n){t.scrollLeft+=e,t.scrollTop+=n},dt=zt((function(t,e,n,o){if(e.scroll){var i=n?n[I]:window,r=e.scrollSensitivity,a=e.scrollSpeed,h=t.clientX,d=t.clientY,u=ct(),f=!1;s!==n&&(ut(),l=e.scroll,c=e.scrollFn,!0===l&&(l=st(n,!0),s=l));var p=0,v=l;do{var g,m,w,_,y,D,T,S,C,N=v,M=Kt(N),k=M.top,P=M.bottom,X=M.left,Y=M.right,A=M.width,B=M.height;if(g=N.scrollWidth,m=N.scrollHeight,w=Nt(N),S=N.scrollLeft,C=N.scrollTop,N===u?(D=A<g&&("auto"===w.overflowX||"scroll"===w.overflowX||"visible"===w.overflowX),T=B<m&&("auto"===w.overflowY||"scroll"===w.overflowY||"visible"===w.overflowY)):(D=A<g&&("auto"===w.overflowX||"scroll"===w.overflowX),T=B<m&&("auto"===w.overflowY||"scroll"===w.overflowY)),_=D&&(tt(Y-h)<=r&&S+A<g)-(tt(X-h)<=r&&!!S),y=T&&(tt(P-d)<=r&&C+B<m)-(tt(k-d)<=r&&!!C),!E[p])for(var O=0;O<=p;O++)E[O]||(E[O]={});E[p].vx==_&&E[p].vy==y&&E[p].el===N||(E[p].el=N,E[p].vx=_,E[p].vy=y,clearInterval(E[p].pid),!N||0==_&&0==y||(f=!0,E[p].pid=setInterval(function(){o&&0===this.layer&&(yt.active._emulateDragOver(!0),yt.active._onTouchMove(b,!0));var e=E[this.layer].vy?E[this.layer].vy*a:0,n=E[this.layer].vx?E[this.layer].vx*a:0