test

/*!
* Copyright Collect.chat
*
* WARNING: Modifying or copying this file will result in permanant ban of your domain on collect.chat servers.
* If you have any custom requiremnt don't hesitate to write us at hello@collect.chat
*/!function(o){function p(i){if(n[i])return n[i].exports;var e=n[i]={exports:{},id:i,loaded:!1};return o[i].call(e.exports,e,e.exports,p),e.loaded=!0,e.exports}var n={};return p.m=o,p.c=n,p.p="",p(0)}([function(o,p,n){n(1),n(2),n(3);n(4),n(8)},function(o,p,n){/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
*/!function(p,i){"use strict";var e;try{e=n(!function(){var o=new Error('Cannot find module "moment"');throw o.code="MODULE_NOT_FOUND",o}())}catch(o){}o.exports=i(e)}(this,function(o){"use strict";var p="function"==typeof o,n=!!window.addEventListener,i=window.document,e=window.setTimeout,t=function(o,p,i,e){n?o.addEventListener(p,i,!!e):o.attachEvent("on"+p,i)},x=function(o,p,i,e){n?o.removeEventListener(p,i,!!e):o.detachEvent("on"+p,i)},a=function(o,p,n){var e;i.createEvent?(e=i.createEvent("HTMLEvents"),e.initEvent(p,!0,!1),e=h(e,n),o.dispatchEvent(e)):i.createEventObject&&(e=i.createEventObject(),e=h(e,n),o.fireEvent("on"+p,e))},s=function(o){return o.trim?o.trim():o.replace(/^\s+|\s+$/g,"")},r=function(o,p){return(" "+o.className+" ").indexOf(" "+p+" ")!==-1},c=function(o,p){r(o,p)||(o.className=""===o.className?p:o.className+" "+p)},u=function(o,p){o.className=s((" "+o.className+" ").replace(" "+p+" "," "))},d=function(o){return/Array/.test(Object.prototype.toString.call(o))},g=function(o){return/Date/.test(Object.prototype.toString.call(o))&&!isNaN(o.getTime())},m=function(o){var p=o.getDay();return 0===p||6===p},b=function(o){return o%4===0&&o%100!==0||o%400===0},k=function(o,p){return[31,b(o)?29:28,31,30,31,30,31,31,30,31,30,31][p]},j=function(o){g(o)&&o.setHours(0,0,0,0)},l=function(o,p){return o.getTime()===p.getTime()},h=function(o,p,n){var i,e;for(i in p)e=void 0!==o[i],e&&"object"==typeof p[i]&&null!==p[i]&&void 0===p[i].nodeName?g(p[i])?n&&(o[i]=new Date(p[i].getTime())):d(p[i])?n&&(o[i]=p[i].slice(0)):o[i]=h({},p[i],n):!n&&e||(o[i]=p[i]);return o},f=function(o){return o.month<0&&(o.year-=Math.ceil(Math.abs(o.month)/12),o.month+=12),o.month>11&&(o.year+=Math.floor(Math.abs(o.month)/12),o.month-=12),o},v={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},y=function(o,p,n){for(p+=o.firstDay;p>=7;)p-=7;return n?o.i18n.weekdaysShort[p]:o.i18n.weekdays[p]},w=function(o){var p=[],n="false";if(o.isEmpty){if(!o.showDaysInNextAndPreviousMonths)return'

';p.push("is-outside-current-month")}return o.isDisabled&&p.push("is-disabled"),o.isToday&&p.push("is-today"),o.isSelected&&(p.push("is-selected"),n="true"),o.isInRange&&p.push("is-inrange"),o.isStartRange&&p.push("is-startrange"),o.isEndRange&&p.push("is-endrange"),'

"},D=function(o,p,n){var i=new Date(n,0,1),e=Math.ceil(((new Date(n,p,o)-i)/864e5+i.getDay()+1)/7);return'

'+e+"

"},_=function(o,p){return"

"+(p?o.reverse():o).join("")+"

"},A=function(o){return"

"+o.join("")+"

"},M=function(o){var p,n=[];for(o.showWeekNumber&&n.push("

"),p=0;p<7;p++)n.push(' '+y(o,p,!0)+"

");return"

"+(o.isRTL?n.reverse():n).join("")+"

"},C=function(o,p,n,i,e,t){var x,a,s,r,c,u=o._o,g=n===u.minYear,m=n===u.maxYear,b='

',k=!0,j=!0;for(s=[],x=0;x<12;x++)s.push('");for(r='

'+u.i18n.months[i]+'

",d(u.yearRange)?(x=u.yearRange[0],a=u.yearRange[1]+1):(x=n-u.yearRange,a=1+n+u.yearRange),s=[];x=u.minYear&&s.push('");return c='

'+n+u.yearSuffix+'

",b+=u.showMonthAfterYear?c+r:r+c,g&&(0===i||u.minMonth>=i)&&(k=!1),m&&(11===i||u.maxMonth<=i)&&(j=!1),0===p&&(b+='"),p===o._o.numberOfMonths-1&&(b+='"),b+="

"},R=function(o,p,n){return'

'+M(o)+A(p)+"

"},N=function(x){var a=this,s=a.config(x);a._onMouseDown=function(o){if(a._v){o=o||window.event;var p=o.target||o.srcElement;if(p)if(r(p,"is-disabled")||(!r(p,"pika-button")||r(p,"is-empty")||r(p.parentNode,"is-disabled")?r(p,"pika-prev")?a.prevMonth():r(p,"pika-next")&&a.nextMonth():(a.setDate(new Date(p.getAttribute("data-pika-year"),p.getAttribute("data-pika-month"),p.getAttribute("data-pika-day"))),s.bound&&e(function(){a.hide(),s.field&&s.field.blur()},100))),r(p,"pika-select"))a._c=!0;else{if(!o.preventDefault)return o.returnValue=!1,!1;o.preventDefault()}}},a._onChange=function(o){o=o||window.event;var p=o.target||o.srcElement;p&&(r(p,"pika-select-month")?a.gotoMonth(p.value):r(p,"pika-select-year")&&a.gotoYear(p.value))},a._onKeyChange=function(o){if(o=o||window.event,a.isVisible())switch(o.keyCode){case 13:case 27:s.field.blur();break;case 37:o.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var i;n.firedBy!==a&&(p?(i=o(s.field.value,s.format,s.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(s.field.value)),g(i)&&a.setDate(i),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var o=i.activeElement;do if(r(o,"pika-single"))return;while(o=o.parentNode);a._c||(a._b=e(function(){a.hide()},50)),a._c=!1},a._onClick=function(o){o=o||window.event;var p=o.target||o.srcElement,i=p;if(p){!n&&r(p,"pika-select")&&(p.onchange||(p.setAttribute("onchange","return;"),t(p,"change",a._onChange)));do if(r(i,"pika-single")||i===s.trigger)return;while(i=i.parentNode);a._v&&p!==s.trigger&&i!==s.trigger&&a.hide()}},a.el=i.createElement("div"),a.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:""),t(a.el,"mousedown",a._onMouseDown,!0),t(a.el,"touchend",a._onMouseDown,!0),t(a.el,"change",a._onChange),t(i,"keydown",a._onKeyChange),s.field&&(s.container?s.container.appendChild(a.el):s.bound?i.body.appendChild(a.el):s.field.parentNode.insertBefore(a.el,s.field.nextSibling),t(s.field,"change",a._onInputChange),s.defaultDate||(p&&s.field.value?s.defaultDate=o(s.field.value,s.format).toDate():s.defaultDate=new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));var c=s.defaultDate;g(c)?s.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),s.bound?(this.hide(),a.el.className+=" is-bound",t(s.trigger,"click",a._onInputClick),t(s.trigger,"focus",a._onInputFocus),t(s.trigger,"blur",a._onInputBlur)):this.show()};return N.prototype={config:function(o){this._o||(this._o=h({},v,!0));var p=h(this._o,o,!0);p.isRTL=!!p.isRTL,p.field=p.field&&p.field.nodeName?p.field:null,p.theme="string"==typeof p.theme&&p.theme?p.theme:null,p.bound=!!(void 0!==p.bound?p.field&&p.bound:p.field),p.trigger=p.trigger&&p.trigger.nodeName?p.trigger:p.field,p.disableWeekends=!!p.disableWeekends,p.disableDayFn="function"==typeof p.disableDayFn?p.disableDayFn:null;var n=parseInt(p.numberOfMonths,10)||1;if(p.numberOfMonths=n>4?4:n,g(p.minDate)||(p.minDate=!1),g(p.maxDate)||(p.maxDate=!1),p.minDate&&p.maxDate&&p.maxDate100&&(p.yearRange=100);return p},toString:function(n){return g(this._d)?p?o(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return p?o(this._d):null},setMoment:function(n,i){p&&o.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return g(this._d)?new Date(this._d.getTime()):new Date},setDate:function(o,p){if(!o)return this._d=null,this._o.field&&(this._o.field.value="",a(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof o&&(o=new Date(Date.parse(o))),g(o)){var n=this._o.minDate,i=this._o.maxDate;g(n)&&oi&&(o=i),this._d=new Date(o.getTime()),j(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),a(this._o.field,"change",{firedBy:this})),p||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(o){var p=!0;if(g(o)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),e=o.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),p=e=t&&(this._y=t,!isNaN(a)&&this._m>a&&(this._m=a)),p="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var r=0;r'+C(this,r,this.calendars[r].year,this.calendars[r].month,this.calendars[0].year,p)+this.render(this.calendars[r].year,this.calendars[r].month,p)+"

";this.el.innerHTML=s,n.bound&&"hidden"!==n.field.type&&e(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var o,p,n,e,t,x,a,s,r,c;if(!this._o.container){if(this.el.style.position="absolute",o=this._o.trigger,p=o,n=this.el.offsetWidth,e=this.el.offsetHeight,t=window.innerWidth||i.documentElement.clientWidth,x=window.innerHeight||i.documentElement.clientHeight,a=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof o.getBoundingClientRect)c=o.getBoundingClientRect(),s=c.left+window.pageXOffset,r=c.bottom+window.pageYOffset;else for(s=p.offsetLeft,r=p.offsetTop+p.offsetHeight;p=p.offsetParent;)s+=p.offsetLeft,r+=p.offsetTop;(this._o.reposition&&s+n>t||this._o.position.indexOf("right")>-1&&s-n+o.offsetWidth>0)&&(s=s-n+o.offsetWidth),(this._o.reposition&&r+e>x+a||this._o.position.indexOf("top")>-1&&r-e-o.offsetHeight>0)&&(r=r-e-o.offsetHeight),this.el.style.left=s+"px",this.el.style.top=r+"px"}},render:function(o,p,n){var i=this._o,e=new Date,t=k(o,p),x=new Date(o,p,1).getDay(),a=[],s=[];j(e),i.firstDay>0&&(x-=i.firstDay,x<0&&(x+=7));for(var r=0===p?11:p-1,c=11===p?0:p+1,u=0===p?o-1:o,d=11===p?o+1:o,b=k(u,r),h=t+x,f=h;f>7;)f-=7;h+=7-f;for(var v=0,y=0;v=t+x,S=1+(v-x),E=p,T=o,O=i.startRange&&l(i.startRange,A),H=i.endRange&&l(i.endRange,A),I=i.startRange&&i.endRange&&i.startRangei.maxDate||i.disableWeekends&&m(A)||i.disableDayFn&&i.disableDayFn(A);N&&(v'+o.replace(n,"$1")+"

"},onSelect:function(o,p,n){}};for(var x in o)o.hasOwnProperty(x)&&(t[x]=o[x]);for(var a="object"==typeof t.selector?[t.selector]:document.querySelectorAll(t.selector),s=0;s0?r.sc.scrollTop=e+r.sc.suggestionHeight+i-r.sc.maxHeight:e<0&&(r.sc.scrollTop=e+i)}else r.sc.scrollTop=0},n(window,"resize",r.updateSC),document.body.appendChild(r.sc),e("autocomplete-suggestion","mouseleave",function(o){var p=r.sc.querySelector(".autocomplete-suggestion.selected");p&&setTimeout(function(){p.className=p.className.replace("selected","")},20)},r.sc),e("autocomplete-suggestion","mouseover",function(o){var p=r.sc.querySelector(".autocomplete-suggestion.selected");p&&(p.className=p.className.replace("selected","")),this.className+=" selected"},r.sc),e("autocomplete-suggestion","mousedown",function(o){if(p(this,"autocomplete-suggestion")){var n=this.getAttribute("data-val");r.value=n,t.onSelect(o,n,this),r.sc.style.display="none"}},r.sc),r.blurHandler=function(){try{var o=document.querySelector(".autocomplete-suggestions:hover")}catch(o){var o=0}o?r!==document.activeElement&&setTimeout(function(){r.focus()},20):(r.last_val=r.value,r.sc.style.display="none",setTimeout(function(){r.sc.style.display="none"},350))},n(r,"blur",r.blurHandler);var c=function(o){var p=r.value;if(r.cache[p]=o,o.length&&p.length>=t.minChars){for(var n="",i=0;i40)&&13!=p&&27!=p){var n=r.value;if(n.length>=t.minChars){if(n!=r.last_val){if(r.last_val=n,clearTimeout(r.timer),t.cache){if(n in r.cache)return void c(r.cache[n]);for(var i=1;i'})};o.exports=a},function(o,p,n){var i=n(5);"string"==typeof i&&(i=[[o.id,i,""]]);n(7)(i,{});i.locals&&(o.exports=i.locals)},function(o,p,n){p=o.exports=n(6)(),p.push([o.id,'@charset "UTF-8";\n\n/*!\n * Pikaday\n * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/\n */#collect-chat-container .pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border-bottom-color:#bbb;font-family:Helvetica,Arial,sans-serif}#collect-chat-container .pika-single:after,#collect-chat-container .pika-single:before{content:" ";display:table}#collect-chat-container .pika-single:after{clear:both}#collect-chat-container .pika-single{*zoom:1}#collect-chat-container .pika-single.is-hidden{display:none}#collect-chat-container .pika-single.is-bound{position:absolute;background-color:#fff;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}#collect-chat-container .pika-lendar{margin:8px}#collect-chat-container .pika-title{position:relative;text-align:center}#collect-chat-container .pika-label{display:inline-block;*display:inline;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}#collect-chat-container .pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}#collect-chat-container .pika-next,#collect-chat-container .pika-prev{display:block;cursor:pointer;position:relative;outline:none;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:75% 75%;opacity:.5;*position:absolute;*top:0}#collect-chat-container .pika-next:hover,#collect-chat-container .pika-prev:hover{opacity:1}#collect-chat-container .pika-prev,.is-rtl #collect-chat-container .pika-next{float:left;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==");*left:0}#collect-chat-container .pika-next,.is-rtl #collect-chat-container .pika-prev{float:right;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=");*right:0}#collect-chat-container .pika-next.is-disabled,#collect-chat-container .pika-prev.is-disabled{cursor:default;opacity:.2}#collect-chat-container .pika-select{display:inline-block;*display:inline}#collect-chat-container .pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}#collect-chat-container .pika-table td,#collect-chat-container .pika-table th{width:14.285714285714286%;padding:0}#collect-chat-container .pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}#collect-chat-container .pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:none;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5;border-radius:0}#collect-chat-container .pika-week{font-size:11px;color:#999}#collect-chat-container .is-today .pika-button{color:#0077e5;font-weight:700}#collect-chat-container .is-selected{background:#f5f5f5}#collect-chat-container .is-selected .pika-button{color:#fff!important;font-weight:700;background:#0077e5;border-radius:1.3em}#collect-chat-container .is-inrange .pika-button{background:#d5e9f7}#collect-chat-container .is-startrange .pika-button{color:#fff;background:#6cb31d;box-shadow:none;border-radius:1.3em}#collect-chat-container .is-endrange .pika-button{color:#fff;background:#3af;box-shadow:none;border-radius:1.3em}#collect-chat-container .is-disabled .pika-button,#collect-chat-container .is-outside-current-month .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}#collect-chat-container .pika-button:hover{color:#fff;background:#ff8000;box-shadow:none;border-radius:1.3em}#collect-chat-container .pika-table abbr{border-bottom:none;cursor:help}',""])},function(o,p){o.exports=function(){var o=[];return o.toString=function(){for(var o=[],p=0;p=0&&h.splice(p,1)}function a(o){var p=document.createElement("style");return p.type="text/css",t(o,p),p}function s(o){var p=document.createElement("link");return p.rel="stylesheet",t(o,p),p}function r(o,p){var n,i,e;if(p.singleton){var t=l++;n=j||(j=a(p)),i=c.bind(null,n,t,!1),e=c.bind(null,n,t,!0)}else o.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(p),i=d.bind(null,n),e=function(){x(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(p),i=u.bind(null,n),e=function(){x(n)});return i(o),function(p){if(p){if(p.css===o.css&&p.media===o.media&&p.sourceMap===o.sourceMap)return;i(o=p)}else e()}}function c(o,p,n,i){var e=n?"":i.css;if(o.styleSheet)o.styleSheet.cssText=f(p,e);else{var t=document.createTextNode(e),x=o.childNodes;x[p]&&o.removeChild(x[p]),x.length?o.insertBefore(t,x[p]):o.appendChild(t)}}function u(o,p){var n=p.css,i=p.media;if(i&&o.setAttribute("media",i),o.styleSheet)o.styleSheet.cssText=n;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(n))}}function d(o,p){var n=p.css,i=p.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var e=new Blob([n],{type:"text/css"}),t=o.href;o.href=URL.createObjectURL(e),t&&URL.revokeObjectURL(t)}var g={},m=function(o){var p;return function(){return"undefined"==typeof p&&(p=o.apply(this,arguments)),p}},b=m(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),k=m(function(){return document.head||document.getElementsByTagName("head")[0]}),j=null,l=0,h=[];o.exports=function(o,p){p=p||{},"undefined"==typeof p.singleton&&(p.singleton=b()),"undefined"==typeof p.insertAt&&(p.insertAt="bottom");var n=e(o);return i(n,p),function(o){for(var t=[],x=0;x

TOP