let StorageManager={mode:/iPhone|iPad|iPod|Macintosh/i.test(navigator.userAgent)?"ios-standalone":window.matchMedia("(display-mode: standalone)").matches?"pwa":"browser",set(e,o){var t,a,n,i;"ios-standalone"===this.mode?(t=e,a=o,n=365,(i=new Date).setTime(i.getTime()+24*n*60*60*1e3),document.cookie=`${t}=${encodeURIComponent(a)};expires=${i.toUTCString()};path=/`):localStorage.setItem(e,o)},get(e){return"ios-standalone"===this.mode?(o=e,(o=document.cookie.match(new RegExp("(^| )"+o+"=([^;]+)")))?decodeURIComponent(o[2]):null):localStorage.getItem(e);var o},remove(e){"ios-standalone"===this.mode?document.cookie=e+"=; Max-Age=-1; path=/":localStorage.removeItem(e)}};