/*! Copyright 2010-2019 SpryMedia Ltd. This source file is free software, available under the following license: MIT license - http://datatables.net/license/mit This source file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. For details please refer to: http://www.datatables.net AutoFill 2.3.4 ©2008-2019 SpryMedia Ltd - datatables.net/license */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var h=0;return function(){return h'),select:{top:a('
'),right:a('
'),bottom:a('
'),left:a('
')},background:a('
'),list:a('
'+this.s.dt.i18n("autoFill.info", "")+"
    "),dtScroll:null,offsetParent:null};this._constructor()};a.extend(m.prototype,{enabled:function(){return this.s.enabled},enable:function(b){var d=this;if(!1===b)return this.disable();this.s.enabled=!0;this._focusListener();this.dom.handle.on("mousedown",function(b){d._mousedown(b);return!1});return this},disable:function(){this.s.enabled=!1;this._focusListenerRemove();return this},_constructor:function(){var b=this,d=this.s.dt,c=a("div.dataTables_scrollBody",this.s.dt.table().container()); d.settings()[0].autoFill=this;c.length&&(this.dom.dtScroll=c,"static"===c.css("position")&&c.css("position","relative"));!1!==this.c.enable&&this.enable();d.on("destroy.autoFill",function(){b._focusListenerRemove()})},_attach:function(b){var d=this.s.dt,c=d.cell(b).index(),f=this.dom.handle,g=this.s.handle;c&&-1!==d.columns(this.c.columns).indexes().indexOf(c.column)?(this.dom.offsetParent||(this.dom.offsetParent=a(d.table().node()).offsetParent()),g.height&&g.width||(f.appendTo("body"),g.height= f.outerHeight(),g.width=f.outerWidth()),d=this._getPosition(b,this.dom.offsetParent),this.dom.attachedTo=b,f.css({top:d.top+b.offsetHeight-g.height,left:d.left+b.offsetWidth-g.width}).appendTo(this.dom.offsetParent)):this._detach()},_actionSelector:function(b){var d=this,c=this.s.dt,f=m.actions,g=[];a.each(f,function(d,a){a.available(c,b)&&g.push(d)});if(1===g.length&&!1===this.c.alwaysAsk){var e=f[g[0]].execute(c,b);this._update(e,b)}else{var n=this.dom.list.children("ul").empty();g.push("cancel"); a.each(g,function(g,e){n.append(a("
  • ").append('
    '+f[e].option(c,b)+"
    ").append(a('
    ').append(a('").on("click",function(){var g=f[e].execute(c,b,a(this).closest("li"));d._update(g,b);d.dom.background.remove();d.dom.list.remove()}))))});this.dom.background.appendTo("body");this.dom.list.appendTo("body");this.dom.list.css("margin-top",this.dom.list.outerHeight()/ 2*-1)}},_detach:function(){this.dom.attachedTo=null;this.dom.handle.detach()},_drawSelection:function(b,d){var c=this.s.dt;d=this.s.start;var f=a(this.dom.start),g={row:this.c.vertical?c.rows({page:"current"}).nodes().indexOf(b.parentNode):d.row,column:this.c.horizontal?a(b).index():d.column};b=c.column.index("toData",g.column);var e=c.row(":eq("+g.row+")",{page:"current"});e=a(c.cell(e.index(),b).node());if(c.cell(e).any()&&-1!==c.columns(this.c.columns).indexes().indexOf(b)){this.s.end=g;c=d.row< g.row?f:e;var n=d.row=a;b--)c.push(b);return c},_shiftScroll:function(b){var a=this,c=this.s.scroll,f=!1,g=b.pageY-e.body.scrollTop,h=b.pageX-e.body.scrollLeft,n,k,l,m;65>g?n=-5:g>c.windowHeight-65&&(n=5);65>h?k=-5:h>c.windowWidth-65&&(k=5);null!==c.dtTop&&b.pageYc.dtTop+c.dtHeight-65&&(l=5);null!==c.dtLeft&&b.pageX< c.dtLeft+65?m=-5:null!==c.dtLeft&&b.pageX>c.dtLeft+c.dtWidth-65&&(m=5);n||k||l||m?(c.windowVert=n,c.windowHoriz=k,c.dtVert=l,c.dtHoriz=m,f=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null);!this.s.scrollInterval&&f&&(this.s.scrollInterval=setInterval(function(){c.windowVert&&(e.body.scrollTop+=c.windowVert);c.windowHoriz&&(e.body.scrollLeft+=c.windowHoriz);if(c.dtVert||c.dtHoriz){var b=a.dom.dtScroll[0];c.dtVert&&(b.scrollTop+=c.dtVert);c.dtHoriz&&(b.scrollLeft+= c.dtHoriz)}},20))},_update:function(b,a){if(!1!==b){b=this.s.dt;var c=b.columns(this.c.columns).indexes();this._emitEvent("preAutoFill",[b,a]);this._editor(a);if(null!==this.c.update?this.c.update:!this.c.editor){for(var d=0,g=a.length;d')},execute:function(b,d,c){b=1*d[0][0].data;c=1*a("input",c).val();for(var f=0,g=d.length;f"+a[0][0].label+"")},execute:function(b,a,c){b=a[0][0].data;c=0;for(var d=a.length;c