el-dynamic-form-design
Version:
ele form pingshu dynamic design
2 lines • 3.35 MB
JavaScript
/*! For license information please see elDynamicFormDesign.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("el-dynamic-form-design",["vue"],t):"object"==typeof exports?exports["el-dynamic-form-design"]=t(require("vue")):e["el-dynamic-form-design"]=t(e.Vue)}(this,(function(__WEBPACK_EXTERNAL_MODULE__154__){return function(){var __webpack_modules__={34:function(e,t,n){"use strict";var o=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},81:function(e,t,n){"use strict";var o=n(9565),r=n(9306),i=n(8551),a=n(6823),s=n(851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},116:function(e,t,n){"use strict";var o=n(6518),r=n(9565),i=n(2652),a=n(9306),s=n(8551),l=n(1767),c=n(9539),d=n(4549)("find",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){s(this);try{a(e)}catch(e){c(this,"throw",e)}if(d)return r(d,this,e);var t=l(this),n=0;return i(t,(function(t,o){if(e(t,n++))return o(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(5093))},154:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__154__},158:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},246:function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:function(){return gt},Sortable:function(){return He},Swap:function(){return it}});var l=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),c=s(/Edge/i),d=s(/firefox/i),u=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),h=s(/iP(ad|od|hone)/i),p=s(/chrome/i)&&s(/android/i),m={capture:!1,passive:!1};function f(e,t,n){e.addEventListener(t,n,!l&&m)}function g(e,t,n){e.removeEventListener(t,n,!l&&m)}function _(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function v(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&_(e,t):_(e,t))||o&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var b,x=/\s+/g;function w(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(x," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(x," ")}}function k(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function M(e,t){var n="";if("string"==typeof e)n=e;else do{var o=k(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function C(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function S(){return document.scrollingElement||document.documentElement}function L(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,s,c,d,u,h;if(e!==window&&e!==S()?(a=(i=e.getBoundingClientRect()).top,s=i.left,c=i.bottom,d=i.right,u=i.height,h=i.width):(a=0,s=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!l))do{if(r&&r.getBoundingClientRect&&("none"!==k(r,"transform")||n&&"static"!==k(r,"position"))){var p=r.getBoundingClientRect();a-=p.top+parseInt(k(r,"border-top-width")),s-=p.left+parseInt(k(r,"border-left-width")),c=a+i.height,d=s+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var m=M(r||e),f=m&&m.a,g=m&&m.d;m&&(c=(a/=g)+(u/=g),d=(s/=f)+(h/=f))}return{top:a,left:s,bottom:c,right:d,width:h,height:u}}}function A(e,t,n){for(var o=O(e,!0),r=L(e)[t];o;){var i=L(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===S())break;o=O(o,!1)}return!1}function D(e,t,n){for(var o=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==He.ghost&&i[r]!==He.dragged&&v(i[r],n.draggable,e,!1)){if(o===t)return i[r];o++}r++}return null}function T(e,t){for(var n=e.lastElementChild;n&&(n===He.ghost||"none"===k(n,"display")||t&&!_(n,t));)n=n.previousElementSibling;return n||null}function E(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===He.clone||t&&!_(e,t)||n++;return n}function Y(e){var t=0,n=0,o=S();if(e)do{var r=M(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function O(e,t){if(!e||!e.getBoundingClientRect)return S();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return S();if(o||t)return n;o=!0}}}while(n=n.parentNode);return S()}function P(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function j(e,t){return function(){if(!b){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),b=setTimeout((function(){b=void 0}),t)}}}function N(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function H(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function I(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function R(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var F="Sortable"+(new Date).getTime();var B=[],z={initializeByDefault:!0},$={mount:function(e){for(var t in z)z.hasOwnProperty(t)&&!(t in e)&&(e[t]=z[t]);B.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";B.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](a({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in B.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var a=new o(e,t,e.options);a.sortable=e,a.options=e.options,e[r]=a,i(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);void 0!==a&&(e.options[r]=a)}},getEventProperties:function(e,t){var n={};return B.forEach((function(o){"function"==typeof o.eventProperties&&i(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return B.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function V(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,s=e.toEl,d=e.fromEl,u=e.oldIndex,h=e.newIndex,p=e.oldDraggableIndex,m=e.newDraggableIndex,f=e.originalEvent,g=e.putSortable,_=e.extraEventProperties;if(t=t||n&&n[F]){var y,v=t.options,b="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||l||c?(y=document.createEvent("Event")).initEvent(o,!0,!0):y=new CustomEvent(o,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=d||n,y.item=r||n,y.clone=i,y.oldIndex=u,y.newIndex=h,y.oldDraggableIndex=p,y.newDraggableIndex=m,y.originalEvent=f,y.pullMode=g?g.lastPutMode:void 0;var x=a({},_,$.getEventProperties(o,t));for(var w in x)y[w]=x[w];n&&n.dispatchEvent(y),v[b]&&v[b].call(t,y)}}var W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(n,["evt"]);$.pluginEvent.bind(He)(e,t,a({dragEl:q,parentEl:Z,ghostEl:G,rootEl:K,nextEl:J,lastDownEl:X,cloneEl:Q,cloneHidden:ee,dragStarted:pe,putSortable:ae,activeSortable:He.active,originalEvent:o,oldIndex:te,oldDraggableIndex:oe,newIndex:ne,newDraggableIndex:re,hideGhostForTarget:Oe,unhideGhostForTarget:Pe,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){U({sortable:t,name:e,originalEvent:o})}},r))};function U(e){V(a({putSortable:ae,cloneEl:Q,targetEl:q,rootEl:K,oldIndex:te,oldDraggableIndex:oe,newIndex:ne,newDraggableIndex:re},e))}var q,Z,G,K,J,X,Q,ee,te,ne,oe,re,ie,ae,se,le,ce,de,ue,he,pe,me,fe,ge,_e,ye=!1,ve=!1,be=[],xe=!1,we=!1,ke=[],Me=!1,Ce=[],Se="undefined"!=typeof document,Le=h,Ae=c||l?"cssFloat":"float",De=Se&&!p&&!h&&"draggable"in document.createElement("div"),Te=function(){if(Se){if(l)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ee=function(e,t){var n=k(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=D(e,0,t),i=D(e,1,t),a=r&&k(r),s=i&&k(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+L(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(i).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(r&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=o&&"none"===n[Ae]||i&&"none"===n[Ae]&&l+c>o)?"vertical":"horizontal"},Ye=function(e){function t(e,n){return function(o,r,i,a){var s=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var l=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Oe=function(){!Te&&G&&k(G,"display","none")},Pe=function(){!Te&&G&&k(G,"display","")};Se&&document.addEventListener("click",(function(e){if(ve)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ve=!1,!1}),!0);var je=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,be.some((function(e){if(!T(e)){var t=L(e),n=e[F].options.emptyInsertThreshold,o=r>=t.left-n&&r<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&o&&s?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[F]._onDragOver(n)}}var r,i,a},Ne=function(e){q&&q.parentNode[F]._isOutsideThisEl(e.target)};function He(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=i({},t),e[F]=this;var n,o,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ee(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==He.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var s in $.initializePlugins(this,e,r),r)!(s in t)&&(t[s]=r[s]);for(var l in Ye(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&De,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?f(e,"pointerdown",this._onTapStart):(f(e,"mousedown",this._onTapStart),f(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(f(e,"dragover",this),f(e,"dragenter",this)),be.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),i(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==k(e,"display")&&e!==He.ghost){o.push({target:e,rect:L(e)});var t=a({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=M(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,i=0;o.forEach((function(e){var n=0,o=e.target,a=o.fromRect,s=L(o),l=o.prevFromRect,c=o.prevToRect,d=e.rect,u=M(o,!0);u&&(s.top-=u.f,s.left-=u.e),o.toRect=s,o.thisAnimationDuration&&P(l,s)&&!P(a,s)&&(d.top-s.top)/(d.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(d,l,c,t.options)),P(s,a)||(o.prevFromRect=a,o.prevToRect=s,n||(n=t.options.animation),t.animate(o,d,s,n)),n&&(r=!0,i=Math.max(i,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){k(e,"transition",""),k(e,"transform","");var r=M(this.el),i=r&&r.a,a=r&&r.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,k(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),k(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function Ie(e,t,n,o,r,i,a,s){var d,u,h=e[F],p=h.options.onMove;return!window.CustomEvent||l||c?(d=document.createEvent("Event")).initEvent("move",!0,!0):d=new CustomEvent("move",{bubbles:!0,cancelable:!0}),d.to=t,d.from=e,d.dragged=n,d.draggedRect=o,d.related=r||t,d.relatedRect=i||L(t),d.willInsertAfter=s,d.originalEvent=a,e.dispatchEvent(d),p&&(u=p.call(h,d,a)),u}function Re(e){e.draggable=!1}function Fe(){Me=!1}function Be(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function ze(e){return setTimeout(e,0)}function $e(e){return clearTimeout(e)}He.prototype={constructor:He,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(me=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=o.filter;if(function(e){Ce.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Ce.push(o)}}(n),!q&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled||l.isContentEditable||(s=v(s,o.draggable,n,!1))&&s.animated||X===s)){if(te=E(s),oe=E(s,o.draggable),"function"==typeof c){if(c.call(this,e,s,this))return U({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),W("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=v(l,o.trim(),n,!1))return U({sortable:t,rootEl:o,name:"filter",targetEl:s,fromEl:n,toEl:n}),W("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!v(l,o.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,s=i.ownerDocument;if(n&&!q&&n.parentNode===i){var u=L(n);if(K=i,Z=(q=n).parentNode,J=q.nextSibling,X=n,ie=a.group,He.dragged=q,se={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},ue=se.clientX-u.left,he=se.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",o=function(){W("delayEnded",r,{evt:e}),He.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!d&&r.nativeDraggable&&(q.draggable=!0),r._triggerDragStart(e,t),U({sortable:r,name:"choose",originalEvent:e}),w(q,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){C(q,e.trim(),Re)})),f(s,"dragover",je),f(s,"mousemove",je),f(s,"touchmove",je),f(s,"mouseup",r._onDrop),f(s,"touchend",r._onDrop),f(s,"touchcancel",r._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),W("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(c||l))o();else{if(He.eventCanceled)return void this._onDrop();f(s,"mouseup",r._disableDelayedDrag),f(s,"touchend",r._disableDelayedDrag),f(s,"touchcancel",r._disableDelayedDrag),f(s,"mousemove",r._delayedDragTouchMoveHandler),f(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&f(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Re(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?f(document,"pointermove",this._onTouchMove):f(document,t?"touchmove":"mousemove",this._onTouchMove):(f(q,"dragend",this),f(K,"dragstart",this._onDragStart));try{document.selection?ze((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ye=!1,K&&q){W("dragStarted",this,{evt:t}),this.nativeDraggable&&f(document,"dragover",Ne);var n=this.options;!e&&w(q,n.dragClass,!1),w(q,n.ghostClass,!0),He.active=this,e&&this._appendGhost(),U({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(le){this._lastX=le.clientX,this._lastY=le.clientY,Oe();for(var e=document.elementFromPoint(le.clientX,le.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(le.clientX,le.clientY))!==t;)t=e;if(q.parentNode[F]._isOutsideThisEl(e),t)do{if(t[F]&&t[F]._onDragOver({clientX:le.clientX,clientY:le.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Pe()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=G&&M(G,!0),a=G&&i&&i.a,s=G&&i&&i.d,l=Le&&_e&&Y(_e),c=(r.clientX-se.clientX+o.x)/(a||1)+(l?l[0]-ke[0]:0)/(a||1),d=(r.clientY-se.clientY+o.y)/(s||1)+(l?l[1]-ke[1]:0)/(s||1);if(!He.active&&!ye){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(G){i?(i.e+=c-(ce||0),i.f+=d-(de||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");k(G,"webkitTransform",u),k(G,"mozTransform",u),k(G,"msTransform",u),k(G,"transform",u),ce=c,de=d,le=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!G){var e=this.options.fallbackOnBody?document.body:K,t=L(q,!0,Le,!0,e),n=this.options;if(Le){for(_e=e;"static"===k(_e,"position")&&"none"===k(_e,"transform")&&_e!==document;)_e=_e.parentNode;_e!==document.body&&_e!==document.documentElement?(_e===document&&(_e=S()),t.top+=_e.scrollTop,t.left+=_e.scrollLeft):_e=S(),ke=Y(_e)}w(G=q.cloneNode(!0),n.ghostClass,!1),w(G,n.fallbackClass,!0),w(G,n.dragClass,!0),k(G,"transition",""),k(G,"transform",""),k(G,"box-sizing","border-box"),k(G,"margin",0),k(G,"top",t.top),k(G,"left",t.left),k(G,"width",t.width),k(G,"height",t.height),k(G,"opacity","0.8"),k(G,"position",Le?"absolute":"fixed"),k(G,"zIndex","100000"),k(G,"pointerEvents","none"),He.ghost=G,e.appendChild(G),k(G,"transform-origin",ue/parseInt(G.style.width)*100+"% "+he/parseInt(G.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;W("dragStart",this,{evt:e}),He.eventCanceled?this._onDrop():(W("setupClone",this),He.eventCanceled||((Q=H(q)).draggable=!1,Q.style["will-change"]="",this._hideClone(),w(Q,this.options.chosenClass,!1),He.clone=Q),n.cloneId=ze((function(){W("clone",n),He.eventCanceled||(n.options.removeCloneOnHide||K.insertBefore(Q,q),n._hideClone(),U({sortable:n,name:"clone"}))})),!t&&w(q,r.dragClass,!0),t?(ve=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,q)),f(document,"drop",n),k(q,"transform","translateZ(0)")),ye=!0,n._dragStartId=ze(n._dragStarted.bind(n,t,e)),f(document,"selectstart",n),pe=!0,u&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,s=e.target,l=this.options,c=l.group,d=He.active,u=ie===c,h=l.sort,p=ae||d,m=this,f=!1;if(!Me){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=v(s,l.draggable,i,!0),H("dragOver"),He.eventCanceled)return f;if(q.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||m._ignoreWhileAnimating===s)return R(!1);if(ve=!1,d&&!l.disabled&&(u?h||(o=!K.contains(q)):ae===this||(this.lastPutMode=ie.checkPull(this,d,q,e))&&c.checkPut(this,d,q,e))){if(r="vertical"===this._getDirection(e,s),t=L(q),H("dragOverValid"),He.eventCanceled)return f;if(o)return Z=K,I(),this._hideClone(),H("revert"),He.eventCanceled||(J?K.insertBefore(q,J):K.appendChild(q)),R(!0);var g=T(i,l.draggable);if(!g||function(e,t,n){var o=L(T(n.el,n.options.draggable));return t?e.clientX>o.right+10||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+10}(e,r,this)&&!g.animated){if(g===q)return R(!1);if(g&&i===e.target&&(s=g),s&&(n=L(s)),!1!==Ie(K,i,q,t,s,n,e,!!s))return I(),i.appendChild(q),Z=i,B(),R(!0)}else if(s.parentNode===i){n=L(s);var _,y,b,x=q.parentNode!==i,M=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return o===a||r===s||o+i/2===a+l/2}(q.animated&&q.toRect||t,s.animated&&s.toRect||n,r),C=r?"top":"left",S=A(s,"top","top")||A(q,"top","top"),D=S?S.scrollTop:void 0;if(me!==s&&(y=n[C],xe=!1,we=!M&&l.invertSwap||x),_=function(e,t,n,o,r,i,a,s){var l=o?e.clientY:e.clientX,c=o?n.height:n.width,d=o?n.top:n.left,u=o?n.bottom:n.right,h=!1;if(!a)if(s&&ge<c*r){if(!xe&&(1===fe?l>d+c*i/2:l<u-c*i/2)&&(xe=!0),xe)h=!0;else if(1===fe?l<d+ge:l>u-ge)return-fe}else if(l>d+c*(1-r)/2&&l<u-c*(1-r)/2)return function(e){return E(q)<E(e)?1:-1}(t);return(h=h||a)&&(l<d+c*i/2||l>u-c*i/2)?l>d+c/2?1:-1:0}(e,s,n,r,M?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,we,me===s),0!==_){var Y=E(q);do{Y-=_,b=Z.children[Y]}while(b&&("none"===k(b,"display")||b===G))}if(0===_||b===s)return R(!1);me=s,fe=_;var O=s.nextElementSibling,P=!1,j=Ie(K,i,q,t,s,n,e,P=1===_);if(!1!==j)return 1!==j&&-1!==j||(P=1===j),Me=!0,setTimeout(Fe,30),I(),P&&!O?i.appendChild(q):s.parentNode.insertBefore(q,P?O:s),S&&N(S,0,D-S.scrollTop),Z=q.parentNode,void 0===y||we||(ge=Math.abs(y-L(s)[C])),B(),R(!0)}if(i.contains(q))return R(!1)}return!1}function H(l,c){W(l,m,a({evt:e,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:h,fromSortable:p,target:s,completed:R,onMove:function(n,o){return Ie(K,i,q,t,n,L(n),e,o)},changed:B},c))}function I(){H("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function R(t){return H("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(m),m!==p&&(w(q,ae?ae.options.ghostClass:d.options.ghostClass,!1),w(q,l.ghostClass,!0)),ae!==m&&m!==He.active?ae=m:m===He.active&&ae&&(ae=null),p===m&&(m._ignoreWhileAnimating=s),m.animateAll((function(){H("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===q&&!q.animated||s===i&&!s.animated)&&(me=null),l.dragoverBubble||e.rootEl||s===document||(q.parentNode[F]._isOutsideThisEl(e.target),!t&&je(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function B(){ne=E(q),re=E(q,l.draggable),U({sortable:m,name:"change",toEl:i,newIndex:ne,newDraggableIndex:re,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",je),g(document,"mousemove",je),g(document,"touchmove",je)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ne=E(q),re=E(q,n.draggable),W("drop",this,{evt:e}),Z=q&&q.parentNode,ne=E(q),re=E(q,n.draggable),He.eventCanceled||(ye=!1,we=!1,xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),$e(this.cloneId),$e(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&k(document.body,"user-select",""),k(q,"transform",""),e&&(pe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(K===Z||ae&&"clone"!==ae.lastPutMode)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),q&&(this.nativeDraggable&&g(q,"dragend",this),Re(q),q.style["will-change"]="",pe&&!ye&&w(q,ae?ae.options.ghostClass:this.options.ghostClass,!1),w(q,this.options.chosenClass,!1),U({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),K!==Z?(ne>=0&&(U({rootEl:Z,name:"add",toEl:Z,fromEl:K,originalEvent:e}),U({sortable:this,name:"remove",toEl:Z,originalEvent:e}),U({rootEl:Z,name:"sort",toEl:Z,fromEl:K,originalEvent:e}),U({sortable:this,name:"sort",toEl:Z,originalEvent:e})),ae&&ae.save()):ne!==te&&ne>=0&&(U({sortable:this,name:"update",toEl:Z,originalEvent:e}),U({sortable:this,name:"sort",toEl:Z,originalEvent:e})),He.active&&(null!=ne&&-1!==ne||(ne=te,re=oe),U({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),K=q=Z=G=J=Q=X=ee=se=le=pe=ne=re=te=oe=me=fe=ae=ie=He.dragged=He.ghost=He.clone=He.active=null,Ce.forEach((function(e){e.checked=!0})),Ce.length=ce=de=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)v(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Be(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,o){var r=n.children[o];v(r,this.options.draggable,n,!1)&&(t[e]=r)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return v(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=$.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Ye(n)},destroy:function(){W("destroy",this);var e=this.el;e[F]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),be.splice(be.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ee){if(W("hideClone",this),He.eventCanceled)return;k(Q,"display","none"),this.options.removeCloneOnHide&&Q.parentNode&&Q.parentNode.removeChild(Q),ee=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ee){if(W("showClone",this),He.eventCanceled)return;K.contains(q)&&!this.options.group.revertClone?K.insertBefore(Q,q):J?K.insertBefore(Q,J):K.appendChild(Q),this.options.group.revertClone&&this.animate(q,Q),k(Q,"display",""),ee=!1}}else this._hideClone()}},Se&&f(document,"touchmove",(function(e){(He.active||ye)&&e.cancelable&&e.preventDefault()})),He.utils={on:f,off:g,css:k,find:C,is:function(e,t){return!!v(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:j,closest:v,toggleClass:w,clone:H,index:E,nextTick:ze,cancelNextTick:$e,detectDirection:Ee,getChild:D},He.get=function(e){return e[F]},He.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(He.utils=a({},He.utils,e.utils)),$.mount(e)}))},He.create=function(e,t){return new He(e,t)},He.version="1.10.2";var Ve,We,Ue,qe,Ze,Ge,Ke=[],Je=!1;function Xe(){Ke.forEach((function(e){clearInterval(e.pid)})),Ke=[]}function Qe(){clearInterval(Ge)}var et,tt=j((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=S(),d=!1;We!==n&&(We=n,Xe(),Ve=t.scroll,r=t.scrollFn,!0===Ve&&(Ve=O(n,!0)));var u=0,h=Ve;do{var p=h,m=L(p),f=m.top,g=m.bottom,_=m.left,y=m.right,v=m.width,b=m.height,x=void 0,w=void 0,M=p.scrollWidth,C=p.scrollHeight,A=k(p),D=p.scrollLeft,T=p.scrollTop;p===c?(x=v<M&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),w=b<C&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(x=v<M&&("auto"===A.overflowX||"scroll"===A.overflowX),w=b<C&&("auto"===A.overflowY||"scroll"===A.overflowY));var E=x&&(Math.abs(y-i)<=s&&D+v<M)-(Math.abs(_-i)<=s&&!!D),Y=w&&(Math.abs(g-a)<=s&&T+b<C)-(Math.abs(f-a)<=s&&!!T);if(!Ke[u])for(var P=0;P<=u;P++)Ke[P]||(Ke[P]={});Ke[u].vx==E&&Ke[u].vy==Y&&Ke[u].el===p||(Ke[u].el=p,Ke[u].vx=E,Ke[u].vy=Y,clearInterval(Ke[u].pid),0==E&&0==Y||(d=!0,Ke[u].pid=setInterval(function(){o&&0===this.layer&&He.active._onTouchMove(Ze);var t=Ke[this.layer].vy?Ke[this.layer].vy*l:0,n=Ke[this.layer].vx?Ke[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(He.dragged.parentNode[F],n,t,e,Ze,Ke[this.layer].el)||N(Ke[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&h!==c&&(h=O(h,!1)));Je=d}}),30),nt=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ot(){}function rt(){}function it(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;et=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,i=e.changed,a=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=et;!1!==o(n)?(w(n,l.swapClass,!0),et=n):et=null,c&&c!==et&&w(c,l.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t,n,o,r,i,a,s=e.activeSortable,l=e.putSortable,c=e.dragEl,d=l||this.sortable,u=this.options;et&&w(et,u.swapClass,!1),et&&(u.swap||l&&l.options.swap)&&c!==et&&(d.captureAnimationState(),d!==s&&s.captureAnimationState(),n=et,i=(t=c).parentNode,a=n.parentNode,i&&a&&!i.isEqualNode(n)&&!a.isEqualNode(t)&&(o=E(t),r=E(n),i.isEqualNode(a)&&o<r&&r++,i.insertBefore(n,i.children[o]),a.insertBefore(t,a.children[r])),d.animateAll(),d!==s&&s.animateAll())},nulling:function(){et=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:et}}})}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=D(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:nt},i(ot,{pluginName:"revertOnSpill"}),rt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:nt},i(rt,{pluginName:"removeOnSpill"});var at,st,lt,ct,dt,ut=[],ht=[],pt=!1,mt=!1,ft=!1;function gt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?f(document,"pointerup",this._deselectMultiDrag):(f(document,"mouseup",this._deselectMultiDrag),f(document,"touchend",this._deselectMultiDrag)),f(document,"keydown",this._checkKeyDown),f(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var o="";ut.length&&st===e?ut.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;lt=t},delayEnded:function(){this.isMultiDrag=~ut.indexOf(lt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<ut.length;o++)ht.push(H(ut[o])),ht[o].sortableIndex=ut[o].sortableIndex,ht[o].draggable=!1,ht[o].style["will-change"]="",w(ht[o],this.options.selectedClass,!1),ut[o]===lt&&w(ht[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ut.length&&st===t&&(_t(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(_t(!1,n),ht.forEach((function(e){k(e,"display","")})),t(),dt=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(ht.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),dt=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&st&&st.multiDrag._deselectMultiDrag(),ut.forEach((function(e){e.sortableIndex=E(e)})),ut=ut.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),ft=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ut.forEach((function(e){e!==lt&&k(e,"position","absolute")}));var o=L(lt,!1,!0,!0);ut.forEach((function(e){e!==lt&&I(e,o)})),mt=!0,pt=!0}n.animateAll((function(){mt=!1,pt=!1,t.options.animation&&ut.forEach((function(e){R(e)})),t.options.sort&&yt()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;mt&&~ut.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;ut.length>1&&(ut.forEach((function(e){o.addAnimationState({target:e,rect:mt?L(e):r}),R(e),e.fromRect=r,t.removeAnimationState(e)})),mt=!1,function(e,t){ut.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,i=e.parentEl,a=e.putSortable,s=this.options;if(o){if(n&&r._hideClone(),pt=!1,s.animation&&ut.length>1&&(mt||!n&&!r.options.sort&&!a)){var l=L(lt,!1,!0,!0);ut.forEach((function(e){e!==lt&&(I(e,l),i.appendChild(e))})),mt=!0}if(!n)if(mt||yt(),ut.length>1){var c=dt;r._showClone(t),r.options.animation&&!dt&&c&&ht.forEach((function(e){r.addAnimationState({target:e,rect:ct}),e.fromRect=ct,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(ut.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){ct=i({},t);var r=M(lt,!0);ct.top-=r.f,ct.left-=r.e}},dragOverAnimationComplete:function(){mt&&(mt=!1,yt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,d=o.children;if(!ft)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),w(lt,c.selectedClass,!~ut.indexOf(lt)),~ut.indexOf(lt))ut.splice(ut.indexOf(lt),1),at=null,V({sortable:r,rootEl:n,name:"deselect",targetEl:lt,originalEvt:t});else{if(ut.push(lt),V({sortable:r,rootEl:n,name:"select",targetEl:lt,originalEvt:t}),t.shiftKey&&at&&r.el.contains(at)){var u,h,p=E(at),m=E(lt);if(~p&&~m&&p!==m)for(m>p?(h=p,u=m):(h=m,u=p+1);h<u;h++)~ut.indexOf(d[h])||(w(d[h],c.selectedClass,!0),ut.push(d[h]),V({sortable:r,rootEl:n,name:"select",targetEl:d[h],originalEvt:t}))}else at=lt;st=l}if(ft&&this.isMultiDrag){if((o[F].options.sort||o!==n)&&ut.length>1){var f=L(lt),g=E(lt,":not(."+this.options.selectedClass+")");if(!pt&&c.animation&&(lt.thisAnimationDuration=null),l.captureAnimationState(),!pt&&(c.animation&&(lt.fromRect=f,ut.forEach((function(e){if(e.thisAnimationDuration=null,e!==lt){var t=mt?L(e):f;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),yt(),ut.forEach((function(e){d[g]?o.insertBefore(e,d[g]):o.appendChild(e),g++})),a===E(lt))){var _=!1;ut.forEach((function(e){e.sortableIndex===E(e)||(_=!0)})),_&&i("update")}ut.forEach((function(e){R(e)})),l.animateAll()}st=l}(n===o||s&&"clone"!==s.lastPutMode)&&ht.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=ft=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==ft&&ft||st!==this.sortable||e&&v(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ut.length;){var t=ut[0];w(t,this.options.selectedClass,!1),ut.shift(),V({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[F];t&&t.options.multiDrag&&!~ut.indexOf(e)&&(st&&st!==t&&(st.multiDrag._deselectMultiDrag(),st=t),w(e,t.options.selectedClass,!0),ut.push(e))},deselect:function(e){var t=e.parentNode[F],n=ut.indexOf(e);t&&t.options.multiDrag&&~n&&(w(e,t.options.selectedClass,!1),ut.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return ut.forEach((function(e){var r;n.push({multiDragElement:e,index:e.sortableIndex}),r=mt&&e!==lt?-1:mt?E(e,":not(."+t.options.selectedClass+")"):E(e),o.push({multiDragElement:e,index:r})})),{items:(e=ut,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),clones:[].concat(ht),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function _t(e,t){ht.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function yt(){ut.forEach((function(e){e!==lt&&e.parentNode&&e.parentNode.removeChild(e)}))}He.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?f(document,"dragover",this._handleAutoScroll):this.options.supportPointer?f(document,"pointermove",this._handleFallbackAutoScroll):t.touches?f(document,"touchmove",this._handleFallbackAutoScroll):f(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),Qe(),Xe(),clearTimeout(b),b=void 0},nulling:function(){Ze=We=Ve=Je=Ge=Ue=qe=null,Ke.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(Ze=e,t||c||l||u){tt(e,this.options,i,t);var a=O(i,!0);!Je||Ge&&o===Ue&&r===qe||(Ge&&Qe(),Ge=setInterval((function(){var i=O(document.elementFromPoint(o,r),!0);i!==a&&(a=i,Xe()),tt(e,n.options,i,t)}),10),Ue=o,qe=r)}else{if(!this.options.bubbleScroll||O(i,!0)===S())return void Xe();tt(e,this.options,O(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}),He.mount(rt,ot),t.default=He},283:function(e,t,n){"use strict";var o=n(9504),r=n(9039),i=n(4901),a=n(9297),s=n(3724),l=n(350).CONFIGURABLE,c=n(3706),d=n(1181),u=d.enforce,h=d.get,p=String,m=Object.defineProperty,f=o("".slice),g=o("".replace),_=o([].join),y=s&&!r((function(){return 8!==m((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===f(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?m(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=_(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return i(this)&&h(this).source||c(this)}),"toString")},304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return