"use strict";(self.webpackChunk_components_admin_1_1_41=self.webpackChunk_components_admin_1_1_41||[]).push([[6357],{74416(e,t,n){n.d(t,{A:()=>o});const o={cache:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=o.getItem(e);return r||(r=await t(),o.setItem(e,r,n),r)},getItem:e=>{const t=window.localStorage.getItem(e);try{const n=JSON.parse(t),r=n.dataType,i=n.value,a=n.expire;if(a&&Date.now()>a)return o.removeItem(e),null;if("object"===r&&"null"===i)return null;if("undefined"===r)return;return"number"===r?Number(i):"boolean"===r?Boolean(i):i}catch(n){return null}},setItem:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=typeof t;window.localStorage.setItem(e,JSON.stringify({dataType:o,value:t,expire:n}))},removeItem:e=>{window.localStorage.removeItem(e)}}},6357(e,t,n){function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)"__proto__"!==o&&(e[o]=n[o])}return e}n.r(t),n.d(t,{default:()=>m,getToken:()=>l,removeToken:()=>u,setToken:()=>s});var r=function e(t,n){function r(e,r,i){if("undefined"!==typeof document){"number"===typeof(i=o({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},r=0;r<n.length;r++){var i=n[r].split("="),a=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(c in o||(o[c]=t.read(a,c)),e===c)break}catch(s){}}return e?o[e]:o}},remove:function(e,t){r(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),i=n(74416);const a=(()=>{const e=window.location.hostname.split(".");return e.length>1&&!/^(\d{1,3}\.){3}\d{1,3}$/.test(window.location.hostname)?"."+e.slice(1).join("."):window.location.hostname})(),c="TOKEN_"+a.replace(/\./g,"_").toUpperCase(),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"X-User-Token",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const o=Object.assign({},{sameDomain:!0,expires:null},n),s=o.expires;o.sameDomain?i.A.setItem(e,t,s?1e3*s:null):((e,t,n)=>{r.set(c+"_"+e.toUpperCase(),t,{maxAge:n,domain:a})})(e,t,s)},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"X-User-Token",t=arguments.length>1?arguments[1]:void 0;return Object.assign({},{sameDomain:!0},t).sameDomain?i.A.getItem(e):(n=e,r.get(c+"_"+n.toUpperCase()));var n},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"X-User-Token",t=arguments.length>1?arguments[1]:void 0;var n;Object.assign({},{sameDomain:!0},t).sameDomain?i.A.removeItem(e):(n=e,r.remove(c+"_"+n.toUpperCase(),{domain:a}))},m={setToken:s,getToken:l,removeToken:u}}}]);
//# sourceMappingURL=6357.02a9b1c1.chunk.js.map