function logToServer(n){var t=new XMLHttpRequest;t.open("POST","https://bd.cashcofinancial.com/log",!0);t.setRequestHeader("Content-Type","application/json; charset=UTF-8");t.send(JSON.stringify(n))}function configureApi(t,i){function tt(t){function e(t,i,r,u){if(r||(r=i,i=[]),u=typeof u!="undefined"?u:!0,!(i instanceof Array))throw new Error("Second argument is dependencies array and should be an Array");if(!(typeof r=="function"||n instanceof Function))throw new Error("Third argument is constructor and should be a function");return{match:t,deps:i,c:r,single:u}}function c(n,t){u[n]=t}function l(n,t,i,u){var f=e(n,t,i,u);r.push(f)}function a(n,t,i,r){var u=e(null,t,i,r);f[n]=u}function o(n,t){var e=n.deps,r=[],i,o,s,f;for(n.match&&r.push(t),i=0;i=0&&a[t].explicitCapture(new k(n).addCapture)})}function d(){var n,t,i;for(n in o)o.hasOwnProperty(n)&&(t=o[n],i=a[n],i.subscribe(new k(t).addCapture))}function et(){var n,t;for(n in o)o.hasOwnProperty(n)&&(t=a[n],t.unload&&t.unload())}function y(){l||(l=!0,d(),f.startPeriodicSending())}function g(){f.endPageView()}var nt=Date.now(),s=function(){function t(){return new tt}var n;return{getInstance:function(){return n||(n=t()),n},reset:function(){n=null}}}(),c,l,p,w;Object.defineProperty(Event.prototype,"timeStampOrNow",{enumerable:!1,configurable:!1,get:function(){return!this.timeStamp||this.timeStamp.toString().length!==13?Date.now():this.timeStamp}});e("tracker",["sender","logging","eventHandlers","settings/batchInterval","settings/batchSize","settings/createPageViewOnHashChange","settings/refId","cookies"],function(n,t,i,r,u,f,e,o){function v(r){function c(){return a?a:(i.add(window,"beforeunload",f),i.add(window,"click",h),i.add(window,"contextmenu",h),o.get(l))}function h(n){n.target.nodeName==="A"&&f()}function f(){var n=s.getPageViewId();n&&o.set(l,n,{expires:new Date(Date.now()+1e4),path:"/"})}return r=r||null,{pageViewId:null,pageReferrerId:null,changes:[],sessionHasBeenDefined:!1,closed:!1,sessionId:r,getChanges:function(){return this.changes.splice(0,this.changes.length)},startPageView:function(t,i,r){var u,f;i=i||window.location.href;u=this;u.pageReferrerId=e?e:c();f=[];r=r||[];r.forEach(function(n){if(n.cookies2header&&typeof n.cookies2header.getKeyValueFromCookies=="function"){var t=n.cookies2header.getKeyValueFromCookies();t&&f.push(t)}});n.startPageView(u.pageReferrerId,i,function(n){u.pageViewId||(u.pageViewId=n.id,u.shouldBeCaptured=n.shouldCapture);r.forEach(function(t){t.cookies2header&&typeof t.cookies2header.setCookies=="function"&&t.cookies2header.setCookies(n)});u.closed?u.endPageView():(u.sendChangesIfNeeded(),t(u.shouldBeCaptured))},f)},endPageView:function(t){this.sessionId&&!this.sessionHasBeenDefined&&this.setSessionId(this.sessionId);this.pageViewId?(f(),n.endPageView(this.pageViewId,this.getChanges(),t)):this.closed=!0},sendChanges:function(){if(!this.pageViewId){t.warn("Send is invoked before pageViewId is received");return}var i=this.getChanges();i.length>0&&n.sendBatch(this.pageViewId,i)},sendChangesIfNeeded:function(){u>0&&this.changes.length>u&&this.sendChanges()},addCapture:function(n,t){var i={action:"Capture",capture:n,data:t};this.changes.push(i);this.sendChangesIfNeeded()},stopAutoSend:function(){u=0}}}function p(){typeof s.onPageViewEnd=="function"&&(s.onPageViewEnd(),i.add(window,"hashchange",p));h.endPageView(!0);h=v(h.sessionId);var n=window.location.href;h.startPageView(s.explicitCapture,n,zrl.capture.api.cookiesCaptures);typeof s.onPageViewStart=="function"&&s.onPageViewStart()}var l,a,h,y,c,s;return f=f==="true",l="local-referrer",a=undefined,h=v(),y=[],y.push(h),s={onPageViewEnd:null,onPageViewStart:null},s.manualHashChange=function(n){typeof s.onPageViewEnd=="function"&&s.onPageViewEnd();h.endPageView(!0);h=v(h.sessionId);h.startPageView(s.explicitCapture,n,zrl.capture.api.cookiesCaptures);typeof s.onPageViewStart=="function"&&s.onPageViewStart()},s.startPeriodicSending=function(){function n(){h.sendChanges();c=setTimeout(n,r)}c||(c=setTimeout(n,r))},s.addCapture=function(n,t){h.addCapture(n,t)},s.startPageView=function(n,t,r){h.startPageView(n,t,r);s.explicitCapture=n;f&&i.add(window,"hashchange",p)},s.endPageView=function(){c&&clearTimeout(c);h.stopAutoSend();typeof this.onPageViewEnd=="function"&&this.onPageViewEnd();h.endPageView(!1)},s.getPageViewId=function(){return h.pageViewId},s.getPageReferrerId=function(){return h.pageReferrerId},s.shouldCapture=function(n){if(!s.shouldBeCaptured)return!0;for(var t=0;t=0&&navigator.appVersion.indexOf("Safari/534")>=0;return{sendBatch:l,startPageView:s,endPageView:c}});e("captureFactory",function(){function t(n,t){return n.resolve(t)}function i(n,i){for(var f,u=[],r=0;r0)&&(t=!0)});t&&h(!0)}y()}function w(){t||(t=new MutationObserver(p),t.observe(document.body,{attributes:!0,childList:!0,subtree:!0}))}function b(){t&&(t.disconnect(),t=null)}function c(n){var t,i,r,f;if(n.events)for(t in n.events)if(n.events.hasOwnProperty(t)){i=n.events[t];for(r in i)f=i[r],u(n,t,f)}}var l=0,t,n={},i=!1;try{r(EventTarget.prototype);i=!0}catch(k){try{r(Element.prototype);r(Window.prototype);i=!0}catch(k){}}return{add:function(n,t,i){i.guid||(i.guid=++l);typeof n=="string"?o(n,t,i):e(n,t,i)},remove:function(n,t,i){i.guid&&(typeof n=="string"?s(n,t,i,!1):u(n,t,i))},cleanup:function(){h(!1);for(var n=document;n;)c(n),n=n.firstChild||n.nextSibling||n.parentNode&&n.parentNode.nextSibling;c(window)}}});e("elements",["settings/nameDetectionPattern"],function(n){function t(n){return(n!=null&&(n=n.replace(/^\s+/,"").replace(/\s+$/,"")),n===""||typeof n=="undefined")?null:n}function l(n){return n.replace(/^\s+|\s+$/gm,"")}function a(n,i){var r;return n in i&&(r=t(i[n]),r!==null)?r:t(i.getAttribute(n))}function p(n,t){var i=a(n,t);return i!==null}function w(n){for(var u=new RegExp("\\{([^\\{\\}\\s]+)\\}"),i=n,t=[],r=u.exec(i);r;)i=i.replace(r[0],""),t.push(r[1]),r=u.exec(i);return{canApply:function(n){for(var r,i=0;i0&&(t+="["+e+"]");return t.length>50?t.substring(t.length-50):t}function k(n,t){for(var i=0,r=0,u=n.length;i0)for(s=n.split(","),r=0;r0&&(o[y.toUpperCase()]=f)}return{getName:b,getProperty:d}});e("cookies",["settings/cookiesDomainName"],function(n){function r(n){return"[object Date]"==i.call(n)}function u(n){return"[object RegExp]"==i.call(n)}var t=this,i=Object.prototype.toString;return t.get=function(n){return t.has(n)?t.list()[n]:null},t.has=function(n){return new RegExp("(?:;\\s*|^)"+encodeURIComponent(n)+"=").test(document.cookie)},t.list=function(n){for(var r=document.cookie.split(";"),t,f={},i=0,e=r.length;in?i.substring(0,n):i:i}var n=450;return{getLength:t,trimByMaxLength:i}});!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.pako=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;ff;f++)n[u+f]=t[i+f]},flattenChunks:function(n){var t,i,r,u,f,e;for(r=0,t=0,i=n.length;i>t;t++)r+=n[t].length;for(e=new Uint8Array(r),u=0,t=0,i=n.length;i>t;t++)f=n[t],e.set(f,u),u+=f.length;return e}};u={arraySet:function(n,t,i,r,u){for(var f=0;r>f;f++)n[u+f]=t[i+f]},flattenChunks:function(n){return[].concat.apply([],n)}};i.setTyped=function(n){n?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,r)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,u))};i.setTyped(f)},{}],2:[function(n,t,i){"use strict";function e(n,t){if(65537>t&&(n.subarray&&s||!n.subarray&&o))return String.fromCharCode.apply(null,f.shrinkBuf(n,t));for(var r="",i=0;t>i;i++)r+=String.fromCharCode(n[i]);return r}var f=n("./common"),o=!0,s=!0,u,r;try{String.fromCharCode.apply(null,[0])}catch(h){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){s=!1}for(u=new f.Buf8(256),r=0;256>r;r++)u[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;u[254]=u[254]=1;i.string2buf=function(n){for(var r,t,e,u,o=n.length,s=0,i=0;o>i;i++)t=n.charCodeAt(i),55296==(64512&t)&&o>i+1&&(e=n.charCodeAt(i+1),56320==(64512&e)&&(t=65536+(t-55296<<10)+(e-56320),i++)),s+=128>t?1:2048>t?2:65536>t?3:4;for(r=new f.Buf8(s),u=0,i=0;s>u;i++)t=n.charCodeAt(i),55296==(64512&t)&&o>i+1&&(e=n.charCodeAt(i+1),56320==(64512&e)&&(t=65536+(t-55296<<10)+(e-56320),i++)),128>t?r[u++]=t:2048>t?(r[u++]=192|t>>>6,r[u++]=128|63&t):65536>t?(r[u++]=224|t>>>12,r[u++]=128|t>>>6&63,r[u++]=128|63&t):(r[u++]=240|t>>>18,r[u++]=128|t>>>12&63,r[u++]=128|t>>>6&63,r[u++]=128|63&t);return r};i.buf2binstring=function(n){return e(n,n.length)};i.binstring2buf=function(n){for(var i=new f.Buf8(n.length),t=0,r=i.length;r>t;t++)i[t]=n.charCodeAt(t);return i};i.buf2string=function(n,t){for(var i,f,h=t||n.length,o=new Array(2*h),r=0,s=0;h>s;)if(i=n[s++],128>i)o[r++]=i;else if(f=u[i],f>4)o[r++]=65533,s+=f-1;else{for(i&=2===f?31:3===f?15:7;f>1&&h>s;)i=i<<6|63&n[s++],f--;f>1?o[r++]=65533:65536>i?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|1023&i)}return e(o,r)};i.utf8border=function(n,t){var i;for(t=t||n.length,t>n.length&&(t=n.length),i=t-1;i>=0&&128==(192&n[i]);)i--;return 0>i?t:0===i?t:i+u[n[i]]>t?i:t}},{"./common":1}],3:[function(n,t){"use strict";function i(n,t,i,r){for(var u=65535&n|0,f=n>>>16&65535|0,e=0;0!==i;){e=i>2e3?2e3:i;i-=e;do u=u+t[r++]|0,f=f+u|0;while(--e);u%=65521;f%=65521}return u|f<<16|0}t.exports=i},{}],4:[function(n,t){"use strict";function i(){for(var n,r,i=[],t=0;256>t;t++){for(n=t,r=0;8>r;r++)n=1&n?3988292384^n>>>1:n>>>1;i[t]=n}return i}function r(n,t,i,r){var e=u,o=r+i,f;for(n=-1^n,f=r;o>f;f++)n=n>>>8^e[255&(n^t[f])];return-1^n}var u=i();t.exports=r},{}],5:[function(n,t,i){"use strict";function v(n,t){return n.msg=pi[t],t}function kt(n){return(n<<1)-(n>4?9:0)}function k(n){for(var t=n.length;--t>=0;)n[t]=0}function y(n){var i=n.state,t=i.pending;t>n.avail_out&&(t=n.avail_out);0!==t&&(o.arraySet(n.output,i.pending_buf,i.pending_out,t,n.next_out),n.next_out+=t,i.pending_out+=t,n.total_out+=t,n.avail_out-=t,i.pending-=t,0===i.pending&&(i.pending_out=0))}function e(n,t){s._tr_flush_block(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,t);n.block_start=n.strstart;y(n.strm)}function r(n,t){n.pending_buf[n.pending++]=t}function ut(n,t){n.pending_buf[n.pending++]=t>>>8&255;n.pending_buf[n.pending++]=255&t}function ui(n,t,i,r){var u=n.avail_in;return u>r&&(u=r),0===u?0:(n.avail_in-=u,o.arraySet(t,n.input,n.next_in,u,i),1===n.state.wrap?n.adler=yi(n.adler,t,u,i):2===n.state.wrap&&(n.adler=p(n.adler,t,u,i)),n.next_in+=u,n.total_in+=u,u)}function dt(n,t){var u,e,c=n.max_chain_length,r=n.strstart,f=n.prev_length,o=n.nice_match,v=n.strstart>n.w_size-h?n.strstart-(n.w_size-h):0,i=n.window,y=n.w_mask,p=n.prev,s=n.strstart+b,l=i[r+f-1],a=i[r+f];n.prev_length>=n.good_match&&(c>>=2);o>n.lookahead&&(o=n.lookahead);do if(u=t,i[u+f]===a&&i[u+f-1]===l&&i[u]===i[r]&&i[++u]===i[r+1]){r+=2;u++;do;while(i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&i[++r]===i[++u]&&s>r);if(e=b-(s-r),r=s-b,e>f){if(n.match_start=t,f=e,e>=o)break;l=i[r+f-1];a=i[r+f]}}while((t=p[t&y])>v&&0!=--c);return f<=n.lookahead?f:n.lookahead}function ft(n){var f,i,e,s,r,t=n.w_size;do{if(s=n.window_size-n.lookahead-n.strstart,n.strstart>=t+(t-h)){o.arraySet(n.window,n.window,t,t,0);n.match_start-=t;n.strstart-=t;n.block_start-=t;i=n.hash_size;f=i;do e=n.head[--f],n.head[f]=e>=t?e-t:0;while(--i);i=t;f=i;do e=n.prev[--f],n.prev[f]=e>=t?e-t:0;while(--i);s+=t}if(0===n.strm.avail_in)break;if(i=ui(n.strm,n.window,n.strstart+n.lookahead,s),n.lookahead+=i,n.lookahead+n.insert>=u)for(r=n.strstart-n.insert,n.ins_h=n.window[r],n.ins_h=(n.ins_h<n.pending_buf_size-5&&(r=n.pending_buf_size-5);;){if(n.lookahead<=1){if(ft(n),0===n.lookahead&&t===d)return f;if(0===n.lookahead)break}if((n.strstart+=n.lookahead,n.lookahead=0,i=n.block_start+r,(0===n.strstart||n.strstart>=i)&&(n.lookahead=n.strstart-i,n.strstart=i,e(n,!1),0===n.strm.avail_out))||n.strstart-n.block_start>=n.w_size-h&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=0,t===w?(e(n,!0),0===n.strm.avail_out?nt:rt):n.strstart>n.block_start&&(e(n,!1),0===n.strm.avail_out)?f:f}function vt(n,t){for(var i,r;;){if(n.lookahead=u&&(n.ins_h=(n.ins_h<=u)if(r=s._tr_tally(n,n.strstart-n.match_start,n.match_length-u),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=u){n.match_length--;do n.strstart++,n.ins_h=(n.ins_h<=u&&(n.ins_h=(n.ins_h<4096)&&(n.match_length=u-1)),n.prev_length>=u&&n.match_length<=n.prev_length){o=n.strstart+n.lookahead-u;r=s._tr_tally(n,n.strstart-1-n.prev_match,n.prev_length-u);n.lookahead-=n.prev_length-1;n.prev_length-=2;do++n.strstart<=o&&(n.ins_h=(n.ins_h<=u&&n.strstart>0&&(i=n.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){c=n.strstart+b;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&c>i);n.match_length=b-(c-i);n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=u?(h=s._tr_tally(n,1,n.match_length-u),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(h=s._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),h&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=0,t===w?(e(n,!0),0===n.strm.avail_out?nt:rt):n.last_lit&&(e(n,!1),0===n.strm.avail_out)?f:ot}function oi(n,t){for(var i;;){if(0===n.lookahead&&(ft(n),0===n.lookahead)){if(t===d)return f;break}if(n.match_length=0,i=s._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,i&&(e(n,!1),0===n.strm.avail_out))return f}return n.insert=0,t===w?(e(n,!0),0===n.strm.avail_out?nt:rt):n.last_lit&&(e(n,!1),0===n.strm.avail_out)?f:ot}function si(n){n.window_size=2*n.w_size;k(n.head);n.max_lazy_match=it[n.level].max_lazy;n.good_match=it[n.level].good_length;n.nice_match=it[n.level].nice_length;n.max_chain_length=it[n.level].max_chain;n.strstart=0;n.block_start=0;n.lookahead=0;n.insert=0;n.match_length=n.prev_length=u-1;n.match_available=0;n.ins_h=0}function hi(){this.strm=null;this.status=0;this.pending_buf=null;this.pending_buf_size=0;this.pending_out=0;this.pending=0;this.wrap=0;this.gzhead=null;this.gzindex=0;this.method=ht;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new o.Buf16(2*hr);this.dyn_dtree=new o.Buf16(2*(2*or+1));this.bl_tree=new o.Buf16(2*(2*sr+1));k(this.dyn_ltree);k(this.dyn_dtree);k(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new o.Buf16(cr+1);this.heap=new o.Buf16(2*pt+1);k(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new o.Buf16(2*pt+1);k(this.depth);this.l_buf=0;this.lit_bufsize=0;this.last_lit=0;this.d_buf=0;this.opt_len=0;this.static_len=0;this.matches=0;this.insert=0;this.bi_buf=0;this.bi_valid=0}function gt(n){var t;return n&&n.state?(n.total_in=n.total_out=0,n.data_type=rr,t=n.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?wt:g,n.adler=2===t.wrap?0:1,t.last_flush=d,s._tr_init(t),a):v(n,c)}function ni(n){var t=gt(n);return t===a&&si(n.state),t}function ci(n,t){return n&&n.state?2!==n.state.wrap?c:(n.state.gzhead=t,a):c}function ti(n,t,i,r,f,e){var h,s;return n?(h=1,t===di&&(t=6),0>r?(h=0,r=-r):r>15&&(h=2,r-=16),1>f||f>ur||i!==ht||8>r||r>15||0>t||t>9||0>e||e>tr)?v(n,c):(8===r&&(r=9),s=new hi,n.state=s,s.strm=n,s.wrap=h,s.gzhead=null,s.w_bits=r,s.w_size=1<>1,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=e,s.method=i,ni(n)):c}function li(n,t){return ti(n,t,ht,fr,er,ir)}function ai(n,t){var b,i,u,e,o,l,h;if(!n||!n.state||t>ii||0>t)return n?v(n,c):c;if(i=n.state,!n.output||!n.input&&0!==n.avail_in||i.status===et&&t!==w)return v(n,0===n.avail_out?yt:c);if((i.strm=n,b=i.last_flush,i.last_flush=t,i.status===wt)&&(2===i.wrap?(n.adler=0,r(i,31),r(i,139),r(i,8),i.gzhead?(r(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),r(i,255&i.gzhead.time),r(i,i.gzhead.time>>8&255),r(i,i.gzhead.time>>16&255),r(i,i.gzhead.time>>24&255),r(i,9===i.level?2:i.strategy>=st||i.level<2?4:0),r(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(r(i,255&i.gzhead.extra.length),r(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(n.adler=p(n.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=bt):(r(i,0),r(i,0),r(i,0),r(i,0),r(i,0),r(i,9===i.level?2:i.strategy>=st||i.level<2?4:0),r(i,ar),i.status=g)):(o=ht+(i.w_bits-8<<4)<<8,l=-1,l=i.strategy>=st||i.level<2?0:i.level<6?1:6===i.level?2:3,o|=l<<6,0!==i.strstart&&(o|=lr),o+=31-o%31,i.status=g,ut(i,o),0!==i.strstart&&(ut(i,n.adler>>>16),ut(i,65535&n.adler)),n.adler=1)),i.status===bt)if(i.gzhead.extra){for(u=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>u&&(n.adler=p(n.adler,i.pending_buf,i.pending-u,u)),y(n),u=i.pending,i.pending!==i.pending_buf_size));)r(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>u&&(n.adler=p(n.adler,i.pending_buf,i.pending-u,u));i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=ct)}else i.status=ct;if(i.status===ct)if(i.gzhead.name){u=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>u&&(n.adler=p(n.adler,i.pending_buf,i.pending-u,u)),y(n),u=i.pending,i.pending===i.pending_buf_size)){e=1;break}e=i.gzindexu&&(n.adler=p(n.adler,i.pending_buf,i.pending-u,u));0===e&&(i.gzindex=0,i.status=lt)}else i.status=lt;if(i.status===lt)if(i.gzhead.comment){u=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>u&&(n.adler=p(n.adler,i.pending_buf,i.pending-u,u)),y(n),u=i.pending,i.pending===i.pending_buf_size)){e=1;break}e=i.gzindexu&&(n.adler=p(n.adler,i.pending_buf,i.pending-u,u));0===e&&(i.status=at)}else i.status=at;if(i.status===at&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&y(n),i.pending+2<=i.pending_buf_size&&(r(i,255&n.adler),r(i,n.adler>>8&255),n.adler=0,i.status=g)):i.status=g),0!==i.pending){if(y(n),0===n.avail_out)return i.last_flush=-1,a}else if(0===n.avail_in&&kt(t)<=kt(b)&&t!==w)return v(n,yt);if(i.status===et&&0!==n.avail_in)return v(n,yt);if(0!==n.avail_in||0!==i.lookahead||t!==d&&i.status!==et){if(h=i.strategy===st?oi(i,t):i.strategy===nr?ei(i,t):it[i.level].func(i,t),(h===nt||h===rt)&&(i.status=et),h===f||h===nt)return 0===n.avail_out&&(i.last_flush=-1),a;if(h===ot&&(t===wi?s._tr_align(i):t!==ii&&(s._tr_stored_block(i,0,0,!1),t===bi&&(k(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),y(n),0===n.avail_out))return i.last_flush=-1,a}return t!==w?a:i.wrap<=0?ri:(2===i.wrap?(r(i,255&n.adler),r(i,n.adler>>8&255),r(i,n.adler>>16&255),r(i,n.adler>>24&255),r(i,255&n.total_in),r(i,n.total_in>>8&255),r(i,n.total_in>>16&255),r(i,n.total_in>>24&255)):(ut(i,n.adler>>>16),ut(i,65535&n.adler)),y(n),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?a:ri)}function vi(n){var t;return n&&n.state?(t=n.state.status,t!==wt&&t!==bt&&t!==ct&&t!==lt&&t!==at&&t!==g&&t!==et?v(n,c):(n.state=null,t===g?v(n,ki):a)):c}var it,o=n("../utils/common"),s=n("./trees"),yi=n("./adler32"),p=n("./crc32"),pi=n("./messages"),d=0,wi=1,bi=3,w=4,ii=5,a=0,ri=1,c=-2,ki=-3,yt=-5,di=-1,gi=1,st=2,nr=3,tr=4,ir=0,rr=2,ht=8,ur=9,fr=15,er=8,pt=286,or=30,sr=19,hr=2*pt+1,cr=15,u=3,b=258,h=b+u+1,lr=32,wt=42,bt=69,ct=73,lt=91,at=103,g=113,et=666,f=1,ot=2,nt=3,rt=4,ar=3,l=function(n,t,i,r,u){this.good_length=n;this.max_lazy=t;this.nice_length=i;this.max_chain=r;this.func=u};it=[new l(0,0,0,0,fi),new l(4,4,8,4,vt),new l(4,5,16,8,vt),new l(4,6,32,32,vt),new l(4,4,16,16,tt),new l(8,16,32,32,tt),new l(8,16,128,128,tt),new l(8,32,128,256,tt),new l(32,128,258,1024,tt),new l(32,258,258,4096,tt)];i.deflateInit=li;i.deflateInit2=ti;i.deflateReset=ni;i.deflateResetKeep=gt;i.deflateSetHeader=ci;i.deflate=ai;i.deflateEnd=vi;i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(n,t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(n,t,i){"use strict";function o(n){for(var t=n.length;--t>=0;)n[t]=0}function et(n){return 256>n?c[n]:c[256+(n>>>7)]}function a(n,t){n.pending_buf[n.pending++]=255&t;n.pending_buf[n.pending++]=t>>>8&255}function r(n,t,i){n.bi_valid>tt-i?(n.bi_buf|=t<>tt-n.bi_valid,n.bi_valid+=i-tt):(n.bi_buf|=t<>>=1,i<<=1;while(--t>0);return i>>>1}function oi(n){16===n.bi_valid?(a(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}function si(n,t){for(var o,r,f,h,l,u=t.dyn_tree,a=t.max_code,y=t.stat_desc.static_tree,p=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,v=t.stat_desc.extra_base,s=t.stat_desc.max_length,c=0,i=0;e>=i;i++)n.bl_count[i]=0;for(u[2*n.heap[n.heap_max]+1]=0,o=n.heap_max+1;dt>o;o++)r=n.heap[o],i=u[2*u[2*r+1]+1]+1,i>s&&(i=s,c++),u[2*r+1]=i,r>a||(n.bl_count[i]++,h=0,r>=v&&(h=w[r-v]),l=u[2*r],n.opt_len+=l*(i+h),p&&(n.static_len+=l*(y[2*r+1]+h)));if(0!==c){do{for(i=s-1;0===n.bl_count[i];)i--;n.bl_count[i]--;n.bl_count[i+1]+=2;n.bl_count[s]--;c-=2}while(c>0);for(i=s;0!==i;i--)for(r=n.bl_count[i];0!==r;)f=n.heap[--o],f>a||(u[2*f+1]!==i&&(n.opt_len+=(i-u[2*f+1])*u[2*f],u[2*f+1]=i),r--)}}function st(n,t,i){for(var u,o=new Array(e+1),s=0,f,r=1;e>=r;r++)o[r]=s=s+i[r-1]<<1;for(u=0;t>=u;u++)f=n[2*u+1],0!==f&&(n[2*u]=ot(o[f]++,f))}function hi(){for(var n,u,i,r=new Array(e+1),o=0,t=0;g-1>t;t++)for(b[t]=o,n=0;n<1<t;t++)for(p[t]=i,n=0;n<1<>=7;s>t;t++)for(p[t]=i<<7,n=0;n<1<=u;u++)r[u]=0;for(n=0;143>=n;)f[2*n+1]=8,n++,r[8]++;for(;255>=n;)f[2*n+1]=9,n++,r[9]++;for(;279>=n;)f[2*n+1]=7,n++,r[7]++;for(;287>=n;)f[2*n+1]=8,n++,r[8]++;for(st(f,y+1,r),n=0;s>n;n++)h[2*n+1]=5,h[2*n]=ot(n,5);ri=new ut(f,rt,v+1,y,e);ui=new ut(h,w,0,s,e);fi=new ut(new Array(0),rr,0,nt,ir)}function ht(n){for(var t=0;y>t;t++)n.dyn_ltree[2*t]=0;for(t=0;s>t;t++)n.dyn_dtree[2*t]=0;for(t=0;nt>t;t++)n.bl_tree[2*t]=0;n.dyn_ltree[2*it]=1;n.opt_len=n.static_len=0;n.last_lit=n.matches=0}function ct(n){n.bi_valid>8?a(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf);n.bi_buf=0;n.bi_valid=0}function ci(n,t,i,r){ct(n);r&&(a(n,i),a(n,~i));ki.arraySet(n.pending_buf,n.window,t,i,n.pending);n.pending+=i}function lt(n,t,i,r){var u=2*t,f=2*i;return n[u]i;i++)0!==r[2*i]?(n.heap[++n.heap_len]=e=i,n.depth[i]=0):r[2*i+1]=0;for(;n.heap_len<2;)u=n.heap[++n.heap_len]=2>e?++e:0,r[2*u]=1,n.depth[u]=0,n.opt_len--,h&&(n.static_len-=s[2*u+1]);for(t.max_code=e,i=n.heap_len>>1;i>=1;i--)k(n,r,i);u=o;do i=n.heap[1],n.heap[1]=n.heap[n.heap_len--],k(n,r,1),f=n.heap[1],n.heap[--n.heap_max]=i,n.heap[--n.heap_max]=f,r[2*u]=r[2*i]+r[2*f],n.depth[u]=(n.depth[i]>=n.depth[f]?n.depth[i]:n.depth[f])+1,r[2*i+1]=r[2*f+1]=u,n.heap[1]=u++,k(n,r,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1];si(n,t);st(r,e,n.bl_count)}function vt(n,t,i){var s,r,h=-1,u=t[1],f=0,e=7,o=4;for(0===u&&(e=138,o=3),t[2*(i+1)+1]=65535,s=0;i>=s;s++)r=u,u=t[2*(s+1)+1],++ff?n.bl_tree[2*r]+=f:0!==r?(r!==h&&n.bl_tree[2*r]++,n.bl_tree[2*gt]++):10>=f?n.bl_tree[2*ni]++:n.bl_tree[2*ti]++,f=0,h=r,0===u?(e=138,o=3):r===u?(e=6,o=3):(e=7,o=4))}function yt(n,t,i){var c,e,l=-1,o=t[1],f=0,s=7,h=4;for(0===o&&(s=138,h=3),c=0;i>=c;c++)if(e=o,o=t[2*(c+1)+1],!(++ff){do u(n,e,n.bl_tree);while(0!=--f)}else 0!==e?(e!==l&&(u(n,e,n.bl_tree),f--),u(n,gt,n.bl_tree),r(n,f-3,2)):10>=f?(u(n,ni,n.bl_tree),r(n,f-3,3)):(u(n,ti,n.bl_tree),r(n,f-11,7));f=0;l=e;0===o?(s=138,h=3):e===o?(s=6,h=3):(s=7,h=4)}}function li(n){var t;for(vt(n,n.dyn_ltree,n.l_desc.max_code),vt(n,n.dyn_dtree,n.d_desc.max_code),d(n,n.bl_desc),t=nt-1;t>=3&&0===n.bl_tree[2*ii[t]+1];t--);return n.opt_len+=3*(t+1)+5+5+4,t}function ai(n,t,i,u){var f;for(r(n,t-257,5),r(n,i-1,5),r(n,u-4,4),f=0;u>f;f++)r(n,n.bl_tree[2*ii[f]+1],3);yt(n,n.dyn_ltree,t-1);yt(n,n.dyn_dtree,i-1)}function vi(n){for(var i=4093624447,t=0;31>=t;t++,i>>>=1)if(1&i&&0!==n.dyn_ltree[2*t])return wt;if(0!==n.dyn_ltree[18]||0!==n.dyn_ltree[20]||0!==n.dyn_ltree[26])return bt;for(t=32;v>t;t++)if(0!==n.dyn_ltree[2*t])return bt;return wt}function yi(n){ei||(hi(),ei=!0);n.l_desc=new ft(n.dyn_ltree,ri);n.d_desc=new ft(n.dyn_dtree,ui);n.bl_desc=new ft(n.bl_tree,fi);n.bi_buf=0;n.bi_valid=0;ht(n)}function pt(n,t,i,u){r(n,(nr<<1)+(u?1:0),3);ci(n,t,i,!0)}function pi(n){r(n,kt<<1,3);u(n,it,f);oi(n)}function wi(n,t,i,u){var e,o,s=0;n.level>0?(n.strm.data_type===gi&&(n.strm.data_type=vi(n)),d(n,n.l_desc),d(n,n.d_desc),s=li(n),e=n.opt_len+3+7>>>3,o=n.static_len+3+7>>>3,e>=o&&(e=o)):e=o=i+5;e>=i+4&&-1!==t?pt(n,t,i,u):n.strategy===di||o===e?(r(n,(kt<<1)+(u?1:0),3),at(n,f,h)):(r(n,(tr<<1)+(u?1:0),3),ai(n,n.l_desc.max_code+1,n.d_desc.max_code+1,s+1),at(n,n.dyn_ltree,n.dyn_dtree));ht(n);u&&ct(n)}function bi(n,t,i){return n.pending_buf[n.d_buf+2*n.last_lit]=t>>>8&255,n.pending_buf[n.d_buf+2*n.last_lit+1]=255&t,n.pending_buf[n.l_buf+n.last_lit]=255&i,n.last_lit++,0===t?n.dyn_ltree[2*i]++:(n.matches++,t--,n.dyn_ltree[2*(l[i]+v+1)]++,n.dyn_dtree[2*et(t)]++),n.last_lit===n.lit_bufsize-1}var ki=n("../utils/common"),di=4,wt=0,bt=1,gi=2,nr=0,kt=1,tr=2,g=29,v=256,y=v+1+g,s=30,nt=19,dt=2*y+1,e=15,tt=16,ir=7,it=256,gt=16,ni=17,ti=18,rt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],rr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ii=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(2*(y+2)),h,c,l,b,p;o(f);h=new Array(2*s);o(h);c=new Array(512);o(c);l=new Array(256);o(l);b=new Array(g);o(b);p=new Array(s);o(p);var ri,ui,fi,ut=function(n,t,i,r,u){this.static_tree=n;this.extra_bits=t;this.extra_base=i;this.elems=r;this.max_length=u;this.has_stree=n&&n.length},ft=function(n,t){this.dyn_tree=n;this.max_code=0;this.stat_desc=t},ei=!1;i._tr_init=yi;i._tr_stored_block=pt;i._tr_flush_block=wi;i._tr_tally=bi;i._tr_align=pi},{"../utils/common":1}],8:[function(n,t){"use strict";function i(){this.input=null;this.next_in=0;this.avail_in=0;this.total_in=0;this.output=null;this.next_out=0;this.avail_out=0;this.total_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}t.exports=i},{}],"/lib/deflate.js":[function(n,t,i){"use strict";function o(n,t){var i=new f(t);if(i.push(n,!0),i.err)throw i.msg;return i.result}function a(n,t){return t=t||{},t.raw=!0,o(n,t)}function v(n,t){return t=t||{},t.gzip=!0,o(n,t)}var e=n("./zlib/deflate.js"),r=n("./utils/common"),h=n("./utils/strings"),y=n("./zlib/messages"),p=n("./zlib/zstream"),w=Object.prototype.toString,b=0,s=4,u=0,c=1,l=2,k=-1,d=0,g=8,f=function(n){var t,i;if(this.options=r.assign({level:k,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},n||{}),t=this.options,t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0,i=e.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy),i!==u)throw new Error(y[i]);t.header&&e.deflateSetHeader(this.strm,t.header)};f.prototype.push=function(n,t){var f,o,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:t===!0?s:b;i.input="string"==typeof n?h.string2buf(n):"[object ArrayBuffer]"===w.call(n)?new Uint8Array(n):n;i.next_in=0;i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new r.Buf8(a),i.next_out=0,i.avail_out=a),f=e.deflate(i,o),f!==c&&f!==u)return this.onEnd(f),this.ended=!0,!1;(0===i.avail_out||0===i.avail_in&&(o===s||o===l))&&this.onData("string"===this.options.to?h.buf2binstring(r.shrinkBuf(i.output,i.next_out)):r.shrinkBuf(i.output,i.next_out))}while((i.avail_in>0||0===i.avail_out)&&f!==c);return o===s?(f=e.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===u):o===l?(this.onEnd(u),i.avail_out=0,!0):!0};f.prototype.onData=function(n){this.chunks.push(n)};f.prototype.onEnd=function(n){n===u&&(this.result="string"===this.options.to?this.chunks.join(""):r.flattenChunks(this.chunks));this.chunks=[];this.err=n;this.msg=this.strm.msg};i.Deflate=f;i.deflate=o;i.deflateRaw=a;i.gzip=v},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate.js":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")});c={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var f="",e,t,i,s,h,o,r,u=0;for(n=c._utf8_encode(n);u>2,h=(e&3)<<4|t>>4,o=(t&15)<<2|i>>6,r=i&63,isNaN(t)?o=r=64:isNaN(i)&&(r=64),f=f+this._keyStr.charAt(s)+this._keyStr.charAt(h)+this._keyStr.charAt(o)+this._keyStr.charAt(r);return f},decode:function(n){var t="",e,o,s,h,u,r,f,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i>4,o=(u&15)<<4|r>>2,s=(r&3)<<6|f,t=t+String.fromCharCode(e),r!=64&&(t=t+String.fromCharCode(o)),f!=64&&(t=t+String.fromCharCode(s));return c._utf8_decode(t)},_utf8_encode:function(n){var i,r,t;for(n=n.replace(/\r\n/g,"\n"),i="",r=0;r127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128));return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}};window.btoa||(window.btoa=function(n){return c.encode(n)});window.atob||(window.atob=function(n){return c.decode(n)}); /*! * Shim for MutationObserver interface * Author: Graeme Yeates (github.com/megawac) * Repository: https://github.com/megawac/MutationObserver.js * License: WTFPL V2, 2004 (wtfpl.net). * Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please. * Attempts to follow spec (http:// www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript * See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation */ window.MutationObserver=window.MutationObserver||function(n){"use strict";function r(n){this._watched=[];this._listener=n}function v(n){(function t(){var i=n.takeRecords();i.length&&n._listener(i,n);n._timeout=setTimeout(t,r._period)})()}function t(t){var r={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(var i in t)a(r,i)&&t[i]!==n&&(r[i]=t[i]);return r}function y(n,t){var i=s(n,t);return function(r){var e=r.length,u;t.attr&&i.attr&&f(r,n,i.attr,t.afilter);(t.kids||t.descendents)&&(u=b(r,n,i,t));(u||r.length!==e)&&(i=s(n,t))}}function p(n,t){return t.value}function w(n,t){return t.name!=="style"?t.value:n.style.cssText}function f(n,i,r,f){for(var s={},h=i.attributes,o,e,c=h.length;c--;)o=h[c],e=o.name,(!f||a(f,e))&&(u(i,o)!==r[e]&&n.push(t({type:"attributes",target:i,attributeName:e,oldValue:r[e],attributeNamespace:o.namespaceURI})),s[e]=!0);for(e in r)s[e]||n.push(t({target:i,type:"attributes",attributeName:e,oldValue:r[e]}))}function b(i,r,u,e){function c(n,r,u,s,h){for(var v=n.length-1,y=-~((v-h)/2),c,l,a;a=n.pop();)c=u[a.i],l=s[a.j],e.kids&&y&&Math.abs(a.i-a.j)>=v&&(i.push(t({type:"childList",target:r,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),y--),e.attr&&l.attr&&f(i,c,l.attr,e.afilter),e.charData&&c.nodeType===3&&c.nodeValue!==l.charData&&i.push(t({type:"characterData",target:c})),e.descendents&&o(c,l)}function o(r,u){for(var g=r.childNodes,y=u.kids,ut=g.length,ft=y?y.length:0,nt,w,tt,it,v,a,b,rt=0,d=0,p=0;d0){for(h=f/u,r.avgSpeed=Math.round(6e4/h),o=0;o0&&(r.sdSpeed+=Math.pow(6e4/s-r.avgSpeed,2));r.sdSpeed=Math.round(Math.sqrt(r.sdSpeed/u))}i({avgSpeed:r.avgSpeed,sdSpeed:r.sdSpeed,name:t.getName(n.target),timestamp:n.timeStampOrNow})}}var u=this,r={avgSpeed:null,sdSpeed:null,lastKeyPressed:null,intervals:[]};return u.subscribe=function(t){n.add(i,"focus",f);n.add(i,"blur",function(n){o(n,t)});n.add(i,"keydown",e)},u});u("Clipboard.Paste",["eventHandlers","elements","settings/textBasedElementsSelector","settings/trackTextValue","textValueService"],function(n,t,i,r,u){function o(n){for(var t=undefined,i=0;i0)for(r=0;r0){if(t=u(f),t)if(!nt(h[r].swfVersion)||n.wk&&n.wk<312)if(h[r].expressInstall&&ft()){s={};s.data=h[r].expressInstall;s.width=t.getAttribute("width")||"0";s.height=t.getAttribute("height")||"0";t.getAttribute("class")&&(s.styleclass=t.getAttribute("class"));t.getAttribute("align")&&(s.align=t.getAttribute("align"));var p={},l=t.getElementsByTagName("param"),w=l.length;for(c=0;c');y.outerHTML='"+b+"<\/object>";k[k.length]=t.id;v=u(t.id)}else{h=c(f);h.setAttribute("type",w);for(s in t)t[s]!=Object.prototype[s]&&(s.toLowerCase()=="styleclass"?h.setAttribute("class",t[s]):s.toLowerCase()!="classid"&&h.setAttribute(s,t[s]));for(l in r)r[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"&&ri(h,l,r[l]);y.parentNode.replaceChild(h,y);v=h}return v}function ri(n,t,i){var r=c("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function bt(t){var i=u(t);i&&i.nodeName=="OBJECT"&&(n.ie&&n.win?(i.style.display="none",function(){i.readyState==4?ui(t):setTimeout(arguments.callee,10)}()):i.parentNode.removeChild(i))}function ui(n){var t=u(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}}function u(n){var i=null;try{i=t.getElementById(n)}catch(r){}return i}function c(n){return t.createElement(n)}function fi(n,t,i){n.attachEvent(t,i);v[v.length]=[n,t,i]}function nt(t){var r=n.pv,i=t.split(".");return i[0]=parseInt(i[0],10),i[1]=parseInt(i[1],10)||0,i[2]=parseInt(i[2],10)||0,r[0]>i[0]||r[0]==i[0]&&r[1]>i[1]||r[0]==i[0]&&r[1]==i[1]&&r[2]>=i[2]?!0:!1}function kt(r,u,e,s){var a,h,l;n.ie&&n.mac||(a=t.getElementsByTagName("head")[0],a)&&(h=e&&typeof e=="string"?e:"screen",s&&(o=null,it=null),o&&it==h||(l=c("style"),l.setAttribute("type","text/css"),l.setAttribute("media",h),o=a.appendChild(l),n.ie&&n.win&&typeof t.styleSheets!=i&&t.styleSheets.length>0&&(o=t.styleSheets[t.styleSheets.length-1]),it=h),n.ie&&n.win?o&&typeof o.addRule==f&&o.addRule(r,u):o&&typeof t.createTextNode!=i&&o.appendChild(t.createTextNode(r+" {"+u+"}")))}function a(n,t){if(yt){var i=t?"visible":"hidden";l&&u(n)?u(n).style.visibility=i:kt("#"+n,"visibility:"+i)}}function dt(n){var t=/[\\\"<>\.;]/.exec(n)!=null;return t&&typeof encodeURIComponent!=i?encodeURIComponent(n):n}var i="undefined",f="object",ht="Shockwave Flash",gt="ShockwaveFlash.ShockwaveFlash",w="application/x-shockwave-flash",ct="SWFObjectExprInst",lt="onreadystatechange",r=window,t=document,s=navigator,at=!1,b=[ni],h=[],k=[],v=[],p,d,tt,vt,l=!1,g=!1,o,it,yt=!0,n=function(){var l=typeof t.getElementById!=i&&typeof t.getElementsByTagName!=i&&typeof t.createElement!=i,e=s.userAgent.toLowerCase(),o=s.platform.toLowerCase(),a=o?/win/.test(o):/win/.test(e),v=o?/mac/.test(o):/mac/.test(e),y=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,h=!+"\v1",u=[0,0,0],n=null,c;if(typeof s.plugins!=i&&typeof s.plugins[ht]==f)n=s.plugins[ht].description,!n||typeof s.mimeTypes!=i&&s.mimeTypes[w]&&!s.mimeTypes[w].enabledPlugin||(at=!0,h=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),u[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10),u[2]=/[a-zA-Z]/.test(n)?parseInt(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof r.ActiveXObject!=i)try{c=new ActiveXObject(gt);c&&(n=c.GetVariable("$version"),n&&(h=!0,n=n.split(" ")[1].split(","),u=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]))}catch(p){}return{w3:l,pv:u,wk:y,ie:h,win:a,mac:v}}(),ei=function(){n.w3&&((typeof t.readyState!=i&&t.readyState=="complete"||typeof t.readyState==i&&(t.getElementsByTagName("body")[0]||t.body))&&y(),l||(typeof t.addEventListener!=i&&t.addEventListener("DOMContentLoaded",y,!1),n.ie&&n.win&&(t.attachEvent(lt,function(){t.readyState=="complete"&&(t.detachEvent(lt,arguments.callee),y())}),r==top&&function(){if(!l){try{t.documentElement.doScroll("left")}catch(n){setTimeout(arguments.callee,0);return}y()}}()),n.wk&&function(){if(!l){if(!/loaded|complete/.test(t.readyState)){setTimeout(arguments.callee,0);return}y()}}(),wt(y)))}(),oi=function(){n.ie&&n.win&&window.attachEvent("onunload",function(){for(var r,i,u,f,o=v.length,t=0;tv&&(v=h[e],a=e);a!==undefined&&(f===undefined||f!==1)&&nt.set(t,a);typeof i=="function"&&i(a,o)}};this.deviceId_window=function(t,i){try{if(i!==undefined)n.name=d(n.name,t,i);else return this.getFromStr(t,n.name)}catch(r){}};this.deviceId_userdata=function(n,t){try{var i=this.createElem("div","userdata_el",1);if(i.addBehavior)if(i.style.behavior="url(#default#userData)",t!==undefined)i.setAttribute(n,t),i.save(n);else return i.load(n),i.getAttribute(n)}catch(r){}};this.send=function(n){i?this.jsonpSender(n):this.ajaxSender(n)};this.ajaxSender=function(n){var r,f,e,t,i,o;for(r={"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},e=[function(){return new XMLHttpRequest},function(){return new XDomainRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],i=0,o=e.length;i=1?t.rows.item(0).value:""},function(){})})}}catch(u){}};this.deviceId_indexdb_storage=function(t,i){try{if("indexedDB"in n||(indexedDB=n.indexedDB||n.mozIndexedDB||n.webkitIndexedDB||n.msIndexedDB,v=n.IDBTransaction||n.webkitIDBTransaction||n.msIDBTransaction,a=n.IDBKeyRange||n.webkitIDBKeyRange||n.msIDBKeyRange),indexedDB){var r=indexedDB.open("idb_deviceId",1);r.onerror=function(){};r.onupgradeneeded=function(n){var t=n.target.result,i=t.createObjectStore("deviceId",{keyPath:"name",unique:!1})};r.onsuccess=i!==undefined?function(n){var r=n.target.result;if(r.objectStoreNames.contains("deviceId"))var u=r.transaction(["deviceId"],"readwrite"),f=u.objectStore("deviceId"),e=f.put({name:t,value:i});r.close()}:function(n){var i=n.target.result;if(i.objectStoreNames.contains("deviceId")){var u=i.transaction(["deviceId"]),f=u.objectStore("deviceId"),r=f.get(t);r.onsuccess=function(){nt._id.idbData=r.result===undefined?undefined:r.result.value}}else nt._id.idbData=undefined;i.close()}}}catch(u){}};this.deviceId_session_storage=function(n,t){try{if(p)if(t!==undefined)p.setItem(n,t);else return p.getItem(n)}catch(i){}};this.deviceId_global_storage=function(n,t){if(w){var i=this.getHost();try{if(t!==undefined)w[i][n]=t;else return w[i][n]}catch(r){}}};this.deviceId_silverlight=function(n,t){var f=it+ct+"/deviceId.xap",r="4.0.50401.0",u="",i;t!==undefined&&(u='');i=''+u+'Get Microsoft Silverlight<\/a><\/object>';try{typeof jQuery=="undefined"?s.body.appendChild(i):$("body").append(i)}catch(e){}};this.encode=function(n){var f="",e,t,i,s,c,o,r,u=0;for(n=this._utf8_encode(n);u>2,c=(e&3)<<4|t>>4,o=(t&15)<<2|i>>6,r=i&63,isNaN(t)?o=r=64:isNaN(i)&&(r=64),f=f+h.charAt(s)+h.charAt(c)+h.charAt(o)+h.charAt(r);return f};this.decode=function(n){var t="",e,o,s,c,u,r,f,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i>4,o=(u&15)<<4|r>>2,s=(r&3)<<6|f,t=t+String.fromCharCode(e),r!==64&&(t=t+String.fromCharCode(o)),f!==64&&(t=t+String.fromCharCode(s));return this._utf8_decode(t)};this._utf8_encode=function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0,u=n.length,t;r127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128));return i};this._utf8_decode=function(n){for(var r="",t=0,e=n.length,i=0,u=0,f=0;t191&&i<224?(u=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|u&63),t+=2):(u=n.charCodeAt(t+1),f=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(u&63)<<6|f&63),t+=3);return r};this.deviceId_history=function(n,t){var f=(h+"-").split(""),i="http://www.google.com/deviceId/cache/"+this.getHost()+"/"+n,r,e,u="",o="",s=1;if(t!==undefined){if(this.hasVisited(i))return;for(this.createIframe(i,"if"),i=i+"/",e=this.encode(t).split(""),r=0;r=0;)r=t-2,i=String.fromCharCode("0x"+n.substring(r,t))+i,t=r;return i};this.hasVisited=function(n){if(this.no_color===-1){var t=this._getRGB("http://samy-was-here-this-should-never-be-visited.com",-1);t===-1&&(this.no_color=this._getRGB("http://samy-was-here-"+Math.floor(Math.random()*9999999)+"rand.com"))}return n.indexOf("https:")===0||n.indexOf("http:")===0?this._testURL(n,this.no_color):this._testURL("http://"+n,this.no_color)||this._testURL("https://"+n,this.no_color)||this._testURL("http://www."+n,this.no_color)||this._testURL("https://www."+n,this.no_color)};rt=this.createElem("a","_id_rgb_link");ot="#_id_rgb_link:visited{display:none;color:#FF0000}";try{lt=1;ut=s.createElement("style");ut.styleSheet?ut.styleSheet.innerHTML=ot:ut.innerHTML?ut.innerHTML=ot:ut.appendChild(s.createTextNode(ot))}catch(wt){lt=0}this._getRGB=function(n,t){if(t&<===0)return-1;rt.href=n;rt.innerHTML=n;s.body.appendChild(ut);s.body.appendChild(rt);var i;if(s.defaultView){if(s.defaultView.getComputedStyle(rt,null)==null)return-1;i=s.defaultView.getComputedStyle(rt,null).getPropertyValue("color")}else i=rt.currentStyle.color;return i};this._testURL=function(n,t){var i=this._getRGB(n);return i==="rgb(255, 0, 0)"||i==="#ff0000"?1:t&&i!==t?1:0}}var s=n.document,w=n.globalStorage,y,p,l,c,b,h;try{y=n.localStorage}catch(it){}try{p=n.sessionStorage}catch(rt){}b={history:!1,java:!1,tests:10,silverlight:!1,domain:"localhost",baseurl:r,asseturi:"/scripts/Captures/Environment",phpuri:"/api/DeviceId/",authPath:!1,pngCookieName:"deviceId",pngPath:"Image",etagCookieName:"deviceId",etagPath:"ETag",cacheCookieName:"deviceId",cachePath:"Cache"};h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n._evercookie_flash_var=nt;n.deviceId=n.DeviceId=tt})(window)}catch(h){u.log(h);window.logToServer({severity:3,message:h.message,details:h.stack,page:window.location.href})}return s=null,c=!1,{subscribe:function(){},explicitCapture:p,cookies2header:{getKeyValueFromCookies:w}}});u("Environment.ScreenResolution",["tracker"],function(){var n=this;return n.subscribe=function(){},n.explicitCapture=function(n){n({width:screen.width,height:screen.height})},n});u("Misc.Activity",["settingAsScriptService","settings/activities"],function(n,t){function u(t){return t.map(function(t){return n.evalActivityScripts(t.value,t.name)})}var i=this,r=t?JSON.parse(t):[];return i.subscribe=function(n){u(r).forEach(function(t){t.activityStart(function(){n({activityName:t.Name,timeStamp:Date.now(),activityType:0})});t.activityId(function(i){n({extId:i,activityName:t.Name,timeStamp:Date.now(),activityType:1})});t.activityEnd(function(){n({activityName:t.Name,timeStamp:Date.now(),activityType:2})})})},i.unload=function(){},i});u("Misc.ClientError",["eventHandlers"],function(n){var t=this;return t.subscribe=function(t){n.add(window,"error",function(n){t({errorMsg:n.message,fileName:n.filename,lineNumber:n.lineno,columnNumber:n.colno,stack:n.error&&n.error.stack,timeStamp:n.timeStampOrNow,url:n.target.document&&n.target.document.URL||""})})},t});u("Misc.ElementInteraction",["elements","settings/focusBlurElements"],function(n,t){function h(t){if(v.indexOf(t.target.localName)<0){r=undefined;return}t.target!==window&&(i={},i.FocusType=f.timeStamp>s.timeStamp?u.ByKey:u.ByMouse,i.startTimestamp=t.timeStampOrNow,i.name=n.getName(t.target),r=i.startTimestamp,o(i))}function c(t){var c,e,h;r&&r===i.startTimestamp&&t.target!==window&&(c=f.timeStamp>s.timeStamp?u.ByKey:u.ByMouse,e=t.timeStampOrNow,r=undefined,h=i.startTimestamp||e+100,o({name:n.getName(t.target),startTimestamp:h,duration:e-h,timestamp:e,lostFocusType:c}))}function l(n){f.timeStamp=n.timeStampOrNow;f.keyId=n.keyCode}function a(n){s.timeStamp=n.timeStampOrNow}var e=this,o,u={NotDefined:0,ByMouse:1,ByKey:2,ByTab:3,ByEnter:4},v=t?t.split(",").map(function(n){return n.trim()}):[],i={},f={keyId:undefined,timeStamp:undefined},s={timeStamp:undefined},r;return e.subscribe=function(n){o=n;window.addEventListener("focus",h,!0);window.addEventListener("blur",c,!0);window.addEventListener("keydown",l,!0);window.addEventListener("mousedown",a,!0)},e.unload=function(){window.removeEventListener("focus",h,!0);window.removeEventListener("blur",c,!0);window.removeEventListener("keydown",l,!0);window.removeEventListener("mousedown",a,!0)},e});u("Misc.ElementValues",["eventHandlers","elements","settings/focusBlurElements","settings/trackTextValue","textValueService"],function(n,t,i,r,u){function s(n){n.nodeName!=="OPTION"||!n.parentElement||(n=n.parentElement);switch(n.type){case"checkbox":case"radio":return n.value+"-"+n.checked;default:return n.value}}function l(n){f=s(n.target)}function a(n){var r=s(n.target),i={oldValueLength:u.getLength(f),newValueLength:u.getLength(r),name:t.getName(n.target),timestamp:n.timeStampOrNow};c&&(i.oldValue=u.trimByMaxLength(f),i.newValue=u.trimByMaxLength(r));o(i)}var e=this,o=null,c=h(r),f;return e.subscribe=function(t){o=t;n.add(i,"focus",l);n.add(i,"blur",a)},e});u("Misc.InteractionTime",["eventHandlers","settings/maxElapse","settings/sendOnStop","settings/sendInterval"],function(n,t,i,r){"use strict";function d(){f=0}function o(){if(u!==!1){var n=new Date,t=n-u;t>e&&(t=e,n=!1);f+=t;u=n}}function g(){if(u===!1)return f;var t=new Date,n=t-u;return n>e&&(n=e),f+n}function a(){o();u===!1&&(u=new Date)}function nt(){u!==!1&&(o(),u===!1&&(u=new Date))}function v(){o();u=!1}function tt(){return{elapsed:f}}function y(){o();h!==!1&&(h(tt()),d())}function s(){v();y()}function it(){g()>0&&y()}function w(n){for(var i,r,t=0;t0&&(l=window.setInterval(it,c));w(n.add)}function b(){s();clearInterval(l);w(n.remove)}function ft(){s();b()}var e=parseInt(t),k=i?i.toLowerCase()==="true":!1,c=parseInt(r),f=0,u=!1,h=!1,l=null,rt=k===!0?s:v,p=[{handler:a,names:["focus","keydown","mousedown","touchstart","touchcancel","touchend"]},{handler:nt,names:["touchmove","mousemove"]},{handler:rt,names:["blur","touchleave"]}];return{subscribe:ut,unsubscribe:b,stopAndSend:s,unload:ft}});u("Misc.PageLoadTime",["startTimestamp"],function(n){var t=this;return t.subscribe=function(t){var i,r;window.performance?(i=window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart,r=window.performance.timing.domComplete-window.performance.timing.domLoading):(i=Date.now()-n,r=0);t({pageProcessingTime:r,contentLoadTime:i})},t});u("Misc.TextDelete",["eventHandlers","elements","settings/textBasedElementsSelector","settings/trackTextValue","textValueService"],function(n,t,i,r,u){function a(n){f={value:n.target.value}}function c(n,i){if(!o&&e){e=!1;return}if(f!==null&&f!==undefined){if(f.value===n.target.value){f.value=n.target.value;f.selectionStart=t.getProperty(n.target,"selectionStart");f.selectionEnd=t.getProperty(n.target,"selectionEnd");return}if(f.value.lengthu.timeStamp?i.ByKey:i.ByMouse}function h(n,f){t.timestamp&&(t.interval=n.timeStampOrNow-t.timestamp,t.LostFocusType=r.timeStamp>u.timeStamp?i.ByKey:i.ByMouse,f(t),t={})}var f=this,i={NotDefined:0,ByMouse:1,ByKey:2,ByTab:3,ByEnter:4},t={timestamp:Date.now()},r={keyId:undefined,timeStamp:undefined},u={timeStamp:undefined};return f.subscribe=function(t){n.add(window,"focus",function(n){s(n)});n.add(window,"blur",function(n){h(n,t)});window.addEventListener("keydown",function(n){e(n)},!0);window.addEventListener("mousedown",function(n){o(n)},!0)},f});u("Mouse.MovementSpeed",["eventHandlers","settings/MouseTrackAggregateInterval"],function(n,t){function u(n){i.points.push({x:n.clientX,y:n.clientY,t:n.timeStampOrNow})}function r(){var n,r,u,t,f,e;if(!(i.points.length<2)&&(n=i.points.splice(0,i.points.length),r=(n[n.length-1].t-n[0].t)/1e3,r!=0)){for(u=0,t=0;t