!function(){function t(t,n,e){const o=new Date;o.setTime(o.getTime()+24*e*60*60*1e3);const r="expires="+o.toUTCString();document.cookie=`${t}=${n};${r};path=/`}function n(n,e={}){const o="http://localhost"+n;return e.mode="cors",fetch(o,e).then(n=>{if(n.ok)return n;throw 403===n.status&&(t("username","",-1),alert("please login first."),window.location.assign("/login.html")),n})}function e(t,e){return e.ajaxRequestFunc=function(t,e){return n(t,e).then(t=>t.json())},new Tabulator(t,e)}window.getQueryString=function(t){return new URLSearchParams(window.location.search).get(t)},window.setCookie=t,window.getCookie=function(t){const n=t+"=",e=document.cookie.split(";");for(let t=0;t<e.length;t++){let o=e[t];for(;" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(n))return o.substring(n.length)}return""},window.secureFetch=n,window.newTabulator=e,window.createTabulator=function(t,n){return e(t,n)}}();