gc.spread.views.timelinegrouping.10.0.0.min.js 77 KB

123456789101112131415
  1. /*!
  2. *
  3. * SpreadJS Library 10.0.0
  4. *
  5. * Copyright(c) GrapeCity, Inc. All rights reserved.
  6. *
  7. * Licensed under the SpreadJS Commercial License.
  8. * spread.sales@grapecity.com
  9. * http://spread.grapecity.com/Pages/Spread-JS-License/
  10. *
  11. *
  12. */
  13. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TimelineGrouping=e():(t.GC=t.GC||{},t.GC.Spread=t.GC.Spread||{},t.GC.Spread.Views=t.GC.Spread.Views||{},t.GC.Spread.Views.Plugins=t.GC.Spread.Views.Plugins||{},t.GC.Spread.Views.Plugins.TimelineGrouping=e())}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/assets/",e(0)}([function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(){function e(){var t=this;t.cIS_=[],t.grid.layoutEngine.scrollToEnd_=null,t.hasVScrollBar_=null,t.cachedGroupHeaderFn_=null}function i(){var t=this,e=t.grid,n=e.gCI_().contentRect,r=0,i=0,u=n.width,a=n.height,c=S.gSS(e);u=l.call(t,u,a)?u-c.width:u;var f=o.call(t,u,a);return{top:i,left:r,width:u,height:a,contentWidth:u,contentHeight:f}}function o(t,e){var n=this;if(n.scrollableHeight_)return n.scrollableHeight_;var r=n.grid.gSO_(R),i={top:r?r.top:0,left:r?r.left:0,width:t,height:n.grid.layoutEngine.options.autoRowHeight?4*e:Number.MAX_VALUE};return n.scrollableHeight_=f.call(this,i).height,n.scrollableHeight_}function u(t){var e=this,n=t&&t.area||"";if(!n)return null;var i,o=e.grid.layoutEngine.options.rightToLeft?"right":"left",u=e.gLI_(),c=u.viewport,l=this,s=c.height,h=c.width;if(n===R){var d,p,g;i={outerDivCssClass:"gc-viewport",outerDivStyle:(d={position:L,top:c.top},r(d,o,c.left),r(d,"height",s),r(d,"width",h),r(d,"overflow",O),d),innerDivStyle:(p={position:I},r(p,o,0),r(p,"top",0),r(p,"height",s),r(p,"width",h),p),innerDivTranslate:{left:0,top:-t.offsetTop||0}},i.renderedRows=f.call(this,(g={top:t.offsetTop},r(g,o,t.offsetLeft),r(g,"height",c.height),r(g,"width",c.width),g)).rows}else{var v,m;i={outerDivCssClass:"gc-mainline",outerDivStyle:(v={position:L,top:c.top},r(v,o,c.left),r(v,"height",s),r(v,"width",h),r(v,"overflow",O),v),innerDivStyle:(m={position:I},r(m,o,0),r(m,"top",0),r(m,"height",s),r(m,"width",h),m)},i.renderedRows=[a.call(l,c)]}return i}function a(t){var e,n=this,r=n.options,i=n.grid.gI_[0],o="onAxis"===r.groupHeaderLocation&&s(i.data),u=2*A,a=r.gutter;return e=r.axisLocation===D?{top:0,left:(t.width-u)/2}:r.axisLocation===H?{top:0,left:0+o?a/2:0}:{top:0,left:t.width-u-(o?a/2:0)},{key:"timeline-line",renderInfo:{cssClass:"timeline-line",style:{left:e.left,top:e.top,height:"100%",position:"absolute"},renderedHTML:"<div></div>"}}}function c(t){var e,n,r,i,o=this,u=o.options,a=2*A;if(u.axisLocation===D){var c=(t.width+a)/2;r=v.call(o,H),e={left:0,top:0,width:c-r.width+1,height:"100%"},i=v.call(o,j);var l=(t.width-a)/2,f=l+i.width;n={left:f-1,top:0,width:t.width-f+1,height:"100%"}}else u.axisLocation===H?(i=v.call(o,j),n=e={left:i.width-1,top:0,width:t.width-i.width,height:"100%"}):(r=v.call(o,H),n=e={left:0,top:0,width:t.width-r.width+1,height:"100%"});return{leftRect:e,rightRect:n}}function l(t,e){var n=this;if(n.hasVScrollBar_)return!0;var r=S.gSS(n.grid),i=r.width,u=o.call(n,t-i,e);return n.cIS_=[],n.grid.layoutEngine.scrollToEnd_=null,n.hasVScrollBar_=u>e,n.grid.layoutEngine.cIC_(),n.hasVScrollBar_}function f(t){var e=this,n=e.grid,r=e.grid.gI_,i=n.data.groupDescriptors,o=Array.isArray(i)?i:[i];if(!r||0===r.length||"date"!==n.gCBI_(o[0].field).dataType)throw e.options.localeResource.errorText;for(var u,a,l,f,s,w,_,b=[],T=c.call(e,t),C=t.top,S=C+t.height,E=n.layoutEngine,x=T.leftRect,L=T.rightRect,I="",O=e.options,R=0,M=0,j=0,D=h.call(e),A=function(t){M=j=t,D=h.call(e)},N=0,P=r.length;P>N;N++){var k=r[N];for(y.call(e,k,x,t.width,C,S,Math.max(M,j),b,A),f=E.gIGRI_(k,{width:x.width},m.bind(e)),u=0,a=f.length;a>u;u++)if(l=v.call(e,D),s=f[u],w=s.renderInfo.style,I=l.shape,I+=s.renderInfo.renderedHTML,s.renderInfo.renderedHTML=I,R=O.intervalDistance?O.intervalDistance:0,R+=w.height,D===H?(g(M,M+R,C,S)&&(p(w,x.left,M,x.width),b.push(s)),M+=R):(g(j,j+R,C,S)&&(p(w,L.left,j,L.width),b.push(s)),j+=R),D=d.call(e,D),M>S&&j>S){_=!0;break}if(_)break}return N===r.length&&(n.layoutEngine.scrollToEnd_=!0),{rows:b,height:Math.max(M,j)}}function s(t){var e=t.groupDescriptor.header;return e&&e.visible&&e.template}function h(){var t=this.options.axisLocation;return t===H?j:t===D?H:H}function d(t){var e=this.options.axisLocation;return e===D?t===H?j:H:t}function p(t,e,n,r){t.left=e,t.top=n,t.width=r}function g(t,e,n,r){return e>n&&r>t}function v(t){var e,n=this,r=t===j,i=n.options.gutter,o=n.grid.gI_[0],u=s(o.data),a=u?"-header":"";return e=r?'<div class="timeline-leftshape'+a+'" style="float:left;"></div>':'<div class="timeline-rightshape'+a+'" style="float:right;"></div>',{shape:e,width:i}}function m(){return{cssClass:"timeline-event",ownerCssClass:"timeline-grouping",location:{top:0}}}function y(t,e,n,r,i,o,u,a){var c=this,l=c.grid,f=t.data,h=l.layoutEngine.gGHH_(f),d=c.options.groupHeaderLocation,p=c.options.axisLocation;if(s(f)){var v=h;if(v+=c.options.intervalDistance?c.options.intervalDistance:0,g(o,o+v,r,i)){var m=l.layoutEngine.gGHr_(t.path,n,o);if("onAxis"===d){var y=m.row.renderInfo.style;p===H?(y.left=0,y.width=n-e.width):p===D?(y.left=e.width,y.width=n-2*e.width):(y.left=e.width,y.width=n-e.width)}u.push(m.row)}"onAxis"!==d&&(o+=v,a&&a(o))}}function w(t,e){var n=t,r=n.layoutEngine.gS_;if(e.preventDefault(),r.sSP_(R)){var i=e.deltaY;0!==i&&n.sSPO_(R,{top:n.gSO_(R).top+i})}}function _(t,e){var n=t,r=t.layoutEngine,i=void 0;if(r.hTI_=r.hT_(e),i=r.hTI_,i&&i.area===R){var o=void 0,u=i.groupInfo;o=i.groupInfo&&"groupContent"===i.groupInfo.area?n.gGI_(u.path).data.getItem(u.row,!0):n.data.getItem(i.row,!0),n.rowClick.raise(n,{event:e,hitInfo:i,item:o,idList:x.getIdList(n,i)})}}function b(t,e){return e.left>=t.left&&e.top>=t.top&&e.left<=t.left+t.width&&e.top<=t.top+t.height}function T(t,e,n,r){var i=S.offset(n),o=S.offset(r),u=i.left-o.left,a=i.top-o.top;return t>=u&&t<=u+n.clientWidth&&e>=a&&e<=a+n.clientHeight}n(1);var C=n(5),S=n(7),E=n(8),x=n(9),L="absolute",I="relative",O="hidden",R="viewport",M="mainline",H="left",j="right",D="middle",A=2,N=function(t){var e=this;e.name="TimelineGrouping",e.className="timeline-grouping";var n=e.getDefaultOptions_();n.localeResource=C.defaultsDeep(E.getResource(n.localeResource)||{},n.localeResource),e.options=C.defaultsDeep(t||{},n),e.l_=null};N.prototype={init_:function(t){var n=this;n.grid=t,e.call(n)},rE_:function(){var t=this,e=t.grid;e.omw_.addHandler(w),e.onMouseClick_.addHandler(_,t)},uRE_:function(){var t=this,e=t.grid;e.omw_.removeHandler(w),e.onMouseClick_.removeHandler(_,t)},getDefaultOptions_:function(){return{axisLocation:D,gutter:13,intervalDistance:15,groupHeaderLocation:"top",localeResource:{errorText:"Calendar and Timeline grouping layouts require a single grouping on a Date field."}}},gLI_:function(){var t=this;return t.l_||(t.l_={mainline:i.call(t),viewport:i.call(t)})},gRRI_:function(t,e){return t},gRR_:function(t){if(t.area!==M){var e=this,n=u.call(e,t);return{top:-t.offsetTop||0,left:0,renderedRows:n.renderedRows}}},gRI_:function(t){return u.call(this,t)},sSP_:function(t){return!0},iGIH_:function(){},gSPRI_:function(t){if(t!==M){var e=this,n=e.gLI_().viewport,i=n.contentHeight>n.height,o=S.gSS(e.grid),u=n.height,a=n.width+(i?o.width:0),c=n.contentHeight,l=(n.contentWidth,[]);i&&l.push("scroll-top");var f=[],s=((o.height||15)+1,(o.width||15)+1);return C.each(l,function(t){var i;f.push({isVertical:!0,outerDivCssClass:"gc-grid-viewport-scroll-panel "+t,outerDivStyle:(i={position:"absolute",top:n.top},r(i,e.grid.options.rightToLeft?"right":"left",n.left+a-s),r(i,"height",u),r(i,"width",s),r(i,"overflow","auto"),i),innerDivStyle:{position:"relative",height:c,width:1}})}),f}},gGID_:function(){return C.defaultsDeep(this.options.defaultGroupingInfo||{},{header:{visible:!1},footer:{visible:!1}})},sFn2_:function(t){var e=this,n=e.grid;n.sRP_(R)},sSL_:function(t){var e=this,n=e.grid,r=n.layoutEngine.options,i=n.gSO_(R).top,o=e.gLI_().viewport,u=o.contentHeight-o.height,a="up"===t.scrollDirection||"down"===t.scrollDirection,c=50>u-i&&a;return r.loadOnDemand?c:r.autoRowHeight?c&&!n.layoutEngine.scrollToEnd_:void 0},iLFn_:function(){var t=this.grid;t.invalidate()},sLI_:function(){var t=this,e=t.grid.layoutEngine;return e.options.autoRowHeight||e.loadOnDemand},hT_:function(t){var e,n,r,i,o,u,a,c,l=this,f=l.grid,s=t.pageX,h=t.pageY,d=l.gLI_(),p=f.gCI_().contentRect,g=s-p.left,v=h-p.top,m=d.viewport,y={left:g,top:v},w=document.getElementById(f.uid+"-viewport");if(b(m,y)){if(o=f.gI_,!o||0===o.length)return null;for(e=0,r=o.length;r>e;e++){if(u=o[e],a=f.uid+"-gh"+u.path.join("_"),c=document.getElementById(a),c&&T(g,v,c,w))return{area:"viewport",row:-1,column:-1,groupInfo:{area:"groupHeader",path:u.path,row:-1}};for(n=0,i=u.data.itemCount;i>n;n++)if(a=l.grid.uid+"-gr"+u.path.join("_")+"-r"+n,c=document.getElementById(a),c&&T(g,v,c,w))return{area:"viewport",row:-1,column:-1,groupInfo:{area:"groupContent",path:u.path,row:n}}}return{area:"viewport",row:-1,column:-1}}},toJSON_:function(){var t=this,e=t.options,n=t.getDefaultOptions_(),r={};r.name=t.name;var i={};return C.each(e,function(t,e){C.isEqual(t,n[e])||C.isNil(t)||(E.isObject(t)?i[e]=E.serializeObject(E.extractObject(t,n[e])):i[e]=t)}),C.isEmpty(i)||(r.options=i),r},d_:function(){var t=this;t.uRE_(),t.grid=null},cRC_:function(){var t=this,n=t.grid;n.scrollToRefresh_||e.call(t),t.l_=null,t.scrollableHeight_=0}},t.exports=N}()},function(t,e){},,,,function(t,e,n){(function(t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};(function(){function i(t,e){return t.set(e[0],e[1]),t}function o(t,e){return t.add(e),t}function u(t,e,n){var r=n.length;switch(r){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function a(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function c(t,e){for(var n=t?t.length:0;n--&&e(t[n],n,t)!==!1;);return t}function l(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(!e(t[n],n,t))return!1;return!0}function f(t,e){for(var n=-1,r=t?t.length:0,i=0,o=[];++n<r;){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o}function s(t,e){var n=t?t.length:0;return!!n&&y(t,e,0)>-1}function h(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function d(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function p(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function g(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function v(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function y(t,e,n){if(e!==e)return R(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function w(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function _(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function b(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function T(t){return function(e){return t(e)}}function C(t,e){return d(e,function(e){return t[e]})}function S(t,e){return t.has(e)}function E(t,e){for(var n=-1,r=t.length;++n<r&&y(e,t[n],0)>-1;);return n}function x(t,e){for(var n=t.length;n--&&y(e,t[n],0)>-1;);return n}function L(t){return t&&t.Object===Object?t:null}function I(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function O(t,e){return null==t?Br:t[e]}function R(t,e,n){for(var r=t.length,i=e+(n?1:-1);n?i--:++i<r;){var o=t[i];if(o!==o)return i}return-1}function M(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function H(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function j(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function D(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n];u!==e&&u!==Xr||(t[n]=Xr,o[i++]=n)}return o}function A(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function N(t){return t.match(mo)}function P(){}function k(){}function F(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=si,this.__views__=[]}function W(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function B(){this.__data__=iu?iu(null):{}}function G(t){return this.has(t)&&delete this.__data__[t]}function U(t){var e=this.__data__;if(iu){var n=e[t];return n===Yr?Br:n}return jo.call(e,t)?e[t]:Br}function V(t){var e=this.__data__;return iu?e[t]!==Br:jo.call(e,t)}function Y(t,e){var n=this.__data__;return n[t]=iu&&e===Br?Yr:e,this}function X(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function z(){this.__data__=[]}function $(t){var e=this.__data__,n=vt(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():Xo.call(e,n,1),!0}function q(t){var e=this.__data__,n=vt(e,t);return 0>n?Br:e[n][1]}function K(t){return vt(this.__data__,t)>-1}function J(t,e){var n=this.__data__,r=vt(n,t);return 0>r?n.push([t,e]):n[r][1]=e,this}function Z(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Q(){this.__data__={hash:new W,map:new(tu||X),string:new W}}function tt(t){return Ye(this,t)["delete"](t)}function et(t){return Ye(this,t).get(t)}function nt(t){return Ye(this,t).has(t)}function rt(t,e){return Ye(this,t).set(t,e),this}function it(t){var e=-1,n=t?t.length:0;for(this.__data__=new Z;++e<n;)this.add(t[e])}function ot(t){return this.__data__.set(t,Yr),this}function ut(t){return this.__data__.has(t)}function at(t){this.__data__=new X(t)}function ct(){this.__data__=new X}function lt(t){return this.__data__["delete"](t)}function ft(t){return this.__data__.get(t)}function st(t){return this.__data__.has(t)}function ht(t,e){var n=this.__data__;return n instanceof X&&n.__data__.length==Ur&&(n=this.__data__=new Z(n.__data__)),n.set(t,e),this}function dt(t,e,n,r){return t===Br||$n(t,Oo[n])&&!jo.call(r,n)?e:t}function pt(t,e,n){(n===Br||$n(t[e],n))&&("number"!=typeof e||n!==Br||e in t)||(t[e]=n)}function gt(t,e,n){var r=t[e];jo.call(t,e)&&$n(r,n)&&(n!==Br||e in t)||(t[e]=n)}function vt(t,e){for(var n=t.length;n--;)if($n(t[n][0],e))return n;return-1}function mt(t,e){return t&&Se(e,Sr(e),t)}function yt(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n<i;)o[n]=r?Br:Tr(t,e[n]);return o}function wt(t,e,n){return t===t&&(n!==Br&&(t=n>=t?t:n),e!==Br&&(t=t>=e?t:e)),t}function _t(t,e,n,r,i,o,u){var c;if(r&&(c=o?r(t,i,o,u):r(t)),c!==Br)return c;if(!or(t))return t;var l=Pu(t);if(l){if(c=Ze(t),!e)return Ce(t,c)}else{var f=Ke(t),s=f==wi||f==_i;if(ku(t))return se(t,e);if(f==Ci||f==pi||s&&!o){if(M(t))return o?t:{};if(c=Qe(s?{}:t),!e)return Ee(t,mt(c,t))}else{if(!wo[f])return o?t:{};c=tn(t,f,_t,e)}}u||(u=new at);var h=u.get(t);if(h)return h;if(u.set(t,c),!l)var d=n?Be(t):Sr(t);return a(d||t,function(i,o){d&&(o=i,i=t[o]),gt(c,o,_t(i,e,n,r,o,t,u))}),c}function bt(t){return or(t)?Vo(t):{}}function Tt(t,e,n,r){var i=-1,o=s,u=!0,a=t.length,c=[],l=e.length;if(!a)return c;n&&(e=d(e,T(n))),r?(o=h,u=!1):e.length>=Ur&&(o=S,u=!1,e=new it(e));t:for(;++i<a;){var f=t[i],p=n?n(f):f;if(f=r||0!==f?f:0,u&&p===p){for(var g=l;g--;)if(e[g]===p)continue t;c.push(f)}else o(e,p,r)||c.push(f)}return c}function Ct(t,e){var n=!0;return vu(t,function(t,r,i){return n=!!e(t,r,i)}),n}function St(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=e(o);if(null!=u&&(a===Br?u===u&&!dr(u):n(u,a)))var a=u,c=o}return c}function Et(t,e,n,r){var i=t.length;for(n=mr(n),0>n&&(n=-n>i?0:i+n),r=r===Br||r>i?i:mr(r),0>r&&(r+=i),r=n>r?0:yr(r);r>n;)t[n++]=e;return t}function xt(t,e){var n=[];return vu(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Lt(t,e,n,r,i){var o=-1,u=t.length;for(n||(n=nn),i||(i=[]);++o<u;){var a=t[o];e>0&&n(a)?e>1?Lt(a,e-1,n,r,i):p(i,a):r||(i[i.length]=a)}return i}function It(t,e){return t&&yu(t,e,Sr)}function Ot(t,e){return t&&wu(t,e,Sr)}function Rt(t,e){e=an(e,t)?[e]:le(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[yn(e[n++])];return n&&n==r?t:Br}function Mt(t,e,n){var r=e(t);return Pu(t)?r:p(r,n(t))}function Ht(t,e){return t>e}function jt(t,e){return null!=t&&(jo.call(t,e)||"object"==("undefined"==typeof t?"undefined":r(t))&&e in t&&null===$e(t))}function Dt(t,e){return null!=t&&e in Object(t)}function At(t,e,n){for(var r=n?h:s,i=t[0].length,o=t.length,u=o,a=Array(o),c=1/0,l=[];u--;){var f=t[u];u&&e&&(f=d(f,T(e))),c=Zo(f.length,c),a[u]=!n&&(e||i>=120&&f.length>=120)?new it(u&&f):Br}f=t[0];var p=-1,g=a[0];t:for(;++p<i&&l.length<c;){var v=f[p],m=e?e(v):v;if(v=n||0!==v?v:0,!(g?S(g,m):r(l,m,n))){for(u=o;--u;){var y=a[u];if(!(y?S(y,m):r(t[u],m,n)))continue t}g&&g.push(m),l.push(v)}}return l}function Nt(t,e,n,r,i){return t===e?!0:null==t||null==e||!or(t)&&!ur(e)?t!==t&&e!==e:Pt(t,e,Nt,n,r,i)}function Pt(t,e,n,r,i,o){var u=Pu(t),a=Pu(e),c=gi,l=gi;u||(c=Ke(t),c=c==pi?Ci:c),a||(l=Ke(e),l=l==pi?Ci:l);var f=c==Ci&&!M(t),s=l==Ci&&!M(e),h=c==l;if(h&&!f)return o||(o=new at),u||pr(t)?ke(t,e,n,r,i,o):Fe(t,e,c,n,r,i,o);if(!(i&ii)){var d=f&&jo.call(t,"__wrapped__"),p=s&&jo.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,v=p?e.value():e;return o||(o=new at),n(g,v,r,i,o)}}return h?(o||(o=new at),We(t,e,n,r,i,o)):!1}function kt(t,e,n,r){var i=n.length,o=i,u=!r;if(null==t)return!o;for(t=Object(t);i--;){var a=n[i];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var c=a[0],l=t[c],f=a[1];if(u&&a[2]){if(l===Br&&!(c in t))return!1}else{var s=new at;if(r)var h=r(l,f,c,t,e,s);if(!(h===Br?Nt(f,l,r,ri|ii,s):h))return!1}}return!0}function Ft(t){if(!or(t)||fn(t))return!1;var e=rr(t)||M(t)?Po:Ki;return e.test(wn(t))}function Wt(t){return"function"==typeof t?t:null==t?Mr:"object"==("undefined"==typeof t?"undefined":r(t))?Pu(t)?Xt(t[0],t[1]):Yt(t):Ar(t)}function Bt(t){return Ko(Object(t))}function Gt(t){t=null==t?t:Object(t);var e=[];for(var n in t)e.push(n);return e}function Ut(t,e){return e>t}function Vt(t,e){var n=-1,r=Kn(t)?Array(t.length):[];return vu(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Yt(t){var e=Xe(t);return 1==e.length&&e[0][2]?dn(e[0][0],e[0][1]):function(n){return n===t||kt(n,t,e)}}function Xt(t,e){return an(t)&&hn(e)?dn(yn(t),e):function(n){var r=Tr(n,t);return r===Br&&r===e?Cr(n,t):Nt(e,r,Br,ri|ii)}}function zt(t,e,n,r,i){if(t!==e){if(!Pu(e)&&!pr(e))var o=Er(e);a(o||e,function(u,a){if(o&&(a=u,u=e[a]),or(u))i||(i=new at),$t(t,e,a,n,zt,r,i);else{var c=r?r(t[a],u,a+"",t,e,i):Br;c===Br&&(c=u),pt(t,a,c)}})}}function $t(t,e,n,r,i,o,u){var a=t[n],c=e[n],l=u.get(c);if(l)return void pt(t,n,l);var f=o?o(a,c,n+"",t,e,u):Br,s=f===Br;s&&(f=c,Pu(c)||pr(c)?Pu(a)?f=a:Jn(a)?f=Ce(a):(s=!1,f=_t(c,!0)):sr(c)||qn(c)?qn(a)?f=_r(a):!or(a)||r&&rr(a)?(s=!1,f=_t(c,!0)):f=a:s=!1),u.set(c,f),s&&i(f,c,r,o,u),u["delete"](c),pt(t,n,f)}function qt(t,e,n){var r=-1;e=d(e.length?e:[Mr],T(Ve()));var i=Vt(t,function(t,n,i){var o=d(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return _(i,function(t,e){return _e(t,e,n)})}function Kt(t,e){return t=Object(t),g(e,function(e,n){return n in t&&(e[n]=t[n]),e},{})}function Jt(t){return function(e){return null==e?Br:e[t]}}function Zt(t){return function(e){return Rt(e,t)}}function Qt(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;if(on(i))Xo.call(t,i,1);else if(an(i,t))delete t[yn(i)];else{var u=le(i),a=vn(t,u);null!=a&&delete a[yn(Sn(u))]}}}return t}function te(t,e,n,r){e=an(e,t)?[e]:le(e);for(var i=-1,o=e.length,u=o-1,a=t;null!=a&&++i<o;){var c=yn(e[i]);if(or(a)){var l=n;if(i!=u){var f=a[c];l=r?r(f,c,a):Br,l===Br&&(l=null==f?on(e[i+1])?[]:{}:f)}gt(a,c,l)}a=a[c]}return t}function ee(t,e,n){var r=-1,i=t.length;0>e&&(e=-e>i?0:i+e),n=n>i?i:n,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function ne(t,e){var n;return vu(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function re(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&di>=i){for(;i>r;){var o=r+i>>>1,u=t[o];null!==u&&!dr(u)&&(n?e>=u:e>u)?r=o+1:i=o}return i}return ie(t,e,Mr,n)}function ie(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,u=e!==e,a=null===e,c=dr(e),l=e===Br;o>i;){var f=zo((i+o)/2),s=n(t[f]),h=s!==Br,d=null===s,p=s===s,g=dr(s);if(u)var v=r||p;else v=l?p&&(r||h):a?p&&h&&(r||!d):c?p&&h&&!d&&(r||!g):d||g?!1:r?e>=s:e>s;v?i=f+1:o=f}return Zo(o,hi)}function oe(t){if("string"==typeof t)return t;if(dr(t))return gu?gu.call(t):"";var e=t+"";return"0"==e&&1/t==-ai?"-0":e}function ue(t,e,n){var r=-1,i=s,o=t.length,u=!0,a=[],c=a;if(n)u=!1,i=h;else if(o>=Ur){var l=e?null:bu(t);if(l)return A(l);u=!1,i=S,c=new it}else c=e?[]:a;t:for(;++r<o;){var f=t[r],d=e?e(f):f;if(f=n||0!==f?f:0,u&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue t;e&&c.push(d),a.push(f)}else i(c,d,n)||(c!==a&&c.push(d),a.push(f))}return a}function ae(t,e,n){for(var r=-1,i=t.length,o=e.length,u={};++r<i;){var a=o>r?e[r]:Br;n(u,t[r],a)}return u}function ce(t){return Jn(t)?t:[]}function le(t){return Pu(t)?t:Eu(t)}function fe(t,e,n){var r=t.length;return n=n===Br?r:n,!e&&n>=r?t:ee(t,e,n)}function se(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function he(t){var e=new t.constructor(t.byteLength);return new Bo(e).set(new Bo(t)),e}function de(t,e){var n=e?he(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function pe(t,e,n){var r=e?n(j(t),!0):j(t);return g(r,i,new t.constructor)}function ge(t){var e=new t.constructor(t.source,zi.exec(t));return e.lastIndex=t.lastIndex,e}function ve(t,e,n){var r=e?n(A(t),!0):A(t);return g(r,o,new t.constructor)}function me(t){return pu?Object(pu.call(t)):{}}function ye(t,e){var n=e?he(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function we(t,e){if(t!==e){var n=t!==Br,r=null===t,i=t===t,o=dr(t),u=e!==Br,a=null===e,c=e===e,l=dr(e);if(!a&&!l&&!o&&t>e||o&&u&&c&&!a&&!l||r&&u&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e>t||l&&n&&i&&!r&&!o||a&&n&&i||!u&&i||!c)return-1}return 0}function _e(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;++r<u;){var c=we(i[r],o[r]);if(c){if(r>=a)return c;var l=n[r];return c*("desc"==l?-1:1)}}return t.index-e.index}function be(t,e,n,r){for(var i=-1,o=t.length,u=n.length,a=-1,c=e.length,l=Jo(o-u,0),f=Array(c+l),s=!r;++a<c;)f[a]=e[a];for(;++i<u;)(s||o>i)&&(f[n[i]]=t[i]);for(;l--;)f[a++]=t[i++];return f}function Te(t,e,n,r){for(var i=-1,o=t.length,u=-1,a=n.length,c=-1,l=e.length,f=Jo(o-a,0),s=Array(f+l),h=!r;++i<f;)s[i]=t[i];for(var d=i;++c<l;)s[d+c]=e[c];for(;++u<a;)(h||o>i)&&(s[d+n[u]]=t[i++]);return s}function Ce(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Se(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var u=e[i],a=r?r(n[u],t[u],u,n,t):t[u];gt(n,u,a)}return n}function Ee(t,e){return Se(t,qe(t),e)}function xe(t){return Vn(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:Br,u=i>2?n[2]:Br;for(o=t.length>3&&"function"==typeof o?(i--,o):Br,u&&un(n[0],n[1],u)&&(o=3>i?Br:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}function Le(t,e){return function(n,r){if(null==n)return n;if(!Kn(n))return t(n,r);for(var i=n.length,o=e?i:-1,u=Object(n);(e?o--:++o<i)&&r(u[o],o,u)!==!1;);return n}}function Ie(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++i];if(n(o[c],c,o)===!1)break}return e}}function Oe(t,e,n){function r(){var e=this&&this!==Lo&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&zr,o=Re(t);return r}function Re(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=bt(t.prototype),r=t.apply(n,e);return or(r)?r:n}}function Me(t,e,n){function r(){for(var o=arguments.length,a=Array(o),c=o,l=Ue(r);c--;)a[c]=arguments[c];var f=3>o&&a[0]!==l&&a[o-1]!==l?[]:D(a,l);if(o-=f.length,n>o)return Ne(t,e,je,r.placeholder,Br,a,f,Br,Br,n-o);var s=this&&this!==Lo&&this instanceof r?i:t;return u(s,this,a)}var i=Re(t);return r}function He(t){return function(e,n,r){var i=Object(e);if(n=Ve(n,3),!Kn(e))var o=Sr(e);var u=t(o||e,function(t,e){return o&&(e=t,t=i[e]),n(t,e,i)},r);return u>-1?e[o?o[u]:u]:Br}}function je(t,e,n,r,i,o,u,a,c,l){function f(){for(var m=arguments.length,y=Array(m),w=m;w--;)y[w]=arguments[w];if(p)var _=Ue(f),b=I(y,_);if(r&&(y=be(y,r,i,p)),o&&(y=Te(y,o,u,p)),m-=b,p&&l>m){var T=D(y,_);return Ne(t,e,je,f.placeholder,n,y,T,a,c,l-m)}var C=h?n:this,S=d?C[t]:t;return m=y.length,a?y=mn(y,a):g&&m>1&&y.reverse(),s&&m>c&&(y.length=c),this&&this!==Lo&&this instanceof f&&(S=v||Re(S)),S.apply(C,y)}var s=e&ti,h=e&zr,d=e&$r,p=e&(Kr|Jr),g=e&ni,v=d?Br:Re(t);return f}function De(t,e,n,r){function i(){for(var e=-1,c=arguments.length,l=-1,f=r.length,s=Array(f+c),h=this&&this!==Lo&&this instanceof i?a:t;++l<f;)s[l]=r[l];for(;c--;)s[l++]=arguments[++e];return u(h,o?n:this,s)}var o=e&zr,a=Re(t);return i}function Ae(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=wr(e),n=wr(n)),t(e,n)}}function Ne(t,e,n,r,i,o,u,a,c,l){var f=e&Kr,s=f?u:Br,h=f?Br:u,d=f?o:Br,p=f?Br:o;e|=f?Zr:Qr,e&=~(f?Qr:Zr),e&qr||(e&=~(zr|$r));var g=[t,e,i,d,s,p,h,a,c,l],v=n.apply(Br,g);return ln(t)&&Su(v,g),v.placeholder=r,v}function Pe(t,e,n,r,i,o,u,a){var c=e&$r;if(!c&&"function"!=typeof t)throw new TypeError(Vr);var l=r?r.length:0;if(l||(e&=~(Zr|Qr),r=i=Br),u=u===Br?u:Jo(mr(u),0),a=a===Br?a:mr(a),l-=i?i.length:0,e&Qr){var f=r,s=i;r=i=Br}var h=c?Br:Tu(t),d=[t,e,n,r,i,f,s,o,u,a];if(h&&pn(d,h),t=d[0],e=d[1],n=d[2],r=d[3],i=d[4],a=d[9]=null==d[9]?c?0:t.length:Jo(d[9]-l,0),!a&&e&(Kr|Jr)&&(e&=~(Kr|Jr)),e&&e!=zr)p=e==Kr||e==Jr?Me(t,e,a):e!=Zr&&e!=(zr|Zr)||i.length?je.apply(Br,d):De(t,e,n,r);else var p=Oe(t,e,n);var g=h?_u:Su;return g(p,d)}function ke(t,e,n,r,i,o){var u=i&ii,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var l=o.get(t);if(l)return l==e;var f=-1,s=!0,h=i&ri?new it:Br;for(o.set(t,e);++f<a;){var d=t[f],p=e[f];if(r)var g=u?r(p,d,f,e,t,o):r(d,p,f,t,e,o);if(g!==Br){if(g)continue;s=!1;break}if(h){if(!v(e,function(t,e){return h.has(e)||d!==t&&!n(d,t,r,i,o)?void 0:h.add(e)})){s=!1;break}}else if(d!==p&&!n(d,p,r,i,o)){s=!1;break}}return o["delete"](t),s}function Fe(t,e,n,r,i,o,u){switch(n){case Mi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ri:return!(t.byteLength!=e.byteLength||!r(new Bo(t),new Bo(e)));case vi:case mi:return+t==+e;case yi:return t.name==e.name&&t.message==e.message;case Ti:return t!=+t?e!=+e:t==+e;case Ei:case Li:return t==e+"";case bi:var a=j;case xi:var c=o&ii;if(a||(a=A),t.size!=e.size&&!c)return!1;var l=u.get(t);return l?l==e:(o|=ri,u.set(t,e),ke(a(t),a(e),r,i,o,u));case Ii:if(pu)return pu.call(t)==pu.call(e)}return!1}function We(t,e,n,r,i,o){var u=i&ii,a=Sr(t),c=a.length,l=Sr(e),f=l.length;if(c!=f&&!u)return!1;for(var s=c;s--;){var h=a[s];if(!(u?h in e:jt(e,h)))return!1}var d=o.get(t);if(d)return d==e;var p=!0;o.set(t,e);for(var g=u;++s<c;){h=a[s];var v=t[h],m=e[h];if(r)var y=u?r(m,v,h,e,t,o):r(v,m,h,t,e,o);if(!(y===Br?v===m||n(v,m,r,i,o):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return o["delete"](t),p}function Be(t){return Mt(t,Sr,qe)}function Ge(t){for(var e=t.name+"",n=au[e],r=jo.call(au,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Ue(t){var e=jo.call(P,"placeholder")?P:t;return e.placeholder}function Ve(){var t=P.iteratee||Hr;return t=t===Hr?Wt:t,arguments.length?t(arguments[0],arguments[1]):t}function Ye(t,e){var n=t.__data__;return cn(e)?n["string"==typeof e?"string":"hash"]:n.map}function Xe(t){for(var e=Sr(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,hn(i)]}return e}function ze(t,e){var n=O(t,e);return Ft(n)?n:Br}function $e(t){return $o(Object(t))}function qe(t){return Uo(Object(t))}function Ke(t){return No.call(t)}function Je(t,e,n){e=an(e,t)?[e]:le(e);for(var r,i=-1,o=e.length;++i<o;){var u=yn(e[i]);if(!(r=null!=t&&n(t,u)))break;t=t[u]}if(r)return r;var o=t?t.length:0;return!!o&&ir(o)&&on(u,o)&&(Pu(t)||hr(t)||qn(t))}function Ze(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&jo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Qe(t){return"function"!=typeof t.constructor||sn(t)?{}:bt($e(t))}function tn(t,e,n,r){var i=t.constructor;switch(e){case Ri:return he(t);case vi:case mi:return new i(+t);case Mi:return de(t,r);case Hi:case ji:case Di:case Ai:case Ni:case Pi:case ki:case Fi:case Wi:return ye(t,r);case bi:return pe(t,r,n);case Ti:case Li:return new i(t);case Ei:return ge(t);case xi:return ve(t,r,n);case Ii:return me(t)}}function en(t){var e=t?t.length:Br;return ir(e)&&(Pu(t)||hr(t)||qn(t))?b(e,String):null}function nn(t){return Pu(t)||qn(t)}function rn(t){return Pu(t)&&!(2==t.length&&!rr(t[0]))}function on(t,e){return e=null==e?ci:e,!!e&&("number"==typeof t||Zi.test(t))&&t>-1&&t%1==0&&e>t}function un(t,e,n){if(!or(n))return!1;var i="undefined"==typeof e?"undefined":r(e);return("number"==i?Kn(n)&&on(e,n.length):"string"==i&&e in n)?$n(n[e],t):!1}function an(t,e){if(Pu(t))return!1;var n="undefined"==typeof t?"undefined":r(t);return"number"==n||"symbol"==n||"boolean"==n||null==t||dr(t)?!0:Gi.test(t)||!Bi.test(t)||null!=e&&t in Object(e)}function cn(t){var e="undefined"==typeof t?"undefined":r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function ln(t){var e=Ge(t),n=P[e];if("function"!=typeof n||!(e in F.prototype))return!1;if(t===n)return!0;var r=Tu(n);return!!r&&t===r[0]}function fn(t){return!!Mo&&Mo in t}function sn(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Oo;return t===n}function hn(t){return t===t&&!or(t)}function dn(t,e){return function(n){return null==n?!1:n[t]===e&&(e!==Br||t in Object(n))}}function pn(t,e){var n=t[1],r=e[1],i=n|r,o=(zr|$r|ti)>i,u=r==ti&&n==Kr||r==ti&&n==ei&&t[7].length<=e[8]||r==(ti|ei)&&e[7].length<=e[8]&&n==Kr;if(!o&&!u)return t;r&zr&&(t[2]=e[2],i|=n&zr?0:qr);var a=e[3];if(a){var c=t[3];t[3]=c?be(c,a,e[4]):a,t[4]=c?D(t[3],Xr):e[4]}return a=e[5],a&&(c=t[5],t[5]=c?Te(c,a,e[6]):a,t[6]=c?D(t[5],Xr):e[6]),a=e[7],a&&(t[7]=a),r&ti&&(t[8]=null==t[8]?e[8]:Zo(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function gn(t,e,n,r,i,o){return or(t)&&or(e)&&zt(t,e,Br,gn,o.set(e,t)),t}function vn(t,e){return 1==e.length?t:Rt(t,ee(e,0,-1))}function mn(t,e){for(var n=t.length,r=Zo(e.length,n),i=Ce(t);r--;){var o=e[r];t[r]=on(o,n)?i[o]:Br}return t}function yn(t){if("string"==typeof t||dr(t))return t;var e=t+"";return"0"==e&&1/t==-ai?"-0":e}function wn(t){if(null!=t){try{return Ho.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function _n(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function bn(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&un(t,e,n)&&(n=0,r=i),Et(t,e,n,r)):[]}function Tn(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:mr(n);return 0>i&&(i=Jo(r+i,0)),m(t,Ve(e,3),i)}function Cn(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:mr(n);return 0>i&&(i=Jo(r+i,0)),y(t,e,i)}function Sn(t){var e=t?t.length:0;return e?t[e-1]:Br}function En(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Ve(e,3);++r<o;){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return Qt(t,i),n}function xn(t,e){return re(t,e)}function Ln(t,e,n){return ie(t,e,Ve(n))}function In(t,e,n){return t&&t.length?(e=n||e===Br?1:mr(e),ee(t,0,0>e?0:e)):[]}function On(t){
  14. return t&&t.length?ue(t):[]}function Rn(t,e){return ae(t||[],e||[],gt)}function Mn(t,e,n){var r=Pu(t)?l:Ct;return n&&un(t,e,n)&&(e=Br),r(t,Ve(e,3))}function Hn(t,e){var n=Pu(t)?f:xt;return n(t,Ve(e,3))}function jn(t,e){var n=Pu(t)?a:vu;return n(t,Ve(e,3))}function Dn(t,e){var n=Pu(t)?c:mu;return n(t,Ve(e,3))}function An(t,e,n,r){t=Kn(t)?t:Ir(t),n=n&&!r?mr(n):0;var i=t.length;return 0>n&&(n=Jo(i+n,0)),hr(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&y(t,e,n)>-1}function Nn(t,e){var n=Pu(t)?d:Vt;return n(t,Ve(e,3))}function Pn(t,e,n){var r=Pu(t)?g:w,i=arguments.length<3;return r(t,Ve(e,4),n,i,vu)}function kn(t,e,n){var r=Pu(t)?v:ne;return n&&un(t,e,n)&&(e=Br),r(t,Ve(e,3))}function Fn(){return Date.now()}function Wn(t,e,n){e=n?Br:e;var r=Pe(t,Kr,Br,Br,Br,Br,Br,e);return r.placeholder=Wn.placeholder,r}function Bn(t,e,n){e=n?Br:e;var r=Pe(t,Jr,Br,Br,Br,Br,Br,e);return r.placeholder=Bn.placeholder,r}function Gn(t,e,n){function r(e){var n=h,r=d;return h=d=Br,y=e,g=t.apply(r,n)}function i(t){return y=t,v=setTimeout(a,e),w?r(t):g}function o(t){var n=t-m,r=t-y,i=e-n;return _?Zo(i,p-r):i}function u(t){var n=t-m,r=t-y;return m===Br||n>=e||0>n||_&&r>=p}function a(){var t=Fn();return u(t)?c(t):void(v=setTimeout(a,o(t)))}function c(t){return v=Br,b&&h?r(t):(h=d=Br,g)}function l(){y=0,h=m=d=v=Br}function f(){return v===Br?g:c(Fn())}function s(){var t=Fn(),n=u(t);if(h=arguments,d=this,m=t,n){if(v===Br)return i(m);if(_)return v=setTimeout(a,e),r(m)}return v===Br&&(v=setTimeout(a,e)),g}var h,d,p,g,v,m,y=0,w=!1,_=!1,b=!0;if("function"!=typeof t)throw new TypeError(Vr);return e=wr(e)||0,or(n)&&(w=!!n.leading,_="maxWait"in n,p=_?Jo(wr(n.maxWait)||0,e):p,b="trailing"in n?!!n.trailing:b),s.cancel=l,s.flush=f,s}function Un(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Vr);var n=function r(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,n);return r.cache=o.set(i,u),u};return n.cache=new(Un.Cache||Z),n}function Vn(t,e){if("function"!=typeof t)throw new TypeError(Vr);return e=Jo(e===Br?t.length-1:mr(e),0),function(){for(var n=arguments,r=-1,i=Jo(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];switch(e){case 0:return t.call(this,o);case 1:return t.call(this,n[0],o);case 2:return t.call(this,n[0],n[1],o)}var a=Array(e+1);for(r=-1;++r<e;)a[r]=n[r];return a[e]=o,u(t,this,a)}}function Yn(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError(Vr);return or(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Gn(t,e,{leading:r,maxWait:e,trailing:i})}function Xn(t){return _t(t,!1,!0)}function zn(t){return _t(t,!0,!0)}function $n(t,e){return t===e||t!==t&&e!==e}function qn(t){return Jn(t)&&jo.call(t,"callee")&&(!Yo.call(t,"callee")||No.call(t)==pi)}function Kn(t){return null!=t&&ir(Cu(t))&&!rr(t)}function Jn(t){return ur(t)&&Kn(t)}function Zn(t){return t===!0||t===!1||ur(t)&&No.call(t)==vi}function Qn(t){return ur(t)&&No.call(t)==mi}function tr(t){if(Kn(t)&&(Pu(t)||hr(t)||rr(t.splice)||qn(t)||ku(t)))return!t.length;if(ur(t)){var e=Ke(t);if(e==bi||e==xi)return!t.size}for(var n in t)if(jo.call(t,n))return!1;return!(uu&&Sr(t).length)}function er(t,e){return Nt(t,e)}function nr(t){return"number"==typeof t&&qo(t)}function rr(t){var e=or(t)?No.call(t):"";return e==wi||e==_i}function ir(t){return"number"==typeof t&&t>-1&&t%1==0&&ci>=t}function or(t){var e="undefined"==typeof t?"undefined":r(t);return!!t&&("object"==e||"function"==e)}function ur(t){return!!t&&"object"==("undefined"==typeof t?"undefined":r(t))}function ar(t){return fr(t)&&t!=+t}function cr(t){return null===t}function lr(t){return null==t}function fr(t){return"number"==typeof t||ur(t)&&No.call(t)==Ti}function sr(t){if(!ur(t)||No.call(t)!=Ci||M(t))return!1;var e=$e(t);if(null===e)return!0;var n=jo.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ho.call(n)==Ao}function hr(t){return"string"==typeof t||!Pu(t)&&ur(t)&&No.call(t)==Li}function dr(t){return"symbol"==("undefined"==typeof t?"undefined":r(t))||ur(t)&&No.call(t)==Ii}function pr(t){return ur(t)&&ir(t.length)&&!!yo[No.call(t)]}function gr(t){return t===Br}function vr(t){if(!t)return 0===t?t:0;if(t=wr(t),t===ai||t===-ai){var e=0>t?-1:1;return e*li}return t===t?t:0}function mr(t){var e=vr(t),n=e%1;return e===e?n?e-n:e:0}function yr(t){return t?wt(mr(t),0,si):0}function wr(t){if("number"==typeof t)return t;if(dr(t))return fi;if(or(t)){var e=rr(t.valueOf)?t.valueOf():t;t=or(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Yi,"");var n=qi.test(t);return n||Ji.test(t)?_o(t.slice(2),n?2:8):$i.test(t)?fi:+t}function _r(t){return Se(t,Er(t))}function br(t){return null==t?"":oe(t)}function Tr(t,e,n){var r=null==t?Br:Rt(t,e);return r===Br?n:r}function Cr(t,e){return null!=t&&Je(t,e,Dt)}function Sr(t){var e=sn(t);if(!e&&!Kn(t))return Bt(t);var n=en(t),r=!!n,i=n||[],o=i.length;for(var u in t)!jt(t,u)||r&&("length"==u||on(u,o))||e&&"constructor"==u||i.push(u);return i}function Er(t){for(var e=-1,n=sn(t),r=Gt(t),i=r.length,o=en(t),u=!!o,a=o||[],c=a.length;++e<i;){var l=r[e];u&&("length"==l||on(l,c))||"constructor"==l&&(n||!jo.call(t,l))||a.push(l)}return a}function xr(t,e){var n={};return e=Ve(e,3),It(t,function(t,r,i){n[r]=e(t,r,i)}),n}function Lr(t,e,n){return null==t?t:te(t,e,n)}function Ir(t){return t?C(t,Sr(t)):[]}function Or(t,e,n){return t=br(t),n=wt(mr(n),0,t.length),t.lastIndexOf(oe(e),n)==n}function Rr(t,e,n){if(t=br(t),t&&(n||e===Br))return t.replace(Yi,"");if(!t||!(e=oe(e)))return t;var r=N(t),i=N(e),o=E(r,i),u=x(r,i)+1;return fe(r,o,u).join("")}function Mr(t){return t}function Hr(t){return Wt("function"==typeof t?t:_t(t,!0))}function jr(t,e){return Xt(t,_t(e,!0))}function Dr(){}function Ar(t){return an(t)?Jt(yn(t)):Zt(t)}function Nr(){return[]}function Pr(){return!1}function kr(t){var e=++Do;return br(t)+e}function Fr(t){return t&&t.length?St(t,Mr,Ht):Br}function Wr(t){return t&&t.length?St(t,Mr,Ut):Br}var Br,Gr="4.13.1",Ur=200,Vr="Expected a function",Yr="__lodash_hash_undefined__",Xr="__lodash_placeholder__",zr=1,$r=2,qr=4,Kr=8,Jr=16,Zr=32,Qr=64,ti=128,ei=256,ni=512,ri=1,ii=2,oi=150,ui=16,ai=1/0,ci=9007199254740991,li=1.7976931348623157e308,fi=NaN,si=4294967295,hi=si-1,di=si>>>1,pi="[object Arguments]",gi="[object Array]",vi="[object Boolean]",mi="[object Date]",yi="[object Error]",wi="[object Function]",_i="[object GeneratorFunction]",bi="[object Map]",Ti="[object Number]",Ci="[object Object]",Si="[object Promise]",Ei="[object RegExp]",xi="[object Set]",Li="[object String]",Ii="[object Symbol]",Oi="[object WeakMap]",Ri="[object ArrayBuffer]",Mi="[object DataView]",Hi="[object Float32Array]",ji="[object Float64Array]",Di="[object Int8Array]",Ai="[object Int16Array]",Ni="[object Int32Array]",Pi="[object Uint8Array]",ki="[object Uint8ClampedArray]",Fi="[object Uint16Array]",Wi="[object Uint32Array]",Bi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gi=/^\w*$/,Ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,Vi=/[\\^$.*+?()[\]{}|]/g,Yi=/^\s+|\s+$/g,Xi=/\\(\\)?/g,zi=/\w*$/,$i=/^[-+]0x[0-9a-f]+$/i,qi=/^0b[01]+$/i,Ki=/^\[object .+?Constructor\]$/,Ji=/^0o[0-7]+$/i,Zi=/^(?:0|[1-9]\d*)$/,Qi="\\ud800-\\udfff",to="\\u0300-\\u036f\\ufe20-\\ufe23",eo="\\u20d0-\\u20f0",no="\\ufe0e\\ufe0f",ro="["+Qi+"]",io="["+to+eo+"]",oo="\\ud83c[\\udffb-\\udfff]",uo="(?:"+io+"|"+oo+")",ao="[^"+Qi+"]",co="(?:\\ud83c[\\udde6-\\uddff]){2}",lo="[\\ud800-\\udbff][\\udc00-\\udfff]",fo="\\u200d",so=uo+"?",ho="["+no+"]?",po="(?:"+fo+"(?:"+[ao,co,lo].join("|")+")"+ho+so+")*",go=ho+so+po,vo="(?:"+[ao+io+"?",io,co,lo,ro].join("|")+")",mo=RegExp(oo+"(?="+oo+")|"+vo+go,"g"),yo={};yo[Hi]=yo[ji]=yo[Di]=yo[Ai]=yo[Ni]=yo[Pi]=yo[ki]=yo[Fi]=yo[Wi]=!0,yo[pi]=yo[gi]=yo[Ri]=yo[vi]=yo[Mi]=yo[mi]=yo[yi]=yo[wi]=yo[bi]=yo[Ti]=yo[Ci]=yo[Ei]=yo[xi]=yo[Li]=yo[Oi]=!1;var wo={};wo[pi]=wo[gi]=wo[Ri]=wo[Mi]=wo[vi]=wo[mi]=wo[Hi]=wo[ji]=wo[Di]=wo[Ai]=wo[Ni]=wo[bi]=wo[Ti]=wo[Ci]=wo[Ei]=wo[xi]=wo[Li]=wo[Ii]=wo[Pi]=wo[ki]=wo[Fi]=wo[Wi]=!0,wo[yi]=wo[wi]=wo[Oi]=!1;var _o=parseInt,bo="object"==r(e)&&e,To=bo&&"object"==r(t)&&t,Co=To&&To.exports===bo,So=L("object"==("undefined"==typeof n?"undefined":r(n))&&n),Eo=L("object"==("undefined"==typeof self?"undefined":r(self))&&self),xo=L("object"==r(this)&&this),Lo=So||Eo||xo||Function("return this")(),Io=Array.prototype,Oo=Object.prototype,Ro=Lo["__core-js_shared__"],Mo=function(){var t=/[^.]+$/.exec(Ro&&Ro.keys&&Ro.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ho=Function.prototype.toString,jo=Oo.hasOwnProperty,Do=0,Ao=Ho.call(Object),No=Oo.toString,Po=RegExp("^"+Ho.call(jo).replace(Vi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ko=Co?Lo.Buffer:Br,Fo=Lo.Reflect,Wo=Lo.Symbol,Bo=Lo.Uint8Array,Go=Fo?Fo.enumerate:Br,Uo=Object.getOwnPropertySymbols,Vo=Object.create,Yo=Oo.propertyIsEnumerable,Xo=Io.splice,zo=Math.floor,$o=Object.getPrototypeOf,qo=Lo.isFinite,Ko=Object.keys,Jo=Math.max,Zo=Math.min,Qo=ze(Lo,"DataView"),tu=ze(Lo,"Map"),eu=ze(Lo,"Promise"),nu=ze(Lo,"Set"),ru=ze(Lo,"WeakMap"),iu=ze(Object,"create"),ou=ru&&new ru,uu=!Yo.call({valueOf:1},"valueOf"),au={},cu=wn(Qo),lu=wn(tu),fu=wn(eu),su=wn(nu),hu=wn(ru),du=Wo?Wo.prototype:Br,pu=du?du.valueOf:Br,gu=du?du.toString:Br;F.prototype=bt(k.prototype),F.prototype.constructor=F,W.prototype.clear=B,W.prototype["delete"]=G,W.prototype.get=U,W.prototype.has=V,W.prototype.set=Y,X.prototype.clear=z,X.prototype["delete"]=$,X.prototype.get=q,X.prototype.has=K,X.prototype.set=J,Z.prototype.clear=Q,Z.prototype["delete"]=tt,Z.prototype.get=et,Z.prototype.has=nt,Z.prototype.set=rt,it.prototype.add=it.prototype.push=ot,it.prototype.has=ut,at.prototype.clear=ct,at.prototype["delete"]=lt,at.prototype.get=ft,at.prototype.has=st,at.prototype.set=ht;var vu=Le(It),mu=Le(Ot,!0),yu=Ie(),wu=Ie(!0);Go&&!Yo.call({valueOf:1},"valueOf")&&(Gt=function(t){return H(Go(t))});var _u=ou?function(t,e){return ou.set(t,e),t}:Mr,bu=nu&&1/A(new nu([,-0]))[1]==ai?function(t){return new nu(t)}:Dr,Tu=ou?function(t){return ou.get(t)}:Dr,Cu=Jt("length");Uo||(qe=Nr),(Qo&&Ke(new Qo(new ArrayBuffer(1)))!=Mi||tu&&Ke(new tu)!=bi||eu&&Ke(eu.resolve())!=Si||nu&&Ke(new nu)!=xi||ru&&Ke(new ru)!=Oi)&&(Ke=function(t){var e=No.call(t),n=e==Ci?t.constructor:Br,r=n?wn(n):Br;if(r)switch(r){case cu:return Mi;case lu:return bi;case fu:return Si;case su:return xi;case hu:return Oi}return e});var Su=function(){var t=0,e=0;return function(n,r){var i=Fn(),o=ui-(i-e);if(e=i,o>0){if(++t>=oi)return n}else t=0;return _u(n,r)}}(),Eu=Un(function(t){var e=[];return br(t).replace(Ui,function(t,n,r,i){e.push(r?i.replace(Xi,"$1"):n||t)}),e}),xu=Vn(function(t,e){return Jn(t)?Tt(t,Lt(e,1,Jn,!0)):[]}),Lu=Vn(function(t){var e=d(t,ce);return e.length&&e[0]===t[0]?At(e):[]}),Iu=Vn(function(t,e){e=Lt(e,1);var n=t?t.length:0,r=yt(t,e);return Qt(t,d(e,function(t){return on(t,n)?+t:t}).sort(we)),r}),Ou=Vn(function(t){return ue(Lt(t,1,Jn,!0))}),Ru=He(Tn),Mu=Vn(function(t,e){if(null==t)return[];var n=e.length;return n>1&&un(t,e[0],e[1])?e=[]:n>2&&un(e[0],e[1],e[2])&&(e=[e[0]]),e=1==e.length&&Pu(e[0])?e[0]:Lt(e,1,rn),qt(t,e,[])}),Hu=Vn(function(t,e,n){var r=zr;if(n.length){var i=D(n,Ue(Hu));r|=Zr}return Pe(t,r,e,n,i)}),ju=Vn(function(t,e,n){var r=zr|$r;if(n.length){var i=D(n,Ue(ju));r|=Zr}return Pe(e,r,t,n,i)});Un.Cache=Z;var Du=Vn(function(t,e){var n=D(e,Ue(Du));return Pe(t,Zr,Br,e,n)}),Au=Vn(function(t,e){var n=D(e,Ue(Au));return Pe(t,Qr,Br,e,n)}),Nu=Ae(Ht),Pu=Array.isArray,ku=ko?function(t){return t instanceof ko}:Pr,Fu=Ae(Ut),Wu=xe(function(t,e){if(uu||sn(e)||Kn(e))return void Se(e,Sr(e),t);for(var n in e)jo.call(e,n)&&gt(t,n,e[n])}),Bu=xe(function(t,e){if(uu||sn(e)||Kn(e))return void Se(e,Er(e),t);for(var n in e)gt(t,n,e[n])}),Gu=xe(function(t,e,n,r){Se(e,Er(e),t,r)}),Uu=Vn(function(t){return t.push(Br,dt),u(Gu,Br,t)}),Vu=Vn(function(t){return t.push(Br,gn),u(Xu,Br,t)}),Yu=xe(function(t,e,n){zt(t,e,n)}),Xu=xe(function(t,e,n,r){zt(t,e,n,r)}),zu=Vn(function(t,e){return null==t?{}:Kt(t,d(Lt(e,1),yn))});P.assign=Wu,P.assignIn=Bu,P.assignInWith=Gu,P.bind=Hu,P.bindKey=ju,P.compact=_n,P.curry=Wn,P.curryRight=Bn,P.debounce=Gn,P.defaults=Uu,P.defaultsDeep=Vu,P.difference=xu,P.fill=bn,P.filter=Hn,P.intersection=Lu,P.iteratee=Hr,P.keys=Sr,P.keysIn=Er,P.map=Nn,P.mapValues=xr,P.mP=jr,P.memoize=Un,P.merge=Yu,P.mergeWith=Xu,P.partial=Du,P.partialRight=Au,P.pick=zu,P.property=Ar,P.pullAt=Iu,P.remove=En,P.rest=Vn,P.set=Lr,P.sortBy=Mu,P.take=In,P.throttle=Yn,P.toPlainObject=_r,P.union=Ou,P.uniq=On,P.values=Ir,P.zipObject=Rn,P.extend=Bu,P.extendWith=Gu,P.clone=Xn,P.cloneDeep=zn,P.eq=$n,P.every=Mn,P.find=Ru,P.findIndex=Tn,P.forEach=jn,P.forEachRight=Dn,P.get=Tr,P.gt=Nu,P.hasIn=Cr,P.identity=Mr,P.includes=An,P.indexOf=Cn,P.isArguments=qn,P.isArray=Pu,P.isArrayLike=Kn,P.isArrayLikeObject=Jn,P.isBoolean=Zn,P.isBuffer=ku,P.isDate=Qn,P.isEmpty=tr,P.isEqual=er,P.isFinite=nr,P.isFunction=rr,P.isLength=ir,P.isNaN=ar,P.isNil=lr,P.isNull=cr,P.isNumber=fr,P.isObject=or,P.isObjectLike=ur,P.isPlainObject=sr,P.isString=hr,P.isSymbol=dr,P.isTypedArray=pr,P.isUndefined=gr,P.last=Sn,P.lt=Fu,P.max=Fr,P.min=Wr,P.stubArray=Nr,P.stubFalse=Pr,P.noop=Dr,P.now=Fn,P.reduce=Pn,P.some=kn,P.sortedIndex=xn,P.sortedIndexBy=Ln,P.startsWith=Or,P.toFinite=vr,P.toInteger=mr,P.toLength=yr,P.toNumber=wr,P.toString=br,P.trim=Rr,P.uniqueId=kr,P.each=jn,P.eachRight=Dn,P.VERSION=Gr,a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){P[t].placeholder=P}),t.exports=P}).call(void 0)}).call(e,n(6)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}!function(){function e(t){if(t&&t.childNodes)for(var n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];8===r.nodeType||3===r.nodeType&&!/\S/.test(r.nodeValue)?(t.removeChild(r),n--):1===r.nodeType&&e(r)}}function i(t,e,n){e=e||s.getStyle(t);var r;return c.isString(n)?r=o(e[n]):(n=n||d,r={},n.forEach(function(t){r[t]=o(e[t])})),r}function o(t){var e=parseFloat(t);return isNaN(e)?0:e}function u(){var t=document.body,e=t.style;if(e&&e.position&&"static"!==e.position){var n=s.gCSV(t,null,d);return{left:n.paddingLeft+n.marginLeft+n.borderLeftWidth,top:n.paddingTop+n.marginTop+n.borderTopWidth,right:n.paddingRight+n.marginRight+n.borderRightWidth}}return{left:0,top:0,right:0}}var a=n(5),c=n(8),l="left",f="right",s={},h={left:0,top:0,width:0,height:0};s.isDomElement=function(t){return t instanceof HTMLElement},s.isVisible=function(t){return s.isDomElement(t)&&null!==t.offsetParent},s.createElement=function(t){var e=document.createElement("div");e.innerHTML=t;var n=e.children[0];return e=null,n},s.createTemplateElement=function(t){var n=document.createElement("div");return n.innerHTML=t,e(n),n},s.getElementInnerText=function(t){return t.innerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},s.getElementOuterText=function(t){return t.outerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},s.hasClass=function(t,e){if(t&&t.getAttribute){var n=t.getAttribute("class");if(n)return n=n.replace(/[\t\r\n\f]/g," ").split(" "),n.indexOf(e)>=0}return!1},s.removeClass=function(t,e){if(t&&t.setAttribute&&s.hasClass(t,e)){var n=t.getAttribute("class").split(" "),r=[];a.each(n,function(t){t.toLowerCase()!==e.toLowerCase()&&r.push(t)}),t.setAttribute("class",r.join(" "))}},s.addClass=function(t,e){if(t&&t.setAttribute&&!s.hasClass(t,e)){var n=t.getAttribute("class");t.setAttribute("class",n?n+" "+e:e)}},s.toggleClass=function(t,e,n){n===!0?s.addClass(t,e):s.removeClass(t,e)},s.getElement=function(t){return t instanceof HTMLElement?t:c.isString(t)?document.querySelector(t):null},s.contains=function(t,e){for(var n=e;n;n=n.parentElement)if(n===t)return!0;return!1},s.offset=function(t){var e=t?t.getBoundingClientRect():h;return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},s.gER=function(t){var e=t?t.getBoundingClientRect():h;return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:e.width,height:e.height}},s.gCoR=function(t){var e=t?t.getBoundingClientRect():h,n=i(t),r=n.paddingLeft+n.paddingRight,o=n.paddingTop+n.paddingBottom,u=n.borderLeftWidth+n.borderRightWidth,a=n.borderTopWidth+n.borderBottomWidth;return{left:e.left+window.pageXOffset+n.borderLeftWidth+n.paddingLeft,top:e.top+window.pageYOffset+n.borderTopWidth+n.paddingTop,width:Math.max(0,Math.floor(e.width-r-u)),height:Math.max(0,Math.floor(e.height-o-a))}},s.gCoRFn=function(t){var e=i(t),n=e.paddingLeft+e.paddingRight,r=e.paddingTop+e.paddingBottom,o=e.borderLeftWidth+e.borderRightWidth,u=e.borderTopWidth+e.borderBottomWidth;return function(){var i=t.getBoundingClientRect();return{left:i.left+window.pageXOffset+e.borderLeftWidth+e.paddingLeft,top:i.top+window.pageYOffset+e.borderTopWidth+e.paddingTop,width:Math.max(0,Math.floor(i.width-n-o)),height:Math.max(0,Math.floor(i.height-r-u))}}},s.getStyle=function(t){var e=getComputedStyle||window.getComputedStyle;return t&&e?e(t,null):null};var d=["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","marginLeft","marginRight","marginTop","marginBottom"];s.gCSV=i,s.getBodyStyle=u,s.setCss=function(t,e){var n=t.style;for(var r in e){var i=e[r];c.isNumber(i)&&r.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(i+="px"),n[r]=i.toString()}},s.gSS=function(t){if(t.scS_)return t.scS_;var e=s.createElement('<div style="position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;"></div>');return document.body.appendChild(e),t.scS_={width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight},e.parentNode.removeChild(e),t.scS_},s.gSCH=function(){if(s.mSCH)return s.mSCH;var t,e=1e6,n=6e9,r=s.createElement('<div style="display:none"/>');for(document.body.appendChild(r);;){if(t=e+5e5,r.style.height=t+"px",t>n||r.offsetHeight!==t)break;e=t}return r.parentNode.removeChild(r),s.mSCH=e,s.mSCH},s.closest=function(t,e){for(;t;){if(t.matches?t.matches(e):t.msMatchesSelector(e))return t;if(t.parentNode===document)return null;t=t.parentNode}return null};var p=void 0;s.detectRTLMode=function(){if(p)return p;var t=s.createElement('<div class="gc-test-container" style="overflow:auto;height:500px;width:500px;direction:rtl"><div class="gc-test-content" style="height:400px;width:1000px;"></div></div>');document.body.appendChild(t);var e="normal";return 0===t.scrollLeft&&(t.scrollLeft=1e4,e=t.scrollLeft>0?"reverse":"negative"),document.body.removeChild(t),t=null,p=e,e},s.getRTLScrollLeft=function(t){var e=arguments.length<=1||void 0===arguments[1]?"normal":arguments[1];return s.isDomElement(t)?s.tRTLSL(t.scrollLeft,t.scrollWidth-t.clientWidth,s.detectRTLMode(),e):void 0},s.setRTLScrollLeft=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?"normal":arguments[2];if(s.isDomElement(t)){var r=s.detectRTLMode();t.scrollLeft=n===r?e:s.tRTLSL(e,t.scrollWidth-t.clientWidth,n,r)}};var g={normal:0,reverse:1,negative:2};s.tRTLSL=function(t,e,n,i){if(n===i)return t;if(n=g[n],i=g[i],0>=e)return 0;var o=[[[1],[-1,e],[1,-e]],[[-1,e],[1],[-1]],[[1,e],[-1],[1]]];return function(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return(e>0?t:-t)+n}.apply(void 0,[t].concat(r(o[n][i])))},s.inverseToRTL=function(t){if(!s.isDomElement(t))return t;var e,n="[style]";e="TEMPLATE"===t.tagName?t.content.querySelectorAll(n):t.querySelectorAll(n);var r=function(t,e,n){var r=t.style[e];c.isNilOrWhiteSpace(r)||(t.style[e]="",t.style[n]=r)};return a.forEach(e,function(t){c.isNilOrWhiteSpace(t.style.right)?c.isNilOrWhiteSpace(t.style.left)||r(t,l,f):r(t,f,l),t.style["float"]===f?t.style["float"]=l:t.style["float"]===l&&(t.style["float"]=f)}),t},s.detectBrowserType=function(){if(s.duckTypingBrowserType)return s.duckTypingBrowserType;var t=navigator&&navigator.userAgent,e=!!window.opr&&!!window.opr.addons||!!window.opera||t.indexOf(" OPR/")>=0,n="undefined"!=typeof InstallTrigger,r=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,i=!!document.documentMode,o=!i&&!!window.StyleMedia,u=!!window.chrome&&!!window.chrome.webstore,a=(u||e)&&!!window.CSS,c=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);return s.duckTypingBrowserType={isOpera:e,isFirefox:n,isSafari:r,isIE:i,isEdge:o,isChrome:u,isBlink:a,isMobileDevice:c}},t.exports=s}()},function(t,e,n){"use strict";!function(){function e(t){return O.isNil(t)?!0:O.isString(t)?t.replace(/\s/g,"").length<1:!1}function r(t,e,n){t&&t.removeEventListener(e,n)}function i(t,e,n){t&&t.addEventListener(e,n)}function o(t){}function u(t){return I.isNumber(t)?"number":I.isBoolean(t)?"boolean":I.isDate(t)?"date":I.isString(t)?"string":I.isArray(t)?"array":I.isObject(t)?"object":""}function a(t,e){var n=O.isNil(e)||"boolean"==typeof e||""===e;if(n)return"";var r=isNaN(e);return r||0===e||j.hasOwnProperty(t)&&j[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}function c(t){var e={};return function(n){return e.hasOwnProperty(n)?e[n]:(e[n]=t.call(this,n),e[n])}}function l(t){return t.replace(D,"-$1").toLowerCase()}function f(t){return l(t).replace(A,"-ms-")}function s(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];O.isNil(r)||(e+=N(n)+":",e+=a(n,r)+";")}return e||null}function h(t,e){var n=function(t){return"[object Object]"===Object.prototype.toString.call(t)};if(!n(t)||!n(e))return t;for(var r,i=[{level:-1,value:t,key:null}],o=[],u={};i.length>0;)if(r=i.pop(),I.isNil(r.key)||(o=O.take(o,r.level),o.push(r.key)),I.isObject(r.value)&&!I.isFunction(r.value))for(var a in r.value)i.push({level:r.level+1,value:r.value[a],key:a});else{var c=o.join("."),l=O.get(t,c);l!==O.get(e,c)&&O.set(u,c,l)}return O.isEmpty(u)?null:u}function d(t){var e=O.cloneDeep(t),n=[];e&&n.push(e);for(var r;n.length>0;)if(r=n.pop(),I.isObject(r))for(var i in r)n.push(r[i]),I.isFunction(r[i])&&(r[i]=g(r[i]));return e}function p(t){var e=O.clone(t),n=[];e&&n.push(e);for(var r,i;n.length>0;)if(r=n.pop(),I.isObject(r))for(var o in r)n.push(r[o]),I.isString(r[o])&&(i=v(r[o]),i&&(r[o]=i));return e}function g(t){return t.toString()}function v(t){if(I.isString(t)&&"function"===t.substr(0,8)&&(/\s/.test(t[8])||"("===t[8])){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.substr(e,n-e).split(",").map(function(t){return t.replace(/\s+/,"")}),i=t.indexOf("{")+1,o=t.lastIndexOf("}");return new Function(r,t.substr(i,o-i))}return null}function m(t){var e;try{e=GC.Spread.Views.Plugins[t]}catch(n){}return e}function y(t){var e={},n=GC&&GC.Spread&&GC.Spread.Views&&GC.Spread.Views.LocaleResource&&GC.Spread.Views.LocaleResource.content;for(var r in t)e[r]=n&&n[r];return e}function w(t){var e=I.toDate(t);if(isNaN(e.getTime()))return t;var n=e.getFullYear().toString(),r=(e.getMonth()+1).toString(),i=e.getDate().toString();return _(n,4)+"-"+_(r,2)+"-"+_(i,2)}function _(t,e){var n=e-t.length+1;return n>=0?new Array(n).join("0")+t:t}function b(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n}function T(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function C(t,e,n){var r=function(t){return O.isUndefined(t)?t:n?(t+"").trim().toLowerCase():(t+"").trim().toString()},i=r(e);return function(e){if(null==e)return!1;var r=S(e,t);return r=O.isUndefined(r)?r:n?(r+"").toLowerCase():(r+"").toString(),r===i?void 0!==i||t in e:O.isEqual(r,i)}}function S(){var t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1];if(!O.isNil(t)&&!O.isNil(e)){e=O.isArray(e)?e:O.isString(e)?e.split("."):[e];for(var n=0,r=e.length,i=arguments.length>2;t&&r>n;){if(i&&n===r-1)return void(t[e[n]]=arguments.length<=2?void 0:arguments[2]);t=t[e[n++]]}return t}}function E(t,e,n,r){O.isArray(t)||(t=[t]),O.isArray(e)||(e=[e]);var i=r?[]:{};O.forEach(t,function(t){i[t]||(i[t]=1)});var o=[],u=[],a=[],c=0,l=0,f=0;return O.forEach(e,function(t){i[t]?(i[t]=2,n&&(u[f++]=t)):(i[t]=3,n&&(o[c++]=t))}),n&&O.forEach(i,function(t,e){1===t&&(a[l++]=+e)}),n?{add:o,remove:a,keep:u}:{map:i}}function x(t){return I.isNumber(t)?L(t):new Date(t)}function L(t){var e=new Date(1899,11,30),n=864e5,r=t-Math.floor(t);return 0>t&&r&&(t=Math.floor(t)-r),new Date(t*n+ +e)}var I={},O=n(5);I.isString=O.isString,I.regist=i,I.unRegist=r,I.isNilOrWhiteSpace=e,I.isNumber=O.isNumber,I.isInt=O.isInteger,I.isBoolean=O.isBoolean,I.isFunction=O.isFunction,I.isUndefined=O.isUndefined,I.isDate=O.isDate,I.isArray=O.isArray,I.isObject=O.isObject,I.debugLog=o,I.getType=u,I.isNull=O.isNull,I.isNil=O.isNil;var R={Back:8,Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Delete:46,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};I.Key=R;var M=function(t){var e=t.keyCode,n=e>47&&58>e||e>64&&91>e||e>95&&112>e||e>185&&193>e||e>218&&223>e;return n};I.isPrintableKey=M;var H={Text:"text",CheckBox:"checkbox",Date:"date",Color:"color",Number:"number"};I.EditorType=H;var j={columnCount:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeOpacity:!0},D=/([A-Z])/g,A=/^-ms-/,N=c(function(t){return f(t)});I.cMFS=s,I.extractObject=h,I.serializeObject=d,I.deserializeObject=p,I.serializeFunction=g,I.deserializeFunction=v,I.findPlugin=m,I.getResource=y,I.normalizeDate=w,I.extends_=b,I.caC=T,I.mP=C,I.sOP=function(t,e){return S(t,e)},I.gOP=function(t,e,n){return S(t,e,n)},I.compareArray=E,I.toDate=x,t.exports=I}()},function(t,e,n){"use strict";!function(){function e(t){var n,r,i,o=0;for(n=0,r=t.length;r>n;n++)i=t[n],o=i.hasOwnProperty("columns")?Math.max(o,1+e(i.columns)):Math.max(o,1);return o}function r(t,e,n,r,i){var o=i&&t.isTouchMode?10:0;return e>=r.left-o&&e<=r.right+o&&n>=r.top-o&&n<=r.bottom+o}function i(t,e,n,r,i,o){var u=A.offset(r),a=A.offset(i),c=u.left-a.left,l=u.top-a.top,f=A.gER(r),s=o&&t.isTouchMode?10:0;c-=s,l-=s;var h=c+f.width+2*s,d=l+f.height+2*s;return e>=c&&h>=e&&n>=l&&d>=n}function o(t){return t&&t.action&&t.swipeDirection}function u(t){return t.data.groups&&t.data.groups.length>0}function a(t,e){e=D.defaults(e,{control:null,action:null,mode:"depthFirst",direction:"ltr",traverseCollapsed:!1,parentFirst:!0,getChildren:function(t){return t.children}});var n=D.isFunction(e.control)?e.control:null,r=D.isFunction(e.action)?e.action:null,i="widthFirst"===e.mode,o="rtl"===e.direction,u=i?"unshift":"push",a=i!==o===e.parentFirst?D.forEach:D.forEachRight,c=function(t,e){if(t.length>20){var n=t.slice();return i?o?n.concat(e):n.reverse().concat(e):o?e.concat(n):e.reverse().concat(n)}return a(t,function(t){e[u](t)}),e},l=[t];if(e.parentFirst)for(;l.length>0;){var f=l.pop();if(n){var s=n(f);if("break"===s)break;if("continue"===s)continue}r&&r(f),!e.traverseCollapsed&&f.collapsed||(l=c(e.getChildren(f),l))}else{for(var h=[],d=0;l.length>0;){var p=l.pop();if(n){var g=n(p);if("break"===g)break;if("continue"===g)continue}h[d++]=p,!e.traverseCollapsed&&p.collapsed||(l=c(e.getChildren(p),l))}r&&D.forEachRight(h,function(t){r(t)}),h.length=0}l.length=0}function c(t,e,n,r){if(t){r||(r={index:-1});var i;if(-1!==t.level&&(r.index++,i=e(t,r.index,!1)))return i;if(!t.collapsed){for(var o=r.index,u=t.children.length,a=0;u>a;a++)if(i=c(t.children[a],e,n,r))return i;if(n&&u>0&&-1!==t.level&&(i=e(t,o,!0)))return i}return i}}function l(t){return t.options.hierarchy&&t.options.hierarchy.footer&&t.options.hierarchy.footer.visible}function f(t,e){if(t.area!==e.area)return!1;if(t.area===W){if(t.itemIndex!==e.itemIndex)return!1;if(t.isHierarchyFooter!==e.isHierarchyFooter)return!1}var n=t.path,r=e.path;if(n.length!==r.length)return!1;for(var i=0,o=n.length;o>i;i++)if(n[i]!==r[i])return!1;return!0}function s(t){var e,n,r,i=!1;for(e=0,n=t.length;n>e&&(r=t[e],!(i=r.columns?s(r.columns):"left"===r.pinned||"right"===r.pinned));e++);return i}function h(t,e,n){var r,i,o=[];for(r=0,i=e.length;i>r;r++)e[r].columns&&o.push(e[r]);for(var u;o.length>0;){if(u=o.shift(),u.caption===n)return u;for(r=0,i=u.columns.length;i>r;r++)u.columns[r].columns&&o.push(u.columns[r])}}function d(t,e,n){if(!e)return 0;e=N.isArray(e)?e:[e];var r,i,o,u=0;for(r=0,i=e.length;i>r;r++)o=e[r],o.columns?u+=this.gGCHW_(t,o.columns,n):t.iCV_(o,n)&&o.pinned===n&&(u+=N.isNumber(o.visibleWidth)?o.visibleWidth:0);return u}function p(t,e){var n,r=e.groupDescriptor,i=r.footer,o=r.header,u=t.data,a=e.path;if(e.collapsed)return{path:a,itemIndex:-1,area:i.visible&&!i.collapseWithGroup||!o.visible?F:k};if(i.location===et&&i.visible)return{path:a,itemIndex:-1,area:F};if(e.isBottomLevel){var c=e.expandedItemCount,l={path:a,itemIndex:c-1,area:i&&i.visible&&0===c?F:W},f=u.hierarchyDescriptor;if(f){var s=f.footer;if(s&&s.visible)l.nodeInfo={path:[0],area:B};else{var h=e.rootNode;if(h){for(;h&&h.children&&h.children.length>0;)h=h.children[h.children.length-1];l.nodeInfo={path:h.path,area:G}}}}return l}return n=e.groups,p(t,n[n.length-1])}function g(t,e,n){if(e){var r;r="left"===t?n?e.pinnedLeftColHeaderTemplate:e.pinnedLeftRowTemplate:"right"===t?n?e.pinnedRightColHeaderTemplate:e.pinnedRightRowTemplate:n?e.colHeaderTemplate:e.rowTemplate;var i=ct.gUT_(r);if(i){var o=A.createElement("<div>"+i+"</div>");return e.rightToLeft?A.inverseToRTL(o).innerHTML:o.innerHTML}}return null}function v(t){if(t){var e;return e=N.isString(t)&&t.length>1&&"#"===t[0]?document.getElementById(t.slice(1)).cloneNode(!0):A.createElement("<div>"+t+"</div>"),e.innerHTML}return null}function m(t,e,n,r,i){D.isObject(t)&&(e=t.area,n=t.row,r=t.groupInfo,i=t.nodeInfo,t=t.uid);var o=t;o+=lt[e]?"-"+lt[e]:"";var u=y(r),a=y(i);return o+=u+a,""===a&&D.isNumber(n)&&(-1!==n||r?n>=0&&(!r||r&&r.area===W)&&(o+="-r"+n):o+="-autorow"),o}function y(t){return t&&t.path&&lt[t.area]?"-"+lt[t.area]+t.path.join("_"):""}function w(t){var e={uid:/gc-\d+/.exec(t)[0],row:-1},n=t.split("-").slice(2);if(0===n.length)return e;var r=["pl","pr","rh","ch","plch","prch","corner","gt","gth","chRow","plchRow","prchRow"];if(D.indexOf(r,n[0])>-1?(e.area=lt[n[0]],n.shift()):e.area=U,0===n.length)return e;var i=n[0].match(/g[hrf]/);if(i&&(e.groupInfo={area:lt[i[0]],path:n[0].replace(/g[hrf]/,"").split("_")},n.shift()),0===n.length)return e;var o=n[0].match(/n[rf]/);return o&&(e.nodeInfo={area:lt[o[0]],path:n[0].replace(/n[rf]/,"").split("_")}),"autorow"===n[0]?e.isNewRow=!0:e.row=+n[0].replace("r",""),n.length=0,e}function _(t,e){for(var n,r=t.columns,i=0,o=r.length;o>i;i++)if(n=r[i],n.id===e)return i;return-1}function b(t,e){if(t.area===U||t.area===V||t.area===Y){var n=t.groupInfo,r=n&&(n.area===F||n.area===k),i=t.nodeInfo,o=i&&i.area===B;if(!o&&!r){var u=n?n.column:t.column;return e&&u>=0||!e}}return!1}function T(t,e,n,r,i){var o=m(t,e,n,r,i);return o?document.getElementById(o):null}function C(t,e){var n=[U],r=t.layoutEngine;r.sPV_&&(r.sPV_("left")&&n.push(V),r.sPV_("right")&&n.push(Y));var i=[],o=e.groupInfo,u=e.nodeInfo;return n.forEach(function(n){var r=ct.createID(t.uid,n,o?o.row:e.row,o,u);r&&i.push(r)}),i}function S(t){var e='<div class="gc-grid" style="position:absolute;top:-10000px;left:-10000px;width:5000px;height:5000px;">'+(N.isString(t)?t:t.innerHTML)+"</div>",n=A.createElement(e);document.body.appendChild(n);var r=n.firstChild,i=null;return r&&(i=A.gCoR(r)),document.body.removeChild(n),i}function E(t){var e=t.gLI_(),n=e[U],r=e[V],i=e[Y];return n?n.contentHeight>n.height:r?r.contentHeight>r.height:i?i.contentHeight>i.height:!1}function x(t){var e=t.gLI_(),n=e[U];return n?n.contentWidth>n.width:!1}function L(t,e){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];if(!e)return 0;var r=n?1:0;return e.collapsed||(D.each(e.children,function(e){r+=L(t,e,!0)}),n&&e.children.length>0&&ct.hHF_(t)&&++r),r}function I(t,e){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],r=t;if(!e)return 0;
  15. var i=0,o=e.collapsed;if(o||(e.rootNode?i+=L(r,e.rootNode):e.isBottomLevel?i+=e.itemCount:D.each(e.groups,function(t){i+=I(r,t,!0)})),n){var u=e[nt],a=u&&u[rt]&&u[rt][it],c=u&&u[ot],l=c&&c[it],f=c&&c.collapseWithGroup;a&&++i,(l&&(!f||!o)||!a&&o)&&++i}return i}function O(){var t=-1,e=void 0,n=arguments,r=n[0];if(N.isString(n[1])?e=ct.parseID(n[1]):n.length>2&&(e={row:n[1],groupInfo:n[2],nodeInfo:n[3],isNewRow:n[4]}),e){var i=r.layoutEngine.aARA_(at),o=r.data;if(e.isNewRow)t=i?0:u(r)?I(r,o.rootGroup,!0):r.data&&r.data.hierarchyDescriptor?L(r,o.rootNode,!0):o.itemCount;else{if(e.groupInfo)t=R(r,o.rootGroup,e).index;else if(e.nodeInfo)t=M(r,o.rootNode,e).index;else{var a=ct.createID(r.uid,U,e.row),c=r.getItem(a).item;t=c?o.mVI_(c.sourceIndex):-1}i&&(t+=1)}}return t}function R(t,e,n){for(var r,i,o,u,a,c,l,f,s={finish:!1,index:0},h=n.groupInfo,d=e?e.groups:[],p=0,g=d.length;g>p;p++){if(r=d[p],f=r[nt],i=f&&f[rt]&&f[rt][it],l=f&&f[ot],o=l&&l[it],u=l&&l[ut],a=i?1:0,c=o&&u===at?1:0,r.path.toString()===h.path.toString())h.area===F?s.index+=u===at?a:I(t,r,!0)-1:h.area===W&&(n.nodeInfo?s.index+=M(t,r.rootNode,n).index+a+c:s.index+=n.row+a+c),s.finish=!0;else if(r.path[r.level].toString()===h.path[r.level].toString()){var v=R(t,r,n);s.index+=v.index+a+c,s.finish=v.finish}else s.index+=I(t,r,!0);if(s.finish)break}return s}function M(t,e,n){for(var r={finish:!1,index:0},i=n.nodeInfo,o=e?e.children:[],u=0,a=o.length;a>u;u++){var c=o[u];if(c.path.toString()===i.path.toString())i.area===B&&(r.index+=L(t,c,!0)-1),r.finish=!0;else if(c.path[c.level].toString()===i.path[c.level].toString()){var l=M(t,c,n);r.index+=l.index+1,r.finish=l.finish}else r.index+=L(t,c,!0);if(r.finish)break}return r}function H(t,e,n){var r=t.getItem(e);if(!r)return null;var i=void 0,o=void 0;r.group&&(i={path:r.group.path,area:r.groupArea}),r.node&&(o={path:r.node.path,area:r.nodeArea});var u=t.uid,a=r.row,c=[];return r.isNewRow&&(a=-1,i=null,o=null),D.each(n,function(t){c.push({area:t,id:ct.createID(u,t,a,i,o)})}),c}function j(t){var e=t.dataField;return e&&!D.startsWith(D.trim(e),"=")&&1!==e.split(",").length}var D=n(5),A=n(7),N=n(8),P=n(10),k="groupHeader",F="groupFooter",W="groupContent",B="nodeFooter",G="nodeContent",U="viewport",V="pinnedLeftViewport",Y="pinnedRightViewport",X=["pageX","pageY","clientX","clientY","target"],z="mouseup",$="mousemove",q="mousedown",K="mousewheel",J="click",Z="dblclick",Q=N.regist,tt=N.unRegist,et="bottom",nt="groupDescriptor",rt="header",it="visible",ot="footer",ut="location",at="top",ct={},lt={viewport:"",pinnedLeftViewport:"pl",pinnedRightViewport:"pr",rowHeader:"rh",columnHeader:"ch",pinnedLeftColumnHeader:"plch",pinnedRightColumnHeader:"prch",columnHeaderRow:"chRow",pinnedLeftColumnHeaderRow:"plchRow",pinnedRightColumnHeaderRow:"prchRow",gantt:"gt",ganttHeader:"gth",groupHeader:"gh",groupFooter:"gf",groupContent:"gr",nodeFooter:"nf",nodeContent:"nr",pl:V,pr:Y,rh:"rowHeader",ch:"columnHeader",plch:"pinnedLeftColumnHeader",prch:"pinnedRightColumnHeader",chRow:"columnHeaderRow",plchRow:"pinnedLeftColumnHeaderRow",prchRow:"pinnedRightColumnHeaderRow",gt:"gantt",gth:"ganttHeader",gh:"groupHeader",gf:"groupFooter",gr:"groupContent",nf:"nodeFooter",nr:"nodeContent",corner:"corner"};ct.gCHL_=e,ct.poIP_=r,ct.poI_=i,ct.iTAC_=o,ct.hG_=u;var ft=function(){function t(t,n){o=(new Date).getTime(),i=!1,u=1e3*t,a=n,c&&l?l(e):setTimeout(e,16.6)}function e(){var t=(new Date).getTime(),r=t-o,f=function(t){a(t||n(r,0,1,u))};return r>=u||i?void f(1):(f(),void(c&&l?l(e):setTimeout(e,16.6)))}function n(t,e,n,r){return t/=r/2,1>t?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)}function r(){i=!0}var i,o=0,u=0,a=null,c=0,l=window.requestAnimationFrame||window.webkitRequestAnimationFrame;return{play:t,stop:r}}();ct.ani=ft,ct.tT=a,ct.tN_=c,ct.hHF_=l,ct.gIAS_=f,ct.hPC_=s,ct.gGCBC_=h,ct.gGCHW_=d,ct.gLGIP_=p,ct.gUERT_=g,ct.gUT_=v,ct.createID=m,ct.parseID=w,ct.ci_=_,ct.iEOSA_=b;var st=function(){function t(t){var e=this;e.options=D.defaultsDeep(t||{},{headerTemplate:null,footerTemplate:null,contentTemplate:null,draggable:!1,showOverlay:!0,parent:null}),e.init_()}function e(){var t=this;t.handleClick_=i.bind(t),t.handleMouseDown_=o.bind(t),t.handleMouseWheel_=u.bind(t),t.handleMouseUp_=c.bind(t),t.handleMouseMove_=l.bind(t),t.handleKeyDown_=d.bind(t),t.handleKeyUp_=p.bind(t),t.handleDoubleClick_=r.bind(t),t.tsFn_=a.bind(t),t.teFn_=s.bind(t),t.tmFn_=f.bind(t);var e=t.container;Q(e,J,t.handleClick_),Q(e,Z,t.handleDoubleClick_),Q(e,q,t.handleMouseDown_),Q(e,K,t.handleMouseWheel_),Q(e,z,t.handleMouseUp_),Q(e,$,t.handleMouseMove_),Q(e,"keydown",t.handleKeyDown_),Q(e,"keyup",t.handleKeyUp_),P(e).on("touchstart",t.tsFn_),P(e).on("touchend",t.teFn_),P(e).on("touchmove",t.tmFn_)}function n(){var t=this,e=t.container;tt(e,J,t.handleClick_),tt(e,Z,t.handleDoubleClick_),tt(e,q,t.handleMouseDown_),tt(e,K,t.handleMouseWheel_),tt(e,z,t.handleMouseUp_),tt(e,"keydown",t.handleKeyDown_),tt(e,"keyup",t.handleKeyUp_),tt(e,$,t.handleMouseMove_),P(e).off("touchstart",t.tsFn_),P(e).off("touchend",t.teFn_),P(e).off("touchmove",t.tmFn_),tt(e.querySelector(".gc-popup-first-tab"),"focus",t.fFE_),tt(e.querySelector(".gc-popup-last-tab"),"focus",t.fLE_)}function r(t){g.call(this,t,"doubleclick")}function i(t){g.call(this,t,J)}function o(t){g.call(this,t,q)}function u(t){g.call(this,t,K)}function a(t){g.call(this,h(t),q)}function c(t){g.call(this,t,z)}function l(t){g.call(this,t,$)}function f(t){g.call(this,t,"touchmove")}function s(t){g.call(this,h(t),z)}function h(t){var e=D.pick(t.changedTouches[0],X);return e.stopPropagation=function(){t.stopPropagation()},e.preventDefault=function(){t.preventDefault()},e.deviceType="touch",e}function d(t){g.call(this,t,"keydown")}function p(t){g.call(this,t,"keyup")}function g(t,e){var n=this;if(t.target){n.options.parent&&t.stopPropagation();for(var r=D.keys(n.eventCache_),i=t.target,o=i.tagName.toLowerCase(),u=i.className?i.className.split(" "):[],a=[];"body"!==o;)a=a.concat(D.intersection(r,u)),i=i.parentNode,o=i.tagName.toLowerCase(),u=i.className?i.className.split(" "):[];var c,l,f;D.each(a,function(r){for(c=n.eventCache_[r][e],f=c?c.length:0,l=0;f>l;l++)c[l](t)})}}function v(t){var e=this;"touch"===t.deviceType?(e.docTouchMoveHandler_=y.bind(e),e.docTouchEndHandler_=b.bind(e),P(document).on("touchmove",e.docTouchMoveHandler_),P(document).on("touchend",e.docTouchEndHandler_)):(e.docMouseMoveHandler_=m.bind(e),e.docMouseUpHandler_=_.bind(e),window.PointerEvent?(Q(document,"pointermove",e.docMouseMoveHandler_),Q(document,"pointerup",e.docMouseUpHandler_),document.body.setPointerCapture(t.pointerId)):(Q(document,$,e.docMouseMoveHandler_),Q(document,z,e.docMouseUpHandler_)));var n=e.container,r=A.gER(n),i=A.gCSV(n),o=i.marginTop,u=i.marginLeft,a=A.getBodyStyle();e.startMoveInfo_={mouseOffset:{left:t.pageX,top:t.pageY},containerCSSOffset:{left:r.left-u-a.left,top:r.top-o-a.top},containerRect:r,viewportRect:{left:0,top:0,width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}}function m(t){w.call(this,t)}function y(t){w.call(this,h(t))}function w(t){var e=this;t.preventDefault();var n=e.startMoveInfo_;if(n){var r=n.mouseOffset,i=n.viewportRect,o=n.containerRect,u=t.pageX-r.left,a=t.pageY-r.top,c=o.left,l=i.left,f=o.width,s=i.width,h=o.top,d=i.top,p=o.height,g=i.height;c+f+u>l+s&&(u=l+s-c-f),l>c+u&&(u=l-c),h+p+a>d+g&&(a=d+g-h-p),d>h+a&&(a=d-h),A.setCss(e.container,{left:n.containerCSSOffset.left+u,top:n.containerCSSOffset.top+a})}}function _(t){T.call(this,t)}function b(t){T.call(this,h(t))}function T(t){var e=this;e.startMoveInfo_=null,"touch"===t.deviceType?(P(document).off("touchmove",e.docTouchMoveHandler_),P(document).off("touchend",e.docTouchEndHandler_),e.docTouchMoveHandler_=null,e.docTouchEndHandler_=null):(window.PointerEvent?(document.body.releasePointerCapture(t.pointerId),tt(document,"pointermove",e.docMouseMoveHandler_),tt(document,"pointerup",e.docMouseUpHandler_)):(tt(document,$,e.docMouseMoveHandler_),tt(document,z,e.docMouseUpHandler_)),e.docMouseMoveHandler_=null,e.docMouseUpHandler_=null)}function C(){var t=this,e=t.tabbableElements=t.container.querySelectorAll("a[href]:not([disabled]), area[href]:not([disabled]), button:not([disabled]), input:not([disabled]), select:not([disabled]),textarea:not([disabled]),[tabindex]:not([disabled])"),n=t.options.setTabOrder,r=0;if(n)r=n(e,2)+1;else{for(var i=0,o=e.length;o>i;i++)e[i].setAttribute("tabindex",i+2);r=e.length+2}var u=t.container,a=A.createElement('<div class="gc-popup-first-tab" tabindex="1"></div>'),c=A.createElement('<div class="gc-popup-last-tab" tabindex="'+r+'"></div>');u.insertBefore(a,u.childNodes[0]),u.appendChild(c),t.fFE_=S.bind(t),t.fLE_=E.bind(t),Q(a,"focus",t.fFE_),Q(c,"focus",t.fLE_)}function S(){this.tabbableElements[this.tabbableElements.length-1].focus()}function E(){this.tabbableElements[0].focus()}return t.prototype={init_:function(){var t=this,n=t.options;t.container=A.createElement('<div class="gc-popup-dialog" tabindex="1"></div>');var r,i=t.container,o=A.createElement,u=A.addClass;if(n.headerTemplate&&(r=o(n.headerTemplate),u(r,"gc-popup-header"),i.appendChild(r)),n.contentTemplate){var a=o(n.contentTemplate);u(a,"gc-popup-content"),i.appendChild(a)}if(n.footerTemplate){var c=o(n.footerTemplate);u(c,"gc-popup-footer"),i.appendChild(c)}n.draggable&&r&&(window.PointerEvent?r.addEventListener("pointerdown",v.bind(t)):r.addEventListener(q,v.bind(t))),e.call(t)},open:function(){var t=this,e=t.options,n=e.parent||document.body;e.showOverlay&&(t.overlay_=A.createElement('<div class="gc-popup-overlay"></div>'),n.appendChild(t.overlay_)),n.appendChild(t.container),C.call(t)},close:function(){var t=this;n.call(t);var e=t.overlay_;t.options.showOverlay&&e.parentNode.removeChild(e);var r=t.container,i=t.container.parentNode;i&&i.removeChild(r)},mount:function(t,e,n){var r=this;r.eventCache_=r.eventCache_||{};var i=r.eventCache_;i[t]=i[t]||{},i[t][e]=i[t][e]||[];var o=i[t][e];-1===o.indexOf(n)&&o.push(n)}},t}();ct.popup=st,ct.gRE_=T,ct.getIdList=C,ct.gUER_=S,ct.hVS=E,ct.hHS=x,ct.gNRC_=L,ct.gGRC_=I,ct.vi=O,ct.getRowIDByViewIndex=H,ct.isMultiFieldColumn=j,t.exports=ct}()},function(t,e){"use strict";!function(e){function n(t){return new r(t)}function r(t){this.element=t}function i(){function t(t,e,n,r,i,o,u,a){var c=this;c.identifier=t,c.target=e,c.screenX=n,c.screenY=r,c.clientX=i,c.clientY=o,c.pageX=u,c.pageY=a}function e(t){var e,n;for(e=0,n=u.length;n>e;e+=1)if(u[e].identifier===t)return u[e]}function n(t){var e,n;for(e=0,n=u.length;n>e;e+=1)if(u[e].identifier===t.identifier)return void(u[e]=t);u.push(t)}function r(t){var e,n;for(e=0,n=u.length;n>e;e+=1)u[e].identifier===t&&(u.splice(e,1),n=u.length)}function i(){for(;u.length>0;)u.pop()}function o(t,e){var n;for(n=0;n<u.length;n+=1)if(u[n].screenX===t&&u[n].screenY===e)return!0;return!1}var u=[],a=this;a.touchList=u,a.Touch=t,a.getTouch=e,a.addUpdateTouch=n,a.removeTouch=r,a.clearTouches=i,a.containsTouchAt=o}function o(t,n,r,i,o){if(o)t.addEventListener(n,r,!1),e.cachedEvents||(e.cachedEvents=[]),e.cachedEvents.push({element:t,event:n,handler:r,uid:i});else{if(!e.cachedEvents)return;for(var u=0,a=e.cachedEvents.length;a>u;u++){var c=e.cachedEvents[u];if(c.uid===r.uid){c.element.removeEventListener(c.event,c.handler);break}}e.cachedEvents.splice(u,1),0===e.cachedEvents.length&&delete e.cachedEvents}}function u(t,e){function n(t,e){var n,r;for(v.clearTouches(),n=0;n<e.length;n++)r=e[n],r.target.isSameNode(t)&&v.addUpdateTouch(r)}function r(t){var e,r,i;e=u(t)?"touchstart":"touchmove",r=new p.Touch(t.pointerId,u(t)?t.target:d,t.screenX,t.screenY,t.clientX,t.clientY,t.pageX,t.pageY),t.hwTimestamp>y&&!function(){var t,e,n,r,i;for(e=g.touchList,t=0;t<e.length;t+=1)n=e[t],i=n.identifier,r=p.getTouch(i),r&&!f(r,n)||g.removeTouch(i)}();var a=t.pointerId;return u(t)?("input"!==r.target.tagName.toLowerCase()&&"textarea"!==r.target.tagName.toLowerCase()&&("MSPointerDown"===t.type?r.target.msSetPointerCapture(a):r.target.setPointerCapture(a)),p.clearTouches(),o("pointerDown timstap:"+t.hwTimestamp+" pointerId: "+t.pointerId)):o("pointerMove timstap:"+t.hwTimestamp+" pointerId: "+t.pointerId),p.addUpdateTouch(r),g.addUpdateTouch(r),n(r.target,p.touchList),i=new CustomEvent(e,{bubbles:!0,cancelable:!0}),i.touches=p.touchList,i.changedTouches=g.touchList,i.targetTouches=v.touchList,i}function i(t){var e,r,i;return t.changedTouches=[],t.changedTouches.length=1,t.changedTouches[0]=t,t.changedTouches[0].identifier=t.pointerId,r=new p.Touch(t.pointerId,d,t.screenX,t.screenY,t.clientX,t.clientY,t.pageX,t.pageY),c(t)&&(e="touchend","MSPointerUp"===t.type?r.target.msReleasePointerCapture(t.pointerId):r.target.releasePointerCapture(t.pointerId)),t.hwTimestamp>y&&g.clearTouches(),p.removeTouch(r.identifier),g.addUpdateTouch(r),n(r.target,p.touchList),i=new CustomEvent(e,{bubbles:!0,cancelable:!0}),i.touches=p.touchList,i.changedTouches=g.touchList,i.targetTouches=v.touchList,i}function o(t){m&&console.log(t)}function u(t){return"MSPointerDown"===t.type||"pointerdown"===t.type}function a(t){return"MSPointerMove"===t.type||"pointermove"===t.type}function c(t){return"MSPointerUp"===t.type||"pointerup"===t.type}var s,h,d,m=!1;l(t)||(u(t)||(h=p.getTouch(t.pointerId),d=h?h.target:t.target),s=u(t)||a(t)?r(t):i(t),s.preventDefault=function(){t.preventDefault&&t.preventDefault()},s.stopPropagation=function(){t.stopPropagation&&t.stopPropagation()},e.call(t.target,s),y=t.hwTimestamp)}function a(t){return w[t][_]}function c(t,e){var n="on"+e.toLowerCase();return n in t||t.hasOwnProperty(n)}function l(t){return"mouse"===t.pointerType||4===t.pointerType?!0:"pointerdown"===t.type&&0===t.x&&0===t.y?!0:"pen"===t.pointerType&&0===t.pressure&&"pointermove"===t.type}function f(t,e){return t.screenX===e.screenX&&t.screenY===e.screenY}function s(t){t&&t.style&&(e.MSPointerEvent?t.style.setAttribute("-ms-touch-action","none;"):t.style.touchAction="none")}function h(t){t&&t.style&&(e.MSPointerEvent?t.style.removeAttribute("-ms-touch-action"):t.style.touchAction=null)}function d(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}var p,g,v,m=["touchstart","touchmove","touchend"],y=0,w={touchstart:["pointerdown","MSPointerDown","touchstart"],touchmove:["pointermove","MSPointerMove","touchmove"],touchend:["pointerup","MSPointerUp","touchend"]},_=e.PointerEvent?0:e.MSPointerEvent?1:2;r.prototype={on:function(t,e){var n=this.element;if(-1===m.indexOf(t))return void n.addEventListener(t,e);if(c(n,t))return void n.addEventListener(t,e);var r=a(t);if(c(n,r)){var i=function(n){u(n,e,t)},l=d();e.uid=l,o(n,r,i,l,!0),s(n)}},off:function(t,e){var n=this.element;return-1===m.indexOf(t)?void n.removeEventListener(t,e):c(n,t)?void n.removeEventListener(t,e):(o(n,t,e,!1),void h(n))}},p=new i,g=new i,v=new i,t.exports=n}(window)}])});