react-session.manager.sk 1.0.5 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,18 +1,61 @@
1
1
  # react-session.mananger.sk
2
2
 
3
+ This is used in conjunction with a custom flask app in order to manage user sessions.
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ npm install react-session-manager-sk
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ <SessionManagerProvider
15
+ userLoader={who} // function to get user data
16
+ refreshToken={refresh} // function to refresh token
17
+ AuthenticatedAxiosObject={axiosAuth} // axios object with token
18
+ refreshTimer={config.server.tokenRefreshTimer} // time to refresh token
19
+ dataRefresh={config.server.dataRefreshTimer} // time to refresh data
20
+ customeUpdateIcon={<Update />} // custom icon for update
21
+ appVersion={config.appVersion} // app version
22
+ toastOptions={{
23
+ icon: true,
24
+ toastClassName: config.theme.Notification.ThemeNotifications
25
+ ? config.theme.Notification.MaterialNotifications
26
+ ? "custToast materialToast"
27
+ : "custToast"
28
+ : "",
29
+ }}
30
+ >
31
+ <App />
32
+ </SessionManagerProvider>
33
+ ```
34
+
3
35
  ## Testing using another project
4
36
 
37
+ ### Linking react and react-dom
38
+
39
+ Link react and react-dom to the project you want to test with.
40
+
5
41
  ```
42
+
6
43
  cd node_modules/react
7
44
  npm link
45
+
8
46
  ```
9
47
 
10
48
  ```
49
+
11
50
  cd node_modules/react-dom
12
51
  npm link
52
+
13
53
  ```
14
54
 
55
+ Run the following in package root directory
56
+
15
57
  ```
16
- npm link react
17
- npm link react-dom
58
+
59
+ npm link react react-dom
60
+
18
61
  ```
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(require("react")):"function"==typeof define&&define.amd?define("MyComponent",["react"],i):"object"==typeof exports?exports.MyComponent=i(require("react")):e.MyComponent=i(e.react)}(self,(e=>(()=>{var i={126:function(e,i,t){e.exports=function(e){var i={};function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var r in e)t.d(n,r,function(i){return e[i]}.bind(null,r));return n},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=0)}([function(e,i,t){"use strict";var n,r,o=t(1)(),a=t(3),s=t(4),u=t(6),l=function(){var e=new s;return n=e.getResult(),r=new u,this};l.prototype={getSoftwareVersion:function(){return"0.1.11"},getBrowserData:function(){return n},getFingerprint:function(){var e="|",i=n.ua,t=this.getScreenPrint(),r=this.getPlugins(),o=this.getFonts(),s=this.isLocalStorage(),u=this.isSessionStorage(),l=this.getTimeZone(),c=this.getLanguage(),d=this.getSystemLanguage(),f=this.isCookie(),m=this.getCanvasPrint();return a(i+e+t+e+r+e+o+e+s+e+u+e+l+e+c+e+d+e+f+e+m,256)},getCustomFingerprint:function(){for(var e="",i=0;i<arguments.length;i++)e+=arguments[i]+"|";return a(e,256)},getUserAgent:function(){return n.ua},getUserAgentLowerCase:function(){return n.ua.toLowerCase()},getBrowser:function(){return n.browser.name},getBrowserVersion:function(){return n.browser.version},getBrowserMajorVersion:function(){return n.browser.major},isIE:function(){return/IE/i.test(n.browser.name)},isChrome:function(){return/Chrome/i.test(n.browser.name)},isFirefox:function(){return/Firefox/i.test(n.browser.name)},isSafari:function(){return/Safari/i.test(n.browser.name)},isMobileSafari:function(){return/Mobile\sSafari/i.test(n.browser.name)},isOpera:function(){return/Opera/i.test(n.browser.name)},getEngine:function(){return n.engine.name},getEngineVersion:function(){return n.engine.version},getOS:function(){return n.os.name},getOSVersion:function(){return n.os.version},isWindows:function(){return/Windows/i.test(n.os.name)},isMac:function(){return/Mac/i.test(n.os.name)},isLinux:function(){return/Linux/i.test(n.os.name)},isUbuntu:function(){return/Ubuntu/i.test(n.os.name)},isSolaris:function(){return/Solaris/i.test(n.os.name)},getDevice:function(){return n.device.model},getDeviceType:function(){return n.device.type},getDeviceVendor:function(){return n.device.vendor},getCPU:function(){return n.cpu.architecture},isMobile:function(){var e=n.ua||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},isMobileMajor:function(){return this.isMobileAndroid()||this.isMobileBlackBerry()||this.isMobileIOS()||this.isMobileOpera()||this.isMobileWindows()},isMobileAndroid:function(){return!!n.ua.match(/Android/i)},isMobileOpera:function(){return!!n.ua.match(/Opera Mini/i)},isMobileWindows:function(){return!!n.ua.match(/IEMobile/i)},isMobileBlackBerry:function(){return!!n.ua.match(/BlackBerry/i)},isMobileIOS:function(){return!!n.ua.match(/iPhone|iPad|iPod/i)},isIphone:function(){return!!n.ua.match(/iPhone/i)},isIpad:function(){return!!n.ua.match(/iPad/i)},isIpod:function(){return!!n.ua.match(/iPod/i)},getScreenPrint:function(){return"Current Resolution: "+this.getCurrentResolution()+", Available Resolution: "+this.getAvailableResolution()+", Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()},getColorDepth:function(){return screen.colorDepth},getCurrentResolution:function(){return screen.width+"x"+screen.height},getAvailableResolution:function(){return screen.availWidth+"x"+screen.availHeight},getDeviceXDPI:function(){return screen.deviceXDPI},getDeviceYDPI:function(){return screen.deviceYDPI},getPlugins:function(){for(var e="",i=0;i<navigator.plugins.length;i++)i==navigator.plugins.length-1?e+=navigator.plugins[i].name:e+=navigator.plugins[i].name+", ";return e},isJava:function(){return navigator.javaEnabled()},getJavaVersion:function(){throw new Error("Please use client.java.js or client.js if you need this functionality!")},isFlash:function(){return!!navigator.plugins["Shockwave Flash"]},getFlashVersion:function(){throw new Error("Please use client.flash.js or client.js if you need this functionality!")},isSilverlight:function(){return!!navigator.plugins["Silverlight Plug-In"]},getSilverlightVersion:function(){return this.isSilverlight()?navigator.plugins["Silverlight Plug-In"].description:""},isMimeTypes:function(){return!(!navigator.mimeTypes||!navigator.mimeTypes.length)},getMimeTypes:function(){var e="";if(navigator.mimeTypes)for(var i=0;i<navigator.mimeTypes.length;i++)i==navigator.mimeTypes.length-1?e+=navigator.mimeTypes[i].description:e+=navigator.mimeTypes[i].description+", ";return e},isFont:function(e){return r.detect(e)},getFonts:function(){for(var e=["Abadi MT Condensed Light","Adobe Fangsong Std","Adobe Hebrew","Adobe Ming Std","Agency FB","Aharoni","Andalus","Angsana New","AngsanaUPC","Aparajita","Arab","Arabic Transparent","Arabic Typesetting","Arial Baltic","Arial Black","Arial CE","Arial CYR","Arial Greek","Arial TUR","Arial","Batang","BatangChe","Bauhaus 93","Bell MT","Bitstream Vera Serif","Bodoni MT","Bookman Old Style","Braggadocio","Broadway","Browallia New","BrowalliaUPC","Calibri Light","Calibri","Californian FB","Cambria Math","Cambria","Candara","Castellar","Casual","Centaur","Century Gothic","Chalkduster","Colonna MT","Comic Sans MS","Consolas","Constantia","Copperplate Gothic Light","Corbel","Cordia New","CordiaUPC","Courier New Baltic","Courier New CE","Courier New CYR","Courier New Greek","Courier New TUR","Courier New","DFKai-SB","DaunPenh","David","DejaVu LGC Sans Mono","Desdemona","DilleniaUPC","DokChampa","Dotum","DotumChe","Ebrima","Engravers MT","Eras Bold ITC","Estrangelo Edessa","EucrosiaUPC","Euphemia","Eurostile","FangSong","Forte","FrankRuehl","Franklin Gothic Heavy","Franklin Gothic Medium","FreesiaUPC","French Script MT","Gabriola","Gautami","Georgia","Gigi","Gisha","Goudy Old Style","Gulim","GulimChe","GungSeo","Gungsuh","GungsuhChe","Haettenschweiler","Harrington","Hei S","HeiT","Heisei Kaku Gothic","Hiragino Sans GB","Impact","Informal Roman","IrisUPC","Iskoola Pota","JasmineUPC","KacstOne","KaiTi","Kalinga","Kartika","Khmer UI","Kino MT","KodchiangUPC","Kokila","Kozuka Gothic Pr6N","Lao UI","Latha","Leelawadee","Levenim MT","LilyUPC","Lohit Gujarati","Loma","Lucida Bright","Lucida Console","Lucida Fax","Lucida Sans Unicode","MS Gothic","MS Mincho","MS PGothic","MS PMincho","MS Reference Sans Serif","MS UI Gothic","MV Boli","Magneto","Malgun Gothic","Mangal","Marlett","Matura MT Script Capitals","Meiryo UI","Meiryo","Menlo","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","Miriam Fixed","Miriam","Mongolian Baiti","MoolBoran","NSimSun","Narkisim","News Gothic MT","Niagara Solid","Nyala","PMingLiU","PMingLiU-ExtB","Palace Script MT","Palatino Linotype","Papyrus","Perpetua","Plantagenet Cherokee","Playbill","Prelude Bold","Prelude Condensed Bold","Prelude Condensed Medium","Prelude Medium","PreludeCompressedWGL Black","PreludeCompressedWGL Bold","PreludeCompressedWGL Light","PreludeCompressedWGL Medium","PreludeCondensedWGL Black","PreludeCondensedWGL Bold","PreludeCondensedWGL Light","PreludeCondensedWGL Medium","PreludeWGL Black","PreludeWGL Bold","PreludeWGL Light","PreludeWGL Medium","Raavi","Rachana","Rockwell","Rod","Sakkal Majalla","Sawasdee","Script MT Bold","Segoe Print","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Segoe UI","Shonar Bangla","Showcard Gothic","Shruti","SimHei","SimSun","SimSun-ExtB","Simplified Arabic Fixed","Simplified Arabic","Snap ITC","Sylfaen","Symbol","Tahoma","Times New Roman Baltic","Times New Roman CE","Times New Roman CYR","Times New Roman Greek","Times New Roman TUR","Times New Roman","TlwgMono","Traditional Arabic","Trebuchet MS","Tunga","Tw Cen MT Condensed Extra Bold","Ubuntu","Umpush","Univers","Utopia","Utsaah","Vani","Verdana","Vijaya","Vladimir Script","Vrinda","Webdings","Wide Latin","Wingdings"],i="",t=0;t<e.length;t++)r.detect(e[t])&&(i+=t==e.length-1?e[t]:e[t]+", ");return i},isLocalStorage:function(){try{return!!o.localStorage}catch(e){return!0}},isSessionStorage:function(){try{return!!o.sessionStorage}catch(e){return!0}},isCookie:function(){return navigator.cookieEnabled},getTimeZone:function(){var e,i;return e=new Date,(i=String(-e.getTimezoneOffset()/60))<0?"-"+("0"+(i*=-1)).slice(-2):"+"+("0"+i).slice(-2)},getLanguage:function(){return navigator.language},getSystemLanguage:function(){return navigator.systemLanguage||window.navigator.language},isCanvas:function(){var e=document.createElement("canvas");try{return!(!e.getContext||!e.getContext("2d"))}catch(e){return!1}},getCanvasPrint:function(){var e,i=document.createElement("canvas");try{e=i.getContext("2d")}catch(e){return""}var t="ClientJS,org <canvas> 1.0";return e.textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(t,4,17),i.toDataURL()}},i.ClientJS=l},function(e,i,n){"use strict";var r=n(2);e.exports=function(){return"object"==typeof t.g&&t.g&&t.g.Math===Math&&t.g.Array===Array?t.g:r}},function(e,i,t){"use strict";"undefined"!=typeof self?e.exports=self:"undefined"!=typeof window?e.exports=window:e.exports=Function("return this")()},function(e,i,t){e.exports=function(e,i){var t,n,r,o,a,s,u,l;for(t=3&e.length,n=e.length-t,r=i,a=3432918353,s=461845907,l=0;l<n;)u=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,r=27492+(65535&(o=5*(65535&(r=(r^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,t){case 3:u^=(255&e.charCodeAt(l+2))<<16;case 2:u^=(255&e.charCodeAt(l+1))<<8;case 1:r^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(l)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}},function(e,i,t){var n;!function(r,o){"use strict";var a="function",s="undefined",u="object",l="string",c="model",d="name",f="type",m="vendor",g="version",p="architecture",b="console",w="mobile",h="tablet",v="smarttv",y="wearable",S="embedded",x="Amazon",k="Apple",C="ASUS",M="BlackBerry",T="Google",I="Huawei",P="LG",A="Microsoft",E="Motorola",L="Samsung",O="Sony",B="Xiaomi",j="Zebra",U="Facebook",_=function(e){var i={};for(var t in e)i[e[t].toUpperCase()]=e[t];return i},R=function(e,i){return typeof e===l&&-1!==D(i).indexOf(D(e))},D=function(e){return e.toLowerCase()},N=function(e,i){if(typeof e===l)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof i===s?e:e.substring(0,255)},z=function(e,i){for(var t,n,r,s,l,c,d=0;d<i.length&&!l;){var f=i[d],m=i[d+1];for(t=n=0;t<f.length&&!l;)if(l=f[t++].exec(e))for(r=0;r<m.length;r++)c=l[++n],typeof(s=m[r])===u&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):o:this[s[0]]=c?s[1].call(this,c,s[2]):o:4==s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},F=function(e,i){for(var t in i)if(typeof i[t]===u&&i[t].length>0){for(var n=0;n<i[t].length;n++)if(R(i[t][n],e))return"?"===t?o:t}else if(R(i[t],e))return"?"===t?o:t;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,g],[/opios[\/ ]+([\w\.]+)/i],[g,[d,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[g,[d,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[d,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[g,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[g,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],g],[/\bfocus\/([\w\.]+)/i],[g,[d,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[g,[d,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],g],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,U],g],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[d,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,g],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[g,[d,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[g,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[g,F,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,g]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,D]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",D]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,D]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[m,L],[f,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[m,L],[f,w]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[m,k],[f,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[m,k],[f,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[m,I],[f,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[m,I],[f,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[m,B],[f,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[m,B],[f,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[c,[m,"OPPO"],[f,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[m,"Vivo"],[f,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[m,"Realme"],[f,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[m,E],[f,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[m,E],[f,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[m,P],[f,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[m,P],[f,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[m,"Lenovo"],[f,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[m,"Nokia"],[f,w]],[/(pixel c)\b/i],[c,[m,T],[f,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[m,T],[f,w]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[m,O],[f,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[m,O],[f,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[m,"OnePlus"],[f,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[m,x],[f,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[m,x],[f,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,m,[f,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[m,M],[f,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[m,C],[f,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[m,C],[f,w]],[/(nexus 9)/i],[c,[m,"HTC"],[f,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[m,[c,/_/g," "],[f,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[m,"Acer"],[f,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[m,"Meizu"],[f,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[m,"Sharp"],[f,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,c,[f,w]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,c,[f,h]],[/(surface duo)/i],[c,[m,A],[f,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[m,"Fairphone"],[f,w]],[/(u304aa)/i],[c,[m,"AT&T"],[f,w]],[/\bsie-(\w*)/i],[c,[m,"Siemens"],[f,w]],[/\b(rct\w+) b/i],[c,[m,"RCA"],[f,h]],[/\b(venue[\d ]{2,7}) b/i],[c,[m,"Dell"],[f,h]],[/\b(q(?:mv|ta)\w+) b/i],[c,[m,"Verizon"],[f,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[m,"Barnes & Noble"],[f,h]],[/\b(tm\d{3}\w+) b/i],[c,[m,"NuVision"],[f,h]],[/\b(k88) b/i],[c,[m,"ZTE"],[f,h]],[/\b(nx\d{3}j) b/i],[c,[m,"ZTE"],[f,w]],[/\b(gen\d{3}) b.+49h/i],[c,[m,"Swiss"],[f,w]],[/\b(zur\d{3}) b/i],[c,[m,"Swiss"],[f,h]],[/\b((zeki)?tb.*\b) b/i],[c,[m,"Zeki"],[f,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],c,[f,h]],[/\b(ns-?\w{0,9}) b/i],[c,[m,"Insignia"],[f,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[m,"NextBook"],[f,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],c,[f,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],c,[f,w]],[/\b(ph-1) /i],[c,[m,"Essential"],[f,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[m,"Envizen"],[f,h]],[/\b(trio[-\w\. ]+) b/i],[c,[m,"MachSpeed"],[f,h]],[/\btu_(1491) b/i],[c,[m,"Rotor"],[f,h]],[/(shield[\w ]+) b/i],[c,[m,"Nvidia"],[f,h]],[/(sprint) (\w+)/i],[m,c,[f,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[m,A],[f,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[m,j],[f,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[m,j],[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,c,[f,b]],[/droid.+; (shield) bui/i],[c,[m,"Nvidia"],[f,b]],[/(playstation [345portablevi]+)/i],[c,[m,O],[f,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[m,A],[f,b]],[/smart-tv.+(samsung)/i],[m,[f,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[m,L],[f,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,P],[f,v]],[/(apple) ?tv/i],[m,[c,"Apple TV"],[f,v]],[/crkey/i],[[c,"Chromecast"],[m,T],[f,v]],[/droid.+aft(\w)( bui|\))/i],[c,[m,x],[f,v]],[/\(dtv[\);].+(aquos)/i],[c,[m,"Sharp"],[f,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[m,N],[c,N],[f,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,v]],[/((pebble))app/i],[m,c,[f,y]],[/droid.+; (glass) \d/i],[c,[m,T],[f,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[m,j],[f,y]],[/(quest( 2)?)/i],[c,[m,U],[f,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[f,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,h]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[f,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[g,F,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[g,F,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[g,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,g],[/\(bb(10);/i],[g,[d,M]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[g,[d,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],g],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,g],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,g]]},q=function(e,i){if(typeof e===u&&(i=e,e=o),!(this instanceof q))return new q(e,i).getResult();var t=e||(typeof r!==s&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),n=i?function(e,i){var t={};for(var n in e)i[n]&&i[n].length%2==0?t[n]=i[n].concat(e[n]):t[n]=e[n];return t}(V,i):V;return this.getBrowser=function(){var e,i={};return i.name=o,i.version=o,z.call(i,t,n.browser),i.major=typeof(e=i.version)===l?e.replace(/[^\d\.]/g,"").split(".")[0]:o,i},this.getCPU=function(){var e={};return e.architecture=o,z.call(e,t,n.cpu),e},this.getDevice=function(){var e={};return e.vendor=o,e.model=o,e.type=o,z.call(e,t,n.device),e},this.getEngine=function(){var e={};return e.name=o,e.version=o,z.call(e,t,n.engine),e},this.getOS=function(){var e={};return e.name=o,e.version=o,z.call(e,t,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return t},this.setUA=function(e){return t=typeof e===l&&e.length>255?N(e,255):e,this},this.setUA(t),this};q.VERSION="0.7.30",q.BROWSER=_([d,g,"major"]),q.CPU=_([p]),q.DEVICE=_([c,m,f,b,w,v,h,y,S]),q.ENGINE=q.OS=_([d,g]),typeof i!==s?(typeof e!==s&&e.exports&&(i=e.exports=q),i.UAParser=q):t(5)?(n=function(){return q}.call(i,t,i,e))===o||(e.exports=n):typeof r!==s&&(r.UAParser=q);var W=typeof r!==s&&(r.jQuery||r.Zepto);if(W&&!W.ua){var H=new q;W.ua=H.getResult(),W.ua.get=function(){return H.getUA()},W.ua.set=function(e){H.setUA(e);var i=H.getResult();for(var t in i)W.ua[t]=i[t]}}}("object"==typeof window?window:this)},function(e,i){(function(i){e.exports=i}).call(this,{})},function(e,i){e.exports=function(){var e=["monospace","sans-serif","serif"],i=document.getElementsByTagName("body")[0],t=document.createElement("span");t.style.fontSize="72px",t.innerHTML="mmmmmmmmmmlli";var n={},r={};for(var o in e)t.style.fontFamily=e[o],i.appendChild(t),n[e[o]]=t.offsetWidth,r[e[o]]=t.offsetHeight,i.removeChild(t);this.detect=function(o){var a=!1;for(var s in e){t.style.fontFamily=o+","+e[s],i.appendChild(t);var u=t.offsetWidth!=n[e[s]]||t.offsetHeight!=r[e[s]];i.removeChild(t),a=a||u}return a}}}])},155:i=>{"use strict";i.exports=e}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var o=t[e]={exports:{}};return i[e].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return n.d(i,{a:i}),i},n.d=(e,i)=>{for(var t in i)n.o(i,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{SessionManager:()=>P,default:()=>E});var e=n(155),i=n.n(e),t=n(126);const o=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,s=e=>"function"==typeof e,u=i=>(0,e.isValidElement)(i)||a(i)||s(i)||o(i);function l(i){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:a=300}=i;return function(i){let{children:s,position:u,preventExitTransition:l,done:c,nodeRef:d,isIn:f,playToast:m}=i;const g=r?`${t}--${u}`:t,p=r?`${n}--${u}`:n,b=(0,e.useRef)(0);return(0,e.useLayoutEffect)((()=>{const e=d.current,i=g.split(" "),t=n=>{n.target===d.current&&(m(),e.removeEventListener("animationend",t),e.removeEventListener("animationcancel",t),0===b.current&&"animationcancel"!==n.type&&e.classList.remove(...i))};e.classList.add(...i),e.addEventListener("animationend",t),e.addEventListener("animationcancel",t)}),[]),(0,e.useEffect)((()=>{const e=d.current,i=()=>{e.removeEventListener("animationend",i),o?function(e,i,t){void 0===t&&(t=300);const{scrollHeight:n,style:r}=e;requestAnimationFrame((()=>{r.minHeight="initial",r.height=n+"px",r.transition=`all ${t}ms`,requestAnimationFrame((()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(i,t)}))}))}(e,c,a):c()};f||(l?i():(b.current=1,e.className+=` ${p}`,e.addEventListener("animationend",i)))}),[f]),e.createElement(e.Fragment,null,s)}}const c=new Map;let d=[];const f=new Set,m=()=>c.size>0;function g(e,i){c.forEach((t=>{null!=i&&null!=i&&i.containerId?(null==i?void 0:i.containerId)===t.id&&t.toggle(e,null==i?void 0:i.id):t.toggle(e,null==i?void 0:i.id)}))}let p=1;const b=()=>""+p++;function w(e){return e&&(a(e.toastId)||o(e.toastId))?e.toastId:b()}function h(e,i){return function(e,i){u(e)&&(m()||d.push({content:e,options:i}),c.forEach((t=>{t.buildToast(e,i)})))}(e,i),i.toastId}function v(e,i){return{...i,type:i&&i.type||e,toastId:w(i)}}function y(e){return(i,t)=>h(i,v(e,t))}function S(e,i){return h(e,v("default",i))}S.loading=(e,i)=>h(e,v("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...i})),S.promise=function(e,i,t){let n,{pending:r,error:o,success:u}=i;r&&(n=a(r)?S.loading(r,t):S.loading(r.render,{...t,...r}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,i,r)=>{if(null==i)return void S.dismiss(n);const o={type:e,...l,...t,data:r},s=a(i)?{render:i}:i;return n?S.update(n,{...o,...s}):S(s.render,{...o,...s}),r},d=s(e)?e():e;return d.then((e=>c("success",u,e))).catch((e=>c("error",o,e))),d},S.success=y("success"),S.info=y("info"),S.error=y("error"),S.warning=y("warning"),S.warn=S.warning,S.dark=(e,i)=>h(e,v("default",{theme:"dark",...i})),S.dismiss=function(e){!function(e){var i;if(m()){if(null==e||a(i=e)||o(i))c.forEach((i=>{i.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const i=c.get(e.containerId);i?i.removeToast(e.id):c.forEach((i=>{i.removeToast(e.id)}))}}else d=d.filter((i=>null!=e&&i.options.toastId!==e))}(e)},S.clearWaitingQueue=function(e){void 0===e&&(e={}),c.forEach((i=>{!i.props.limit||e.containerId&&i.id!==e.containerId||i.clearQueue()}))},S.isActive=function(e,i){var t;if(i)return!(null==(t=c.get(i))||!t.isToastActive(e));let n=!1;return c.forEach((i=>{i.isToastActive(e)&&(n=!0)})),n},S.update=function(e,i){void 0===i&&(i={});const t=((e,i)=>{var t;let{containerId:n}=i;return null==(t=c.get(n||1))?void 0:t.toasts.get(e)})(e,i);if(t){const{props:n,content:r}=t,o={delay:100,...n,...i,toastId:i.toastId||e,updateId:b()};o.toastId!==e&&(o.staleId=e);const a=o.render||r;delete o.render,h(a,o)}},S.done=e=>{S.update(e,{progress:1})},S.onChange=function(e){return f.add(e),()=>{f.delete(e)}},S.play=e=>g(!0,e),S.pause=e=>g(!1,e),"undefined"!=typeof window?e.useLayoutEffect:e.useEffect;const x=function(e,i){return void 0===i&&(i=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:i}};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function C(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,n)}return t}function M(e,i,t){return(i=function(e){var i=function(e){if("object"!=k(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var t=i.call(e,"string");if("object"!=k(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function T(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,a,s=[],u=!0,l=!1;try{if(o=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=o.call(t)).done)&&(s.push(n.value),s.length!==i);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,i)||function(e,i){if(e){if("string"==typeof e)return I(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,i):void 0}}(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}l(x("bounce",!0)),l(x("slide",!0)),l(x("zoom")),l(x("flip"));var P=(0,e.createContext)({isLoggedIn:null,header:null,isAdmin:null,userInfo:null,refreshData:null,setHeader:null,setLoggedin:null,setRefreshData:null,hasRole:null,deviceUID:null,loadingUser:null});function A(t){var n=sessionStorage.getItem("appVersionOld")||!1;return(0,e.useEffect)((function(){n&&sessionStorage.getItem("requiredVersion")&&function(e,i){for(var t=0,n=0,r=0,o=0;r<e.length||o<i.length;){for(;r<e.length&&"."!==e[r];)t=10*t+(e[r]-"0"),r++;for(;o<i.length&&"."!==i[o];)n=10*n+(i[o]-"0"),o++;if(t>n)return!0;if(n>t)return!1;t=n=0,r++,o++}return!0}(t,sessionStorage.getItem("requiredVersion"))&&(S.success("Your application has been updated",{toastId:"appReload"}),sessionStorage.removeItem("appVersionOld"),sessionStorage.removeItem("requiredVersion"),sessionStorage.removeItem("appReloads"))}),[n]),i().createElement(i().Fragment,null)}const E=function(n){var r=n.AuthenticatedAxiosObject,o=n.refreshTimer,a=n.dataRefresh,s=n.userLoader,u=n.refreshToken,l=n.customeUpdateIcon,c=n.appVersion,d=n.children,f=T((0,e.useState)(localStorage.getItem("deviceUID")||!1),2),m=f[0],g=f[1];(0,e.useEffect)((function(){if(!m){var e=function(){if(localStorage.getItem("deviceFingerprint"))return localStorage.getItem("deviceFingerprint");var e=(new t.ClientJS).getFingerprint();return localStorage.setItem("deviceFingerprint",e),e}();g(e),r.defaults.headers.common.deviceUID=e}}),[m,r]);var p=T((0,e.useState)(""),2),b=p[0],w=p[1];r.defaults.withCredentials=!0,r.defaults.headers.common.Authorization=b,r.defaults.headers.common.deviceUID=m,r.defaults.headers.common.appVersion=c;var h=(0,e.useCallback)((function(e,i){w(e),setTimeout((function(){u().then((function(e){if(e.refreshed){var t="Bearer ".concat(e.access_token);w(t),r.defaults.headers.common.Authorization=t,i&&localStorage.setItem("Authorization",t),sessionStorage.setItem("Authorization",t)}})).catch((function(e){console.log(e),console.log("Missing/Invalid Token"),localStorage.removeItem("Authorization"),sessionStorage.removeItem("Authorization")}))}),100)}),[r,u]);(0,e.useEffect)((function(){var e=localStorage.getItem("Authorization"),i=sessionStorage.getItem("Authorization");return e?h(e,!0):i&&h(i,!1),function(){return clearInterval(h)}}),[b,h]);var v=T((0,e.useState)(!1),2),y=v[0],x=v[1],k=T((0,e.useState)(!1),2),I=k[0],E=k[1],L=T((0,e.useState)({}),2),O=L[0],B=L[1],j=T((0,e.useState)(!0),2),U=j[0],_=j[1];(0,e.useEffect)((function(){setTimeout((function(){s().then((function(e){var i=e.data;x(i.logged_in),E(i.is_admin),B(i.Info)})).catch((function(e){console.log(e)})).finally((function(){_(!1)}))}),100)}),[b,y,s]),(0,e.useEffect)((function(){var e=null;if(y){var i=!!localStorage.getItem("Authorization");e=setInterval((function(){h(sessionStorage.getItem("Authorization"),i)}),60*(o||60)*1e3||1e4)}else clearInterval(e);return function(){return clearInterval(e)}}),[b,h,y,o]),(0,e.useEffect)((function(){return function(){r.interceptors.response.use((function(e){return e}),(function(e){var i,t,n;if(455===(null==e||null===(i=e.response)||void 0===i?void 0:i.status))try{var o=e.response.data.logged_in||!1;y&&!o&&(x(!1),r.defaults.headers.common.Authorization="",S.info("Your session in no longer valid, please login again.",{toastId:"Forced_log_out"}))}catch(e){throw e}if(426===(null==e||null===(t=e.response)||void 0===t?void 0:t.status)){sessionStorage.setItem("appVersionOld",!0),sessionStorage.setItem("requiredVersion",e.response.data.minVersion);var a=sessionStorage.getItem("appReloads")||0;a<2?(sessionStorage.setItem("appReloads",a+1),setTimeout((function(){window.location.reload()}),1e3*a)):S.warning("The application needs to be updated please wait for some time then reload the page.",function(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?C(Object(t),!0).forEach((function(i){M(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}({toastId:"appReloadError"},l&&{icon:l}))}throw null!=e&&null!==(n=e.response)&&void 0!==n&&n.status||"ERR_CANCELED"!==(null==e?void 0:e.code)&&"canceled"!==(null==e?void 0:e.message)&&S.error("The server is not responding, please reload or try again later.",{toastId:"ERR_CONNECTION_REFUSED"}),e}))}}));var R=T((0,e.useState)(!1),2),D=R[0],N=R[1];(0,e.useEffect)((function(){var e=setTimeout((function(){return N(!0)}),60*(a||60)*1e3||1e4);return function(){return clearTimeout(e)}}),[a]),(0,e.useEffect)((function(){D&&s().then((function(e){var i=e.data;B(i.Info),z(!1)}))}),[D,s]);var z=function(e){N(e)},F={isLoggedIn:y,header:b,isAdmin:I,userInfo:O,refreshData:D,setHeader:function(e){w(e)},setLoggedin:function(e){x(e)},setRefreshData:z,hasRole:function(e){return e.some((function(e){var i;return(null==O||null===(i=O.roles)||void 0===i?void 0:i.indexOf(e))>=0}))},deviceUID:m,loadingUser:U};return i().createElement(P.Provider,{value:F},i().createElement(A,{appVersion:c}),d)}})(),r})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define("MyComponent",["react"],e):"object"==typeof exports?exports.MyComponent=e(require("react")):t.MyComponent=e(t.react)}(self,(t=>(()=>{var e={126:function(t,e,n){t.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var o,i,a=n(1)(),r=n(3),s=n(4),l=n(6),c=function(){var t=new s;return o=t.getResult(),i=new l,this};c.prototype={getSoftwareVersion:function(){return"0.1.11"},getBrowserData:function(){return o},getFingerprint:function(){var t="|",e=o.ua,n=this.getScreenPrint(),i=this.getPlugins(),a=this.getFonts(),s=this.isLocalStorage(),l=this.isSessionStorage(),c=this.getTimeZone(),u=this.getLanguage(),f=this.getSystemLanguage(),d=this.isCookie(),m=this.getCanvasPrint();return r(e+t+n+t+i+t+a+t+s+t+l+t+c+t+u+t+f+t+d+t+m,256)},getCustomFingerprint:function(){for(var t="",e=0;e<arguments.length;e++)t+=arguments[e]+"|";return r(t,256)},getUserAgent:function(){return o.ua},getUserAgentLowerCase:function(){return o.ua.toLowerCase()},getBrowser:function(){return o.browser.name},getBrowserVersion:function(){return o.browser.version},getBrowserMajorVersion:function(){return o.browser.major},isIE:function(){return/IE/i.test(o.browser.name)},isChrome:function(){return/Chrome/i.test(o.browser.name)},isFirefox:function(){return/Firefox/i.test(o.browser.name)},isSafari:function(){return/Safari/i.test(o.browser.name)},isMobileSafari:function(){return/Mobile\sSafari/i.test(o.browser.name)},isOpera:function(){return/Opera/i.test(o.browser.name)},getEngine:function(){return o.engine.name},getEngineVersion:function(){return o.engine.version},getOS:function(){return o.os.name},getOSVersion:function(){return o.os.version},isWindows:function(){return/Windows/i.test(o.os.name)},isMac:function(){return/Mac/i.test(o.os.name)},isLinux:function(){return/Linux/i.test(o.os.name)},isUbuntu:function(){return/Ubuntu/i.test(o.os.name)},isSolaris:function(){return/Solaris/i.test(o.os.name)},getDevice:function(){return o.device.model},getDeviceType:function(){return o.device.type},getDeviceVendor:function(){return o.device.vendor},getCPU:function(){return o.cpu.architecture},isMobile:function(){var t=o.ua||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))},isMobileMajor:function(){return this.isMobileAndroid()||this.isMobileBlackBerry()||this.isMobileIOS()||this.isMobileOpera()||this.isMobileWindows()},isMobileAndroid:function(){return!!o.ua.match(/Android/i)},isMobileOpera:function(){return!!o.ua.match(/Opera Mini/i)},isMobileWindows:function(){return!!o.ua.match(/IEMobile/i)},isMobileBlackBerry:function(){return!!o.ua.match(/BlackBerry/i)},isMobileIOS:function(){return!!o.ua.match(/iPhone|iPad|iPod/i)},isIphone:function(){return!!o.ua.match(/iPhone/i)},isIpad:function(){return!!o.ua.match(/iPad/i)},isIpod:function(){return!!o.ua.match(/iPod/i)},getScreenPrint:function(){return"Current Resolution: "+this.getCurrentResolution()+", Available Resolution: "+this.getAvailableResolution()+", Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()},getColorDepth:function(){return screen.colorDepth},getCurrentResolution:function(){return screen.width+"x"+screen.height},getAvailableResolution:function(){return screen.availWidth+"x"+screen.availHeight},getDeviceXDPI:function(){return screen.deviceXDPI},getDeviceYDPI:function(){return screen.deviceYDPI},getPlugins:function(){for(var t="",e=0;e<navigator.plugins.length;e++)e==navigator.plugins.length-1?t+=navigator.plugins[e].name:t+=navigator.plugins[e].name+", ";return t},isJava:function(){return navigator.javaEnabled()},getJavaVersion:function(){throw new Error("Please use client.java.js or client.js if you need this functionality!")},isFlash:function(){return!!navigator.plugins["Shockwave Flash"]},getFlashVersion:function(){throw new Error("Please use client.flash.js or client.js if you need this functionality!")},isSilverlight:function(){return!!navigator.plugins["Silverlight Plug-In"]},getSilverlightVersion:function(){return this.isSilverlight()?navigator.plugins["Silverlight Plug-In"].description:""},isMimeTypes:function(){return!(!navigator.mimeTypes||!navigator.mimeTypes.length)},getMimeTypes:function(){var t="";if(navigator.mimeTypes)for(var e=0;e<navigator.mimeTypes.length;e++)e==navigator.mimeTypes.length-1?t+=navigator.mimeTypes[e].description:t+=navigator.mimeTypes[e].description+", ";return t},isFont:function(t){return i.detect(t)},getFonts:function(){for(var t=["Abadi MT Condensed Light","Adobe Fangsong Std","Adobe Hebrew","Adobe Ming Std","Agency FB","Aharoni","Andalus","Angsana New","AngsanaUPC","Aparajita","Arab","Arabic Transparent","Arabic Typesetting","Arial Baltic","Arial Black","Arial CE","Arial CYR","Arial Greek","Arial TUR","Arial","Batang","BatangChe","Bauhaus 93","Bell MT","Bitstream Vera Serif","Bodoni MT","Bookman Old Style","Braggadocio","Broadway","Browallia New","BrowalliaUPC","Calibri Light","Calibri","Californian FB","Cambria Math","Cambria","Candara","Castellar","Casual","Centaur","Century Gothic","Chalkduster","Colonna MT","Comic Sans MS","Consolas","Constantia","Copperplate Gothic Light","Corbel","Cordia New","CordiaUPC","Courier New Baltic","Courier New CE","Courier New CYR","Courier New Greek","Courier New TUR","Courier New","DFKai-SB","DaunPenh","David","DejaVu LGC Sans Mono","Desdemona","DilleniaUPC","DokChampa","Dotum","DotumChe","Ebrima","Engravers MT","Eras Bold ITC","Estrangelo Edessa","EucrosiaUPC","Euphemia","Eurostile","FangSong","Forte","FrankRuehl","Franklin Gothic Heavy","Franklin Gothic Medium","FreesiaUPC","French Script MT","Gabriola","Gautami","Georgia","Gigi","Gisha","Goudy Old Style","Gulim","GulimChe","GungSeo","Gungsuh","GungsuhChe","Haettenschweiler","Harrington","Hei S","HeiT","Heisei Kaku Gothic","Hiragino Sans GB","Impact","Informal Roman","IrisUPC","Iskoola Pota","JasmineUPC","KacstOne","KaiTi","Kalinga","Kartika","Khmer UI","Kino MT","KodchiangUPC","Kokila","Kozuka Gothic Pr6N","Lao UI","Latha","Leelawadee","Levenim MT","LilyUPC","Lohit Gujarati","Loma","Lucida Bright","Lucida Console","Lucida Fax","Lucida Sans Unicode","MS Gothic","MS Mincho","MS PGothic","MS PMincho","MS Reference Sans Serif","MS UI Gothic","MV Boli","Magneto","Malgun Gothic","Mangal","Marlett","Matura MT Script Capitals","Meiryo UI","Meiryo","Menlo","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","Miriam Fixed","Miriam","Mongolian Baiti","MoolBoran","NSimSun","Narkisim","News Gothic MT","Niagara Solid","Nyala","PMingLiU","PMingLiU-ExtB","Palace Script MT","Palatino Linotype","Papyrus","Perpetua","Plantagenet Cherokee","Playbill","Prelude Bold","Prelude Condensed Bold","Prelude Condensed Medium","Prelude Medium","PreludeCompressedWGL Black","PreludeCompressedWGL Bold","PreludeCompressedWGL Light","PreludeCompressedWGL Medium","PreludeCondensedWGL Black","PreludeCondensedWGL Bold","PreludeCondensedWGL Light","PreludeCondensedWGL Medium","PreludeWGL Black","PreludeWGL Bold","PreludeWGL Light","PreludeWGL Medium","Raavi","Rachana","Rockwell","Rod","Sakkal Majalla","Sawasdee","Script MT Bold","Segoe Print","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Segoe UI","Shonar Bangla","Showcard Gothic","Shruti","SimHei","SimSun","SimSun-ExtB","Simplified Arabic Fixed","Simplified Arabic","Snap ITC","Sylfaen","Symbol","Tahoma","Times New Roman Baltic","Times New Roman CE","Times New Roman CYR","Times New Roman Greek","Times New Roman TUR","Times New Roman","TlwgMono","Traditional Arabic","Trebuchet MS","Tunga","Tw Cen MT Condensed Extra Bold","Ubuntu","Umpush","Univers","Utopia","Utsaah","Vani","Verdana","Vijaya","Vladimir Script","Vrinda","Webdings","Wide Latin","Wingdings"],e="",n=0;n<t.length;n++)i.detect(t[n])&&(e+=n==t.length-1?t[n]:t[n]+", ");return e},isLocalStorage:function(){try{return!!a.localStorage}catch(t){return!0}},isSessionStorage:function(){try{return!!a.sessionStorage}catch(t){return!0}},isCookie:function(){return navigator.cookieEnabled},getTimeZone:function(){var t,e;return t=new Date,(e=String(-t.getTimezoneOffset()/60))<0?"-"+("0"+(e*=-1)).slice(-2):"+"+("0"+e).slice(-2)},getLanguage:function(){return navigator.language},getSystemLanguage:function(){return navigator.systemLanguage||window.navigator.language},isCanvas:function(){var t=document.createElement("canvas");try{return!(!t.getContext||!t.getContext("2d"))}catch(t){return!1}},getCanvasPrint:function(){var t,e=document.createElement("canvas");try{t=e.getContext("2d")}catch(t){return""}var n="ClientJS,org <canvas> 1.0";return t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(n,4,17),e.toDataURL()}},e.ClientJS=c},function(t,e,o){"use strict";var i=o(2);t.exports=function(){return"object"==typeof n.g&&n.g&&n.g.Math===Math&&n.g.Array===Array?n.g:i}},function(t,e,n){"use strict";"undefined"!=typeof self?t.exports=self:"undefined"!=typeof window?t.exports=window:t.exports=Function("return this")()},function(t,e,n){t.exports=function(t,e){var n,o,i,a,r,s,l,c;for(n=3&t.length,o=t.length-n,i=e,r=3432918353,s=461845907,c=0;c<o;)l=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24,++c,i=27492+(65535&(a=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*r+(((l>>>16)*r&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&t.charCodeAt(c+2))<<16;case 2:l^=(255&t.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(c)))*r+(((l>>>16)*r&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}},function(t,e,n){var o;!function(i,a){"use strict";var r="function",s="undefined",l="object",c="string",u="model",f="name",d="type",m="vendor",p="version",g="architecture",b="console",y="mobile",h="tablet",v="smarttv",w="wearable",_="embedded",T="Amazon",x="Apple",k="ASUS",S="BlackBerry",C="Google",I="Huawei",E="LG",M="Microsoft",P="Motorola",O="Samsung",L="Sony",A="Xiaomi",B="Zebra",z="Facebook",N=function(t){var e={};for(var n in t)e[t[n].toUpperCase()]=t[n];return e},R=function(t,e){return typeof t===c&&-1!==D(e).indexOf(D(t))},D=function(t){return t.toLowerCase()},j=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof e===s?t:t.substring(0,255)},U=function(t,e){for(var n,o,i,s,c,u,f=0;f<e.length&&!c;){var d=e[f],m=e[f+1];for(n=o=0;n<d.length&&!c;)if(c=d[n++].exec(t))for(i=0;i<m.length;i++)u=c[++o],typeof(s=m[i])===l&&s.length>0?2==s.length?typeof s[1]==r?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3==s.length?typeof s[1]!==r||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):a:this[s[0]]=u?s[1].call(this,u,s[2]):a:4==s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):a):this[s]=u||a;f+=2}},F=function(t,e){for(var n in e)if(typeof e[n]===l&&e[n].length>0){for(var o=0;o<e[n].length;o++)if(R(e[n][o],t))return"?"===n?a:n}else if(R(e[n],t))return"?"===n?a:n;return t},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,p],[/opios[\/ ]+([\w\.]+)/i],[p,[f,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[f,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[f,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[f,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[f,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[f,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[f,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[f,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[f,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[f,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,z],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[f,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[f,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[f,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[f,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[p,F,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[f,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,D]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",D]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,D]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[m,O],[d,h]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[m,O],[d,y]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[m,x],[d,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[m,x],[d,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[m,I],[d,h]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[u,[m,I],[d,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[m,A],[d,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[m,A],[d,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[u,[m,"OPPO"],[d,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[m,"Vivo"],[d,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[m,"Realme"],[d,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[m,P],[d,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[m,P],[d,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[m,E],[d,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[m,E],[d,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[m,"Lenovo"],[d,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[m,"Nokia"],[d,y]],[/(pixel c)\b/i],[u,[m,C],[d,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[m,C],[d,y]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[m,L],[d,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[m,L],[d,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[m,"OnePlus"],[d,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[m,T],[d,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[m,T],[d,y]],[/(playbook);[-\w\),; ]+(rim)/i],[u,m,[d,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[m,S],[d,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[m,k],[d,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[m,k],[d,y]],[/(nexus 9)/i],[u,[m,"HTC"],[d,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[m,[u,/_/g," "],[d,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[m,"Acer"],[d,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[m,"Meizu"],[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[m,"Sharp"],[d,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,u,[d,y]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,u,[d,h]],[/(surface duo)/i],[u,[m,M],[d,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[m,"Fairphone"],[d,y]],[/(u304aa)/i],[u,[m,"AT&T"],[d,y]],[/\bsie-(\w*)/i],[u,[m,"Siemens"],[d,y]],[/\b(rct\w+) b/i],[u,[m,"RCA"],[d,h]],[/\b(venue[\d ]{2,7}) b/i],[u,[m,"Dell"],[d,h]],[/\b(q(?:mv|ta)\w+) b/i],[u,[m,"Verizon"],[d,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[m,"Barnes & Noble"],[d,h]],[/\b(tm\d{3}\w+) b/i],[u,[m,"NuVision"],[d,h]],[/\b(k88) b/i],[u,[m,"ZTE"],[d,h]],[/\b(nx\d{3}j) b/i],[u,[m,"ZTE"],[d,y]],[/\b(gen\d{3}) b.+49h/i],[u,[m,"Swiss"],[d,y]],[/\b(zur\d{3}) b/i],[u,[m,"Swiss"],[d,h]],[/\b((zeki)?tb.*\b) b/i],[u,[m,"Zeki"],[d,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],u,[d,h]],[/\b(ns-?\w{0,9}) b/i],[u,[m,"Insignia"],[d,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[m,"NextBook"],[d,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],u,[d,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],u,[d,y]],[/\b(ph-1) /i],[u,[m,"Essential"],[d,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[m,"Envizen"],[d,h]],[/\b(trio[-\w\. ]+) b/i],[u,[m,"MachSpeed"],[d,h]],[/\btu_(1491) b/i],[u,[m,"Rotor"],[d,h]],[/(shield[\w ]+) b/i],[u,[m,"Nvidia"],[d,h]],[/(sprint) (\w+)/i],[m,u,[d,y]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[m,M],[d,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[m,B],[d,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[m,B],[d,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,u,[d,b]],[/droid.+; (shield) bui/i],[u,[m,"Nvidia"],[d,b]],[/(playstation [345portablevi]+)/i],[u,[m,L],[d,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[m,M],[d,b]],[/smart-tv.+(samsung)/i],[m,[d,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[m,O],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,E],[d,v]],[/(apple) ?tv/i],[m,[u,"Apple TV"],[d,v]],[/crkey/i],[[u,"Chromecast"],[m,C],[d,v]],[/droid.+aft(\w)( bui|\))/i],[u,[m,T],[d,v]],[/\(dtv[\);].+(aquos)/i],[u,[m,"Sharp"],[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[m,j],[u,j],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/((pebble))app/i],[m,u,[d,w]],[/droid.+; (glass) \d/i],[u,[m,C],[d,w]],[/droid.+; (wt63?0{2,3})\)/i],[u,[m,B],[d,w]],[/(quest( 2)?)/i],[u,[m,z],[d,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[d,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[d,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,h]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[d,y]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[f,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[p,F,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[p,F,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,p],[/\(bb(10);/i],[p,[f,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[f,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[f,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[f,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[f,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,p],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[f,p]]},q=function(t,e){if(typeof t===l&&(e=t,t=a),!(this instanceof q))return new q(t,e).getResult();var n=t||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),o=e?function(t,e){var n={};for(var o in t)e[o]&&e[o].length%2==0?n[o]=e[o].concat(t[o]):n[o]=t[o];return n}(V,e):V;return this.getBrowser=function(){var t,e={};return e.name=a,e.version=a,U.call(e,n,o.browser),e.major=typeof(t=e.version)===c?t.replace(/[^\d\.]/g,"").split(".")[0]:a,e},this.getCPU=function(){var t={};return t.architecture=a,U.call(t,n,o.cpu),t},this.getDevice=function(){var t={};return t.vendor=a,t.model=a,t.type=a,U.call(t,n,o.device),t},this.getEngine=function(){var t={};return t.name=a,t.version=a,U.call(t,n,o.engine),t},this.getOS=function(){var t={};return t.name=a,t.version=a,U.call(t,n,o.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=typeof t===c&&t.length>255?j(t,255):t,this},this.setUA(n),this};q.VERSION="0.7.30",q.BROWSER=N([f,p,"major"]),q.CPU=N([g]),q.DEVICE=N([u,m,d,b,y,v,h,w,_]),q.ENGINE=q.OS=N([f,p]),typeof e!==s?(typeof t!==s&&t.exports&&(e=t.exports=q),e.UAParser=q):n(5)?(o=function(){return q}.call(e,n,e,t))===a||(t.exports=o):typeof i!==s&&(i.UAParser=q);var H=typeof i!==s&&(i.jQuery||i.Zepto);if(H&&!H.ua){var $=new q;H.ua=$.getResult(),H.ua.get=function(){return $.getUA()},H.ua.set=function(t){$.setUA(t);var e=$.getResult();for(var n in e)H.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){t.exports=function(){var t=["monospace","sans-serif","serif"],e=document.getElementsByTagName("body")[0],n=document.createElement("span");n.style.fontSize="72px",n.innerHTML="mmmmmmmmmmlli";var o={},i={};for(var a in t)n.style.fontFamily=t[a],e.appendChild(n),o[t[a]]=n.offsetWidth,i[t[a]]=n.offsetHeight,e.removeChild(n);this.detect=function(a){var r=!1;for(var s in t){n.style.fontFamily=a+","+t[s],e.appendChild(n);var l=n.offsetWidth!=o[t[s]]||n.offsetHeight!=i[t[s]];e.removeChild(n),r=r||l}return r}}}])},750:(t,e,n)=>{"use strict";var o=n(601),i=n.n(o),a=n(314);n.n(a)()(i()).push([t.id,':root {\n --toastify-color-light: #fff;\n --toastify-color-dark: #121212;\n --toastify-color-info: #3498db;\n --toastify-color-success: #07bc0c;\n --toastify-color-warning: #f1c40f;\n --toastify-color-error: #e74c3c;\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n --toastify-toast-width: 320px;\n --toastify-toast-offset: 16px;\n --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));\n --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));\n --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));\n --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));\n --toastify-toast-background: #fff;\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-toast-bd-radius: 6px;\n --toastify-font-family: sans-serif;\n --toastify-z-index: 9999;\n --toastify-text-color-light: #757575;\n --toastify-text-color-dark: #fff;\n --toastify-text-color-info: #fff;\n --toastify-text-color-success: #fff;\n --toastify-text-color-warning: #fff;\n --toastify-text-color-error: #fff;\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(\n to right,\n #4cd964,\n #5ac8fa,\n #007aff,\n #34aadc,\n #5856d6,\n #ff2d55\n );\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n --toastify-color-progress-bgo: 0.2;\n}\n\n.Toastify__toast-container {\n z-index: var(--toastify-z-index);\n -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n position: fixed;\n padding: 4px;\n width: var(--toastify-toast-width);\n box-sizing: border-box;\n color: #fff;\n}\n.Toastify__toast-container--top-left {\n top: var(--toastify-toast-top);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--top-center {\n top: var(--toastify-toast-top);\n left: 50%;\n transform: translateX(-50%);\n}\n.Toastify__toast-container--top-right {\n top: var(--toastify-toast-top);\n right: var(--toastify-toast-right);\n}\n.Toastify__toast-container--bottom-left {\n bottom: var(--toastify-toast-bottom);\n left: var(--toastify-toast-left);\n}\n.Toastify__toast-container--bottom-center {\n bottom: var(--toastify-toast-bottom);\n left: 50%;\n transform: translateX(-50%);\n}\n.Toastify__toast-container--bottom-right {\n bottom: var(--toastify-toast-bottom);\n right: var(--toastify-toast-right);\n}\n\n@media only screen and (max-width : 480px) {\n .Toastify__toast-container {\n width: 100vw;\n padding: 0;\n left: env(safe-area-inset-left);\n margin: 0;\n }\n .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {\n top: env(safe-area-inset-top);\n transform: translateX(0);\n }\n .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {\n bottom: env(safe-area-inset-bottom);\n transform: translateX(0);\n }\n .Toastify__toast-container--rtl {\n right: env(safe-area-inset-right);\n left: initial;\n }\n}\n.Toastify__toast {\n --y: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n min-height: var(--toastify-toast-min-height);\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: 8px;\n border-radius: var(--toastify-toast-bd-radius);\n box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n max-height: var(--toastify-toast-max-height);\n font-family: var(--toastify-font-family);\n cursor: default;\n direction: ltr;\n /* webkit only issue #791 */\n z-index: 0;\n overflow: hidden;\n}\n.Toastify__toast--stacked {\n position: absolute;\n width: 100%;\n transform: translate3d(0, var(--y), 0) scale(var(--s));\n transition: transform 0.3s;\n}\n.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body, .Toastify__toast--stacked[data-collapsed] .Toastify__close-button {\n transition: opacity 0.1s;\n}\n.Toastify__toast--stacked[data-collapsed=false] {\n overflow: visible;\n}\n.Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > * {\n opacity: 0;\n}\n.Toastify__toast--stacked:after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: calc(var(--g) * 1px);\n bottom: 100%;\n}\n.Toastify__toast--stacked[data-pos=top] {\n top: 0;\n}\n.Toastify__toast--stacked[data-pos=bot] {\n bottom: 0;\n}\n.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before {\n transform-origin: top;\n}\n.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before {\n transform-origin: bottom;\n}\n.Toastify__toast--stacked:before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n transform: scaleY(3);\n z-index: -1;\n}\n.Toastify__toast--rtl {\n direction: rtl;\n}\n.Toastify__toast--close-on-click {\n cursor: pointer;\n}\n.Toastify__toast-body {\n margin: auto 0;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n padding: 6px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n}\n.Toastify__toast-body > div:last-child {\n word-break: break-word;\n -ms-flex: 1;\n flex: 1;\n}\n.Toastify__toast-icon {\n -webkit-margin-end: 10px;\n margin-inline-end: 10px;\n width: 20px;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n display: -ms-flexbox;\n display: flex;\n}\n\n.Toastify--animate {\n animation-fill-mode: both;\n animation-duration: 0.5s;\n}\n\n.Toastify--animate-icon {\n animation-fill-mode: both;\n animation-duration: 0.3s;\n}\n\n@media only screen and (max-width : 480px) {\n .Toastify__toast {\n margin-bottom: 0;\n border-radius: 0;\n }\n}\n.Toastify__toast-theme--dark {\n background: var(--toastify-color-dark);\n color: var(--toastify-text-color-dark);\n}\n.Toastify__toast-theme--light {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n.Toastify__toast-theme--colored.Toastify__toast--default {\n background: var(--toastify-color-light);\n color: var(--toastify-text-color-light);\n}\n.Toastify__toast-theme--colored.Toastify__toast--info {\n color: var(--toastify-text-color-info);\n background: var(--toastify-color-info);\n}\n.Toastify__toast-theme--colored.Toastify__toast--success {\n color: var(--toastify-text-color-success);\n background: var(--toastify-color-success);\n}\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n color: var(--toastify-text-color-warning);\n background: var(--toastify-color-warning);\n}\n.Toastify__toast-theme--colored.Toastify__toast--error {\n color: var(--toastify-text-color-error);\n background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n background: var(--toastify-color-progress-light);\n}\n.Toastify__progress-bar-theme--dark {\n background: var(--toastify-color-progress-dark);\n}\n.Toastify__progress-bar--info {\n background: var(--toastify-color-progress-info);\n}\n.Toastify__progress-bar--success {\n background: var(--toastify-color-progress-success);\n}\n.Toastify__progress-bar--warning {\n background: var(--toastify-color-progress-warning);\n}\n.Toastify__progress-bar--error {\n background: var(--toastify-color-progress-error);\n}\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n color: #fff;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n cursor: pointer;\n opacity: 0.7;\n transition: 0.3s ease;\n -ms-flex-item-align: start;\n align-self: flex-start;\n z-index: 1;\n}\n.Toastify__close-button--light {\n color: #000;\n opacity: 0.3;\n}\n.Toastify__close-button > svg {\n fill: currentColor;\n height: 16px;\n width: 14px;\n}\n.Toastify__close-button:hover, .Toastify__close-button:focus {\n opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n.Toastify__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: var(--toastify-z-index);\n opacity: 0.7;\n transform-origin: left;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n}\n.Toastify__progress-bar--animated {\n animation: Toastify__trackProgress linear 1 forwards;\n}\n.Toastify__progress-bar--controlled {\n transition: transform 0.2s;\n}\n.Toastify__progress-bar--rtl {\n right: 0;\n left: initial;\n transform-origin: right;\n border-bottom-left-radius: initial;\n border-bottom-right-radius: var(--toastify-toast-bd-radius);\n}\n.Toastify__progress-bar--wrp {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n border-bottom-left-radius: var(--toastify-toast-bd-radius);\n}\n.Toastify__progress-bar--wrp[data-hidden=true] {\n opacity: 0;\n}\n.Toastify__progress-bar--bg {\n opacity: var(--toastify-color-progress-bgo);\n width: 100%;\n height: 100%;\n}\n\n.Toastify__spinner {\n width: 20px;\n height: 20px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: var(--toastify-spinner-color-empty-area);\n border-right-color: var(--toastify-spinner-color);\n animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n from, 60%, 75%, 90%, to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n@keyframes Toastify__bounceOutRight {\n 20% {\n opacity: 1;\n transform: translate3d(-20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(2000px, var(--y), 0);\n }\n}\n@keyframes Toastify__bounceInLeft {\n from, 60%, 75%, 90%, to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n@keyframes Toastify__bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, var(--y), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, var(--y), 0);\n }\n}\n@keyframes Toastify__bounceInUp {\n from, 60%, 75%, 90%, to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes Toastify__bounceOutUp {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%, 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n@keyframes Toastify__bounceInDown {\n from, 60%, 75%, 90%, to {\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n@keyframes Toastify__bounceOutDown {\n 20% {\n transform: translate3d(0, calc(var(--y) - 10px), 0);\n }\n 40%, 45% {\n opacity: 1;\n transform: translate3d(0, calc(var(--y) + 20px), 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {\n animation-name: Toastify__bounceInLeft;\n}\n.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {\n animation-name: Toastify__bounceInRight;\n}\n.Toastify__bounce-enter--top-center {\n animation-name: Toastify__bounceInDown;\n}\n.Toastify__bounce-enter--bottom-center {\n animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {\n animation-name: Toastify__bounceOutLeft;\n}\n.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {\n animation-name: Toastify__bounceOutRight;\n}\n.Toastify__bounce-exit--top-center {\n animation-name: Toastify__bounceOutUp;\n}\n.Toastify__bounce-exit--bottom-center {\n animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n 50% {\n opacity: 1;\n }\n}\n@keyframes Toastify__zoomOut {\n from {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);\n }\n to {\n opacity: 0;\n }\n}\n.Toastify__zoom-enter {\n animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n from {\n transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0;\n }\n 40% {\n transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n animation-timing-function: ease-in;\n }\n 60% {\n transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n opacity: 1;\n }\n 80% {\n transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n }\n to {\n transform: perspective(400px);\n }\n}\n@keyframes Toastify__flipOut {\n from {\n transform: translate3d(0, var(--y), 0) perspective(400px);\n }\n 30% {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);\n opacity: 1;\n }\n to {\n transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);\n opacity: 0;\n }\n}\n.Toastify__flip-enter {\n animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n from {\n transform: translate3d(110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n@keyframes Toastify__slideInLeft {\n from {\n transform: translate3d(-110%, 0, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n@keyframes Toastify__slideInUp {\n from {\n transform: translate3d(0, 110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n@keyframes Toastify__slideInDown {\n from {\n transform: translate3d(0, -110%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, var(--y), 0);\n }\n}\n@keyframes Toastify__slideOutRight {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(110%, var(--y), 0);\n }\n}\n@keyframes Toastify__slideOutLeft {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(-110%, var(--y), 0);\n }\n}\n@keyframes Toastify__slideOutDown {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, 500px, 0);\n }\n}\n@keyframes Toastify__slideOutUp {\n from {\n transform: translate3d(0, var(--y), 0);\n }\n to {\n visibility: hidden;\n transform: translate3d(0, -500px, 0);\n }\n}\n.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {\n animation-name: Toastify__slideInLeft;\n}\n.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {\n animation-name: Toastify__slideInRight;\n}\n.Toastify__slide-enter--top-center {\n animation-name: Toastify__slideInDown;\n}\n.Toastify__slide-enter--bottom-center {\n animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {\n animation-name: Toastify__slideOutLeft;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {\n animation-name: Toastify__slideOutRight;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n.Toastify__slide-exit--top-center {\n animation-name: Toastify__slideOutUp;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n.Toastify__slide-exit--bottom-center {\n animation-name: Toastify__slideOutDown;\n animation-timing-function: ease-in;\n animation-duration: 0.3s;\n}\n\n@keyframes Toastify__spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}',""])},533:(t,e,n)=>{"use strict";var o=n(601),i=n.n(o),a=n(314);n.n(a)()(i()).push([t.id,':root {\n --main: #303030;\n --themec: #303030;\n --default: #303030;\n --contrastText: "rgba(0, 0, 0, 0.87)";\n}\n\n.custToast {\n background: var(--themec);\n}\n.custToast .Toastify__close-button {\n color: var(--main);\n}\n\n.custToast.Toastify__toast--success {\n color: var(--success);\n}\n.custToast.Toastify__toast--info {\n color: var(--info);\n}\n.custToast.Toastify__toast--warning {\n color: var(--warning);\n}\n.custToast.Toastify__toast--error {\n color: var(--error);\n}\n\n.custToast .Toastify__progress-bar--success {\n background: var(--success);\n}\n.custToast .Toastify__progress-bar--info {\n background: var(--info);\n}\n.custToast .Toastify__progress-bar--warning {\n background: var(--warning);\n}\n.custToast .Toastify__progress-bar--error {\n background: var(--error);\n}\n\n.custToast.materialToast.Toastify__toast--success {\n background: var(--success);\n color: var(--contrastText);\n}\n.custToast.materialToast.Toastify__toast--info {\n background: var(--info);\n color: var(--contrastText);\n}\n.custToast.materialToast.Toastify__toast--warning {\n background: var(--warning);\n color: var(--contrastText);\n}\n.custToast.materialToast.Toastify__toast--error {\n background: var(--error);\n color: var(--contrastText);\n}\n',""])},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,i,a){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(r[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);o&&r[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},601:t=>{"use strict";t.exports=function(t){return t[1]}},155:e=>{"use strict";e.exports=t}},n={};function o(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={id:t,exports:{}};return e[t].call(a.exports,a,a.exports,o),a.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{SessionManager:()=>$,default:()=>X});var t=o(155),e=o.n(t),n=o(126);function a(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=a(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}const r=function(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=a(t))&&(o&&(o+=" "),o+=e);return o},s=t=>"number"==typeof t&&!isNaN(t),l=t=>"string"==typeof t,c=t=>"function"==typeof t,u=t=>l(t)||c(t)?t:null,f=e=>(0,t.isValidElement)(e)||l(e)||c(e)||s(e);function d(e){let{enter:n,exit:o,appendPosition:i=!1,collapse:a=!0,collapseDuration:r=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:f,isIn:d,playToast:m}=e;const p=i?`${n}--${l}`:n,g=i?`${o}--${l}`:o,b=(0,t.useRef)(0);return(0,t.useLayoutEffect)((()=>{const t=f.current,e=p.split(" "),n=o=>{o.target===f.current&&(m(),t.removeEventListener("animationend",n),t.removeEventListener("animationcancel",n),0===b.current&&"animationcancel"!==o.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",n),t.addEventListener("animationcancel",n)}),[]),(0,t.useEffect)((()=>{const t=f.current,e=()=>{t.removeEventListener("animationend",e),a?function(t,e,n){void 0===n&&(n=300);const{scrollHeight:o,style:i}=t;requestAnimationFrame((()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${n}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)}))}))}(t,u,r):u()};d||(c?e():(b.current=1,t.className+=` ${g}`,t.addEventListener("animationend",e)))}),[d]),t.createElement(t.Fragment,null,s)}}function m(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const p=new Map;let g=[];const b=new Set,y=t=>b.forEach((e=>e(t))),h=()=>p.size>0;function v(t,e){var n;if(e)return!(null==(n=p.get(e))||!n.isToastActive(t));let o=!1;return p.forEach((e=>{e.isToastActive(t)&&(o=!0)})),o}function w(t,e){f(t)&&(h()||g.push({content:t,options:e}),p.forEach((n=>{n.buildToast(t,e)})))}function _(t,e){p.forEach((n=>{null!=e&&null!=e&&e.containerId?(null==e?void 0:e.containerId)===n.id&&n.toggle(t,null==e?void 0:e.id):n.toggle(t,null==e?void 0:e.id)}))}function T(e){const{subscribe:n,getSnapshot:o,setProps:i}=(0,t.useRef)(function(e){const n=e.containerId||1;return{subscribe(o){const i=function(e,n,o){let i=1,a=0,r=[],d=[],p=[],g=n;const b=new Map,y=new Set,h=()=>{p=Array.from(b.values()),y.forEach((t=>t()))},v=t=>{d=null==t?[]:d.filter((e=>e!==t)),h()},w=e=>{const{toastId:n,onOpen:i,updateId:a,children:r}=e.props,s=null==a;e.staleId&&b.delete(e.staleId),b.set(n,e),d=[...d,e.props.toastId].filter((t=>t!==e.staleId)),h(),o(m(e,s?"added":"updated")),s&&c(i)&&i((0,t.isValidElement)(r)&&r.props)};return{id:e,props:g,observe:t=>(y.add(t),()=>y.delete(t)),toggle:(t,e)=>{b.forEach((n=>{null!=e&&e!==n.props.toastId||c(n.toggle)&&n.toggle(t)}))},removeToast:v,toasts:b,clearQueue:()=>{a-=r.length,r=[]},buildToast:(n,d)=>{if((t=>{let{containerId:n,toastId:o,updateId:i}=t;const a=n?n!==e:1!==e,r=b.has(o)&&null==i;return a||r})(d))return;const{toastId:p,updateId:y,data:_,staleId:T,delay:x}=d,k=()=>{v(p)},S=null==y;S&&a++;const C={...g,style:g.toastStyle,key:i++,...Object.fromEntries(Object.entries(d).filter((t=>{let[e,n]=t;return null!=n}))),toastId:p,updateId:y,data:_,closeToast:k,isIn:!1,className:u(d.className||g.toastClassName),bodyClassName:u(d.bodyClassName||g.bodyClassName),progressClassName:u(d.progressClassName||g.progressClassName),autoClose:!d.isLoading&&(I=d.autoClose,E=g.autoClose,!1===I||s(I)&&I>0?I:E),deleteToast(){const e=b.get(p),{onClose:n,children:i}=e.props;c(n)&&n((0,t.isValidElement)(i)&&i.props),o(m(e,"removed")),b.delete(p),a--,a<0&&(a=0),r.length>0?w(r.shift()):h()}};var I,E;C.closeButton=g.closeButton,!1===d.closeButton||f(d.closeButton)?C.closeButton=d.closeButton:!0===d.closeButton&&(C.closeButton=!f(g.closeButton)||g.closeButton);let M=n;(0,t.isValidElement)(n)&&!l(n.type)?M=(0,t.cloneElement)(n,{closeToast:k,toastProps:C,data:_}):c(n)&&(M=n({closeToast:k,toastProps:C,data:_}));const P={content:M,props:C,staleId:T};g.limit&&g.limit>0&&a>g.limit&&S?r.push(P):s(x)?setTimeout((()=>{w(P)}),x):w(P)},setProps(t){g=t},setToggle:(t,e)=>{b.get(t).toggle=e},isToastActive:t=>d.some((e=>e===t)),getSnapshot:()=>g.newestOnTop?p.reverse():p}}(n,e,y);p.set(n,i);const a=i.observe(o);return g.forEach((t=>w(t.content,t.options))),g=[],()=>{a(),p.delete(n)}},setProps(t){var e;null==(e=p.get(n))||e.setProps(t)},getSnapshot(){var t;return null==(t=p.get(n))?void 0:t.getSnapshot()}}}(e)).current;i(e);const a=(0,t.useSyncExternalStore)(n,o,o);return{getToastToRender:function(t){if(!a)return[];const e=new Map;return a.forEach((t=>{const{position:n}=t.props;e.has(n)||e.set(n,[]),e.get(n).push(t)})),Array.from(e,(e=>t(e[0],e[1])))},isToastActive:v,count:null==a?void 0:a.length}}function x(e){const[n,o]=(0,t.useState)(!1),[i,a]=(0,t.useState)(!1),r=(0,t.useRef)(null),s=(0,t.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:u,onClick:f,closeOnClick:d}=e;var m,g;function b(){o(!0)}function y(){o(!1)}function h(t){const o=r.current;s.canDrag&&o&&(s.didMove=!0,n&&y(),s.delta="x"===e.draggableDirection?t.clientX-s.start:t.clientY-s.start,s.start!==t.clientX&&(s.canCloseOnClick=!1),o.style.transform=`translate3d(${"x"===e.draggableDirection?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,o.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",v);const t=r.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return a(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(g=p.get((m={id:e.toastId,containerId:e.containerId,fn:o}).containerId||1))||g.setToggle(m.id,m.fn),(0,t.useEffect)((()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",b),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",y)}}),[e.pauseOnFocusLoss]);const w={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){s.didMove=!1,document.addEventListener("pointermove",h),document.addEventListener("pointerup",v);const n=r.current;s.canCloseOnClick=!0,s.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(s.start=t.clientX,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=t.clientY,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:o,left:i,right:a}=r.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=n&&t.clientY<=o?y():b()}};return l&&c&&(w.onMouseEnter=y,e.stacked||(w.onMouseLeave=b)),d&&(w.onClick=t=>{f&&f(t),s.canCloseOnClick&&u()}),{playToast:b,pauseToast:y,isRunning:n,preventExitTransition:i,toastRef:r,eventHandlers:w}}function k(e){let{delay:n,isRunning:o,closeToast:i,type:a="default",hide:s,className:l,style:u,controlledProgress:f,progress:d,rtl:m,isIn:p,theme:g}=e;const b=s||f&&0===d,y={...u,animationDuration:`${n}ms`,animationPlayState:o?"running":"paused"};f&&(y.transform=`scaleX(${d})`);const h=r("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":m}),v=c(l)?l({rtl:m,type:a,defaultClassName:h}):r(h,l),w={[f&&d>=1?"onTransitionEnd":"onAnimationEnd"]:f&&d<1?null:()=>{p&&i()}};return t.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},t.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${a}`}),t.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:v,style:y,...w}))}let S=1;const C=()=>""+S++;function I(t){return t&&(l(t.toastId)||s(t.toastId))?t.toastId:C()}function E(t,e){return w(t,e),e.toastId}function M(t,e){return{...e,type:e&&e.type||t,toastId:I(e)}}function P(t){return(e,n)=>E(e,M(t,n))}function O(t,e){return E(t,M("default",e))}O.loading=(t,e)=>E(t,M("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),O.promise=function(t,e,n){let o,{pending:i,error:a,success:r}=e;i&&(o=l(i)?O.loading(i,n):O.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(t,e,i)=>{if(null==e)return void O.dismiss(o);const a={type:t,...s,...n,data:i},r=l(e)?{render:e}:e;return o?O.update(o,{...a,...r}):O(r.render,{...a,...r}),i},f=c(t)?t():t;return f.then((t=>u("success",r,t))).catch((t=>u("error",a,t))),f},O.success=P("success"),O.info=P("info"),O.error=P("error"),O.warning=P("warning"),O.warn=O.warning,O.dark=(t,e)=>E(t,M("default",{theme:"dark",...e})),O.dismiss=function(t){!function(t){var e;if(h()){if(null==t||l(e=t)||s(e))p.forEach((e=>{e.removeToast(t)}));else if(t&&("containerId"in t||"id"in t)){const e=p.get(t.containerId);e?e.removeToast(t.id):p.forEach((e=>{e.removeToast(t.id)}))}}else g=g.filter((e=>null!=t&&e.options.toastId!==t))}(t)},O.clearWaitingQueue=function(t){void 0===t&&(t={}),p.forEach((e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()}))},O.isActive=v,O.update=function(t,e){void 0===e&&(e={});const n=((t,e)=>{var n;let{containerId:o}=e;return null==(n=p.get(o||1))?void 0:n.toasts.get(t)})(t,e);if(n){const{props:o,content:i}=n,a={delay:100,...o,...e,toastId:e.toastId||t,updateId:C()};a.toastId!==t&&(a.staleId=t);const r=a.render||i;delete a.render,E(r,a)}},O.done=t=>{O.update(t,{progress:1})},O.onChange=function(t){return b.add(t),()=>{b.delete(t)}},O.play=t=>_(!0,t),O.pause=t=>_(!1,t);const L="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,A=e=>{let{theme:n,type:o,isLoading:i,...a}=e;return t.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${o})`,...a})},B={info:function(e){return t.createElement(A,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(A,{...e},t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(A,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(A,{...e},t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}},z=e=>{const{isRunning:n,preventExitTransition:o,toastRef:i,eventHandlers:a,playToast:s}=x(e),{closeButton:l,children:u,autoClose:f,onClick:d,type:m,hideProgressBar:p,closeToast:g,transition:b,position:y,className:h,style:v,bodyClassName:w,bodyStyle:_,progressClassName:T,progressStyle:S,updateId:C,role:I,progress:E,rtl:M,toastId:P,deleteToast:O,isIn:L,isLoading:A,closeOnClick:z,theme:N}=e,R=r("Toastify__toast",`Toastify__toast-theme--${N}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":z}),D=c(h)?h({rtl:M,position:y,type:m,defaultClassName:R}):r(R,h),j=function(e){let{theme:n,type:o,isLoading:i,icon:a}=e,r=null;const s={theme:n,type:o};return!1===a||(c(a)?r=a({...s,isLoading:i}):(0,t.isValidElement)(a)?r=(0,t.cloneElement)(a,s):i?r=B.spinner():(t=>t in B)(o)&&(r=B[o](s))),r}(e),U=!!E||!f,F={closeToast:g,type:m,theme:N};let G=null;return!1===l||(G=c(l)?l(F):(0,t.isValidElement)(l)?(0,t.cloneElement)(l,F):function(e){let{closeToast:n,theme:o,ariaLabel:i="close"}=e;return t.createElement("button",{className:`Toastify__close-button Toastify__close-button--${o}`,type:"button",onClick:t=>{t.stopPropagation(),n(t)},"aria-label":i},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(F)),t.createElement(b,{isIn:L,done:O,position:y,preventExitTransition:o,nodeRef:i,playToast:s},t.createElement("div",{id:P,onClick:d,"data-in":L,className:D,...a,style:v,ref:i},t.createElement("div",{...L&&{role:I},className:c(w)?w({type:m}):r("Toastify__toast-body",w),style:_},null!=j&&t.createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},j),t.createElement("div",null,u)),G,t.createElement(k,{...C&&!U?{key:`pb-${C}`}:{},rtl:M,theme:N,delay:f,isRunning:n,isIn:L,closeToast:g,hide:p,type:m,style:S,className:T,controlledProgress:U,progress:E||0})))},N=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},R=d(N("bounce",!0)),D=(d(N("slide",!0)),d(N("zoom")),d(N("flip")),{position:"top-right",transition:R,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function j(e){let n={...D,...e};const o=e.stacked,[i,a]=(0,t.useState)(!0),s=(0,t.useRef)(null),{getToastToRender:l,isToastActive:f,count:d}=T(n),{className:m,style:p,rtl:g,containerId:b}=n;function y(t){const e=r("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":g});return c(m)?m({position:t,rtl:g,defaultClassName:e}):r(e,u(m))}function h(){o&&(a(!0),O.play())}return L((()=>{if(o){var t;const e=s.current.querySelectorAll('[data-in="true"]'),o=12,a=null==(t=n.position)?void 0:t.includes("top");let r=0,l=0;Array.from(e).reverse().forEach(((t,e)=>{const n=t;n.classList.add("Toastify__toast--stacked"),e>0&&(n.dataset.collapsed=`${i}`),n.dataset.pos||(n.dataset.pos=a?"top":"bot");const s=r*(i?.2:1)+(i?0:o*e);n.style.setProperty("--y",`${a?s:-1*s}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",""+(1-(i?l:0))),r+=n.offsetHeight,l+=.025}))}}),[i,d,o]),t.createElement("div",{ref:s,className:"Toastify",id:b,onMouseEnter:()=>{o&&(a(!1),O.pause())},onMouseLeave:h},l(((e,n)=>{const i=n.length?{...p}:{...p,pointerEvents:"none"};return t.createElement("div",{className:y(e),style:i,key:`container-${e}`},n.map((e=>{let{content:n,props:i}=e;return t.createElement(z,{...i,stacked:o,collapseAll:h,isIn:f(i.toastId,i.containerId),style:i.style,key:`toast-${i.key}`},n)})))})))}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},F.apply(null,arguments)}function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function V(t,e,n){return(e=function(t){var e=function(t){if("object"!=U(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==U(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,a,r,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=a.call(n)).done)&&(s.push(o.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return H(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}o(750),o(533);var $=(0,t.createContext)({isLoggedIn:null,header:null,isAdmin:null,userInfo:null,refreshData:null,setHeader:null,setLoggedin:null,setRefreshData:null,hasRole:null,deviceUID:null,loadingUser:null});function W(n){var o=sessionStorage.getItem("appVersionOld")||!1;return(0,t.useEffect)((function(){o&&sessionStorage.getItem("requiredVersion")&&function(t,e){for(var n=0,o=0,i=0,a=0;i<t.length||a<e.length;){for(;i<t.length&&"."!==t[i];)n=10*n+(t[i]-"0"),i++;for(;a<e.length&&"."!==e[a];)o=10*o+(e[a]-"0"),a++;if(n>o)return!0;if(o>n)return!1;n=o=0,i++,a++}return!0}(n,sessionStorage.getItem("requiredVersion"))&&(O.success("Your application has been updated",{toastId:"appReload"}),sessionStorage.removeItem("appVersionOld"),sessionStorage.removeItem("requiredVersion"),sessionStorage.removeItem("appReloads"))}),[o]),e().createElement(e().Fragment,null)}const X=function(o){var i=o.AuthenticatedAxiosObject,a=o.refreshTimer,r=o.dataRefresh,s=o.userLoader,l=o.refreshToken,c=o.customeUpdateIcon,u=o.appVersion,f=o.toastOptions,d=o.children,m=q((0,t.useState)(localStorage.getItem("deviceUID")||!1),2),p=m[0],g=m[1];(0,t.useEffect)((function(){if(!p){var t=function(){if(localStorage.getItem("deviceFingerprint"))return localStorage.getItem("deviceFingerprint");var t=(new n.ClientJS).getFingerprint();return localStorage.setItem("deviceFingerprint",t),t}();g(t),i.defaults.headers.common.deviceUID=t}}),[p,i]);var b=q((0,t.useState)(""),2),y=b[0],h=b[1];i.defaults.withCredentials=!0,i.defaults.headers.common.Authorization=y,i.defaults.headers.common.deviceUID=p,i.defaults.headers.common.appVersion=u;var v=(0,t.useCallback)((function(t,e){h(t),setTimeout((function(){l().then((function(t){if(t.refreshed){var n="Bearer ".concat(t.access_token);h(n),i.defaults.headers.common.Authorization=n,e&&localStorage.setItem("Authorization",n),sessionStorage.setItem("Authorization",n)}})).catch((function(t){console.log(t),console.log("Missing/Invalid Token"),localStorage.removeItem("Authorization"),sessionStorage.removeItem("Authorization")}))}),100)}),[i,l]);(0,t.useEffect)((function(){var t=localStorage.getItem("Authorization"),e=sessionStorage.getItem("Authorization");return t?v(t,!0):e&&v(e,!1),function(){return clearInterval(v)}}),[y,v]);var w=q((0,t.useState)(!1),2),_=w[0],T=w[1],x=q((0,t.useState)(!1),2),k=x[0],S=x[1],C=q((0,t.useState)({}),2),I=C[0],E=C[1],M=q((0,t.useState)(!0),2),P=M[0],L=M[1];(0,t.useEffect)((function(){setTimeout((function(){s().then((function(t){var e=t.data;T(e.logged_in),S(e.is_admin),E(e.Info)})).catch((function(t){console.log(t)})).finally((function(){L(!1)}))}),100)}),[y,_,s]),(0,t.useEffect)((function(){var t=null;if(_){var e=!!localStorage.getItem("Authorization");t=setInterval((function(){v(sessionStorage.getItem("Authorization"),e)}),60*(a||60)*1e3||1e4)}else clearInterval(t);return function(){return clearInterval(t)}}),[y,v,_,a]),(0,t.useEffect)((function(){return function(){i.interceptors.response.use((function(t){return t}),(function(t){var e,n,o;if(455===(null==t||null===(e=t.response)||void 0===e?void 0:e.status))try{var a=t.response.data.logged_in||!1;_&&!a&&(T(!1),i.defaults.headers.common.Authorization="",O.info("Your session in no longer valid, please login again.",{toastId:"Forced_log_out"}))}catch(t){throw t}if(426===(null==t||null===(n=t.response)||void 0===n?void 0:n.status)){sessionStorage.setItem("appVersionOld",!0),sessionStorage.setItem("requiredVersion",t.response.data.minVersion);var r=sessionStorage.getItem("appReloads")||0;r<2?(sessionStorage.setItem("appReloads",r+1),setTimeout((function(){window.location.reload()}),1e3*r)):O.warning("The application needs to be updated please wait for some time then reload the page.",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({toastId:"appReloadError"},c&&{icon:c}))}throw null!=t&&null!==(o=t.response)&&void 0!==o&&o.status||"ERR_CANCELED"!==(null==t?void 0:t.code)&&"canceled"!==(null==t?void 0:t.message)&&O.error("The server is not responding, please reload or try again later.",{toastId:"ERR_CONNECTION_REFUSED"}),t}))}}),[i,_,c]);var A=q((0,t.useState)(!1),2),B=A[0],z=A[1];(0,t.useEffect)((function(){var t=setTimeout((function(){return z(!0)}),60*(r||60)*1e3||1e4);return function(){return clearTimeout(t)}}),[r]),(0,t.useEffect)((function(){B&&s().then((function(t){var e=t.data;E(e.Info),N(!1)}))}),[B,s]);var N=function(t){z(t)},R={isLoggedIn:_,header:y,isAdmin:k,userInfo:I,refreshData:B,setHeader:function(t){h(t)},setLoggedin:function(t){T(t)},setRefreshData:N,hasRole:function(t){var e=t.some((function(t){var e;return(null==I||null===(e=I.roles)||void 0===e?void 0:e.indexOf(t))>=0}));return e},deviceUID:p,loadingUser:P};return e().createElement($.Provider,{value:R},e().createElement(j,F({position:"top-left",autoClose:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,toastClassName:"custToast materialToast"},f)),e().createElement(W,{appVersion:u}),d)}})(),i})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-session.manager.sk",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
4
4
  "description": "A react component used to manage token sessions with flask backend",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@
14
14
  "@babel/preset-env": "^7.25.3",
15
15
  "@babel/preset-react": "^7.24.7",
16
16
  "babel-loader": "^9.1.3",
17
+ "css-loader": "^7.1.2",
17
18
  "webpack": "^5.93.0",
18
19
  "webpack-cli": "^5.1.4"
19
20
  },
package/src/index.js CHANGED
@@ -2,7 +2,9 @@ import React, { createContext, useState, useEffect, useCallback } from "react";
2
2
  import versionCompare from "./components/versionCompare";
3
3
  import getDeviceFingerprint from "./components/FingerPrint";
4
4
  // Notifications
5
- import { toast } from "react-toastify";
5
+ import { ToastContainer, toast } from "react-toastify";
6
+ import "react-toastify/dist/ReactToastify.css";
7
+ import "./styling/toast.css";
6
8
 
7
9
  export const SessionManager = createContext({
8
10
  isLoggedIn: null,
@@ -26,10 +28,9 @@ const SessionManagerProvider = ({
26
28
  refreshToken,
27
29
  customeUpdateIcon,
28
30
  appVersion,
31
+ toastOptions,
29
32
  children,
30
33
  }) => {
31
- console.log("Session Manager Provider");
32
-
33
34
  // Set deivce UID
34
35
  const [deviceUID, setDeviceUID] = useState(
35
36
  localStorage.getItem("deviceUID") || false
@@ -248,6 +249,15 @@ const SessionManagerProvider = ({
248
249
 
249
250
  return (
250
251
  <SessionManager.Provider value={contextValue}>
252
+ <ToastContainer
253
+ position="top-left"
254
+ autoClose={5000}
255
+ closeOnClick
256
+ pauseOnFocusLoss
257
+ pauseOnHover
258
+ toastClassName={"custToast materialToast"}
259
+ {...toastOptions}
260
+ />
251
261
  <VersionProtection appVersion={appVersion} />
252
262
  {children}
253
263
  </SessionManager.Provider>
@@ -256,7 +266,6 @@ const SessionManagerProvider = ({
256
266
 
257
267
  function VersionProtection(appVersion) {
258
268
  const oldVersion = sessionStorage.getItem("appVersionOld") || false;
259
-
260
269
  useEffect(() => {
261
270
  if (
262
271
  oldVersion &&
@@ -0,0 +1,56 @@
1
+ :root {
2
+ --main: #303030;
3
+ --themec: #303030;
4
+ --default: #303030;
5
+ --contrastText: "rgba(0, 0, 0, 0.87)";
6
+ }
7
+
8
+ .custToast {
9
+ background: var(--themec);
10
+ }
11
+ .custToast .Toastify__close-button {
12
+ color: var(--main);
13
+ }
14
+
15
+ .custToast.Toastify__toast--success {
16
+ color: var(--success);
17
+ }
18
+ .custToast.Toastify__toast--info {
19
+ color: var(--info);
20
+ }
21
+ .custToast.Toastify__toast--warning {
22
+ color: var(--warning);
23
+ }
24
+ .custToast.Toastify__toast--error {
25
+ color: var(--error);
26
+ }
27
+
28
+ .custToast .Toastify__progress-bar--success {
29
+ background: var(--success);
30
+ }
31
+ .custToast .Toastify__progress-bar--info {
32
+ background: var(--info);
33
+ }
34
+ .custToast .Toastify__progress-bar--warning {
35
+ background: var(--warning);
36
+ }
37
+ .custToast .Toastify__progress-bar--error {
38
+ background: var(--error);
39
+ }
40
+
41
+ .custToast.materialToast.Toastify__toast--success {
42
+ background: var(--success);
43
+ color: var(--contrastText);
44
+ }
45
+ .custToast.materialToast.Toastify__toast--info {
46
+ background: var(--info);
47
+ color: var(--contrastText);
48
+ }
49
+ .custToast.materialToast.Toastify__toast--warning {
50
+ background: var(--warning);
51
+ color: var(--contrastText);
52
+ }
53
+ .custToast.materialToast.Toastify__toast--error {
54
+ background: var(--error);
55
+ color: var(--contrastText);
56
+ }
package/webpack.config.js CHANGED
@@ -22,6 +22,12 @@ module.exports = {
22
22
  loader: "babel-loader",
23
23
  },
24
24
  },
25
+ {
26
+ test: /\.css$/i,
27
+ use: {
28
+ loader: "css-loader",
29
+ },
30
+ },
25
31
  ],
26
32
  },
27
33
  resolve: {