gc.spread.views.calendargrouping.10.0.0.min.js 72 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.CalendarGrouping=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.CalendarGrouping=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(){function e(t,e){var n=e;return e&&(n=r(e)?ct.toDate(e):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())),n}function r(t){return ct.isNumber(t)||ct.isString(t)}function i(t,e){return e.left>=t.left&&e.top>=t.top&&e.left<=t.left+t.width&&e.top<=t.top+t.height}function o(t,e,n,r){var i=lt.offset(n),o=lt.offset(r),a=i.left-o.left,u=i.top-o.top,l=lt.gER(n);return t>=a&&t<=a+l.width&&e>=u&&e<=u+l.height}function a(){var t=this,e=l.call(t),n=t.options;return{top:0,left:e.left,width:e.width,height:n.daysColHeaderHeight,contentWidth:e.contentWidth,contentHeight:n.daysColHeaderHeight}}function u(){var t=this,e=l.call(t),n=t.options;return{top:n.daysColHeaderHeight,left:0,width:n.daysRowHeaderWidth,height:e.height,contentWidth:n.daysRowHeaderWidth,contentHeight:e.contentHeight}}function l(){var t=this,e=t.grid,n=t.options;t.cachedItemCount_=Math.ceil((n.daysEndTime.getTime()-n.daysStartTime.getTime())/(n.daysTimeUnit*St));var r=e.gCI_().contentRect,i=n.viewMode===dt?1:7,o=r.height-n.daysColHeaderHeight,a=r.width-n.daysRowHeaderWidth,u=i*Z(t),l=t.cachedItemCount_*n.daysRowHeight,c=lt.gSS(t.grid);return a-=l>o?c.height:0,o-=u>a?c.width:0,{top:n.daysColHeaderHeight,left:n.daysRowHeaderWidth,width:a,height:o,contentWidth:u,contentHeight:l}}function c(){var t=this,e=t.options;return{top:0,left:0,width:e.daysRowHeaderWidth,height:e.daysColHeaderHeight,contentWidth:e.daysRowHeaderWidth,contentHeight:e.daysColHeaderHeight}}function f(t,e){var n=t&&t.area||"";if(!n)return null;var r,i,o=ct.isNil(t.includeRows)?!0:t.includeRows,a=e[n],u=this,l=u.grid.layoutEngine.options.rightToLeft,c=u.options.daysRowHeight,f=u.options.daysRowHeaderWidth,s=a.height,p=a.width,v=u.grid.uid+"-",y={start:0,end:u.cachedItemCount_};if(u.cachedRows_=u.cachedRows_||{},n===bt){if(r={outerDivCssClass:"gc-viewport",outerDivStyle:{position:pt,top:a.top,height:s,width:p,overflow:vt},innerDivStyle:{position:gt,height:s,width:a.contentWidth},innerDivTranslate:{left:-t.offsetLeft||0,top:-t.offsetTop||0},renderedRows:[]},l?r.outerDivStyle.right=a.left:r.outerDivStyle.left=a.left,o){for(i=y.start;i<y.end;i++)r.renderedRows.push(d.call(u,i,c,v));r.renderedRows=r.renderedRows.concat(_.call(u))}u.cachedRows_[bt]=r.renderedRows}else if(n===wt)r={outerDivCssClass:"gc-columnHeader",outerDivStyle:{position:pt,top:a.top,height:s,width:p,overflow:vt},innerDivStyle:{position:gt,height:s,width:a.contentWidth},innerDivTranslate:{left:-t.offsetLeft||0,top:0},renderedRows:[{key:v+"Header",renderInfo:{cssClass:"gc-column-header",renderedHTML:g.call(u,t)}}]},l?r.outerDivStyle.right=a.left:r.outerDivStyle.left=a.left,u.cachedRows_[wt]=r.renderedRows;else if(n===mt){var w=u.displayDateTime_||b.call(u);if(u.displayDateTime_=w,r={outerDivCssClass:"gc-rowHeader",outerDivStyle:{position:pt,top:a.top,height:s,width:p,overflow:vt},innerDivStyle:{position:gt,height:s,width:a.contentWidth},innerDivTranslate:{left:0,top:-t.offsetTop||0},renderedRows:[]},l?r.outerDivStyle.right=a.left:r.outerDivStyle.left=a.left,o)for(f=u.options.daysRowHeaderWidth,i=y.start;i<y.end;i++)r.renderedRows.push(h.call(u,i,c,f,v,w[i]));u.cachedRows_[mt]=r.renderedRows}else n===_t&&(r={outerDivCssClass:"gc-cornerHeader",outerDivStyle:{position:pt,height:s,width:p},innerDivStyle:{position:gt,height:s,width:p},renderedRows:[{key:v+"corner",renderInfo:{cssClass:"gc-corner-header-cell "+(l?"gc-cell-border-rtl":"gc-cell-border"),style:{height:"100%"}}}]},u.cachedRows_[_t]=r.renderedRows);return r}function s(t,e){var n=this,r={};return t===bt?(r.left=-e.offsetLeft||0,r.top=-e.offsetTop||0):t===mt?(r.left=0,r.top=-e.offsetTop||0):t===wt?(r.left=-e.offsetLeft||0,r.top=0):t===_t&&(r.left=0,r.top=0),r.renderedRows=n.cachedRows_[t],r}function d(t,e,n){return{key:n+"r"+t,renderInfo:{index:0,cssClass:"gc-row r"+t+" even",style:{top:t*e,height:e},renderedHTML:p.call(this)}}}function h(t,e,n,r,i){return{key:r+"rh"+t,renderInfo:{style:{top:t*e,height:e,width:n},renderedHTML:y.call(this,i,e)}}}function p(){for(var t=this,e=t.options,n=e.viewMode===dt?1:7,r=e.daysRowHeight,i=Z(t),o=0,a='<div style="height:'+r+'px">',u=0;n>u;u++){var l="";a+=F(o,i,r,l,null,t.grid.layoutEngine.options.rightToLeft),o+=i}return a+="</div>"}function g(){for(var t=this,e=t.options,n=e.viewMode===dt?e.startDate:v(e.startDate),r=e.viewMode===dt?1:7,i=e.daysColHeaderHeight,o=Z(t),a=0,u='<div style="height:'+i+'px">',l=0;r>l;l++){var c=z.call(t,n),f="gc-day-header";u+=F(a,o,i,f,c,t.grid.layoutEngine.options.rightToLeft),a+=o,n=K(n,1)}return u+="</div>"}function v(t){return K(t,-t.getDay())}function y(t,e){var n=this,r=Y.call(n,t),i="gc-day-row-header";return'<div style="line-height:'+e+'px" class="'+(n.grid.layoutEngine.options.rightToLeft?"gc-calendar-cell-rtl ":"gc-calendar-cell ")+i+'">'+r+"</div>"}function w(t,e,n,r){for(var i,o,a,u=this,l=t.data,c=n.width,f=l.getItem(e,!0),s=0,d=1,h=u.options,p=f[h.daysEventStartField],g=f[h.daysEventEndField],v=u._cachedEventLayoutInfo||(u._cachedEventLayoutInfo=[]),y=0,w=v.length;w>y;y++){var m=v[y],_=m.indexOf(e);if(_>-1){a=!0,d=m.length,s=_;break}}if(!a){var b=[];b.push(e);for(var I=0;I<l.itemCount;I++){var H=l.getItem(I,!0);i=H[h.daysEventStartField],o=H[h.daysEventEndField],I!==e&&C.call(u,p,g,i,o)&&(b.push(I),p>i&&(p=i),o>g&&(g=o))}u._cachedEventLayoutInfo.push(b),d=b.length}var R=Math.floor(c/d),D=s*R;return{left:D,top:S.call(u,f,e)+r,width:R,height:T.call(u,f)-2*r,position:"absolute",overflow:"hidden"}}function m(t,e){return{style:{position:"absolute",overflow:"hidden"},location:{left:0,top:0}}}function _(){var t,e,n,r,i,o,a,u=this,l=0,c=U.call(u),f=u.grid,s=f.layoutEngine,d=u.options,h=Z(u),p=2,g=[],y=f.uid+"-",_=d.viewMode===dt?d.startDate:v(d.startDate);return ut.each(c,function(c){var d="";r={height:c.height,width:h-2*p},n=c.data;var v=s.gIGRI_(c,r,m.bind(u));for(l=h*I(ct.toDate(n.name),_),t=0,e=v.length;e>t;t++)o=v[t],i=o.key,o.key=null,a=lt.createElement(f.rR_(o)),d+='<div id="'+i+'" class="day-event" style="'+ct.cMFS(w.call(u,c,t,r,p))+'">'+a.innerHTML+"</div>";i=y+"g"+c.path.join("_"),g.push({key:i,renderInfo:{cssClass:"day-event-container",style:{position:"absolute",left:l+p,top:0,width:r.width,height:r.height,overflow:"hidden"},renderedHTML:d}})}),g}function b(){for(var t=this,e=t.options,n=e.daysTimeUnit*St,r=e.daysStartTime.getTime(),i=e.daysEndTime.getTime(),o=[],a=r;i>a;)o.push(new Date(a)),a+=n;return o.push(new Date(i)),o}function C(t,e,n,r){var i=t,o=e,a=n,u=r;return i.getMonth()!==a.getMonth()?!1:o.getDate()!==u.getDate()?!1:o.getTime()>a.getTime()&&u.getTime()>i.getTime()}function S(t,e){var n=this,r=n.options;if(!r.daysEventStartField)return r.daysRowHeight*e;var i=r.daysStartTime,o=t[r.daysEventStartField],a=o.getHours()-i.getHours()+(o.getMinutes()-i.getMinutes())/60;return r.daysRowHeight*a/n.options.daysTimeUnit}function T(t){var e=this,n=e.options,r=n.daysTimeUnit;return n.daysEventStartField&&n.daysEventEndField&&(r=(t[n.daysEventEndField]-t[n.daysEventStartField])/St),n.daysRowHeight*r/n.daysTimeUnit}function I(t,e){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(e.getFullYear(),e.getMonth(),e.getDate());return Math.floor(Math.abs((n-r)/Ct))}function H(){var t=this,e=t.grid,n=e.gCI_().contentRect;return{top:0,left:0,width:n.width,height:t.options.monthHeaderHeight}}function R(){var t=this,e=t.grid,n=e.gCI_().contentRect,r=t.options.monthHeaderHeight;return{top:r,left:0,width:n.width,height:n.height-r}}function D(t,e){var n=t&&t.area||"";if(!n)return null;var r,i=ct.isNil(t.includeRows)?!0:t.includeRows,o=e[n],a=this,u=o.height,l=o.width;return a.cachedRows_=a.cachedRows_||{},n===bt?(r={outerDivCssClass:"gc-viewport",outerDivStyle:{position:pt,top:o.top,left:o.left,height:u,width:l,overflow:vt},innerDivStyle:{position:gt,left:0,top:0,height:u,width:l}},i&&(r.renderedRows=x.call(a),r.renderedRows=r.renderedRows.concat(O.call(a))),a.cachedRows_[bt]=r.renderedRows):n===wt&&(r={outerDivCssClass:"gc-columnHeader",outerDivStyle:{position:pt,top:o.top,left:o.left,height:u,width:l,overflow:vt},innerDivStyle:{position:gt,left:0,top:0,height:u,width:l},renderedRows:E.call(a)},a.cachedRows_[wt]=r.renderedRows),r}function E(){var t=this,e={layoutInfo:V.call(t,!0),rowcontentInfo:q.call(t)},n=t.grid.uid+"-";return[{key:n+"header",renderInfo:{cssClass:"gc-column-header",renderedHTML:A.call(t,!0,e)}}]}function x(){for(var t=this,e=0,n=[],r={},i=t.grid.uid+"-",o=V.call(this,!1),a=t.monthContentInfo_||(t.monthContentInfo_=P.call(this)),u=0;It>u;u++)r.layoutInfo=o,r.rowcontentInfo=a.slice(u*Tt,u*Tt+Tt),n.push({key:i+"r"+u,renderInfo:{index:0,style:{top:e,height:o.height},renderedHTML:A.call(this,!1,r)}}),e+=o.height;return n}function L(t,e){return{cssClass:"month-event",ownerCssClass:"calendar-grouping",style:{position:"absolute",overflow:"hidden"}}}function O(){var t,e,n,r,i=this,o=V.call(i,!1),a=o.height,u=o.width,l=[],c=U.call(i),f=i.grid.uid,s=i.grid,d=s.layoutEngine;return ut.each(c,function(o){n=o.data;var c=ct.toDate(n.name),h=i._monthStartDate||(i._monthStartDate=i.monthContentInfo_[0].date),p=Math.abs(c-h)/Ct,g=p%Tt*u,v=parseInt(p/Tt)*a+k.call(i),y="",w={width:u-1,height:o.height-1},m=d.gIGRI_(o,w,L.bind(i)),_=d.gMVIC_(w,o)-1;if(j(n)){var b=s.layoutEngine.gGHr_(o.path,w.width,0).row;b.renderInfo.style.height=w.height;var C=m.length>0?m[0]:null;if(C){var S=W.call(i);b.renderInfo.renderedHTML+=S,y+=s.rR_(b)}else y+=s.rR_(b)}else for(t=0,e=m.length;e>t;t++){if(-1===_||t===_&&t!==e-1){y+=s.rR_(M(m[t],"+"+(e-t)+" "+i.options.localeResource.moreText));break}y+=s.rR_(m[t])}y='<div class="month-event-container" style="width:100%;height:100%">'+y+"</div>",r={key:f+"-g"+o.path.join("_"),renderInfo:{style:{position:"absolute",top:v,width:w.width,height:w.height,overflow:"hidden"},renderedHTML:y}},d.options.rightToLeft?r.renderInfo.style.right=g:r.renderInfo.style.left=g,l.push(r)}),i._monthStartDate=null,l}function j(t){var e=t.groupDescriptor.header;return e&&e.visible&&e.template}function M(t,e){var n,r,i=t;return i.renderInfo=i.renderInfo||{},n=i.renderInfo.renderedHTML,n?(r=lt.createElement(n),r.innerHTML='<a class="linkBtn">'+e+"</a>",n=r.outerHTML):n='<div style="height:100%;"><a class="linkBtn">'+e+"</a></div>",i.renderInfo.renderedHTML=n,i}function W(){var t=this.options;return'<a class="linkBtn">'+(t.linkButtonTemplate?t.linkButtonTemplate:t.localeResource.linkText)+"</a>"}function k(){var t=this,e=t.grid.gI_.length>0&&t.grid.gI_[0].data;if(j(e))return 0;if(t.cachedCellTextHeight_)return t.cachedCellTextHeight_;var n=lt.createElement('<div style="position: absolute" class="calendar-grouping"><span class="gc-calendar-cell-text">31</span></div>');if(n){document.body.appendChild(n);var r=lt.gER(n.children[0]),i=lt.gCSV(n.children[0]);return document.body.removeChild(n),t.cachedCellTextHeight_=r.height+i.marginTop+i.marginBottom,t.cachedCellTextHeight_}}function A(t,e){for(var n=0,r=e.layoutInfo,i=e.rowcontentInfo,o=r.height,a=r.width,u='<div style="height:'+o+'px">',l=t?"gc-day-header":"",c=t?F:B,f=0;Tt>f;f++)u+=c(n,a,o,l,i[f],this.grid.layoutEngine.options.rightToLeft),n+=a;return u+="</div>"}function F(t,e,n,r,i,o){var a=i||"";return N(t,e,n,r,o,a,!0)}function B(t,e,n,r,i,o){var a="gc-day "+(i.isHeadingDay?"heading":i.isTrailingDay?"trailing":""),u=i.date.getDate(),l='<span class="gc-calendar-cell-text">'+u+"</span>";return N(t,e,n,a,o,l,!1)}function N(t,e,n,r,i,o,a){return'<div class = "'+(i?"gc-calendar-cell-rtl ":"gc-calendar-cell ")+r+'" style="position:absolute;height:'+n+"px; width:"+e+"px;"+(i?"right:":"left:")+t+"px;;overflow:hidden;"+(a?"line-height:"+n+'px"':"")+'">'+o+"</div>"}function P(){for(var t,e=this,n=e.options.startDate?e.options.startDate:new Date,r=new Date(n.getFullYear(),n.getMonth(),1),i=r.getDay(),o=0===i?Tt:i,a=G(r),u=It*Tt-a-o,l=[],c=0;o>c;c++)t=K(r,c-o),l.push({isHeadingDay:!0,date:t});t=r;for(var f=0;a>f;f++)l.push({date:t}),t=K(t,1);for(var s=0;u>s;s++)l.push({isTrailingDay:!0,date:t}),t=K(t,1);return l}function G(t){var e=t.getFullYear(),n=t.getMonth();return 11===n?(e+=1,n=0):n+=1,new Date(e,n,0).getDate()}function V(t){var e=this,n=t?wt:bt,r=e.gLI_(),i=r[n],o=t?1:It;return{width:Math.floor(i.width/Tt),height:Math.floor(i.height/o)}}function U(){var t,e,n=this,r=[],i=n.options,o=i.viewMode===dt?1:7,a=i.startDate,u=a.getFullYear(),l=a.getMonth(),c=a.getDate();i.viewMode===ht?(t=v(a),e=K(t,o-1)):i.viewMode===dt?(t=new Date(u,l,c),e=t):(t=n.monthContentInfo_[0].date,e=n.monthContentInfo_[n.monthContentInfo_.length-1].date);var f;return ut.each(n.grid.gI_,function(n){f=n.data;var i=ct.toDate(f.name);i>=t&&e>=i&&r.push(n)}),r}function q(){var t=this,e=t.monthContentInfo_||(t.monthContentInfo_=P.call(this)),n=e.slice(0,7),r=[];return ut.each(n,function(e){r.push($(t.options.monthHeaderFormatter,e.date))}),r}function z(t){return $(this.options.daysHeaderFormatter,t)}function Y(t){return $(this.options.rowHeaderFormatter,t)}function $(t,e){if(X(t)){var n=GC&&GC.Spread&&GC.Spread.Formatter&&GC.Spread.Formatter.GeneralFormatter,r=new n(t);return r.format(e)}}function X(t){return GC&&GC.Spread&&GC.Spread.Formatter&&GC.Spread.Formatter.GeneralFormatter&&t}function K(t,e){var n=ct.toDate(t),r=Ct*e;return n.setTime(n.getTime()+r),n}function J(t,e){var n,r,i,o=t,a=o.layoutEngine.gS_,u=a.hT_(e);if(r=u.popoverInfo)return void(r.onCloseButton?it.call(a):rt(a,r.groupPath,r.row));if(n=u.groupInfo)if("eventLimit"===n.action){n=o.gGI_(n.path),i=n.data;var l={group:i,cancel:!1};if(a.eventLimitClick.raise(o,l),l&&!l.cancel){var c=document.getElementById(o.uid),f=lt.offset(c),s=lt.offset(document.getElementById(o.uid+"-g"+n.path.join("_"))),d=s.left-f.left,h=s.top-a.options.monthHeaderHeight-f.top,p=$("MMMM d",ct.toDate(i.name)),g=o.uid+"-popover-dialog",v="<div id ="+g+' style = "position:absolute;top:'+h+"px;left:"+d+'px;" class="popover-dialog">';v+='<div class = "popover-header"><div class="popover-header-inner"><span class="popover-header-text">'+p+'</span><div class="popover-close"><span class="gc-icon close-icon"></span></div></div></div>',v+='<div class = "popover-content" style="position:relative;overflow:auto;">',v+="</div>";var y=document.createElement("div");y.innerHTML=v;var w=y.children[0];y=null,c.appendChild(w);var m=document.getElementById(g),_=document.querySelector("#"+g+" .popover-content"),b=document.querySelector("#"+o.uid+"-popover-dialog .popover-header");_.style.width=m.clientWidth+"px";var C=lt.getStyle(_),S=_.clientWidth-parseInt(C.getPropertyValue("padding-left"))-parseInt(C.getPropertyValue("padding-right")),T=o.layoutEngine;T.cRC_();var I={width:S,height:T.gIGH_(n,{width:S},L.bind(a))},H=m.clientHeight-b.clientHeight-parseInt(C.getPropertyValue("padding-top"))-parseInt(C.getPropertyValue("padding-bottom"));I.height>H&&(_.style.width=m.clientWidth-lt.gSS(o).width+"px",S=_.clientWidth-parseInt(C.getPropertyValue("padding-left"))-parseInt(C.getPropertyValue("padding-right")),T=o.layoutEngine,I={width:S,height:T.gIGH_(n,{width:S},L.bind(a))}),v="",v='<div class="group-content" style="position:relative;height:'+I.height+'px;">';var R=T.gIGRI_(n,I,L.bind(a));ut.each(R,function(t){v+=o.rR_(t)}),v+="</div>",_.innerHTML=v,a.popoverGroupInfo_=n;var D=lt.gCoR(m),E=D.left+D.width,x=D.top+D.height,O=o.gCI_().contentRect,j=O.left+O.width,M=O.top+O.height;E>j&&(m.style.left=d-(E-j)+"px"),x>M&&(m.style.top=h-(x-M)+"px")}}else rt(a,n.path,n.row)}function Z(t){if(t.cachedItemWidth_)return t.cachedItemWidth_;var e=t.options,n=t.grid,r=lt.gSS(n),i=n.gCI_().contentRect,o=i.height-e.daysColHeaderHeight,a=Math.ceil((e.daysEndTime.getTime()-e.daysStartTime.getTime())/(e.daysTimeUnit*St))*e.daysRowHeight,u=i.width-e.daysRowHeaderWidth-(a>o?r.width:0),l=t.options.viewMode;return l===dt?t.cachedItemWidth_=u:l===ht&&(t.cachedItemWidth_=Math.floor(u/7)),t.cachedItemWidth_}function Q(t,e){}function tt(t,e){var n=ut.pick(e.targetTouches[0],Ht);n.deviceType="touch",nt(t,n)}function et(t,e){nt(t,e)}function nt(t,e){var n,r=t,i=r.layoutEngine.gS_,o=i.hT_(e);o?(n=o.popoverInfo,n||it.call(i)):it.call(i)}function rt(t,e,n){if(n>=0){var r=t.grid,i={data:r.gGI_(e).data.getItem(n,!0)};t.eventClick.raise(r,i)}}function it(){var t=this,e=t.grid,n=document.getElementById(e.uid+"-popover-dialog");n&&(n.parentNode.removeChild(n),t.popoverGroupInfo_=null,t.popoverClose.raise(e))}function ot(t,e){var n=t,r=n.layoutEngine.gS_;if("Month"!==r.options.viewMode){var i=e.deltaY;if(0!==i){var o=lt.getElement("#"+n.uid+" .gc-grid-viewport-scroll-panel");o&&(o.scrollTop=n.gSO_("viewport").top+i,e.preventDefault())}}}function at(t,e){this.grid.invalidate()}var ut=n(1);n(3);var lt=n(7),ct=n(8),ft=n(9).Event,st="Month",dt="Day",ht="Week",pt="absolute",gt="relative",vt="hidden",yt="auto",wt="columnHeader",mt="rowHeader",_t="cornerHeader",bt="viewport",Ct=864e5,St=36e5,Tt=7,It=6,Ht=["pageX","pageY","clientX","clientY","target"],Rt=function(t){var n=this;n.name="CalendarGrouping",n.className="calendar-grouping";var i=new Date;if(t){t.daysStartTime=e(i,t.daysStartTime),t.daysEndTime=e(i,t.daysEndTime);var o=t.startDate;r(o)&&(t.startDate=ct.toDate(o))}var a=n.getDefaultOptions_();a.localeResource=ut.defaultsDeep(ct.getResource(a.localeResource)||{},a.localeResource),n.options=ut.defaults(t||{},a),n.l_=null,n.eventLimitClick=new ft,n.eventClick=new ft,n.popoverClose=new ft};Rt.prototype={init_:function(t){this.grid=t},rE_:function(){var t=this,e=t.grid;e.omw_.addHandler(ot),e.omd_.addHandler(et),e.omu_.addHandler(Q),e.onMouseClick_.addHandler(J),e.otos_.addHandler(tt),e.data.collectionChanged_.addHandler(at,t)},uRE_:function(){var t=this,e=t.grid;e.omw_.removeHandler(ot),e.omd_.removeHandler(et),e.omu_.removeHandler(Q),e.onMouseClick_.removeHandler(J),e.otos_.removeHandler(tt),e.data.collectionChanged_.removeHandler(at,t)},getDefaultOptions_:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(e,n,r,0,0,0),o=new Date(e,n,r,24,0,0);return{viewMode:st,startDate:t,daysStartTime:i,daysEndTime:o,daysTimeUnit:1,daysRowHeaderWidth:60,daysColHeaderHeight:25,daysRowHeight:50,monthHeaderHeight:25,monthHeaderFormatter:"dddd",daysHeaderFormatter:"ddd, mmm dd",rowHeaderFormatter:"h:mm",localeResource:{linkText:"details",moreText:"more...",errorText:"Calendar and Timeline grouping layouts require a single grouping on a Date field."}}},gISO_:function(){return{viewport:{top:0,left:0}}},gLI_:function(){var t=this;return t.l_?t.l_:(t.options.viewMode===st?t.l_={columnHeader:H.call(this),viewport:R.call(this)}:t.l_={viewport:l.call(this),columnHeader:a.call(this),rowHeader:u.call(this),cornerHeader:c.call(this)},t.l_)},gRRI_:function(t){return t},gRR_:function(t){var e=this,n=t&&t.area||"";return n?s.call(e,n,t):null},gRI_:function(t){var e=this,n=e.grid,r=n.data.groupDescriptors,i=ct.isArray(r)?r:[r],o=n.gI_;if(!o||0===o.length||"date"!==n.gCBI_(i[0].field).dataType)throw e.options.localeResource.errorText;var a=e.gLI_(),u=e.options.viewMode!==st?f.call(this,t,a):D.call(this,t,a);return u},sSP_:function(t){var e=this;if(e.options.viewMode!==st){var n=this.gLI_()[t];if(n.height<n.contentHeight||n.width<n.contentWidth)return!0}return!1},iSA_:function(){return!1},gGID_:function(){return ut.defaultsDeep(this.options.defaultGroupingInfo||{},{header:{visible:!1},footer:{visible:!1}})},gSPRI_:function(t){var e=this;if(e.options.viewMode!==st&&t===bt){var n=this.gLI_(),r=n[wt],i=n[mt],o=n[bt],a=o.contentWidth>o.width,u=o.contentHeight>o.height,l=lt.gSS(e.grid),c=o.height+r.height+(a?l.width:0),f=o.width+i.width+(u?l.width:0),s=[];a&&s.push("scroll-left"),u&&s.push("scroll-top");var d=[],h=(l.height||15)+1,p=(l.width||15)+1;return ut.each(s,function(t){var e="scroll-top"===t;d.push({isVertical:e,outerDivCssClass:"gc-grid-viewport-scroll-panel "+t,outerDivStyle:{position:pt,top:e?0:c-h,left:e?f-p:0,height:e?c+(a?-1*l.height:0):h,width:e?p:f+(u?-1*l.width:0),overflow:yt},innerDivStyle:{position:gt,height:e?o.contentHeight+r.height:1,width:e?1:o.contentWidth+i.width}})}),d}},sFn2_:function(){var t=this,e=t.grid;t.options.viewMode!==st&&(e.sRP_(bt,!1),e.sRP_(wt,!1),e.sRP_(mt,!1))},hT_:function(t){var e,n,r,a,u,l=this,c=l.grid,f=t.pageX,s=t.pageY,d=l.options,h=l.gLI_(),p=c.layoutEngine.options.rightToLeft,g=c.gCI_().contentRect,v=f-g.left,y=s-g.top,w={left:v,top:y};if(d.viewMode===st){var m=h[bt];if(i(m,w)){if(r=h[wt],y-=r.height,a=c.gI_,!a||0===a.length)return null;var _,b=c.layoutEngine,C=document.getElementById(c.uid+"-viewport-inner"),S=document.getElementById(c.uid+"-popover-dialog");if(S&&o(v,y,S,C)){var T=document.querySelector("#"+c.uid+"-popover-dialog .popover-close"),I=document.querySelector("#"+c.uid+"-popover-dialog .popover-header"),H=document.querySelector("#"+c.uid+"-popover-dialog .group-content");if(_={area:"viewport",row:-1,column:-1,popoverInfo:{onCloseButton:!1}},T&&o(v,y,T,C))_.popoverInfo.onCloseButton=!0;else if(I&&o(v,y,I,C))_.popoverInfo.row=-1;else{var R=lt.offset(H),D=c.layoutEngine.hTGC_(l.popoverGroupInfo_,"viewport",p?S.clientWidth-f+R.left:f-R.left,s-R.top,{width:H.clientWidth,height:H.clientHeight},t);D&&(_.popoverInfo.groupPath=l.popoverGroupInfo_.path,_.popoverInfo.row=D.groupInfo.row)}return _}var E,x,L=V.call(l,!1);for(e=0,n=a.length;n>e;e++){u=a[e],E={width:L.width,height:u.height};var O=u.data,M=document.getElementById(c.uid+"-g"+u.path.join("_"));if(M&&o(v,y,M,C)){if(x=lt.offset(M),j(O)){var W={row:-1,column:-1,area:"viewport",groupInfo:{path:u.path,row:-1,column:-1}},k=M.querySelector(".linkBtn");return o(f-parseInt(x.left),s-parseInt(x.top),k,M)?W.groupInfo.action="eventLimit":W.groupInfo.area="groupHeader",W}if(_=b.hTGC_(u,"viewport",p?M.clientWidth-f+x.left:f-x.left,s-x.top,E,t),!_)return{area:"viewport",row:-1,column:-1,groupInfo:{area:"groupContainer",path:u.path,row:-1,column:-1}};var A=b.gMVIC_({width:V.call(l,!1).width,height:u.height},u),F=_.groupInfo;return F&&(0===A&&0===F.row||F.row===A-1)&&A<O.itemCount&&(F.action="eventLimit",F.row=-1),F.row>=A&&(F.row=-1),_}}return{area:"viewport",row:-1,column:-1}}}else{var B=h[bt];if(i(B,w)){var N=h[mt];r=h[wt],v-=N.width,y-=r.height;var P=document.getElementById(c.uid+"-viewport");a=U.call(l);var G,q,z;for(e=0,n=a.length;n>e;e++)if(u=a[e],z=document.getElementById(c.uid+"-g"+u.path.join("_")),o(v,y,z,P))for(G=0,q=u.data.itemCount;q>G;G++)if(z=document.getElementById(c.uid+"-gr"+u.path.join("_")+"-r"+G),o(v,y,z,P))return{area:"viewport",row:-1,column:-1,groupInfo:{area:"eventContainer",path:u.path,row:G}};return{area:"viewport",row:-1,column:-1}}}return{}},toJSON_:function(){var t,e=this,n=e.options,r=e.getDefaultOptions_(),i={},o={};return i.name=e.name,ut.each(n,function(e,n){t=r[n],ut.isEqual(e,t)||ut.isNil(e)||(ct.isObject(e)?o[n]=ct.serializeObject(ct.extractObject(e,t)):o[n]=e)}),ut.isEmpty(o)||(i.options=o),i},d_:function(){this.uRE_()},cRC_:function(){var t=this;t.l_=null,t.cachedItemWidth_=null,t.monthContentInfo_&&(t.monthContentInfo_=null),t.cachedItemCount_&&(t.cachedItemCount_=null),t.displayDateTime_&&(t.displayDateTime_=null),t.cachedRows_&&(t.cachedRows_=null),t.cachedCellTextHeight_&&(t.cachedCellTextHeight_=null)},iGIH_:function(){var t,e,n=this,r=n.grid.gI_,i=n.options.viewMode!==st?l.call(n).contentHeight:V.call(n,!1).height-k.call(n);for(t=0,e=r.length;e>t;t++)r[t].height=i},cTS_:function(){return!0},sSL_:function(t){},sLI_:function(){}},t.exports=Rt}()},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 a(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 u(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function l(t,e){for(var n=t?t.length:0;n--&&e(t[n],n,t)!==!1;);return t}function c(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 a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function s(t,e){var n=t?t.length:0;return!!n&&w(t,e,0)>-1}function d(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function h(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 y(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 w(t,e,n){if(e!==e)return x(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function m(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 C(t){return function(e){return t(e)}}function S(t,e){return h(e,function(e){return t[e]})}function T(t,e){return t.has(e)}function I(t,e){for(var n=-1,r=t.length;++n<r&&w(e,t[n],0)>-1;);return n}function H(t,e){for(var n=t.length;n--&&w(e,t[n],0)>-1;);return n}function R(t){return t&&t.Object===Object?t:null}function D(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function E(t,e){return null==t?Pr:t[e]}function x(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 L(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function O(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 M(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==zr||(t[n]=zr,o[i++]=n)}return o}function W(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function k(t){return t.match(yo)}function A(){}function F(){}function B(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=si,this.__views__=[]}function N(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 P(){this.__data__=ia?ia(null):{}}function G(t){return this.has(t)&&delete this.__data__[t]}function V(t){var e=this.__data__;if(ia){var n=e[t];return n===qr?Pr:n}return jo.call(e,t)?e[t]:Pr}function U(t){var e=this.__data__;return ia?e[t]!==Pr:jo.call(e,t)}function q(t,e){var n=this.__data__;return n[t]=ia&&e===Pr?qr: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 Y(){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():zo.call(e,n,1),!0}function X(t){var e=this.__data__,n=vt(e,t);return 0>n?Pr: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 N,map:new(ta||z),string:new N}}function tt(t){return qe(this,t)["delete"](t)}function et(t){return qe(this,t).get(t)}function nt(t){return qe(this,t).has(t)}function rt(t,e){return qe(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,qr),this}function at(t){return this.__data__.has(t)}function ut(t){this.__data__=new z(t)}function lt(){this.__data__=new z}function ct(t){return this.__data__["delete"](t)}function ft(t){return this.__data__.get(t)}function st(t){return this.__data__.has(t)}function dt(t,e){var n=this.__data__;return n instanceof z&&n.__data__.length==Vr&&(n=this.__data__=new Z(n.__data__)),n.set(t,e),this}function ht(t,e,n,r){return t===Pr||$n(t,Eo[n])&&!jo.call(r,n)?e:t}function pt(t,e,n){(n===Pr||$n(t[e],n))&&("number"!=typeof e||n!==Pr||e in t)||(t[e]=n)}function gt(t,e,n){var r=t[e];jo.call(t,e)&&$n(r,n)&&(n!==Pr||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 yt(t,e){return t&&Te(e,Tr(e),t)}function wt(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n<i;)o[n]=r?Pr:Cr(t,e[n]);return o}function mt(t,e,n){return t===t&&(n!==Pr&&(t=n>=t?t:n),e!==Pr&&(t=t>=e?t:e)),t}function _t(t,e,n,r,i,o,a){var l;if(r&&(l=o?r(t,i,o,a):r(t)),l!==Pr)return l;if(!or(t))return t;var c=Aa(t);if(c){if(l=Ze(t),!e)return Se(t,l)}else{var f=Ke(t),s=f==mi||f==_i;if(Fa(t))return se(t,e);if(f==Si||f==pi||s&&!o){if(L(t))return o?t:{};if(l=Qe(s?{}:t),!e)return Ie(t,yt(l,t))}else{if(!mo[f])return o?t:{};l=tn(t,f,_t,e)}}a||(a=new ut);var d=a.get(t);if(d)return d;if(a.set(t,l),!c)var h=n?Pe(t):Tr(t);return u(h||t,function(i,o){h&&(o=i,i=t[o]),gt(l,o,_t(i,e,n,r,o,t,a))}),l}function bt(t){return or(t)?Uo(t):{}}function Ct(t,e,n,r){var i=-1,o=s,a=!0,u=t.length,l=[],c=e.length;if(!u)return l;n&&(e=h(e,C(n))),r?(o=d,a=!1):e.length>=Vr&&(o=T,a=!1,e=new it(e));t:for(;++i<u;){var f=t[i],p=n?n(f):f;if(f=r||0!==f?f:0,a&&p===p){for(var g=c;g--;)if(e[g]===p)continue t;l.push(f)}else o(e,p,r)||l.push(f)}return l}function St(t,e){var n=!0;return va(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Tt(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(u===Pr?a===a&&!hr(a):n(a,u)))var u=a,l=o}return l}function It(t,e,n,r){var i=t.length;for(n=yr(n),0>n&&(n=-n>i?0:i+n),r=r===Pr||r>i?i:yr(r),0>r&&(r+=i),r=n>r?0:wr(r);r>n;)t[n++]=e;return t}function Ht(t,e){var n=[];return va(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Rt(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=nn),i||(i=[]);++o<a;){var u=t[o];e>0&&n(u)?e>1?Rt(u,e-1,n,r,i):p(i,u):r||(i[i.length]=u)}return i}function Dt(t,e){return t&&wa(t,e,Tr)}function Et(t,e){return t&&ma(t,e,Tr)}function xt(t,e){e=un(e,t)?[e]:ce(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[wn(e[n++])];return n&&n==r?t:Pr}function Lt(t,e,n){var r=e(t);return Aa(t)?r:p(r,n(t))}function Ot(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 Mt(t,e){return null!=t&&e in Object(t)}function Wt(t,e,n){for(var r=n?d:s,i=t[0].length,o=t.length,a=o,u=Array(o),l=1/0,c=[];a--;){var f=t[a];a&&e&&(f=h(f,C(e))),l=Zo(f.length,l),u[a]=!n&&(e||i>=120&&f.length>=120)?new it(a&&f):Pr}f=t[0];var p=-1,g=u[0];t:for(;++p<i&&c.length<l;){var v=f[p],y=e?e(v):v;if(v=n||0!==v?v:0,!(g?T(g,y):r(c,y,n))){for(a=o;--a;){var w=u[a];if(!(w?T(w,y):r(t[a],y,n)))continue t}g&&g.push(y),c.push(v)}}return c}function kt(t,e,n,r,i){return t===e?!0:null==t||null==e||!or(t)&&!ar(e)?t!==t&&e!==e:At(t,e,kt,n,r,i)}function At(t,e,n,r,i,o){var a=Aa(t),u=Aa(e),l=gi,c=gi;a||(l=Ke(t),l=l==pi?Si:l),u||(c=Ke(e),c=c==pi?Si:c);var f=l==Si&&!L(t),s=c==Si&&!L(e),d=l==c;if(d&&!f)return o||(o=new ut),a||pr(t)?Fe(t,e,n,r,i,o):Be(t,e,l,n,r,i,o);if(!(i&ii)){var h=f&&jo.call(t,"__wrapped__"),p=s&&jo.call(e,"__wrapped__");if(h||p){var g=h?t.value():t,v=p?e.value():e;return o||(o=new ut),n(g,v,r,i,o)}}return d?(o||(o=new ut),Ne(t,e,n,r,i,o)):!1}function Ft(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var u=n[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1;
  14. }for(;++i<o;){u=n[i];var l=u[0],c=t[l],f=u[1];if(a&&u[2]){if(c===Pr&&!(l in t))return!1}else{var s=new ut;if(r)var d=r(c,f,l,t,e,s);if(!(d===Pr?kt(f,c,r,ri|ii,s):d))return!1}}return!0}function Bt(t){if(!or(t)||fn(t))return!1;var e=rr(t)||L(t)?Ao:Ki;return e.test(mn(t))}function Nt(t){return"function"==typeof t?t:null==t?Lr:"object"==("undefined"==typeof t?"undefined":r(t))?Aa(t)?zt(t[0],t[1]):qt(t):Wr(t)}function Pt(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 Vt(t,e){return e>t}function Ut(t,e){var n=-1,r=Kn(t)?Array(t.length):[];return va(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function qt(t){var e=ze(t);return 1==e.length&&e[0][2]?hn(e[0][0],e[0][1]):function(n){return n===t||Ft(n,t,e)}}function zt(t,e){return un(t)&&dn(e)?hn(wn(t),e):function(n){var r=Cr(n,t);return r===Pr&&r===e?Sr(n,t):kt(e,r,Pr,ri|ii)}}function Yt(t,e,n,r,i){if(t!==e){if(!Aa(e)&&!pr(e))var o=Ir(e);u(o||e,function(a,u){if(o&&(u=a,a=e[u]),or(a))i||(i=new ut),$t(t,e,u,n,Yt,r,i);else{var l=r?r(t[u],a,u+"",t,e,i):Pr;l===Pr&&(l=a),pt(t,u,l)}})}}function $t(t,e,n,r,i,o,a){var u=t[n],l=e[n],c=a.get(l);if(c)return void pt(t,n,c);var f=o?o(u,l,n+"",t,e,a):Pr,s=f===Pr;s&&(f=l,Aa(l)||pr(l)?Aa(u)?f=u:Jn(u)?f=Se(u):(s=!1,f=_t(l,!0)):sr(l)||Xn(l)?Xn(u)?f=_r(u):!or(u)||r&&rr(u)?(s=!1,f=_t(l,!0)):f=u:s=!1),a.set(l,f),s&&i(f,l,r,o,a),a["delete"](l),pt(t,n,f)}function Xt(t,e,n){var r=-1;e=h(e.length?e:[Lr],C(Ue()));var i=Ut(t,function(t,n,i){var o=h(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?Pr:e[t]}}function Zt(t){return function(e){return xt(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))zo.call(t,i,1);else if(un(i,t))delete t[wn(i)];else{var a=ce(i),u=vn(t,a);null!=u&&delete u[wn(Tn(a))]}}}return t}function te(t,e,n,r){e=un(e,t)?[e]:ce(e);for(var i=-1,o=e.length,a=o-1,u=t;null!=u&&++i<o;){var l=wn(e[i]);if(or(u)){var c=n;if(i!=a){var f=u[l];c=r?r(f,l,u):Pr,c===Pr&&(c=null==f?on(e[i+1])?[]:{}:f)}gt(u,l,c)}u=u[l]}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 va(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&&hi>=i){for(;i>r;){var o=r+i>>>1,a=t[o];null!==a&&!hr(a)&&(n?e>=a:e>a)?r=o+1:i=o}return i}return ie(t,e,Lr,n)}function ie(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!==e,u=null===e,l=hr(e),c=e===Pr;o>i;){var f=Yo((i+o)/2),s=n(t[f]),d=s!==Pr,h=null===s,p=s===s,g=hr(s);if(a)var v=r||p;else v=c?p&&(r||d):u?p&&d&&(r||!h):l?p&&d&&!h&&(r||!g):h||g?!1:r?e>=s:e>s;v?i=f+1:o=f}return Zo(o,di)}function oe(t){if("string"==typeof t)return t;if(hr(t))return ga?ga.call(t):"";var e=t+"";return"0"==e&&1/t==-ui?"-0":e}function ae(t,e,n){var r=-1,i=s,o=t.length,a=!0,u=[],l=u;if(n)a=!1,i=d;else if(o>=Vr){var c=e?null:ba(t);if(c)return W(c);a=!1,i=T,l=new it}else l=e?[]:u;t:for(;++r<o;){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,a&&h===h){for(var p=l.length;p--;)if(l[p]===h)continue t;e&&l.push(h),u.push(f)}else i(l,h,n)||(l!==u&&l.push(h),u.push(f))}return u}function ue(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var u=o>r?e[r]:Pr;n(a,t[r],u)}return a}function le(t){return Jn(t)?t:[]}function ce(t){return Aa(t)?t:Ia(t)}function fe(t,e,n){var r=t.length;return n=n===Pr?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 de(t){var e=new t.constructor(t.byteLength);return new Po(e).set(new Po(t)),e}function he(t,e){var n=e?de(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,Yi.exec(t));return e.lastIndex=t.lastIndex,e}function ve(t,e,n){var r=e?n(W(t),!0):W(t);return g(r,o,new t.constructor)}function ye(t){return pa?Object(pa.call(t)):{}}function we(t,e){var n=e?de(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function me(t,e){if(t!==e){var n=t!==Pr,r=null===t,i=t===t,o=hr(t),a=e!==Pr,u=null===e,l=e===e,c=hr(e);if(!u&&!c&&!o&&t>e||o&&a&&l&&!u&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e>t||c&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!l)return-1}return 0}function _e(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var l=me(i[r],o[r]);if(l){if(r>=u)return l;var c=n[r];return l*("desc"==c?-1:1)}}return t.index-e.index}function be(t,e,n,r){for(var i=-1,o=t.length,a=n.length,u=-1,l=e.length,c=Jo(o-a,0),f=Array(l+c),s=!r;++u<l;)f[u]=e[u];for(;++i<a;)(s||o>i)&&(f[n[i]]=t[i]);for(;c--;)f[u++]=t[i++];return f}function Ce(t,e,n,r){for(var i=-1,o=t.length,a=-1,u=n.length,l=-1,c=e.length,f=Jo(o-u,0),s=Array(f+c),d=!r;++i<f;)s[i]=t[i];for(var h=i;++l<c;)s[h+l]=e[l];for(;++a<u;)(d||o>i)&&(s[h+n[a]]=t[i++]);return s}function Se(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Te(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var a=e[i],u=r?r(n[a],t[a],a,n,t):t[a];gt(n,a,u)}return n}function Ie(t,e){return Te(t,Xe(t),e)}function He(t){return Un(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:Pr,a=i>2?n[2]:Pr;for(o=t.length>3&&"function"==typeof o?(i--,o):Pr,a&&an(n[0],n[1],a)&&(o=3>i?Pr:o,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,o)}return e})}function Re(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,a=Object(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function De(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),u=a.length;u--;){var l=a[t?u:++i];if(n(o[l],l,o)===!1)break}return e}}function Ee(t,e,n){function r(){var e=this&&this!==Ro&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&Yr,o=xe(t);return r}function xe(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 Le(t,e,n){function r(){for(var o=arguments.length,u=Array(o),l=o,c=Ve(r);l--;)u[l]=arguments[l];var f=3>o&&u[0]!==c&&u[o-1]!==c?[]:M(u,c);if(o-=f.length,n>o)return ke(t,e,je,r.placeholder,Pr,u,f,Pr,Pr,n-o);var s=this&&this!==Ro&&this instanceof r?i:t;return a(s,this,u)}var i=xe(t);return r}function Oe(t){return function(e,n,r){var i=Object(e);if(n=Ue(n,3),!Kn(e))var o=Tr(e);var a=t(o||e,function(t,e){return o&&(e=t,t=i[e]),n(t,e,i)},r);return a>-1?e[o?o[a]:a]:Pr}}function je(t,e,n,r,i,o,a,u,l,c){function f(){for(var y=arguments.length,w=Array(y),m=y;m--;)w[m]=arguments[m];if(p)var _=Ve(f),b=D(w,_);if(r&&(w=be(w,r,i,p)),o&&(w=Ce(w,o,a,p)),y-=b,p&&c>y){var C=M(w,_);return ke(t,e,je,f.placeholder,n,w,C,u,l,c-y)}var S=d?n:this,T=h?S[t]:t;return y=w.length,u?w=yn(w,u):g&&y>1&&w.reverse(),s&&y>l&&(w.length=l),this&&this!==Ro&&this instanceof f&&(T=v||xe(T)),T.apply(S,w)}var s=e&ti,d=e&Yr,h=e&$r,p=e&(Kr|Jr),g=e&ni,v=h?Pr:xe(t);return f}function Me(t,e,n,r){function i(){for(var e=-1,l=arguments.length,c=-1,f=r.length,s=Array(f+l),d=this&&this!==Ro&&this instanceof i?u:t;++c<f;)s[c]=r[c];for(;l--;)s[c++]=arguments[++e];return a(d,o?n:this,s)}var o=e&Yr,u=xe(t);return i}function We(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=mr(e),n=mr(n)),t(e,n)}}function ke(t,e,n,r,i,o,a,u,l,c){var f=e&Kr,s=f?a:Pr,d=f?Pr:a,h=f?o:Pr,p=f?Pr:o;e|=f?Zr:Qr,e&=~(f?Qr:Zr),e&Xr||(e&=~(Yr|$r));var g=[t,e,i,h,s,p,d,u,l,c],v=n.apply(Pr,g);return cn(t)&&Ta(v,g),v.placeholder=r,v}function Ae(t,e,n,r,i,o,a,u){var l=e&$r;if(!l&&"function"!=typeof t)throw new TypeError(Ur);var c=r?r.length:0;if(c||(e&=~(Zr|Qr),r=i=Pr),a=a===Pr?a:Jo(yr(a),0),u=u===Pr?u:yr(u),c-=i?i.length:0,e&Qr){var f=r,s=i;r=i=Pr}var d=l?Pr:Ca(t),h=[t,e,n,r,i,f,s,o,a,u];if(d&&pn(h,d),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],u=h[9]=null==h[9]?l?0:t.length:Jo(h[9]-c,0),!u&&e&(Kr|Jr)&&(e&=~(Kr|Jr)),e&&e!=Yr)p=e==Kr||e==Jr?Le(t,e,u):e!=Zr&&e!=(Yr|Zr)||i.length?je.apply(Pr,h):Me(t,e,n,r);else var p=Ee(t,e,n);var g=d?_a:Ta;return g(p,h)}function Fe(t,e,n,r,i,o){var a=i&ii,u=t.length,l=e.length;if(u!=l&&!(a&&l>u))return!1;var c=o.get(t);if(c)return c==e;var f=-1,s=!0,d=i&ri?new it:Pr;for(o.set(t,e);++f<u;){var h=t[f],p=e[f];if(r)var g=a?r(p,h,f,e,t,o):r(h,p,f,t,e,o);if(g!==Pr){if(g)continue;s=!1;break}if(d){if(!v(e,function(t,e){return d.has(e)||h!==t&&!n(h,t,r,i,o)?void 0:d.add(e)})){s=!1;break}}else if(h!==p&&!n(h,p,r,i,o)){s=!1;break}}return o["delete"](t),s}function Be(t,e,n,r,i,o,a){switch(n){case Li:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case xi:return!(t.byteLength!=e.byteLength||!r(new Po(t),new Po(e)));case vi:case yi:return+t==+e;case wi:return t.name==e.name&&t.message==e.message;case Ci:return t!=+t?e!=+e:t==+e;case Ii:case Ri:return t==e+"";case bi:var u=j;case Hi:var l=o&ii;if(u||(u=W),t.size!=e.size&&!l)return!1;var c=a.get(t);return c?c==e:(o|=ri,a.set(t,e),Fe(u(t),u(e),r,i,o,a));case Di:if(pa)return pa.call(t)==pa.call(e)}return!1}function Ne(t,e,n,r,i,o){var a=i&ii,u=Tr(t),l=u.length,c=Tr(e),f=c.length;if(l!=f&&!a)return!1;for(var s=l;s--;){var d=u[s];if(!(a?d in e:jt(e,d)))return!1}var h=o.get(t);if(h)return h==e;var p=!0;o.set(t,e);for(var g=a;++s<l;){d=u[s];var v=t[d],y=e[d];if(r)var w=a?r(y,v,d,e,t,o):r(v,y,d,t,e,o);if(!(w===Pr?v===y||n(v,y,r,i,o):w)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return o["delete"](t),p}function Pe(t){return Lt(t,Tr,Xe)}function Ge(t){for(var e=t.name+"",n=ua[e],r=jo.call(ua,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Ve(t){var e=jo.call(A,"placeholder")?A:t;return e.placeholder}function Ue(){var t=A.iteratee||Or;return t=t===Or?Nt:t,arguments.length?t(arguments[0],arguments[1]):t}function qe(t,e){var n=t.__data__;return ln(e)?n["string"==typeof e?"string":"hash"]:n.map}function ze(t){for(var e=Tr(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,dn(i)]}return e}function Ye(t,e){var n=E(t,e);return Bt(n)?n:Pr}function $e(t){return $o(Object(t))}function Xe(t){return Vo(Object(t))}function Ke(t){return ko.call(t)}function Je(t,e,n){e=un(e,t)?[e]:ce(e);for(var r,i=-1,o=e.length;++i<o;){var a=wn(e[i]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;var o=t?t.length:0;return!!o&&ir(o)&&on(a,o)&&(Aa(t)||dr(t)||Xn(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 xi:return de(t);case vi:case yi:return new i(+t);case Li:return he(t,r);case Oi:case ji:case Mi:case Wi:case ki:case Ai:case Fi:case Bi:case Ni:return we(t,r);case bi:return pe(t,r,n);case Ci:case Ri:return new i(t);case Ii:return ge(t);case Hi:return ve(t,r,n);case Di:return ye(t)}}function en(t){var e=t?t.length:Pr;return ir(e)&&(Aa(t)||dr(t)||Xn(t))?b(e,String):null}function nn(t){return Aa(t)||Xn(t)}function rn(t){return Aa(t)&&!(2==t.length&&!rr(t[0]))}function on(t,e){return e=null==e?li:e,!!e&&("number"==typeof t||Zi.test(t))&&t>-1&&t%1==0&&e>t}function an(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 un(t,e){if(Aa(t))return!1;var n="undefined"==typeof t?"undefined":r(t);return"number"==n||"symbol"==n||"boolean"==n||null==t||hr(t)?!0:Gi.test(t)||!Pi.test(t)||null!=e&&t in Object(e)}function ln(t){var e="undefined"==typeof t?"undefined":r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function cn(t){var e=Ge(t),n=A[e];if("function"!=typeof n||!(e in B.prototype))return!1;if(t===n)return!0;var r=Ca(n);return!!r&&t===r[0]}function fn(t){return!!Lo&&Lo in t}function sn(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Eo;return t===n}function dn(t){return t===t&&!or(t)}function hn(t,e){return function(n){return null==n?!1:n[t]===e&&(e!==Pr||t in Object(n))}}function pn(t,e){var n=t[1],r=e[1],i=n|r,o=(Yr|$r|ti)>i,a=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&&!a)return t;r&Yr&&(t[2]=e[2],i|=n&Yr?0:Xr);var u=e[3];if(u){var l=t[3];t[3]=l?be(l,u,e[4]):u,t[4]=l?M(t[3],zr):e[4]}return u=e[5],u&&(l=t[5],t[5]=l?Ce(l,u,e[6]):u,t[6]=l?M(t[5],zr):e[6]),u=e[7],u&&(t[7]=u),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)&&Yt(t,e,Pr,gn,o.set(e,t)),t}function vn(t,e){return 1==e.length?t:xt(t,ee(e,0,-1))}function yn(t,e){for(var n=t.length,r=Zo(e.length,n),i=Se(t);r--;){var o=e[r];t[r]=on(o,n)?i[o]:Pr}return t}function wn(t){if("string"==typeof t||hr(t))return t;var e=t+"";return"0"==e&&1/t==-ui?"-0":e}function mn(t){if(null!=t){try{return Oo.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&&an(t,e,n)&&(n=0,r=i),It(t,e,n,r)):[]}function Cn(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:yr(n);return 0>i&&(i=Jo(r+i,0)),y(t,Ue(e,3),i)}function Sn(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:yr(n);return 0>i&&(i=Jo(r+i,0)),w(t,e,i)}function Tn(t){var e=t?t.length:0;return e?t[e-1]:Pr}function In(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Ue(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Qt(t,i),n}function Hn(t,e){return re(t,e)}function Rn(t,e,n){return ie(t,e,Ue(n))}function Dn(t,e,n){return t&&t.length?(e=n||e===Pr?1:yr(e),ee(t,0,0>e?0:e)):[]}function En(t){return t&&t.length?ae(t):[]}function xn(t,e){return ue(t||[],e||[],gt)}function Ln(t,e,n){var r=Aa(t)?c:St;return n&&an(t,e,n)&&(e=Pr),r(t,Ue(e,3))}function On(t,e){var n=Aa(t)?f:Ht;return n(t,Ue(e,3))}function jn(t,e){var n=Aa(t)?u:va;return n(t,Ue(e,3))}function Mn(t,e){var n=Aa(t)?l:ya;return n(t,Ue(e,3))}function Wn(t,e,n,r){t=Kn(t)?t:Dr(t),n=n&&!r?yr(n):0;var i=t.length;return 0>n&&(n=Jo(i+n,0)),dr(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&w(t,e,n)>-1}function kn(t,e){var n=Aa(t)?h:Ut;return n(t,Ue(e,3))}function An(t,e,n){var r=Aa(t)?g:m,i=arguments.length<3;return r(t,Ue(e,4),n,i,va)}function Fn(t,e,n){var r=Aa(t)?v:ne;return n&&an(t,e,n)&&(e=Pr),r(t,Ue(e,3))}function Bn(){return Date.now()}function Nn(t,e,n){e=n?Pr:e;var r=Ae(t,Kr,Pr,Pr,Pr,Pr,Pr,e);return r.placeholder=Nn.placeholder,r}function Pn(t,e,n){e=n?Pr:e;var r=Ae(t,Jr,Pr,Pr,Pr,Pr,Pr,e);return r.placeholder=Pn.placeholder,r}function Gn(t,e,n){function r(e){var n=d,r=h;return d=h=Pr,w=e,g=t.apply(r,n)}function i(t){return w=t,v=setTimeout(u,e),m?r(t):g}function o(t){var n=t-y,r=t-w,i=e-n;return _?Zo(i,p-r):i}function a(t){var n=t-y,r=t-w;return y===Pr||n>=e||0>n||_&&r>=p}function u(){var t=Bn();return a(t)?l(t):void(v=setTimeout(u,o(t)))}function l(t){return v=Pr,b&&d?r(t):(d=h=Pr,g)}function c(){w=0,d=y=h=v=Pr}function f(){return v===Pr?g:l(Bn())}function s(){var t=Bn(),n=a(t);if(d=arguments,h=this,y=t,n){if(v===Pr)return i(y);if(_)return v=setTimeout(u,e),r(y)}return v===Pr&&(v=setTimeout(u,e)),g}var d,h,p,g,v,y,w=0,m=!1,_=!1,b=!0;if("function"!=typeof t)throw new TypeError(Ur);return e=mr(e)||0,or(n)&&(m=!!n.leading,_="maxWait"in n,p=_?Jo(mr(n.maxWait)||0,e):p,b="trailing"in n?!!n.trailing:b),s.cancel=c,s.flush=f,s}function Vn(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ur);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 a=t.apply(this,n);return r.cache=o.set(i,a),a};return n.cache=new(Vn.Cache||Z),n}function Un(t,e){if("function"!=typeof t)throw new TypeError(Ur);return e=Jo(e===Pr?t.length-1:yr(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 u=Array(e+1);for(r=-1;++r<e;)u[r]=n[r];return u[e]=o,a(t,this,u)}}function qn(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError(Ur);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 zn(t){return _t(t,!1,!0)}function Yn(t){return _t(t,!0,!0)}function $n(t,e){return t===e||t!==t&&e!==e}function Xn(t){return Jn(t)&&jo.call(t,"callee")&&(!qo.call(t,"callee")||ko.call(t)==pi)}function Kn(t){return null!=t&&ir(Sa(t))&&!rr(t)}function Jn(t){return ar(t)&&Kn(t)}function Zn(t){return t===!0||t===!1||ar(t)&&ko.call(t)==vi}function Qn(t){return ar(t)&&ko.call(t)==yi}function tr(t){if(Kn(t)&&(Aa(t)||dr(t)||rr(t.splice)||Xn(t)||Fa(t)))return!t.length;if(ar(t)){var e=Ke(t);if(e==bi||e==Hi)return!t.size}for(var n in t)if(jo.call(t,n))return!1;return!(aa&&Tr(t).length)}function er(t,e){return kt(t,e)}function nr(t){return"number"==typeof t&&Xo(t)}function rr(t){var e=or(t)?ko.call(t):"";return e==mi||e==_i}function ir(t){return"number"==typeof t&&t>-1&&t%1==0&&li>=t}function or(t){var e="undefined"==typeof t?"undefined":r(t);return!!t&&("object"==e||"function"==e)}function ar(t){return!!t&&"object"==("undefined"==typeof t?"undefined":r(t))}function ur(t){return fr(t)&&t!=+t}function lr(t){return null===t}function cr(t){return null==t}function fr(t){return"number"==typeof t||ar(t)&&ko.call(t)==Ci}function sr(t){if(!ar(t)||ko.call(t)!=Si||L(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&&Oo.call(n)==Wo}function dr(t){return"string"==typeof t||!Aa(t)&&ar(t)&&ko.call(t)==Ri}function hr(t){return"symbol"==("undefined"==typeof t?"undefined":r(t))||ar(t)&&ko.call(t)==Di}function pr(t){return ar(t)&&ir(t.length)&&!!wo[ko.call(t)]}function gr(t){return t===Pr}function vr(t){if(!t)return 0===t?t:0;if(t=mr(t),t===ui||t===-ui){var e=0>t?-1:1;return e*ci}return t===t?t:0}function yr(t){var e=vr(t),n=e%1;return e===e?n?e-n:e:0}function wr(t){return t?mt(yr(t),0,si):0}function mr(t){if("number"==typeof t)return t;if(hr(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(qi,"");var n=Xi.test(t);return n||Ji.test(t)?_o(t.slice(2),n?2:8):$i.test(t)?fi:+t}function _r(t){return Te(t,Ir(t))}function br(t){return null==t?"":oe(t)}function Cr(t,e,n){var r=null==t?Pr:xt(t,e);return r===Pr?n:r}function Sr(t,e){return null!=t&&Je(t,e,Mt)}function Tr(t){var e=sn(t);if(!e&&!Kn(t))return Pt(t);var n=en(t),r=!!n,i=n||[],o=i.length;for(var a in t)!jt(t,a)||r&&("length"==a||on(a,o))||e&&"constructor"==a||i.push(a);return i}function Ir(t){for(var e=-1,n=sn(t),r=Gt(t),i=r.length,o=en(t),a=!!o,u=o||[],l=u.length;++e<i;){var c=r[e];a&&("length"==c||on(c,l))||"constructor"==c&&(n||!jo.call(t,c))||u.push(c)}return u}function Hr(t,e){var n={};return e=Ue(e,3),Dt(t,function(t,r,i){n[r]=e(t,r,i)}),n}function Rr(t,e,n){return null==t?t:te(t,e,n)}function Dr(t){return t?S(t,Tr(t)):[]}function Er(t,e,n){return t=br(t),n=mt(yr(n),0,t.length),t.lastIndexOf(oe(e),n)==n}function xr(t,e,n){if(t=br(t),t&&(n||e===Pr))return t.replace(qi,"");if(!t||!(e=oe(e)))return t;var r=k(t),i=k(e),o=I(r,i),a=H(r,i)+1;return fe(r,o,a).join("")}function Lr(t){return t}function Or(t){return Nt("function"==typeof t?t:_t(t,!0))}function jr(t,e){return zt(t,_t(e,!0))}function Mr(){}function Wr(t){return un(t)?Jt(wn(t)):Zt(t)}function kr(){return[]}function Ar(){return!1}function Fr(t){var e=++Mo;return br(t)+e}function Br(t){return t&&t.length?Tt(t,Lr,Ot):Pr}function Nr(t){return t&&t.length?Tt(t,Lr,Vt):Pr}var Pr,Gr="4.13.1",Vr=200,Ur="Expected a function",qr="__lodash_hash_undefined__",zr="__lodash_placeholder__",Yr=1,$r=2,Xr=4,Kr=8,Jr=16,Zr=32,Qr=64,ti=128,ei=256,ni=512,ri=1,ii=2,oi=150,ai=16,ui=1/0,li=9007199254740991,ci=1.7976931348623157e308,fi=NaN,si=4294967295,di=si-1,hi=si>>>1,pi="[object Arguments]",gi="[object Array]",vi="[object Boolean]",yi="[object Date]",wi="[object Error]",mi="[object Function]",_i="[object GeneratorFunction]",bi="[object Map]",Ci="[object Number]",Si="[object Object]",Ti="[object Promise]",Ii="[object RegExp]",Hi="[object Set]",Ri="[object String]",Di="[object Symbol]",Ei="[object WeakMap]",xi="[object ArrayBuffer]",Li="[object DataView]",Oi="[object Float32Array]",ji="[object Float64Array]",Mi="[object Int8Array]",Wi="[object Int16Array]",ki="[object Int32Array]",Ai="[object Uint8Array]",Fi="[object Uint8ClampedArray]",Bi="[object Uint16Array]",Ni="[object Uint32Array]",Pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gi=/^\w*$/,Vi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,Ui=/[\\^$.*+?()[\]{}|]/g,qi=/^\s+|\s+$/g,zi=/\\(\\)?/g,Yi=/\w*$/,$i=/^[-+]0x[0-9a-f]+$/i,Xi=/^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]",ao="(?:"+io+"|"+oo+")",uo="[^"+Qi+"]",lo="(?:\\ud83c[\\udde6-\\uddff]){2}",co="[\\ud800-\\udbff][\\udc00-\\udfff]",fo="\\u200d",so=ao+"?",ho="["+no+"]?",po="(?:"+fo+"(?:"+[uo,lo,co].join("|")+")"+ho+so+")*",go=ho+so+po,vo="(?:"+[uo+io+"?",io,lo,co,ro].join("|")+")",yo=RegExp(oo+"(?="+oo+")|"+vo+go,"g"),wo={};wo[Oi]=wo[ji]=wo[Mi]=wo[Wi]=wo[ki]=wo[Ai]=wo[Fi]=wo[Bi]=wo[Ni]=!0,wo[pi]=wo[gi]=wo[xi]=wo[vi]=wo[Li]=wo[yi]=wo[wi]=wo[mi]=wo[bi]=wo[Ci]=wo[Si]=wo[Ii]=wo[Hi]=wo[Ri]=wo[Ei]=!1;var mo={};mo[pi]=mo[gi]=mo[xi]=mo[Li]=mo[vi]=mo[yi]=mo[Oi]=mo[ji]=mo[Mi]=mo[Wi]=mo[ki]=mo[bi]=mo[Ci]=mo[Si]=mo[Ii]=mo[Hi]=mo[Ri]=mo[Di]=mo[Ai]=mo[Fi]=mo[Bi]=mo[Ni]=!0,mo[wi]=mo[mi]=mo[Ei]=!1;var _o=parseInt,bo="object"==r(e)&&e,Co=bo&&"object"==r(t)&&t,So=Co&&Co.exports===bo,To=R("object"==("undefined"==typeof n?"undefined":r(n))&&n),Io=R("object"==("undefined"==typeof self?"undefined":r(self))&&self),Ho=R("object"==r(this)&&this),Ro=To||Io||Ho||Function("return this")(),Do=Array.prototype,Eo=Object.prototype,xo=Ro["__core-js_shared__"],Lo=function(){var t=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Oo=Function.prototype.toString,jo=Eo.hasOwnProperty,Mo=0,Wo=Oo.call(Object),ko=Eo.toString,Ao=RegExp("^"+Oo.call(jo).replace(Ui,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fo=So?Ro.Buffer:Pr,Bo=Ro.Reflect,No=Ro.Symbol,Po=Ro.Uint8Array,Go=Bo?Bo.enumerate:Pr,Vo=Object.getOwnPropertySymbols,Uo=Object.create,qo=Eo.propertyIsEnumerable,zo=Do.splice,Yo=Math.floor,$o=Object.getPrototypeOf,Xo=Ro.isFinite,Ko=Object.keys,Jo=Math.max,Zo=Math.min,Qo=Ye(Ro,"DataView"),ta=Ye(Ro,"Map"),ea=Ye(Ro,"Promise"),na=Ye(Ro,"Set"),ra=Ye(Ro,"WeakMap"),ia=Ye(Object,"create"),oa=ra&&new ra,aa=!qo.call({valueOf:1},"valueOf"),ua={},la=mn(Qo),ca=mn(ta),fa=mn(ea),sa=mn(na),da=mn(ra),ha=No?No.prototype:Pr,pa=ha?ha.valueOf:Pr,ga=ha?ha.toString:Pr;B.prototype=bt(F.prototype),B.prototype.constructor=B,N.prototype.clear=P,N.prototype["delete"]=G,N.prototype.get=V,N.prototype.has=U,N.prototype.set=q,z.prototype.clear=Y,z.prototype["delete"]=$,z.prototype.get=X,z.prototype.has=K,z.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=at,ut.prototype.clear=lt,ut.prototype["delete"]=ct,ut.prototype.get=ft,ut.prototype.has=st,ut.prototype.set=dt;var va=Re(Dt),ya=Re(Et,!0),wa=De(),ma=De(!0);Go&&!qo.call({valueOf:1},"valueOf")&&(Gt=function(t){return O(Go(t))});var _a=oa?function(t,e){return oa.set(t,e),t}:Lr,ba=na&&1/W(new na([,-0]))[1]==ui?function(t){return new na(t)}:Mr,Ca=oa?function(t){return oa.get(t)}:Mr,Sa=Jt("length");Vo||(Xe=kr),(Qo&&Ke(new Qo(new ArrayBuffer(1)))!=Li||ta&&Ke(new ta)!=bi||ea&&Ke(ea.resolve())!=Ti||na&&Ke(new na)!=Hi||ra&&Ke(new ra)!=Ei)&&(Ke=function(t){var e=ko.call(t),n=e==Si?t.constructor:Pr,r=n?mn(n):Pr;if(r)switch(r){case la:return Li;case ca:return bi;case fa:return Ti;case sa:return Hi;case da:return Ei}return e});var Ta=function(){var t=0,e=0;return function(n,r){var i=Bn(),o=ai-(i-e);if(e=i,o>0){if(++t>=oi)return n}else t=0;return _a(n,r)}}(),Ia=Vn(function(t){var e=[];return br(t).replace(Vi,function(t,n,r,i){e.push(r?i.replace(zi,"$1"):n||t)}),e}),Ha=Un(function(t,e){return Jn(t)?Ct(t,Rt(e,1,Jn,!0)):[]}),Ra=Un(function(t){var e=h(t,le);return e.length&&e[0]===t[0]?Wt(e):[]}),Da=Un(function(t,e){e=Rt(e,1);var n=t?t.length:0,r=wt(t,e);return Qt(t,h(e,function(t){return on(t,n)?+t:t}).sort(me)),r}),Ea=Un(function(t){return ae(Rt(t,1,Jn,!0))}),xa=Oe(Cn),La=Un(function(t,e){if(null==t)return[];var n=e.length;return n>1&&an(t,e[0],e[1])?e=[]:n>2&&an(e[0],e[1],e[2])&&(e=[e[0]]),e=1==e.length&&Aa(e[0])?e[0]:Rt(e,1,rn),Xt(t,e,[])}),Oa=Un(function(t,e,n){var r=Yr;if(n.length){var i=M(n,Ve(Oa));r|=Zr}return Ae(t,r,e,n,i)}),ja=Un(function(t,e,n){var r=Yr|$r;if(n.length){var i=M(n,Ve(ja));r|=Zr}return Ae(e,r,t,n,i)});Vn.Cache=Z;var Ma=Un(function(t,e){var n=M(e,Ve(Ma));return Ae(t,Zr,Pr,e,n)}),Wa=Un(function(t,e){var n=M(e,Ve(Wa));return Ae(t,Qr,Pr,e,n)}),ka=We(Ot),Aa=Array.isArray,Fa=Fo?function(t){return t instanceof Fo}:Ar,Ba=We(Vt),Na=He(function(t,e){if(aa||sn(e)||Kn(e))return void Te(e,Tr(e),t);for(var n in e)jo.call(e,n)&&gt(t,n,e[n])}),Pa=He(function(t,e){if(aa||sn(e)||Kn(e))return void Te(e,Ir(e),t);for(var n in e)gt(t,n,e[n])}),Ga=He(function(t,e,n,r){Te(e,Ir(e),t,r)}),Va=Un(function(t){return t.push(Pr,ht),a(Ga,Pr,t)}),Ua=Un(function(t){return t.push(Pr,gn),a(za,Pr,t)}),qa=He(function(t,e,n){Yt(t,e,n)}),za=He(function(t,e,n,r){Yt(t,e,n,r)}),Ya=Un(function(t,e){return null==t?{}:Kt(t,h(Rt(e,1),wn))});A.assign=Na,A.assignIn=Pa,A.assignInWith=Ga,A.bind=Oa,A.bindKey=ja,A.compact=_n,A.curry=Nn,A.curryRight=Pn,A.debounce=Gn,A.defaults=Va,A.defaultsDeep=Ua,A.difference=Ha,A.fill=bn,A.filter=On,A.intersection=Ra,A.iteratee=Or,A.keys=Tr,A.keysIn=Ir,A.map=kn,A.mapValues=Hr,A.mP=jr,A.memoize=Vn,A.merge=qa,A.mergeWith=za,A.partial=Ma,A.partialRight=Wa,A.pick=Ya,A.property=Wr,A.pullAt=Da,A.remove=In,A.rest=Un,A.set=Rr,A.sortBy=La,A.take=Dn,A.throttle=qn,A.toPlainObject=_r,A.union=Ea,A.uniq=En,A.values=Dr,A.zipObject=xn,A.extend=Pa,A.extendWith=Ga,A.clone=zn,A.cloneDeep=Yn,A.eq=$n,A.every=Ln,A.find=xa,A.findIndex=Cn,A.forEach=jn,A.forEachRight=Mn,A.get=Cr,A.gt=ka,A.hasIn=Sr,A.identity=Lr,A.includes=Wn,A.indexOf=Sn,A.isArguments=Xn,A.isArray=Aa,A.isArrayLike=Kn,A.isArrayLikeObject=Jn,A.isBoolean=Zn,A.isBuffer=Fa,A.isDate=Qn,A.isEmpty=tr,A.isEqual=er,A.isFinite=nr,A.isFunction=rr,A.isLength=ir,A.isNaN=ur,A.isNil=cr,A.isNull=lr,A.isNumber=fr,A.isObject=or,A.isObjectLike=ar,A.isPlainObject=sr,A.isString=dr,A.isSymbol=hr,A.isTypedArray=pr,A.isUndefined=gr,A.last=Tn,A.lt=Ba,A.max=Br,A.min=Nr,A.stubArray=kr,A.stubFalse=Ar,A.noop=Mr,A.now=Bn,A.reduce=An,A.some=Fn,A.sortedIndex=Hn,A.sortedIndexBy=Rn,A.startsWith=Er,A.toFinite=vr,A.toInteger=yr,A.toLength=wr,A.toNumber=mr,A.toString=br,A.trim=xr,A.uniqueId=Fr,A.each=jn,A.eachRight=Mn,A.VERSION=Gr,u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){A[t].placeholder=A}),t.exports=A}).call(void 0)}).call(e,n(2)(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){},,,,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 l.isString(n)?r=o(e[n]):(n=n||h,r={},n.forEach(function(t){r[t]=o(e[t])})),r}function o(t){var e=parseFloat(t);return isNaN(e)?0:e}function a(){var t=document.body,e=t.style;if(e&&e.position&&"static"!==e.position){var n=s.gCSV(t,null,h);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 u=n(1),l=n(8),c="left",f="right",s={},d={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=[];u.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:l.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():d;return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},s.gER=function(t){var e=t?t.getBoundingClientRect():d;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():d,n=i(t),r=n.paddingLeft+n.paddingRight,o=n.paddingTop+n.paddingBottom,a=n.borderLeftWidth+n.borderRightWidth,u=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-a)),height:Math.max(0,Math.floor(e.height-o-u))}},s.gCoRFn=function(t){var e=i(t),n=e.paddingLeft+e.paddingRight,r=e.paddingTop+e.paddingBottom,o=e.borderLeftWidth+e.borderRightWidth,a=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-a))}}},s.getStyle=function(t){var e=getComputedStyle||window.getComputedStyle;return t&&e?e(t,null):null};var h=["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","marginLeft","marginRight","marginTop","marginBottom"];s.gCSV=i,s.getBodyStyle=a,s.setCss=function(t,e){var n=t.style;for(var r in e){var i=e[r];l.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>');
  15. 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];l.isNilOrWhiteSpace(r)||(t.style[e]="",t.style[n]=r)};return u.forEach(e,function(t){l.isNilOrWhiteSpace(t.style.right)?l.isNilOrWhiteSpace(t.style.left)||r(t,c,f):r(t,f,c),t.style["float"]===f?t.style["float"]=c:t.style["float"]===c&&(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,a=!!window.chrome&&!!window.chrome.webstore,u=(a||e)&&!!window.CSS,l=!!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:a,isBlink:u,isMobileDevice:l}},t.exports=s}()},function(t,e,n){"use strict";!function(){function e(t){return E.isNil(t)?!0:E.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 a(t){return D.isNumber(t)?"number":D.isBoolean(t)?"boolean":D.isDate(t)?"date":D.isString(t)?"string":D.isArray(t)?"array":D.isObject(t)?"object":""}function u(t,e){var n=E.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 l(t){var e={};return function(n){return e.hasOwnProperty(n)?e[n]:(e[n]=t.call(this,n),e[n])}}function c(t){return t.replace(M,"-$1").toLowerCase()}function f(t){return c(t).replace(W,"-ms-")}function s(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];E.isNil(r)||(e+=k(n)+":",e+=u(n,r)+";")}return e||null}function d(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=[],a={};i.length>0;)if(r=i.pop(),D.isNil(r.key)||(o=E.take(o,r.level),o.push(r.key)),D.isObject(r.value)&&!D.isFunction(r.value))for(var u in r.value)i.push({level:r.level+1,value:r.value[u],key:u});else{var l=o.join("."),c=E.get(t,l);c!==E.get(e,l)&&E.set(a,l,c)}return E.isEmpty(a)?null:a}function h(t){var e=E.cloneDeep(t),n=[];e&&n.push(e);for(var r;n.length>0;)if(r=n.pop(),D.isObject(r))for(var i in r)n.push(r[i]),D.isFunction(r[i])&&(r[i]=g(r[i]));return e}function p(t){var e=E.clone(t),n=[];e&&n.push(e);for(var r,i;n.length>0;)if(r=n.pop(),D.isObject(r))for(var o in r)n.push(r[o]),D.isString(r[o])&&(i=v(r[o]),i&&(r[o]=i));return e}function g(t){return t.toString()}function v(t){if(D.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 y(t){var e;try{e=GC.Spread.Views.Plugins[t]}catch(n){}return e}function w(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 m(t){var e=D.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 C(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function S(t,e,n){var r=function(t){return E.isUndefined(t)?t:n?(t+"").trim().toLowerCase():(t+"").trim().toString()},i=r(e);return function(e){if(null==e)return!1;var r=T(e,t);return r=E.isUndefined(r)?r:n?(r+"").toLowerCase():(r+"").toString(),r===i?void 0!==i||t in e:E.isEqual(r,i)}}function T(){var t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1];if(!E.isNil(t)&&!E.isNil(e)){e=E.isArray(e)?e:E.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 I(t,e,n,r){E.isArray(t)||(t=[t]),E.isArray(e)||(e=[e]);var i=r?[]:{};E.forEach(t,function(t){i[t]||(i[t]=1)});var o=[],a=[],u=[],l=0,c=0,f=0;return E.forEach(e,function(t){i[t]?(i[t]=2,n&&(a[f++]=t)):(i[t]=3,n&&(o[l++]=t))}),n&&E.forEach(i,function(t,e){1===t&&(u[c++]=+e)}),n?{add:o,remove:u,keep:a}:{map:i}}function H(t){return D.isNumber(t)?R(t):new Date(t)}function R(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 D={},E=n(1);D.isString=E.isString,D.regist=i,D.unRegist=r,D.isNilOrWhiteSpace=e,D.isNumber=E.isNumber,D.isInt=E.isInteger,D.isBoolean=E.isBoolean,D.isFunction=E.isFunction,D.isUndefined=E.isUndefined,D.isDate=E.isDate,D.isArray=E.isArray,D.isObject=E.isObject,D.debugLog=o,D.getType=a,D.isNull=E.isNull,D.isNil=E.isNil;var x={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};D.Key=x;var L=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};D.isPrintableKey=L;var O={Text:"text",CheckBox:"checkbox",Date:"date",Color:"color",Number:"number"};D.EditorType=O;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},M=/([A-Z])/g,W=/^-ms-/,k=l(function(t){return f(t)});D.cMFS=s,D.extractObject=d,D.serializeObject=h,D.deserializeObject=p,D.serializeFunction=g,D.deserializeFunction=v,D.findPlugin=y,D.getResource=w,D.normalizeDate=m,D.extends_=b,D.caC=C,D.mP=S,D.sOP=function(t,e){return T(t,e)},D.gOP=function(t,e,n){return T(t,e,n)},D.compareArray=I,D.toDate=H,t.exports=D}()},function(t,e){"use strict";!function(){var e=function(){function t(t,e,n){this.handler=t,this.self=e,this.priority=n}return t}(),n=function(){function t(){this._handlers=[]}return t.prototype.addHandler=function(t,n){var r=arguments.length<=2||void 0===arguments[2]?1:arguments[2];this._handlers.push(new e(t,n,r)),this.sortHandlers()},t.prototype.removeHandler=function(t,e){for(var n=0;n<this._handlers.length;n++){var r=this._handlers[n];if(r.handler===t&&r.self===e){this._handlers.splice(n,1);break}}},t.prototype.sortHandlers=function(){this._handlers.sort(function(t,e){var n=t.priority,r=e.priority;return r>n?1:n>r?-1:0})},t.prototype.removeHandlersByPriority=function(t){for(var e=null,n=null,r=0;r<this._handlers.length;r++){var i=this._handlers[r];if(i.priority===t)null==e?e=r:n=r;else if(null!=e)break}null!=e&&null!=n&&this._handlers.splice(e,n-e+1)},t.prototype.removeAllHandlers=function(){this._handlers.length=0},t.prototype.raise=function(t,e){var n=!1,r=function(){n=!0};null==e?e={stopPropagation:r}:e.stopPropagation=r;for(var i=this._handlers.length,o=this._handlers.slice(0,i),a=0;i>a&&!n;a++){var u=o[a];u.handler.call(u.self,t,e)}},Object.defineProperty(t.prototype,"hasHandlers",{get:function(){return this._handlers.length>0},enumerable:!0,configurable:!0}),t}();t.exports={Event:n,EventHandler:e}}()}])});