Abtf[0](function(e,t){if(e.localStorage&&e.Worker){var r=[],n=function(t){"Promise"in e?new Promise(function(e,r){e(t())}):"undefined"!==e.setImmediate?e.setImmediate(t):setTimeout(t,0)},o={prefix:"abtf-",default_expire:86400,preloaded:{},now:function(){return+new Date/1e3},execWhenIdle:function(e,r){t[16]?t[16](e,{timeout:r}):e()},saveScript:function(e,t,r){o.execWhenIdle(function(){var n={},i=o.now();if(n.date=i,n.expire=i+(r||o.default_expire),t instanceof Array){n.chunked=!0,n.chunks=t.length;for(var a=[],s=t.length,c=0;c10)){"object"==typeof t&&(t=JSON.stringify(t));try{return localStorage.setItem(o.prefix+e,t),!0}catch(c){if(c.name.toUpperCase().indexOf("QUOTA")>=0){var n,i,a,s=[];for(n in localStorage)0===n.indexOf(o.prefix)&&-1===n.indexOf("chunk:")&&(a=n.split(o.prefix)[1],(i=o.get(a))&&s.push([a,i]));return s.length?(s.sort(function(e,t){return e[1].date-t[1].date}),o.remove(s[0][0]),void o.execWhenIdle(function(){void 0===r&&(r=0),o.add(e,t,++r)},1e3)):void 0}return}}},remove:function(e){var t=o.get(e);if(t){if(t.chunked)for(var r=parseInt(t.chunks),n=0;nself.MAX_CHUNK_SIZE&&(o=self.CHUNK_DATA(o,self.MAX_CHUNK_SIZE)),self.RESOURCE_LOAD_COMPLETED(e,n,o))};if(self.FETCH){var o={method:"GET",mode:"cors",cache:"default"},i=function(e){t||("object"==typeof e&&e.status&&(e=[e.status,e.statusText]),n(e))};self.FETCH(e.url,o).then(function(e){t||(e.ok?e.text().then(function(e){n(!1,e)}):n([e.status,e.statusText]))},i).catch(i);s=e.timeout||self.DEFAULT_TIMEOUT;isNaN(s)&&(s=self.DEFAULT_TIMEOUT),r=setTimeout(function(){t||n("timeout")},s)}else{var a=new XMLHttpRequest;a.open("GET",e.url,!0),a.responseType="text",a.onreadystatechange=function(){t||4===a.readyState&&(200!==a.status?n(a.statusText):n(!1,a.responseText))},a.onerror=function(){t||n(a.statusText)};var s=e.timeout||self.DEFAULT_TIMEOUT;isNaN(s)&&(s=self.DEFAULT_TIMEOUT),r=setTimeout(function(){if(!t){try{a.abort()}catch(e){}n("timeout")}},s),a.send(null)}},self.RESOURCE_LOAD_COMPLETED=function(e,t,r){t?(t instanceof Array||"object"!=typeof t||(t=t.toString()),self.postMessage([2,e.i,t])):self.postMessage([1,e.i,r])},self.onmessage=function(e){var t=e.data;if(t instanceof Array)for(var r=t.length,n=0;n0)for(var t=r.length,n=0;n