recce-nightly 1.9.0.20250623__py3-none-any.whl → 1.25.0.20251112a2066__py3-none-any.whl
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.
- recce/VERSION +1 -1
- recce/__init__.py +5 -0
- recce/adapter/dbt_adapter/__init__.py +318 -240
- recce/artifact.py +76 -3
- recce/cli.py +703 -71
- recce/config.py +3 -3
- recce/connect_to_cloud.py +138 -0
- recce/core.py +3 -3
- recce/data/404.html +1 -22
- recce/data/__next.__PAGE__.txt +10 -0
- recce/data/__next._full.txt +23 -0
- recce/data/__next._index.txt +8 -0
- recce/data/__next._tree.txt +12 -0
- recce/data/_next/static/6LypcDXgyuSaiSCrsmUub/_buildManifest.js +11 -0
- recce/data/_next/static/6LypcDXgyuSaiSCrsmUub/_clientMiddlewareManifest.json +1 -0
- recce/data/_next/static/chunks/0a2b2dd4b57049c2.js +1 -0
- recce/data/_next/static/chunks/19c10d219a6a21ff.js +1 -0
- recce/data/_next/static/chunks/24fd885c7180a612.js +1 -0
- recce/data/_next/static/chunks/27e66b2eab4adc32.js +19 -0
- recce/data/_next/static/chunks/71f88fcc615bf282.js +1 -0
- recce/data/_next/static/chunks/917619ab62a32388.js +1 -0
- recce/data/_next/static/chunks/93ba5a62932b704f.js +4 -0
- recce/data/_next/static/chunks/a43a2a5e06d5a92b.js +1 -0
- recce/data/_next/static/chunks/a6c78b24bd8b84fc.js +1 -0
- recce/data/_next/static/chunks/b2610ba997ff8c4f.js +110 -0
- recce/data/_next/static/chunks/ba2d87265a68599d.css +2 -0
- recce/data/_next/static/chunks/c117fd1c1382dd83.js +11 -0
- recce/data/_next/static/chunks/c9425ca46eebdde9.js +1 -0
- recce/data/_next/static/chunks/cc8a9eadba012be0.css +6 -0
- recce/data/_next/static/chunks/e124bccf574a3361.css +1 -0
- recce/data/_next/static/chunks/e392ad92847c3e17.js +1 -0
- recce/data/_next/static/chunks/e4ce95efe88dae79.js +11 -0
- recce/data/_next/static/chunks/e69c777814fea6ed.js +2 -0
- recce/data/_next/static/chunks/turbopack-21cfd73037ff57ab.js +3 -0
- recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
- recce/data/_next/static/media/{montserrat-cyrillic-800-normal.bd5c9f50.woff → montserrat-cyrillic-800-normal.f9d58125.woff} +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
- recce/data/_next/static/media/{montserrat-latin-800-normal.fc315020.woff → montserrat-latin-800-normal.d5761935.woff} +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
- recce/data/_next/static/media/{montserrat-latin-ext-800-normal.2e5381b2.woff → montserrat-latin-ext-800-normal.b671449b.woff} +0 -0
- recce/data/_next/static/media/{montserrat-vietnamese-800-normal.20c545e6.woff → montserrat-vietnamese-800-normal.9f7b8541.woff} +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
- recce/data/_not-found/__next._full.txt +17 -0
- recce/data/_not-found/__next._index.txt +8 -0
- recce/data/_not-found/__next._not-found.__PAGE__.txt +5 -0
- recce/data/_not-found/__next._not-found.txt +4 -0
- recce/data/_not-found/__next._tree.txt +10 -0
- recce/data/_not-found.html +1 -0
- recce/data/_not-found.txt +17 -0
- recce/data/auth_callback.html +68 -0
- recce/data/index.html +1 -27
- recce/data/index.txt +23 -8
- recce/event/__init__.py +9 -8
- recce/event/collector.py +6 -2
- recce/event/track.py +10 -0
- recce/github.py +1 -1
- recce/mcp_server.py +632 -0
- recce/models/types.py +23 -2
- recce/pull_request.py +1 -1
- recce/run.py +23 -16
- recce/server.py +194 -19
- recce/state/__init__.py +31 -0
- recce/state/cloud.py +632 -0
- recce/state/const.py +26 -0
- recce/state/local.py +56 -0
- recce/state/state.py +119 -0
- recce/state/state_loader.py +174 -0
- recce/summary.py +2 -1
- recce/tasks/dataframe.py +59 -2
- recce/tasks/rowcount.py +4 -1
- recce/tasks/schema.py +4 -1
- recce/tasks/valuediff.py +1 -1
- recce/util/api_token.py +11 -2
- recce/util/breaking.py +9 -0
- recce/util/cll.py +1 -2
- recce/util/io.py +2 -2
- recce/util/lineage.py +19 -18
- recce/util/perf_tracking.py +85 -0
- recce/util/recce_cloud.py +229 -5
- recce/yaml/__init__.py +2 -2
- recce_cloud/__init__.py +15 -0
- recce_cloud/api/__init__.py +17 -0
- recce_cloud/api/base.py +104 -0
- recce_cloud/api/client.py +150 -0
- recce_cloud/api/exceptions.py +26 -0
- recce_cloud/api/factory.py +63 -0
- recce_cloud/api/github.py +72 -0
- recce_cloud/api/gitlab.py +78 -0
- recce_cloud/artifact.py +57 -0
- recce_cloud/ci_providers/__init__.py +9 -0
- recce_cloud/ci_providers/base.py +82 -0
- recce_cloud/ci_providers/detector.py +147 -0
- recce_cloud/ci_providers/github_actions.py +136 -0
- recce_cloud/ci_providers/gitlab_ci.py +130 -0
- recce_cloud/cli.py +303 -0
- recce_cloud/upload.py +213 -0
- {recce_nightly-1.9.0.20250623.dist-info → recce_nightly-1.25.0.20251112a2066.dist-info}/METADATA +31 -27
- recce_nightly-1.25.0.20251112a2066.dist-info/RECORD +178 -0
- {recce_nightly-1.9.0.20250623.dist-info → recce_nightly-1.25.0.20251112a2066.dist-info}/top_level.txt +1 -0
- tests/adapter/dbt_adapter/test_dbt_cll.py +412 -79
- tests/recce_cloud/__init__.py +0 -0
- tests/recce_cloud/test_ci_providers.py +351 -0
- tests/recce_cloud/test_cli.py +372 -0
- tests/recce_cloud/test_client.py +273 -0
- tests/recce_cloud/test_platform_clients.py +279 -0
- tests/test_cli.py +106 -3
- tests/test_cli_mcp_optional.py +45 -0
- tests/test_cloud_listing_cli.py +324 -0
- tests/test_connect_to_cloud.py +82 -0
- tests/test_core.py +148 -3
- tests/test_mcp_server.py +332 -0
- tests/test_server.py +6 -6
- tests/test_summary.py +14 -6
- recce/data/_next/static/WrRUb3nV8BhAZG_R8kVma/_buildManifest.js +0 -1
- recce/data/_next/static/chunks/181-acc61ddada3bc0ca.js +0 -43
- recce/data/_next/static/chunks/1bff33f1-1ef85cf5e658a751.js +0 -1
- recce/data/_next/static/chunks/217-879a84d70f7a907c.js +0 -2
- recce/data/_next/static/chunks/29e3cc0d-60045b2e47aa3916.js +0 -1
- recce/data/_next/static/chunks/36e1c10d-8e7be4a6c1f6ab2d.js +0 -1
- recce/data/_next/static/chunks/3998a672-03adacad07b346ac.js +0 -1
- recce/data/_next/static/chunks/3a92ee20-1081c360214f9602.js +0 -1
- recce/data/_next/static/chunks/42-cd3c06533f5fd47c.js +0 -9
- recce/data/_next/static/chunks/450c323b-fd94e7ffaa4a5efa.js +0 -1
- recce/data/_next/static/chunks/47d8844f-929aed9b1c73a905.js +0 -1
- recce/data/_next/static/chunks/608-3b079b544e5d5f5e.js +0 -15
- recce/data/_next/static/chunks/6dc81886-adbfa45836061d79.js +0 -1
- recce/data/_next/static/chunks/7a8a3e83-edf6dc64b5d5f0a5.js +0 -1
- recce/data/_next/static/chunks/7f27ae6c-d5f0438edd5c2a5b.js +0 -1
- recce/data/_next/static/chunks/86730205-cfb14e3f051bab35.js +0 -1
- recce/data/_next/static/chunks/8d700b6a.8bb140898499c512.js +0 -1
- recce/data/_next/static/chunks/92-7ab55ae02606193c.js +0 -1
- recce/data/_next/static/chunks/9746af58-a42b7d169cacadf0.js +0 -1
- recce/data/_next/static/chunks/a30376cd-de84559016d7e133.js +0 -1
- recce/data/_next/static/chunks/app/_not-found/page-01ed58b7f971d311.js +0 -1
- recce/data/_next/static/chunks/app/layout-177a410a97e0d018.js +0 -1
- recce/data/_next/static/chunks/app/page-59241c42b7dd4fcf.js +0 -1
- recce/data/_next/static/chunks/b63b1b3f-4282bdcf459e075c.js +0 -1
- recce/data/_next/static/chunks/bbda5537-9ec25eb1dd62348a.js +0 -1
- recce/data/_next/static/chunks/c132bf7d-08cb668a789d6afd.js +0 -1
- recce/data/_next/static/chunks/ce84277d-2e5d1d46910cf052.js +0 -1
- recce/data/_next/static/chunks/febdd86e-c6b525341634b860.js +0 -54
- recce/data/_next/static/chunks/fee69bc6-2dbccaf9b90474e6.js +0 -1
- recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
- recce/data/_next/static/chunks/main-app-39061b0166c47f55.js +0 -1
- recce/data/_next/static/chunks/main-b5b3ae20a1405261.js +0 -1
- recce/data/_next/static/chunks/pages/_app-437c455677d62394.js +0 -1
- recce/data/_next/static/chunks/pages/_error-e7650df18ca04bde.js +0 -1
- recce/data/_next/static/chunks/webpack-7b49d5ba7e3a434d.js +0 -1
- recce/data/_next/static/css/17a96168e3a9db13.css +0 -1
- recce/data/_next/static/css/1b121dc4d36aeb4d.css +0 -3
- recce/data/_next/static/css/35c6679a098e1e34.css +0 -1
- recce/data/_next/static/css/951e2e0eea2d4a5b.css +0 -14
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
- recce/state.py +0 -785
- recce_nightly-1.9.0.20250623.dist-info/RECORD +0 -151
- tests/test_state.py +0 -134
- /recce/data/_next/static/{WrRUb3nV8BhAZG_R8kVma → 6LypcDXgyuSaiSCrsmUub}/_ssgManifest.js +0 -0
- /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
- /recce/data/_next/static/media/{montserrat-cyrillic-ext-800-normal.e6e0d8d0.woff → montserrat-cyrillic-ext-800-normal.a4fa76b5.woff} +0 -0
- /recce/data/_next/static/media/{reload-image.79aabb7d.svg → reload-image.7aa931c7.svg} +0 -0
- {recce_nightly-1.9.0.20250623.dist-info → recce_nightly-1.25.0.20251112a2066.dist-info}/WHEEL +0 -0
- {recce_nightly-1.9.0.20250623.dist-info → recce_nightly-1.25.0.20251112a2066.dist-info}/entry_points.txt +0 -0
- {recce_nightly-1.9.0.20250623.dist-info → recce_nightly-1.25.0.20251112a2066.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42],{49413:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",u="object",l="string",c="model",d="name",f="type",h="vendor",p="version",v="architecture",g="console",m="mobile",y="tablet",b="smarttv",w="wearable",x="embedded",S="Amazon",E="Apple",_="ASUS",k="BlackBerry",C="Browser",O="Chrome",T="Firefox",P="Google",I="Huawei",R="Microsoft",A="Motorola",M="Opera",j="Samsung",N="Sharp",L="Sony",D="Xiaomi",F="Zebra",U="Facebook",B=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},q=function(e,t){return typeof e===l&&-1!==z(t).indexOf(z(e))},z=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},$=function(e,t){for(var n,r,i,s,l,c,d=0;d<t.length&&!l;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!l;)if(l=f[n++].exec(e))for(i=0;i<h.length;i++)c=l[++r],typeof(s=h[i])===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]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||o;d+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(q(t[n][r],e))return"?"===n?o:n}else if(q(t[n],e))return"?"===n?o:n;return e},H={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"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,M]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+C],p],[/\bfocus\/([\w\.]+)/i],[p,[d,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[p,[d,T]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+C],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,U],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,O+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,G,{"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,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,T+" 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,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,z]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",z]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,j],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,j],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[c,[h,E],[f,m]],[/(ipad\d+,\d+)/i],[c,[h,E],[f,y]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,E],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,E],[f,y]],[/(macintosh);/i],[c,[h,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,I],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,I],[f,m]],[/\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|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,D],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,D],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[f,m]],[/\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,[h,A],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,A],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,"LG"],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,"LG"],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[c,[h,P],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,P],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,L],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,L],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,S],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,S],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,_],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,_],[f,m]],[/(nexus 9)/i],[c,[h,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,N],[f,m]],[/(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],[h,c,[f,m]],[/(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],[h,c,[f,y]],[/(surface duo)/i],[c,[h,R],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[c,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[f,y]],[/\b(k88) b/i],[c,[h,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[f,y]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[f,m]],[/\b(ph-1) /i],[c,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[h,c,[f,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,R],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,F],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,F],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[f,g]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[f,g]],[/(playstation [345portablevi]+)/i],[c,[h,L],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,R],[f,g]],[/smart-tv.+(samsung)/i],[h,[f,b]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,j],[f,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[f,b]],[/(apple) ?tv/i],[h,[c,E+" TV"],[f,b]],[/crkey/i],[[c,O+"cast"],[h,P],[f,b]],[/droid.+aft(\w)( bui|\))/i],[c,[h,S],[f,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,N],[f,b]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,L],[f,b]],[/(mitv-\w{5}) bui/i],[c,[h,D],[f,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,W],[c,W],[f,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,b]],[/((pebble))app/i],[h,c,[f,w]],[/droid.+; (glass) \d/i],[c,[h,P],[f,w]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,F],[f,w]],[/(quest( 2)?)/i],[c,[h,U],[f,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[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,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,G,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,G,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"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],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},K=function(e,t){if(typeof e===u&&(t=e,e=o),!(this instanceof K))return new K(e,t).getResult();var n=e||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?B(Z,t):Z;return this.getBrowser=function(){var e,t={};return t[d]=o,t[p]=o,$.call(t,n,r.browser),t.major=typeof(e=t.version)===l?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[v]=o,$.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[c]=o,e[f]=o,$.call(e,n,r.device),e},this.getEngine=function(){var e={};return e[d]=o,e[p]=o,$.call(e,n,r.engine),e},this.getOS=function(){var e={};return e[d]=o,e[p]=o,$.call(e,n,r.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 n},this.setUA=function(e){return n=typeof e===l&&e.length>350?W(e,350):e,this},this.setUA(n),this};K.VERSION="0.7.33",K.BROWSER=V([d,p,"major"]),K.CPU=V([v]),K.DEVICE=V([c,h,f,g,m,b,y,w,x]),K.ENGINE=K.OS=V([d,p]),typeof t!==s?(e.exports&&(t=e.exports=K),t.UAParser=K):n.amdO?o!==(r=(function(){return K}).call(t,n,t,e))&&(e.exports=r):typeof i!==s&&(i.UAParser=K);var X=typeof i!==s&&(i.jQuery||i.Zepto);if(X&&!X.ua){var J=new K;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},50576:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{Pn:function(){return s2},j:function(){return s5}});var u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,E,_,k,C,O,T,P,I,R,A,M,j,N,L,D,F,U,B,V,q,z,W,$,G,H,Z,K,X,J,Y,Q,ee,et,en,er,ei,eo,ea=n(13752),es=function(e){return{promise:e||Promise.resolve()}},eu=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},el=function(){var e,t=eu();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=ec(n[0]),i=ec(n[1]);return i&&(e[r]=i),e},{}):{}},ec=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ed=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:ef(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),ef=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},eh=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),ep=function(){return(ep=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ev(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var em=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=ev(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),u=Array.isArray(t);if(s!==u)return!1;if(s&&u){for(var l=0;l<e.length;l++)if(!em(e[l],t[l]))return!1}else{if(!em(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){em(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var ey=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=ep({},this.identity.userProperties),n=ep(ep({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,u=n.userProperties||{};try{for(var l=ev(Object.entries(e)),c=l.next();!c.done;c=l.next()){var d=eg(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,ev(Object.entries(h))),v=p.next();!v.done;v=p.next()){var g=eg(v.value,2),m=g[0],y=g[1];u[m]=y}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(a=void 0,ev(Object.keys(h))),w=b.next();!w.done;w=b.next()){var m=w.value;delete u[m]}}catch(e){a={error:e}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case"$clearAll":u={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return n.userProperties=u,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return ep({},this.identity)},e.prototype.setIdentity=function(e){var t=ep({},this.identity);this.identity=ep({},e),em(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eb="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,ew=function(){function e(){this.identityStore=new ey,this.eventBridge=new eh,this.applicationContextProvider=new ed}return e.getInstance=function(t){return eb.analyticsConnectorInstances||(eb.analyticsConnectorInstances={}),eb.analyticsConnectorInstances[t]||(eb.analyticsConnectorInstances[t]=new e),eb.analyticsConnectorInstances[t]},e}(),ex=function(e){return void 0===e&&(e="$default_instance"),ew.getInstance(e)},eS=function(e,t){ex(t).identityStore.editIdentity().setUserId(e).commit()},eE=function(e,t){ex(t).identityStore.editIdentity().setDeviceId(e).commit()};(u=D||(D={})).Unknown="unknown",u.Skipped="skipped",u.Success="success",u.RateLimit="rate_limit",u.PayloadTooLarge="payload_too_large",u.Invalid="invalid",u.Failed="failed",u.Timeout="Timeout",u.SystemError="SystemError";var e_="".concat("AMP","_unsent"),ek="https://api2.amplitude.com/2/httpapi",eC=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},eO=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=D.Unknown),{event:e,code:t,message:n}};(l=F||(F={}))[l.None=0]="None",l[l.Error=1]="Error",l[l.Warn=2]="Warn",l[l.Verbose=3]="Verbose",l[l.Debug=4]="Debug";var eT="Amplitude Logger ",eP=function(){function e(){this.logLevel=F.None}return e.prototype.disable=function(){this.logLevel=F.None},e.prototype.enable=function(e){void 0===e&&(e=F.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<F.Verbose||console.log("".concat(eT,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<F.Warn||console.warn("".concat(eT,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<F.Error||console.error("".concat(eT,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<F.Debug||console.log("".concat(eT,"[Debug]: ").concat(e.join(" ")))},e}(),eI=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:F.Warn,loggerProvider:new eP,offline:!1,optOut:!1,serverUrl:ek,serverZone:"US",useBatch:!1}},eR=function(){function e(e){this._optOut=!1;var t,n,r,i,o=eI();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=eA(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),eA=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=eI().serverZone),void 0===n&&(n=eI().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:eI().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":ek)}},eM=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),ej=(0,ea.ev)([],(0,ea.CR)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),eN=function(e){var t,n=eu();if(!(null===(t=null==n?void 0:n.crypto)||void 0===t?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,eN);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,(0,ea.ev)([],(0,ea.CR)(r.entries()),!1).map(function(e){var t=(0,ea.CR)(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(ej[r]):ej[r]}).join("")};function eL(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var eD=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){var n,r=this;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(e_,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=eN()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,ea.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,eC(t,this.config.flushQueueSize).reduce(function(t,n){return(0,ea.mG)(r,void 0,void 0,function(){return(0,ea.Jh)(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,ea.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,ea._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new eM,a.label=1;case 1:return a.trys.push([1,3,,4]),r=eA(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(eL(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:D.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case D.Success:this.handleSuccessResponse(e,t);break;case D.Invalid:this.handleInvalidResponse(e,t);break;case D.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case D.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set((0,ea.ev)((0,ea.ev)((0,ea.ev)((0,ea.ev)([],(0,ea.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,ea.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,ea.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,ea.CR)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(eL(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(eL(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),u=new Set(o),l=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return u.has(r)&&(t.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(eL(e));var c=this.removeEventsExceedFlushMaxRetries(l);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(eO(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),eF=function(){function e(){this.name="identity",this.type="before",this.identityStore=ex().identityStore}return e.prototype.execute=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return e.instanceName&&(this.identityStore=ex(e.instanceName).identityStore),[2]})})},e}(),eU=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!eB(t,n))return!1}return!0},eB=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,ea.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&eU(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return eU(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},eV=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,ea.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(U.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(U.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(U.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(U.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(U.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(U.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(U.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(U.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(U.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[U.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[U.CLEAR_ALL]||this._propertySet.has(t))&&(e===U.ADD?"number"==typeof n:e===U.UNSET||e===U.REMOVE||eB(t,n))},e}();(c=U||(U={})).SET="$set",c.SET_ONCE="$setOnce",c.ADD="$add",c.APPEND="$append",c.PREPEND="$prepend",c.REMOVE="$remove",c.PREINSERT="$preInsert",c.POSTINSERT="$postInsert",c.UNSET="$unset",c.CLEAR_ALL="$clearAll";var eq=[U.CLEAR_ALL,U.UNSET,U.SET,U.SET_ONCE,U.ADD,U.APPEND,U.PREPEND,U.PREINSERT,U.POSTINSERT,U.REMOVE],ez=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return eU(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,ea.pi)({},this.properties):{};return e[B.REVENUE_PRODUCT_ID]=this.productId,e[B.REVENUE_QUANTITY]=this.quantity,e[B.REVENUE_PRICE]=this.price,e[B.REVENUE_TYPE]=this.revenueType,e[B.REVENUE_CURRENCY]=this.currency,e[B.REVENUE]=this.revenue,e[B.RECEIPT]=this.receipt,e[B.RECEIPT_SIG]=this.receiptSig,e},e}();(d=B||(B={})).REVENUE_PRODUCT_ID="$productId",d.REVENUE_QUANTITY="$quantity",d.REVENUE_PRICE="$price",d.REVENUE_TYPE="$revenueType",d.REVENUE_CURRENCY="$currency",d.REVENUE="$revenue",d.RECEIPT="$receipt",d.RECEIPT_SIG="$receiptSig";var eW=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(f=V||(V={})).SET="$set",f.SET_ONCE="$setOnce",f.ADD="$add",f.APPEND="$append",f.PREPEND="$prepend",f.REMOVE="$remove",f.PREINSERT="$preInsert",f.POSTINSERT="$postInsert",f.UNSET="$unset",f.CLEAR_ALL="$clearAll",(h=q||(q={})).IDENTIFY="$identify",h.GROUP_IDENTIFY="$groupidentify",h.REVENUE="revenue_amount";var e$=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=eN(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return(0,ea.mG)(this,void 0,void 0,function(){var r,i;return(0,ea.Jh)(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=i.teardown)||void 0===n?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,l,c,d,f,h,p;return(0,ea.Jh)(this,function(v){switch(v.label){case 0:if(!e)return[2];t=(0,ea.CR)(e,1)[0],n=(0,ea.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),v.label=1;case 1:v.trys.push([1,6,7,8]),o=(i=(0,ea.XA)(r)).next(),v.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,ea.pi)({},t))];case 3:if(null===(s=v.sent()))return n({event:t,code:0,message:""}),[2];t=s,v.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:v.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(d)throw d.error}return[7];case 8:u=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),v.label=9;case 9:v.trys.push([9,14,15,16]),c=(l=(0,ea.XA)(u)).next(),v.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,ea.pi)({},t))];case 11:if(null===(s=v.sent()))return n({event:t,code:0,message:""}),[2];t=s,v.label=12;case 12:return c=l.next(),[3,10];case 13:return[3,16];case 14:return h={error:v.sent()},[3,16];case 15:try{c&&!c.done&&(p=l.return)&&p.call(l)}finally{if(h)throw h.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=(0,ea.pi)({},t);return e.execute(n).catch(function(e){return eO(n,0,String(e))})})).then(function(e){var r=(0,ea.CR)(e,1)[0]||eO(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,ea.mG)(this,void 0,void 0,function(){var e,t=this;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onIdentityChanged)||void 0===n||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onSessionIdChanged)||void 0===n||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onOptOutChanged)||void 0===n||n.call(t,e)})},e}(),eG=function(e,t){return(0,ea.pi)((0,ea.pi)({},t),{event_type:q.IDENTIFY,user_properties:e.getUserProperties()})},eH=function(e,t,n,r){var i;return(0,ea.pi)((0,ea.pi)({},r),{event_type:q.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},eZ=function(e,t,n){var r,i=new eV;return i.set(e,t),(0,ea.pi)((0,ea.pi)({},n),{event_type:q.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},eK=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new e$(this),this.name=e}return e.prototype._init=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,ea.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=(0,ea.XA)(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,ea.pi)((0,ea.pi)((0,ea.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return es(this.dispatch(r))},e.prototype.identify=function(e,t){var n=eG(e,t);return es(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=eH(e,t,n,r);return es(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=eZ(e,t,n);return es(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,ea.pi)((0,ea.pi)({},t),{event_type:q.REVENUE,event_properties:e.getEventProperties()});return es(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),es())},e.prototype._addPlugin=function(e){return es(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),es())},e.prototype._removePlugin=function(e){return es(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(eO(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t=this;return(0,ea.Jh)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var n={};return Object.keys(e).forEach(function(t){Object.values(V).includes(t)||(n[t]=e[t])}),eq.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case V.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case V.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case V.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,eO(e,0,"Event skipped due to optOut config")];return e.event_type===q.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=String(i.sent()),this.config.loggerProvider.error(r),[2,n=eO(e,0,r)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return es(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0===t){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e));return}return t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),eX=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},eJ=function(e){return eX(e,"attribution")},eY=function(e){return eX(e,"pageViews")},eQ=function(e){return eX(e,"sessions")},e0=function(e){return"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},e1=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},e2=function(e){if(e1(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},e5=function(e){if(e0(e.autocapture)){if("object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking)return e.autocapture.networkTracking;if(e.networkTrackingOptions)return e.networkTrackingOptions}},e4=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return eY(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},e3=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var u=s.apply(e,o);"function"==typeof a&&a(null==u?void 0:u.promise)}}return e},e6=function(e){return e&&void 0!==e._q},e8=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},e7="2.17.8",e9=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(e7),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return(0,ea.mG)(this,void 0,void 0,function(){var r,i,o;return(0,ea.Jh)(this,function(a){return r=new Date().getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,o=null!==(n=e.event_id)&&void 0!==n?n:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=r),[2,(0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:e8()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:eN(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),te=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),tt=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},tn=function(){function e(e){this.options=(0,ea.pi)({},e)}return e.prototype.isEnabled=function(){return(0,ea.mG)(this,void 0,void 0,function(){var t,n;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:if(!eu())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){var n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=tr(n))&&void 0!==t?t:ti(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,ea.mG)(this,void 0,void 0,function(){var r,i;return(0,ea.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=eu())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return(0,ea.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,l;return(0,ea.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(u=eu())&&(u.document.cookie=s)}catch(t){l=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(l))}return[2]})})},e.prototype.remove=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2]})})},e}(),tr=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},ti=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},to=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,E=e.code||0,_=this.buildStatus(E);switch(_){case D.Success:return{status:_,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case D.Invalid:return{status:_,statusCode:E,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case D.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(v=e.error)&&void 0!==v?v:""}};case D.RateLimit:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(x=e.exceeded_daily_quota_users)&&void 0!==x?x:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case D.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?D.Success:429===e?D.RateLimit:413===e?D.PayloadTooLarge:408===e?D.Timeout:e>=400&&e<500?D.Invalid:e>=500?D.Failed:D.Unknown},e}(),ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ea.ZT)(t,e),t.prototype.send=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){var n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(to),ts=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,ea.mG)(this,void 0,void 0,function(){var t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var n;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),tu=function(e){function t(t){var n,r,i,o=this;try{i=null===(n=eu())||void 0===n?void 0:n.localStorage}catch(e){null===(r=null==t?void 0:t.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return(0,ea.ZT)(t,e),t.prototype.set=function(t,n){var r;return(0,ea.mG)(this,void 0,void 0,function(){var i;return(0,ea.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(ts),tl=function(e){function t(){var t;return e.call(this,null===(t=eu())||void 0===t?void 0:t.sessionStorage)||this}return(0,ea.ZT)(t,e),t}(ts),tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,ea.ZT)(t,e),t.prototype.send=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){var n=this;return(0,ea.Jh)(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(to),td=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ea.ZT)(t,e),t.prototype.send=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){var n=this;return(0,ea.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=eu();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(to),tf=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},th=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},tp="[Amplitude]",tv="".concat(tp," Form Started"),tg="".concat(tp," Form Submitted"),tm="".concat(tp," File Downloaded"),ty="session_start",tb="session_end",tw="".concat(tp," File Extension"),tx="".concat(tp," File Name"),tS="".concat(tp," Link ID"),tE="".concat(tp," Link Text"),t_="".concat(tp," Link URL"),tk="".concat(tp," Form ID"),tC="".concat(tp," Form Name"),tO="".concat(tp," Form Destination"),tT="cookie",tP=function(e){function t(t,n,r,i,o,a,s,u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,E,_,k,C,O,T,P,I,R,A,M,j,N){void 0===r&&(r=new te),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===u&&(u=1e3),void 0===l&&(l=5),void 0===c&&(c=30),void 0===d&&(d=tT),void 0===g&&(g=new eP),void 0===m&&(m=F.Warn),void 0===b&&(b=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===_&&(_="US"),void 0===C&&(C=18e5),void 0===O&&(O=new tu({loggerProvider:g})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===I&&(I=!1),void 0===R&&(R=!0);var L=e.call(this,{apiKey:t,storageProvider:O,transportProvider:tR(P)})||this;return L.apiKey=t,L.appVersion=n,L.cookieOptions=i,L.defaultTracking=o,L.autocapture=a,L.flushIntervalMillis=u,L.flushMaxRetries=l,L.flushQueueSize=c,L.identityStorage=d,L.ingestionMetadata=f,L.instanceName=h,L.loggerProvider=g,L.logLevel=m,L.minIdLength=y,L.offline=b,L.partnerId=x,L.plan=S,L.serverUrl=E,L.serverZone=_,L.sessionTimeout=C,L.storageProvider=O,L.trackingOptions=T,L.transport=P,L.useBatch=I,L.fetchRemoteConfig=R,L.networkTrackingOptions=N,L.version=e7,L._optOut=!1,L._cookieStorage=r,L.deviceId=s,L.lastEventId=p,L.lastEventTime=v,L.optOut=w,L.sessionId=k,L.pageCounter=M,L.userId=A,L.debugLogsEnabled=j,L.loggerProvider.enable(j?F.Debug:L.logLevel),L.networkTrackingOptions=N,L}return(0,ea.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(tt(this.apiKey),e)},t}(eR),tI=function(e,t){switch(void 0===e&&(e=tT),void 0===t&&(t={}),e){case"localStorage":return new tu;case"sessionStorage":return new tl;case"none":return new te;default:return new tn((0,ea.pi)((0,ea.pi)({},t),{expirationDays:t.expiration}))}},tR=function(e){return"xhr"===e?new tc:"beacon"===e?new td:new ta},tA=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},tM=function(){var e,t=tA();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=tj(n[0]),i=tj(n[1]);return i&&(e[r]=i),e},{}):{}},tj=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},tN="dclid",tL="fbclid",tD="gbraid",tF="gclid",tU="ko_click_id",tB="li_fat_id",tV="msclkid",tq="rtd_cid",tz="ttclid",tW="twclid",t$="wbraid",tG={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},tH=function(){function e(){}return e.prototype.parse=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2,(0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)({},tG),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=tM();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=tM();return(e={})[tN]=t[tN],e[tL]=t[tL],e[tD]=t[tD],e[tF]=t[tF],e[tU]=t[tU],e[tB]=t[tB],e[tV]=t[tV],e[tq]=t[tq],e[tz]=t[tz],e[tW]=t[tW],e[t$]=t[t$],e},e}();(p=z||(z={})).SET="$set",p.SET_ONCE="$setOnce",p.ADD="$add",p.APPEND="$append",p.PREPEND="$prepend",p.REMOVE="$remove",p.PREINSERT="$preInsert",p.POSTINSERT="$postInsert",p.UNSET="$unset",p.CLEAR_ALL="$clearAll",(v=W||(W={})).REVENUE_PRODUCT_ID="$productId",v.REVENUE_QUANTITY="$quantity",v.REVENUE_PRICE="$price",v.REVENUE_TYPE="$revenueType",v.REVENUE_CURRENCY="$currency",v.REVENUE="$revenue",(g=$||($={})).IDENTIFY="$identify",g.GROUP_IDENTIFY="$groupidentify",g.REVENUE="revenue_amount";var tZ=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},tK=function(e){void 0===e&&(e={});var t,n,r=tA(),i=void 0,o=!1,a=e.trackOn,s=e.trackHistoryChanges,u=e.eventType,l=void 0===u?"[Amplitude] Page Viewed":u,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==i||i.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:l},t=[{}],[4,tX()];case 1:return[2,(n.event_properties=ea.pi.apply(void 0,[ea.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e,n,r,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:if(n=tY(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==i||i.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return o=(r=t).track,[4,d()];case 2:o.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},v=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,ea.mG)(void 0,void 0,void 0,function(){var s,u;return(0,ea.Jh)(this,function(l){switch(l.label){case 0:if(t=a,n=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),o=!0,r&&(r.addEventListener("popstate",v),r.history.pushState=new Proxy(r.history.pushState,{apply:function(e,t,n){var r=(0,ea.CR)(n,3),i=r[0],a=r[1],s=r[2];e.apply(t,[i,a,s]),o&&p()}})),!f())return[3,2];return i.log("Tracking page view event"),u=(s=t).track,[4,d()];case 1:u.apply(s,[l.sent()]),l.label=2;case 2:return[2]}})})},execute:function(e){return(0,ea.mG)(void 0,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:if(!("attribution"===a&&tJ(e)))return[3,2];return null==i||i.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=r.sent(),e.event_type=t.event_type,e.event_properties=(0,ea.pi)((0,ea.pi)({},e.event_properties),t.event_properties),r.label=2;case 2:return n&&e.event_type===l&&(n.pageCounter=n.pageCounter?n.pageCounter+1:1,e.event_properties=(0,ea.pi)((0,ea.pi)({},e.event_properties),{"[Amplitude] Page Counter":n.pageCounter})),[2,e]}})})},teardown:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return r&&(r.removeEventListener("popstate",v),o=!1),[2]})})}}},tX=function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e;return(0,ea.Jh)(this,function(t){switch(t.label){case 0:return e=tZ,[4,new tH().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tJ=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[z.SET]||{},r=t[z.UNSET]||{},i=(0,ea.ev)((0,ea.ev)([],(0,ea.CR)(Object.keys(n)),!1),(0,ea.CR)(Object.keys(r)),!1);return Object.keys(tG).every(function(e){return i.includes(e)})}return!1},tY=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},tQ=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,ea.mG)(void 0,void 0,void 0,function(){var i,o;return(0,ea.Jh)(this,function(a){return i=function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=t1(e);t||r.track(tv,((n={})[tk]=t0(e.id),n[tC]=t0(e.name),n[tO]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=t1(e);t||r.track(tv,((n={})[tk]=t0(e.id),n[tC]=t0(e.name),n[tO]=o,n)),r.track(tg,((i={})[tk]=t0(e.id),i[tC]=t0(e.name),i[tO]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=eu())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},t0=function(e){if("string"==typeof e)return e},t1=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},t2=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return(0,ea.mG)(void 0,void 0,void 0,function(){var i,o;return(0,ea.Jh)(this,function(a){return i=function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(tm,((n={})[tw]=a,n[tx]=t.pathname,n[tS]=e.id,n[tE]=e.text,n[t_]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=eu())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},t5=!1,t4=function(e){t5||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),t5=!0)},t3=function(){var e=eu(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return r(),[2]})})}}};(m=G||(G={})).Unknown="unknown",m.Skipped="skipped",m.Success="success",m.RateLimit="rate_limit",m.PayloadTooLarge="payload_too_large",m.Invalid="invalid",m.Failed="failed",m.Timeout="Timeout",m.SystemError="SystemError",(y=H||(H={})).US="US",y.EU="EU";var t6="Remote config fetch rejected due to timeout after 5 seconds",t8="Unexpected error occurred",t7=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,ea.mG)(r,void 0,void 0,function(){var r,i,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,ea.mG)(r,void 0,void 0,function(){var t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,ea.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,u,l,c,d,f;return(0,ea.Jh)(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:t6})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,ea.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,ea.pi)((0,ea.pi)({},a),{signal:e}))];case 2:if(null===(u=h.sent()))return[2,this.completeRequest({err:t8})];switch(new to().buildStatus(u.status)){case G.Success:return this.attempts=0,[2,this.parseAndStoreConfig(u)];case G.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(l=h.sent(),e.aborted)return[2,this.completeRequest({err:t6})];return[2,this.completeRequest({err:null!==(f=l.message)&&void 0!==f?f:t8})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,ea.mG)(r,void 0,void 0,function(){var n=this;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,ea.mG)(r,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===H.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===H.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),t9=function(e){var t=e.localConfig,n=e.configKeys;return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2,new t7({localConfig:t,configKeys:n})]})})},ne=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,ea.mG)(this,void 0,void 0,function(){var e;return(0,ea.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,t9({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r,i,o;return(0,ea.mG)(this,void 0,void 0,function(){var a,s,u,l,c,d,f,h,p,v,g,m,y;return(0,ea.Jh)(this,function(b){switch(b.label){case 0:if(b.trys.push([0,3,,4]),!(s=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:s=b.sent(),b.label=2;case 2:if(a=s,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(a,null,2)),a&&"autocapture"in a){if("boolean"==typeof a.autocapture&&(this.config.autocapture=a.autocapture),"object"==typeof a.autocapture){if(u=(0,ea.pi)({},a.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=a.autocapture),"object"==typeof a.autocapture.elementInteractions&&(null===(e=a.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===e?void 0:e.length)){u.elementInteractions=(0,ea.pi)({},a.autocapture.elementInteractions),c=null!==(t=(l=u.elementInteractions).pageUrlAllowlist)&&void 0!==t?t:[],d=[];try{for(h=(f=(0,ea.XA)(a.autocapture.elementInteractions.pageUrlAllowlistRegex)).next();!h.done;h=f.next()){p=h.value;try{d.push(new RegExp(p))}catch(e){this.config.loggerProvider.warn("Invalid regex pattern: ".concat(p),e)}}}catch(e){m={error:e}}finally{try{h&&!h.done&&(y=f.return)&&y.call(f)}finally{if(m)throw m.error}}v=c.concat(d),l.pageUrlAllowlist=v,delete l.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,ea.pi)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},u)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,ea.pi)((0,ea.pi)({},this.config.autocapture),u))}this.config.defaultTracking=this.config.autocapture}return this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(n=(o=this.config).requestMetadata)&&void 0!==n||(o.requestMetadata=new eM),(null===(r=this.remoteConfigFetch)||void 0===r?void 0:r.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return g=b.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",g),[3,4];case 4:return[2,this.config]}})})},e}(),nt=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],nn=["div","span","h1","h2","h3","h4","h5","h6"],nr="[Amplitude] Element Clicked",ni="[Amplitude] Element Tag",no="[Amplitude] Element Text",na="[Amplitude] Page URL",ns="https://app.amplitude.com",nu={US:ns,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},nl=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function nc(e){return"function"==typeof e}function nd(e){return nc(null==e?void 0:e.then)}function nf(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var nh=nf(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function np(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var nv=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,ea.XA)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var u=this.initialTeardown;if(nc(u))try{u()}catch(e){i=e instanceof nh?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var c=(0,ea.XA)(l),d=c.next();!d.done;d=c.next()){var f=d.value;try{ny(f)}catch(e){i=null!=i?i:[],e instanceof nh?i=(0,ea.ev)((0,ea.ev)([],(0,ea.CR)(i)),(0,ea.CR)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new nh(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)ny(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&np(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&np(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),ng=nv.EMPTY;function nm(e){return e instanceof nv||e&&"closed"in e&&nc(e.remove)&&nc(e.add)&&nc(e.unsubscribe)}function ny(e){nc(e)?e():e.unsubscribe()}var nb={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},nw={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nw.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,ea.ev)([e,t],(0,ea.CR)(n))):setTimeout.apply(void 0,(0,ea.ev)([e,t],(0,ea.CR)(n)))},clearTimeout:function(e){var t=nw.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function nx(e){nw.setTimeout(function(){var t=nb.onUnhandledError;if(t)t(e);else throw e})}function nS(){}var nE=n_("C",void 0,void 0);function n_(e,t,n){return{kind:e,value:t,error:n}}var nk=null;function nC(e){if(nb.useDeprecatedSynchronousErrorHandling){var t=!nk;if(t&&(nk={errorThrown:!1,error:null}),e(),t){var n=nk,r=n.errorThrown,i=n.error;if(nk=null,r)throw i}}else e()}var nO=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,nm(t)&&t.add(n)):n.destination=nj,n}return(0,ea.ZT)(t,e),t.create=function(e,t,n){return new nR(e,t,n)},t.prototype.next=function(e){this.isStopped?nM(n_("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?nM(n_("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?nM(nE,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(nv),nT=Function.prototype.bind;function nP(e,t){return nT.call(e,t)}var nI=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nA(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nA(e)}else nA(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nA(e)}},e}(),nR=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return nc(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&nb.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&nP(t.next,o),error:t.error&&nP(t.error,o),complete:t.complete&&nP(t.complete,o)}):i=t,a.destination=new nI(i),a}return(0,ea.ZT)(t,e),t}(nO);function nA(e){nb.useDeprecatedSynchronousErrorHandling?nb.useDeprecatedSynchronousErrorHandling&&nk&&(nk.errorThrown=!0,nk.error=e):nx(e)}function nM(e,t){var n=nb.onStoppedNotification;n&&nw.setTimeout(function(){return n(e,t)})}var nj={closed:!0,next:nS,error:function(e){throw e},complete:nS},nN="function"==typeof Symbol&&Symbol.observable||"@@observable";function nL(e){return e}var nD=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof nO||r&&nc(r.next)&&nc(r.error)&&nc(r.complete)&&nm(r)?e:new nR(e,t,n);return nC(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nF(t))(function(t,r){var i=new nR({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[nN]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?nL:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nF(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nF(e){var t;return null!==(t=null!=e?e:nb.Promise)&&void 0!==t?t:Promise}function nU(e){return Symbol.asyncIterator&&nc(null==e?void 0:e[Symbol.asyncIterator])}function nB(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var nV="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function nq(e){return nc(null==e?void 0:e[nV])}function nz(e){return(0,ea.FC)(this,arguments,function(){var t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,ea.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,ea.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,ea.qq)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nW(e){return nc(null==e?void 0:e.getReader)}function n$(e){if(e instanceof nD)return e;if(null!=e){if(nc(e[nN]))return new nD(function(t){var n=e[nN]();if(nc(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(nl(e))return new nD(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(nd(e))return new nD(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,nx)});if(nU(e))return nG(e);if(nq(e))return new nD(function(t){var n,r;try{for(var i=(0,ea.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nW(e))return nG(nz(e))}throw nB(e)}function nG(e){return new nD(function(t){(function(e,t){var n,r,i,o;return(0,ea.mG)(this,void 0,void 0,function(){var a;return(0,ea.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=(0,ea.KL)(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nH(e){return function(t){if(nc(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nZ(e,t,n,r,i){return new nK(e,t,n,r,i)}var nK=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,ea.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(nO);function nX(e,t){return nH(function(n,r){var i=0;n.subscribe(nZ(r,function(n){r.next(e.call(t,n,i++))}))})}function nJ(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function nY(e,t,n){return(void 0===n&&(n=1/0),nc(t))?nY(function(n,r){return nX(function(e,i){return t(n,e,r,i)})(n$(e(n,r)))},n):("number"==typeof t&&(n=t),nH(function(t,r){var i,o,a,s,u,l,c,d,f;return i=n,a=[],s=0,u=0,l=!1,c=function(){!l||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;n$(e(t,u++)).subscribe(nZ(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nZ(r,d,function(){l=!0,c()})),function(){}}))}var nQ=Array.isArray,n0=["addListener","removeListener"],n1=["addEventListener","removeEventListener"],n2=["on","off"];function n5(e,t,n,r){if(nc(n)&&(r=n,n=void 0),r)return n5(e,t,n).pipe((i=r,nX(function(e){return nQ(e)?i.apply(void 0,(0,ea.ev)([],(0,ea.CR)(e))):i(e)})));var i,o=(0,ea.CR)(nc(e.addEventListener)&&nc(e.removeEventListener)?n1.map(function(r){return function(i){return e[r](t,i,n)}}):nc(e.addListener)&&nc(e.removeListener)?n0.map(n4(e,t)):nc(e.on)&&nc(e.off)?n2.map(n4(e,t)):[],2),a=o[0],s=o[1];if(!a&&nl(e))return nY(function(e){return n5(e,t,n)})(n$(e));if(!a)throw TypeError("Invalid event target");return new nD(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return s(t)}})}function n4(e,t){return function(n){return function(r){return e[n](t,r)}}}var n3=nf(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n6=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,ea.ZT)(t,e),t.prototype.lift=function(e){var t=new n8(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new n3},t.prototype.next=function(e){var t=this;nC(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,ea.XA)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;nC(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;nC(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ng:(this.currentObservers=null,i.push(e),new nv(function(){t.currentObservers=null,np(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new nD;return e.source=this,e},t.create=function(e,t){return new n8(e,t)},t}(nD),n8=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,ea.ZT)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:ng},t}(n6);function n7(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new n6}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,u=void 0===s||s;return function(e){var t,r,o,s=0,l=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},f=function(){d(),t=o=void 0,l=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return nH(function(e,p){s++,c||l||d();var v=o=null!=o?o:n();p.add(function(){0!=--s||c||l||(r=n9(h,u))}),v.subscribe(p),!t&&s>0&&(t=new nR({next:function(e){return v.next(e)},error:function(e){c=!0,d(),r=n9(f,i,e),v.error(e)},complete:function(){l=!0,d(),r=n9(f,a),v.complete()}}),n$(e).subscribe(t))})(e)}}function n9(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0===t){e();return}if(!1!==t){var i=new nR({next:function(){i.unsubscribe(),e()}});return n$(t.apply(void 0,(0,ea.ev)([],(0,ea.CR)(n)))).subscribe(i)}}var re=["input","select","textarea"],rt=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,u=e.shouldTrackEventResolver,l=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!l)return!1;if(u)return u(n,r);if(!ro(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(l){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},rn=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},rr=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!re.includes(i)&&!o},ri=function(e){var t="";return rr(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=ri(e),t+=n.split(/(\s+)/).filter(rn).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},ro=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},ra=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},rs=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return rn(r)?r:""}return rs(n)},ru=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:ru(null==e?void 0:e.parentElement,t):null},rl=function(e){if(!e)return{};var t,n,r,i=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);return ra(((t={})[ni]=i,t[no]=ri(e),t[na]=window.location.href.split("?")[0],t))},rc=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},rd=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=ns,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?ns:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===ns&&(this.endpoint=i);var u=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,l,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(l=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===l||l.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;u=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:rl,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==u?void 0:u.close)||void 0===c||c.call(u))}}}),this.notify({action:"page-loaded"})},e}(),rf=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],rh=["type"],rp=["svg","path","g"],rv=["password","hidden"];function rg(e,t){return nH(function(n,r){var i=0;n.subscribe(nZ(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var rm=function(e){function t(t,n){return e.call(this)||this}return(0,ea.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(nv),ry={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ry.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,ea.ev)([e,t],(0,ea.CR)(n))):setInterval.apply(void 0,(0,ea.ev)([e,t],(0,ea.CR)(n)))},clearInterval:function(e){var t=ry.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},rb=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,ea.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ry.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&ry.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,np(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(rm),rw={now:function(){return(rw.delegate||Date).now()},delegate:void 0},rx=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=rw.now,e}(),rS=new(function(e){function t(t,n){void 0===n&&(n=rx.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,ea.ZT)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(rx))(rb);function rE(e){return void 0===e&&(e=1/0),nY(nL,e)}var r_=new nD(function(e){return e.complete()});function rk(e){return e&&nc(e.schedule)}function rC(e){return e[e.length-1]}function rO(e){return rk(rC(e))?e.pop():void 0}function rT(e,t){return void 0===t&&(t=0),nH(function(n,r){n.subscribe(nZ(r,function(n){return nJ(r,e,function(){return r.next(n)},t)},function(){return nJ(r,e,function(){return r.complete()},t)},function(n){return nJ(r,e,function(){return r.error(n)},t)}))})}function rP(e,t){return void 0===t&&(t=0),nH(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rI(e,t){if(!e)throw Error("Iterable cannot be null");return new nD(function(n){nJ(n,t,function(){var r=e[Symbol.asyncIterator]();nJ(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rR(e,t){return t?function(e,t){if(null!=e){if(nc(e[nN]))return n$(e).pipe(rP(t),rT(t));if(nl(e))return new nD(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(nd(e))return n$(e).pipe(rP(t),rT(t));if(nU(e))return rI(e,t);if(nq(e))return new nD(function(n){var r;return nJ(n,t,function(){r=e[nV](),nJ(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return nc(null==r?void 0:r.return)&&r.return()}});if(nW(e))return rI(nz(e),t)}throw nB(e)}(e,t):n$(e)}function rA(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=rO(t),i=(e=1/0,"number"==typeof rC(t)?t.pop():e);return t.length?1===t.length?n$(t[0]):rE(i)(rR(t,r)):r_}function rM(e){return e<=0?function(){return r_}:nH(function(t,n){var r=0;t.subscribe(nZ(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function rj(e){return e instanceof Date&&!isNaN(e)}var rN=nf(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rL(e){throw new rN(e)}(b=Z||(Z={})).ClickObservable="clickObservable",b.ChangeObservable="changeObservable",b.NavigateObservable="navigateObservable",b.MutationObservable="mutationObservable";var rD=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new rd}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:nt,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:nn,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var u="@amplitude/plugin-autocapture-browser",l=[],c=function(){var e,t,n=n5(document,"click",{capture:!0}).pipe(nX(function(e){return f(e,"click")}),n7()),r=n5(document,"change",{capture:!0}).pipe(nX(function(e){return f(e,"change")}),n7());window.navigation&&(t=n5(window.navigation,"navigate").pipe(nX(function(e){return f(e,"navigate")}),n7()));var i=new nD(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(nX(function(e){return f(e,"mutation")}),n7());return(e={})[Z.ClickObservable]=n,e[Z.ChangeObservable]=r,e[Z.NavigateObservable]=t,e[Z.MutationObservable]=i,e},d=function(e,t){var n,r,i,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),u="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},l=t.getAttribute("aria-label"),c=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),d=rs(t),f=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,ea.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,ea.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),u={tag:s},l=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);l.length&&(u.index=l.indexOf(e),u.indexOfType=l.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(u.prevSib=String(c));var d=e.getAttribute("id");d&&(u.id=String(d));var f=Array.from(e.classList);f.length&&(u.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!rf.includes(e.name)}),v=!rr(e);if(!rv.includes(String(e.getAttribute("type")))&&!rp.includes(s))try{for(var g=(0,ea.XA)(p),m=g.next();!m.done;m=g.next()){var y=m.value;(!v||rh.includes(y.name))&&(h[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return Object.keys(h).length&&(u.attrs=h),u}(e)}),0):[],r[ni]=s,r[no]=ri(t),r["[Amplitude] Element Position Left"]=null==u.left?null:Math.round(u.left),r["[Amplitude] Element Position Top"]=null==u.top?null:Math.round(u.top),r["[Amplitude] Element Aria Label"]=l,r["[Amplitude] Element Attributes"]=c,r["[Amplitude] Element Parent Label"]=d,r[na]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===s&&"click"===e&&t instanceof HTMLAnchorElement&&(f["[Amplitude] Element Href"]=t.href),ra(f)},f=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=ru(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=d(r.type,i))}return r};return{name:u,type:"enrichment",setup:function(t,n){return(0,ea.mG)(void 0,void 0,void 0,function(){var r,i,o,a,f,h,p,v,g,m;return(0,ea.Jh)(this,function(y){var b,w,x,S,E,_,k,C,O,T,P,I,R,A,M,j,N,L,D,F,U,B,V,q,z,W,$,G,H,Z,K,X,J,Y;return"undefined"==typeof document||(r=rt(e,e.cssSelectorAllowlist),i=rt(e,e.actionClickAllowlist),w=(b={allObservables:o=c(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,x=b.allObservables,S=b.options,E=b.shouldTrackEvent,O=rA((_=x.clickObservable).pipe(nH(function(e,t){var n,r=!1;e.subscribe(nZ(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),rg(function(e){var t=(0,ea.CR)(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),_.pipe((k=S.debounceTime,void 0===C&&(C=rS),nH(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+k,r=C.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nZ(t,function(e){r=e,i=C.now(),n||(n=C.schedule(a,k),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),nX(function(){return"timeout"}))),a=_.pipe((void 0===T&&(T=rS),P=0,I=T,void 0===P&&(P=0),void 0===R&&(R=rS),A=-1,null!=I&&(rk(I)?R=I:A=I),M=new nD(function(e){var t=rj(P)?+P-R.now():P;t<0&&(t=0);var n=0;return R.schedule(function(){e.closed||(e.next(n++),0<=A?this.schedule(void 0,A):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rE(1)(rR(e,rO(e)))}(n.pipe(rM(1),nH(function(e,t){e.subscribe(nZ(t,nS))})),r.pipe(e(t)))}:nY(function(e,n){return n$(t(e,n)).pipe(rM(1),nX(function(){return e}))})}(function(){return M})),rg(rc),rg(function(e){return E("click",e.closestTrackedAncestor)}),nH(function(e,t){var n=[];return e.subscribe(nZ(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),n$(O).subscribe(nZ(t,function(){var e=n;n=[],t.next(e)},nS)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,nr);try{for(var i=(0,ea.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==w||w.track(r,a.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),l.push(a),N=(j={allObservables:o,getEventProperties:d,amplitude:n,shouldTrackEvent:r}).amplitude,L=j.allObservables,D=j.getEventProperties,F=j.shouldTrackEvent,f=L.changeObservable.pipe(rg(rc),rg(function(e){return F("change",e.closestTrackedAncestor)})).subscribe(function(e){null==N||N.track("[Amplitude] Element Changed",D("change",e.closestTrackedAncestor))}),l.push(f),B=(U={allObservables:o,options:e,getEventProperties:d,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,V=U.allObservables,q=U.options,z=U.getEventProperties,W=U.shouldTrackEvent,$=U.shouldTrackActionClick,G=V.clickObservable,H=V.mutationObservable,Z=V.navigateObservable,K=G.pipe(rg(function(e){return!W("click",e.closestTrackedAncestor)}),nX(function(e){var t=ru(e.event.target,q.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=z(e.type,e.closestTrackedAncestor)),e}),rg(rc),rg(function(e){return $("click",e.closestTrackedAncestor)})),X=[H],Z&&X.push(Z),J=rA.apply(void 0,(0,ea.ev)([],(0,ea.CR)(X),!1)),h=K.pipe((Y=function(e){return J.pipe(rM(1),function(e,t){var n=rj(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?rL:o,s=n.scheduler,u=void 0===s?rS:s,l=n.meta,c=void 0===l?null:l;if(null==r&&null==i)throw TypeError("No timeout provided.");return nH(function(e,t){var n,o,s=null,l=0,d=function(e){o=nJ(t,u,function(){try{n.unsubscribe(),n$(a({meta:c,lastValue:s,seen:l})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nZ(t,function(e){null==o||o.unsubscribe(),l++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),l||d(null!=r?"number"==typeof r?r:+r-u.now():i)})}({first:500,with:function(){return r_}}),nX(function(){return e}))},nH(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nZ(t,function(e){null==n||n.unsubscribe(),n$(Y(e,r++)).subscribe(n=nZ(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==B||B.track(nr,z("click",e.closestTrackedAncestor))}),l.push(h),null===(g=null==t?void 0:t.loggerProvider)||void 0===g||g.log("".concat(u," has been successfully added.")),window.opener&&s.enabled&&(p=e.cssSelectorAllowlist,v=e.actionClickAllowlist,null===(m=s.messenger)||void 0===m||m.setup((0,ea.pi)((0,ea.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:nu[t.serverZone]}),{isElementSelectable:rt(e,(0,ea.ev)((0,ea.ev)([],(0,ea.CR)(p),!1),(0,ea.CR)(v),!1)),cssSelectorAllowlist:p,actionClickAllowlist:v})))),[2]})})},execute:function(e){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,ea.Jh)(this,function(i){try{for(t=(e=(0,ea.XA)(l)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},rF=function(){function e(e){this.request=e}return Object.defineProperty(e.prototype,"headers",{get:function(){if(this._headers)return this._headers;var e=this.request.headers;if(Array.isArray(e))this._headers=e.reduce(function(e,t){var n=(0,ea.CR)(t,2),r=n[0],i=n[1];return e[r]=i,e},{});else if(e instanceof Headers){var t={};e.forEach(function(e,n){t[n]=e}),this._headers=t}else"object"==typeof e&&(this._headers=e);return this._headers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=eu();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=rB(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),e}(),rU=function(){function e(e){this.body=e}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return rB(this.body,100)},enumerable:!1,configurable:!0}),e}();function rB(e,t){var n,r,i,o,a=eu(),s=null==a?void 0:a.TextEncoder;if(s){if("string"==typeof e)o=e,i=new s().encode(o).length;else if(e instanceof Blob)i=(o=e).size;else if(e instanceof URLSearchParams)o=e,i=new s().encode(o.toString()).length;else if(ArrayBuffer.isView(e))i=(o=e).byteLength;else if(e instanceof ArrayBuffer)i=(o=e).byteLength;else if(e instanceof FormData){var u=0,l=0;try{for(var c=(0,ea.XA)(e.entries()),d=c.next();!d.done;d=c.next()){var f=(0,ea.CR)(d.value,2),h=f[0],p=f[1];if(u+=h.length,"string"==typeof p)u+=new s().encode(p).length;else{if(!(p instanceof Blob))return;u+=p.size}if(++l>=t)return}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}i=u}else if(e instanceof ReadableStream){o=e;return}return i}}var rV=function(){function e(e){this.response=e}return Object.defineProperty(e.prototype,"headers",{get:function(){var e;if(this._headers)return this._headers;if(this.response.headers instanceof Headers){var t=this.response.headers,n={};return null===(e=null==t?void 0:t.forEach)||void 0===e||e.call(t,function(e,t){n[t]=e}),this._headers=n,n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if(void 0!==this._bodySize)return this._bodySize;var e,t,n=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),r=n?parseInt(n,10):void 0;return this._bodySize=r,r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e}(),rq=function(){function e(e,t,n){this.statusCode=e,this.headersString=t,this.size=n}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.headersString){var e,t,n={},r=this.headersString.split("\r\n");try{for(var i=(0,ea.XA)(r),o=i.next();!o.done;o=i.next()){var a=o.value,s=(0,ea.CR)(a.split(": "),2),u=s[0],l=s[1];u&&l&&(n[u]=l)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n}},enumerable:!1,configurable:!0}),e}(),rz=function(){function e(e,t,n,r,i,o,a,s,u,l,c){void 0===a&&(a=0),this.type=e,this.method=t,this.timestamp=n,this.startTime=r,this.url=i,this.requestWrapper=o,this.status=a,this.duration=s,this.responseWrapper=u,this.error=l,this.endTime=c}return e.prototype.toSerializable=function(){var e,t,n,r;return Object.fromEntries(Object.entries({type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers,requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(n=this.responseWrapper)||void 0===n?void 0:n.headers,responseBodySize:null===(r=this.responseWrapper)||void 0===r?void 0:r.bodySize}).filter(function(e){var t=(0,ea.CR)(e,2);return void 0!==(t[0],t[1])}))},e}(),rW=function(e,t){void 0===t&&(t=eN()),this.callback=e,this.id=t},r$=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=eu();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var e=eu();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var n,r,i,o,a,s,u;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var l=null===(i=null===(r=null===(n=this.globalScope)||void 0===n?void 0:n.XMLHttpRequest)||void 0===r?void 0:r.prototype)||void 0===i?void 0:i.open,c=null===(s=null===(a=null===(o=this.globalScope)||void 0===o?void 0:o.XMLHttpRequest)||void 0===a?void 0:a.prototype)||void 0===s?void 0:s.send;l&&c&&this.observeXhr(l,c);var d=null===(u=this.globalScope)||void 0===u?void 0:u.fetch;d&&this.observeFetch(d),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(n){var r;try{n.callback(e)}catch(e){null===(r=t.logger)||void 0===r||r.debug("an unexpected error occurred while triggering event callbacks",e)}})},e.prototype.handleNetworkRequestEvent=function(e,t,n,r,i,o,a){if(void 0!==o&&void 0!==a){var s,u,l,c,d="GET";"object"==typeof t&&null!==t&&"url"in t&&"method"in t?(u=t.url,d=t.method):u=null===(s=null==t?void 0:t.toString)||void 0===s?void 0:s.call(t),d=(null==n?void 0:n.method)||d,r&&(l=r.status),i&&(c={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},l=0);var f=Math.floor(performance.now()-a),h=Math.floor(o+f),p=new rz(e,d,o,o,u,n,l,f,r,c,h);this.triggerEventCallbacks(p)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null===(e=Date.now)||void 0===e?void 0:e.call(Date),durationStart:null===(t=null==performance?void 0:performance.now)||void 0===t?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(n,r){return(0,ea.mG)(t,void 0,void 0,function(){var t,i,o,a,s;return(0,ea.Jh)(this,function(u){switch(u.label){case 0:try{t=this.getTimestamps()}catch(e){null===(a=this.logger)||void 0===a||a.debug("an unexpected error occurred while retrieving timestamps",e)}u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e(n,r)];case 2:return i=u.sent(),[3,4];case 3:return o=u.sent(),[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,r?new rF(r):void 0,i?new rV(i):void 0,o,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){null===(s=this.logger)||void 0===s||s.debug("an unexpected error occurred while handling fetch",e)}if(i)return[2,i];throw o}})})})},e.prototype.observeXhr=function(e,t){if(this.globalScope&&e&&t){var n=this.globalScope.XMLHttpRequest.prototype,r=this;n.open=function(){for(var t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=(0,ea.CR)(i,2),s=a[0],u=a[1];try{this.$$AmplitudeAnalyticsEvent=(0,ea.pi)({method:s,url:null===(t=null==u?void 0:u.toString)||void 0===t?void 0:t.call(u)},r.getTimestamps())}catch(e){null===(n=r.logger)||void 0===n||n.debug("an unexpected error occurred while calling xhr open",e)}return e.apply(this,i)},n.send=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,o=e[0],a=i.$$AmplitudeAnalyticsEvent;return i.addEventListener("loadend",function(){var e;try{var t=i.getAllResponseHeaders(),n=i.getResponseHeader("content-length"),s=new rq(i.status,t,n?parseInt(n,10):void 0),u=new rU(o);a.status=i.status,r.handleNetworkRequestEvent("xhr",{url:a.url,method:a.method},u,s,void 0,a.startTime,a.durationStart)}catch(t){null===(e=r.logger)||void 0===e||e.debug("an unexpected error occurred while handling xhr send",t)}}),t.apply(i,e)}}},e}()),rG="500-599";function rH(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function rZ(e,t){var n,r,i=t.split(",");try{for(var o=(0,ea.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value,u=(0,ea.CR)(s.split("-").map(Number),2),l=u[0],c=u[1];if(e===l&&void 0===c||e>=l&&e<=c)return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function rK(e){var t;if(e)try{var n=null===(t=eu())||void 0===t?void 0:t.location.href,r=new URL(e,n),i=r.searchParams.toString(),o=r.hash.replace("#",""),a=r.href,s=r.host;r.hash="",r.search="";var u=r.href;return{query:i,fragment:o,href:a,hrefWithoutQueryOrHash:u,host:s}}catch(e){return}}(K||(K={})).NetworkObservable="networkObservable";var rX=function(e){void 0===e&&(e={});var t,n="@amplitude/plugin-network-capture-browser",r=[],i=function(){var e,n=new nD(function(e){var n=new rW(function(t){var n={event:t,timestamp:Date.now(),type:"network"};e.next(n)});return r$.subscribe(n,t),function(){r$.unsubscribe(n)}});return(e={})[K.NetworkObservable]=n,e};return{name:n,type:"enrichment",setup:function(o,a){return(0,ea.mG)(void 0,void 0,void 0,function(){var s;return(0,ea.Jh)(this,function(u){var l,c,d,f;return"undefined"==typeof document||(c=(l={allObservables:i(),networkTrackingOptions:e,amplitude:a}).allObservables,d=l.networkTrackingOptions,f=l.amplitude,s=c.networkObservable.pipe(rg(function(e){return function(e,t){void 0===t&&(t={});var n,r,i=rK(e.url);if(!i)return!1;var o=i.host;return!(!1!==t.ignoreAmplitudeRequests&&(rH(o,"*.amplitude.com")||rH(o,"amplitude.com"))||(null===(n=t.ignoreHosts)||void 0===n?void 0:n.find(function(e){return rH(o,e)})))&&(!!t.captureRules||void 0===e.status||!!rZ(e.status,rG))&&(!t.captureRules||((0,ea.ev)([],(0,ea.CR)(t.captureRules),!1).reverse().find(function(t){var n;return n=e.status,void 0!==(r=t.hosts&&!t.hosts.find(function(e){return rH(o,e)})?void 0:!n&&0!==n||!!rZ(n,t.statusCodeRange||rG))}),!!r))}(e.event,d)})).subscribe(function(e){var t,n,r,i=e.event,o=rK(i.url);if(o){var a=null===(n=i.responseWrapper)||void 0===n?void 0:n.bodySize,s=null===(r=i.requestWrapper)||void 0===r?void 0:r.bodySize,u=((t={})["[Amplitude] URL"]=o.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=o.query,t["[Amplitude] URL Fragment"]=o.fragment,t["[Amplitude] Request Method"]=i.method,t["[Amplitude] Status Code"]=i.status,t["[Amplitude] Start Time"]=i.startTime,t["[Amplitude] Completion Time"]=i.endTime,t["[Amplitude] Duration"]=i.duration,t["[Amplitude] Request Body Size"]=s,t["[Amplitude] Response Body Size"]=a,t["[Amplitude] Request Type"]=i.type,t);null==f||f.track("[Amplitude] Network Request",u)}}),r.push(s),null==(t=null==o?void 0:o.loggerProvider)||t.log("".concat(n," has been successfully added."))),[2]})})},execute:function(e){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n,i;return(0,ea.Jh)(this,function(o){try{for(t=(e=(0,ea.XA)(r)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]})})}}},rJ="dclid",rY="fbclid",rQ="gbraid",r0="gclid",r1="ko_click_id",r2="li_fat_id",r5="msclkid",r4="rtd_cid",r3="ttclid",r6="twclid",r8="wbraid",r7={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},r9=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ie=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,ea._T)(e,["referrer","referring_domain"]),s=t||{},u=(s.referrer,s.referring_domain),l=(0,ea._T)(s,["referrer","referring_domain"]);if(it(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(l),d=r9(o||"")!==r9(u||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},it=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},ir=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ii=function(){function e(){}return e.prototype.parse=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2,(0,ea.pi)((0,ea.pi)((0,ea.pi)((0,ea.pi)({},r7),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=el();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=el();return(e={})[rJ]=t[rJ],e[rY]=t[rY],e[rQ]=t[rQ],e[r0]=t[r0],e[r1]=t[r1],e[r2]=t[r2],e[r5]=t[r5],e[r4]=t[r4],e[r3]=t[r3],e[r6]=t[r6],e[r8]=t[r8],e},e}(),io=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=(0,ea.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:ir(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=r7,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,ea.mG)(this,void 0,void 0,function(){var e,t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=ea.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||eW(this.sessionTimeout,this.lastEventTime),!ie(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ii().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,eG(Object.entries((0,ea.pi)((0,ea.pi)({},r7),t)).reduce(function(e,t){var r,i=(0,ea.CR)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new eV)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),ia=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ea.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),es(this._init((0,ea.pi)((0,ea.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return(0,ea.mG)(this,void 0,void 0,function(){var o,a,s,u,l,c=this;return(0,ea.Jh)(this,function(d){var f,h,p,v,g;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(f=t.apiKey,h=t,p=this,void 0===h&&(h={}),(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,u,l,c,d,v,g,m,y,b,w,x,S,E,_,k,C,O,T,P,I,R,A,M,j,N,L,D,F,U,B,V,q,z,W,$;return(0,ea.Jh)(this,function(G){var H,Z,K;switch(G.label){case 0:if(e=h.identityStorage||tT,x={},!(e!==tT))return[3,1];return n="",[3,5];case 1:if(!(null!==(E=null===(S=h.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return r=E,[3,4];case 2:return[4,(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:return[4,new tn().isEnabled()];case 1:if(!a.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=H?H:location.hostname).split("."),t=[],n="AMP_TLDTEST",r=e.length-2;r>=0;--r)t.push(e.slice(r).join("."));r=0,a.label=2;case 2:if(!(r<t.length))return[3,7];return[4,(o=new tn({domain:"."+(i=t[r])})).set(n,1)];case 3:return a.sent(),[4,o.get(n)];case 4:if(!a.sent())return[3,6];return[4,o.remove(n)];case 5:return a.sent(),[2,"."+i];case 6:return r++,[3,2];case 7:return[2,""]}})})];case 3:r=G.sent(),G.label=4;case 4:n=r,G.label=5;case 5:return t=ea.pi.apply(void 0,[(x.domain=n,x.expiration=365,x.sameSite="Lax",x.secure=!1,x.upgrade=!0,x),h.cookieOptions]),[4,(Z=i=tI(h.identityStorage,t),void 0===(K=null===(k=null===(_=h.cookieOptions)||void 0===_?void 0:_.upgrade)||void 0===k||k)&&(K=!0),(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,u;return(0,ea.Jh)(this,function(l){switch(l.label){case 0:return e="".concat("amp","_").concat(f.substring(0,6)),[4,Z.getRaw(e)];case 1:if(!(t=l.sent()))return[2,{optOut:!1}];if(!K)return[3,3];return[4,Z.remove(e)];case 2:l.sent(),l.label=3;case 3:return r=(n=(0,ea.CR)(t.split("."),6))[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],[2,{deviceId:r,userId:th(i),sessionId:tf(a),lastEventId:tf(u),lastEventTime:tf(s),optOut:!!o}]}})}))];case 6:return o=G.sent(),[4,i.get(tt(f))];case 7:return a=G.sent(),s=el(),u=null!==(I=null!==(P=null!==(T=null!==(O=null!==(C=h.deviceId)&&void 0!==C?C:s.ampDeviceId)&&void 0!==O?O:s.deviceId)&&void 0!==T?T:null==a?void 0:a.deviceId)&&void 0!==P?P:o.deviceId)&&void 0!==I?I:eN(),l=null!==(R=null==a?void 0:a.lastEventId)&&void 0!==R?R:o.lastEventId,c=null!==(A=null==a?void 0:a.lastEventTime)&&void 0!==A?A:o.lastEventTime,d=null!==(j=null!==(M=h.optOut)&&void 0!==M?M:null==a?void 0:a.optOut)&&void 0!==j?j:o.optOut,v=null!==(N=null==a?void 0:a.sessionId)&&void 0!==N?N:o.sessionId,g=null!==(D=null!==(L=h.userId)&&void 0!==L?L:null==a?void 0:a.userId)&&void 0!==D?D:o.userId,p.previousSessionDeviceId=null!==(F=null==a?void 0:a.deviceId)&&void 0!==F?F:o.deviceId,p.previousSessionUserId=null!==(U=null==a?void 0:a.userId)&&void 0!==U?U:o.userId,m={ipAddress:null===(V=null===(B=h.trackingOptions)||void 0===B?void 0:B.ipAddress)||void 0===V||V,language:null===(z=null===(q=h.trackingOptions)||void 0===q?void 0:q.language)||void 0===z||z,platform:null===($=null===(W=h.trackingOptions)||void 0===W?void 0:W.platform)||void 0===$||$},y=null==a?void 0:a.pageCounter,b=null==a?void 0:a.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(w=new tP(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,u,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,l,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,v,h.sessionTimeout,h.storageProvider,m,h.transport,h.useBatch,h.fetchRemoteConfig,g,y,b,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return G.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new te),[2,w]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(v=o,(0,ea.mG)(void 0,void 0,void 0,function(){var e;return(0,ea.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new ne(v)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!eJ(this.config.defaultTracking))return[3,7];return a=eJ((g=this.config).defaultTracking)&&g.defaultTracking&&"object"==typeof g.defaultTracking&&g.defaultTracking.attribution&&"object"==typeof g.defaultTracking.attribution?(0,ea.pi)({},g.defaultTracking.attribution):{},this.webAttribution=new io(a,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(u=Number.isNaN(Number((s=el()).ampSessionId))?void 0:Number(s.ampSessionId),this.setSessionId(null!==(i=null!==(r=null!==(n=t.sessionId)&&void 0!==n?n:u)&&void 0!==r?r:this.config.sessionId)&&void 0!==i?i:Date.now()),(l=ex(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(t3()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new eD).promise];case 10:return d.sent(),[4,this.add(new e9).promise];case 11:return d.sent(),[4,this.add(new eF).promise];case 12:if(d.sent(),t4(this.config),!eX(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(t2()).promise];case 13:d.sent(),d.label=14;case 14:if(!eX(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tQ()).promise];case 15:d.sent(),d.label=16;case 16:if(!eY(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(tK(e4(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!e1(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rD(e2(this.config))).promise];case 19:d.sent(),d.label=20;case 20:if(!e0(this.config.autocapture))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(rX(e5(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),l.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),eS(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),eE(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(eN()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),es(Promise.resolve());if(e===this.config.sessionId)return es(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,eQ(this.config.defaultTracking)&&(r&&i&&n.push(this.track(tb,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return eQ(this.config.defaultTracking)&&n.push(this.track(ty,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,es(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tR(e)},t.prototype.identify=function(t,n){if(e6(t)){var r=t._q;t._q=[],t=e3(new eV,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(e6(r)){var o=r._q;r._q=[],r=e3(new eV,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(e6(t)){var r=t._q;t._q=[],t=e3(new ez,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,ea.mG)(this,void 0,void 0,function(){var n,r,i;return(0,ea.Jh)(this,function(o){return n=Date.now(),r=eW(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===ty||t.event_type===tb||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,ea.pi)((0,ea.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(eK),is=function(e){return function(){var t=(0,ea.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},iu=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,ea.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},il=function(e,t){return function(){var n,r,i={};try{for(var o=(0,ea.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=iu(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},ic=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n(),u=s.logger,l=s.logLevel;if(l&&l<F.Debug||!l||!u)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var d=e.apply(i,o);return d&&d.promise?d.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),u.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),u.debug(JSON.stringify(c,null,2))),d}};(w=X||(X={})).US="US",w.EU="EU",w.STAGING="STAGING";var id="[Amplitude]",ih="".concat(id," Session Replay ID"),ip=X.US,iv="".concat(id," Session Replay Debug"),ig="amp-mask";(x=J||(J={})).GET_SR_PROPS="get-sr-props",x.DEBUG_INFO="debug-info",x.FETCH_REQUEST="fetch-request",x.METADATA="metadata";var im=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,n=this.logger[e];return"function"==typeof n?(null!==(t=n.__rrweb_original__)&&void 0!==t?t:n).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),iy=function(){return{flushMaxRetries:2,logLevel:F.Warn,loggerProvider:new eP,transportProvider:new ta}},ib=function(e){function t(t,n){var r,i=this,o=iy();return(i=e.call(this,(0,ea.pi)((0,ea.pi)({transportProvider:o.transportProvider,loggerProvider:new im(n.loggerProvider||o.loggerProvider)},n),{apiKey:t}))||this).flushMaxRetries=void 0!==n.flushMaxRetries&&n.flushMaxRetries<=o.flushMaxRetries?n.flushMaxRetries:o.flushMaxRetries,i.apiKey=t,i.sampleRate=n.sampleRate||0,i.serverZone=n.serverZone||ip,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig,i.storeType=null!==(r=n.storeType)&&void 0!==r?r:"idb",n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.debugMode&&(i.debugMode=n.debugMode),n.experimental&&(i.experimental=n.experimental),i}return(0,ea.ZT)(t,e),t}(eR),iw=n(56624);(S=Y||(Y={})).Unknown="unknown",S.Skipped="skipped",S.Success="success",S.RateLimit="rate_limit",S.PayloadTooLarge="payload_too_large",S.Invalid="invalid",S.Failed="failed",S.Timeout="Timeout",S.SystemError="SystemError";var ix=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,E=e.code||0,_=this.buildStatus(E);switch(_){case Y.Success:return{status:_,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case Y.Invalid:return{status:_,statusCode:E,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case Y.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(v=e.error)&&void 0!==v?v:""}};case Y.RateLimit:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(x=e.exceeded_daily_quota_users)&&void 0!==x?x:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case Y.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?Y.Success:429===e?Y.RateLimit:413===e?Y.PayloadTooLarge:408===e?Y.Timeout:e>=400&&e<500?Y.Invalid:e>=500?Y.Failed:Y.Unknown},e}();(E=Q||(Q={})).US="US",E.EU="EU",E.STAGING="STAGING";var iS="Remote config fetch rejected due to timeout after 5 seconds",iE="Unexpected error occurred",i_=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,ea.mG)(r,void 0,void 0,function(){var r,i,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,ea.mG)(r,void 0,void 0,function(){var t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,ea.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,u,l,c,d,f;return(0,ea.Jh)(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:iS})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,ea.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,ea.pi)((0,ea.pi)({},a),{signal:e}))];case 2:if(null===(u=h.sent()))return[2,this.completeRequest({err:iE})];switch(new ix().buildStatus(u.status)){case Y.Success:return this.attempts=0,[2,this.parseAndStoreConfig(u)];case Y.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(l=h.sent(),e.aborted)return[2,this.completeRequest({err:iS})];return[2,this.completeRequest({err:null!==(f=l.message)&&void 0!==f?f:iE})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,ea.mG)(r,void 0,void 0,function(){var n=this;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,ea.mG)(r,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===Q.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===Q.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),ik=function(e){var t=e.localConfig,n=e.configKeys;return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2,new i_({localConfig:t,configKeys:n})]})})},iC="medium",iO=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r,i=n?(r=n.type,n.hasAttribute("data-rr-is-password")?"password":r?r.toLowerCase():null):"";if(!i)return!1;if(["password","hidden","email","tel"].includes(i)||n.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return iO(e,iC,n)}},iT=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:iC}),n){if(n.closest("."+ig)||(null!==(r=t.maskSelector)&&void 0!==r?r:[]).some(function(e){return n.closest(e)}))return!0;if(n.closest(".amp-unmask")||(null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some(function(e){return n.closest(e)}))return!1}return iO(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:iC,n)},iP=function(e,t){return function(n,r){return iT(e,t,r)?n.replace(/[^\s]/g,"*"):n}},iI=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t},iR=function(){var e=eu();return(null==e?void 0:e.location)?e.location.href:""},iA=function(e,t){return t||(e===X.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===X.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},iM=function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=eu()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return n=(t=i.sent()).usage,r=t.quota,[2,{totalStorageSize:n?Math.round(n/1024):0,percentOfQuota:n&&r?Math.round((n/r+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},ij=function(e){var t=(0,ea.pi)({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},iN=function(e,t){var n=document.createDocumentFragment(),r=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{n.querySelector(e)}catch(n){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0})).length)return e};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e},iL=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return(0,ea.mG)(this,void 0,void 0,function(){var i,o,a,s,u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,E;return(0,ea.Jh)(this,function(_){switch(_.label){case 0:(i=(0,ea.pi)({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,_.label=1;case 1:return _.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return a=_.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return s=_.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return u.interactionConfig=_.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return l.loggingConfig=_.sent(),(a||s)&&(o={},a&&(o.sr_sampling_config=a),s&&(o.sr_privacy_config=s)),[3,7];case 6:return c=_.sent(),this.localConfig.loggerProvider.warn(c.message),i.captureEnabled=!1,[3,7];case 7:if(!o)return[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}];if(d=o.sr_sampling_config,f=o.sr_privacy_config,d&&Object.keys(d).length>0?(Object.prototype.hasOwnProperty.call(d,"capture_enabled")?i.captureEnabled=d.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(d,"sample_rate")&&(i.sampleRate=d.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),f){h=null!==(t=i.privacyConfig)&&void 0!==t?t:{},p={defaultMaskLevel:null!==(r=null!==(n=f.defaultMaskLevel)&&void 0!==n?n:h.defaultMaskLevel)&&void 0!==r?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},v=function(e){var t,n,r,i,o,a,s,u,l,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=(0,ea.XA)(null!==(s=e.blockSelector)&&void 0!==s?s:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var p=(0,ea.XA)(null!==(u=e.maskSelector)&&void 0!==u?u:[]),v=p.next();!v.done;v=p.next()){var h=v.value;c[h]="mask"}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var g=(0,ea.XA)(null!==(l=e.unmaskSelector)&&void 0!==l?l:[]),m=g.next();!m.done;m=g.next()){var h=m.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}return c},g=(0,ea.pi)((0,ea.pi)({},v(h)),v(f));try{for(y=(m=(0,ea.XA)(Object.entries(g))).next();!y.done;y=m.next())w=(b=(0,ea.CR)(y.value,2))[0],x=b[1],"mask"===x?p.maskSelector.push(w):"block"===x?p.blockSelector.push(w):"unmask"===x&&p.unmaskSelector.push(w)}catch(e){S={error:e}}finally{try{y&&!y.done&&(E=m.return)&&E.call(m)}finally{if(S)throw S.error}}i.privacyConfig=iN(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:ij(i)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}]}})})},e}(),iD="Failed to store session replay events in IndexedDB",iF="1.22.10",iU=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue((0,ea.pi)((0,ea.pi)({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(0);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,ea.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return r.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var n,r;return void 0===t&&(t=!0),(0,ea.mG)(this,void 0,void 0,function(){var i,o,a,s,u,l,c,d,f,h,p,v;return(0,ea.Jh)(this,function(g){switch(g.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(a=iR(),s=iF,u=e.sampleRate,l=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null===(n=e.version)||void 0===n?void 0:n.type)||"standalone","/").concat((null===(r=e.version)||void 0===r?void 0:r.version)||s),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];g.label=1;case 1:return g.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":s,"X-Client-Library":c,"X-Client-Url":a.substring(0,1e3),"X-Client-Sample-Rate":"".concat(u)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(iA(e.serverZone,this.trackServerUrl),"?").concat(l.toString()),f)];case 2:if(null===(h=g.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)this.handleReponse(h.status,e);else{p="";try{p=JSON.stringify(h.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(h.status,": ").concat(p)})}return[3,4];case 3:return v=g.sent(),this.completeRequest({context:e,err:v}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new to().buildStatus(e)){case D.Success:this.handleSuccessResponse(t);break;case D.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue((0,ea.pi)((0,ea.pi)({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}();let iB=(e,t)=>t.some(t=>e instanceof t),iV=new WeakMap,iq=new WeakMap,iz=new WeakMap,iW={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return iV.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return i$(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function i$(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(i$(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return iz.set(t,e),t}(e);if(iq.has(e))return iq.get(e);let n="function"==typeof(t=e)?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(iG(this),e),i$(this.request)}:function(...e){return i$(t.apply(iG(this),e))}:(t instanceof IDBTransaction&&function(e){if(iV.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});iV.set(e,t)}(t),iB(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,iW):t;return n!==e&&(iq.set(e,n),iz.set(n,e)),n}let iG=e=>iz.get(e),iH=["get","getKey","getAll","getAllKeys","count"],iZ=["put","add","delete","clear"],iK=new Map;function iX(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(iK.get(t))return iK.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=iZ.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||iH.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return iK.set(t,o),o}iW={...a=iW,get:(e,t,n)=>iX(e,t)||a.get(e,t,n),has:(e,t)=>!!iX(e,t)||a.has(e,t)};let iJ=["continue","continuePrimaryKey","advance"],iY={},iQ=new WeakMap,i0=new WeakMap,i1={get(e,t){if(!iJ.includes(t))return e[t];let n=iY[t];return n||(n=iY[t]=function(...e){iQ.set(this,i0.get(this)[t](...e))}),n}};async function*i2(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,i1);for(i0.set(n,t),iz.set(n,iG(t));t;)yield n,t=await (iQ.get(n)||t.continue()),iQ.delete(n)}function i5(e,t){return t===Symbol.asyncIterator&&iB(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&iB(e,[IDBIndex,IDBObjectStore])}iW={...s=iW,get:(e,t,n)=>i5(e,t)?i2:s.get(e,t,n),has:(e,t)=>i5(e,t)||s.has(e,t)};var i4=function(){function e(e){var t,n,r,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=new Blob([t]).size;return new Blob(e).size+n>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(n=e.maxInterval)&&void 0!==n?n:this.maxInterval,this.maxPersistedEventsSize=null!==(r=e.maxPersistedEventsSize)&&void 0!==r?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();(_=ee||(ee={})).RECORDING="recording",_.SENT="sent";var i3="sessionCurrentSequence",i6="sequencesToSend",i8=function(){var e=eu();return new Promise(function(t,n){if(!e)return n(Error("Global scope not found"));if(!e.indexedDB)return n(Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store");r.onupgradeneeded=function(){1===r.result.version&&(r.result.close(),r.transaction&&r.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},r.onsuccess=function(){t(r.result)}}catch(e){n(e)}})},i7=function(e){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},i9=function(e){var t,n;return e.objectStoreNames.contains(i3)||(n=e.createObjectStore(i3,{keyPath:"sessionId"})),e.objectStoreNames.contains(i6)||(t=e.createObjectStore(i6,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},oe=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return(0,ea.mG)(n,void 0,void 0,function(){var e,t,n,r,i,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=a.sent(),a.label=2;case 2:if(!t)return[3,4];return r=(n=t.value).sessionId,i=n.events,e.push({events:i,sequenceId:t.key,sessionId:r}),[4,t.continue()];case 3:return t=a.sent(),[3,2];case 4:return[2,e];case 5:return o=a.sent(),this.loggerProvider.warn("".concat(iD,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return(0,ea.mG)(n,void 0,void 0,function(){var t,n,r;return(0,ea.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(i3,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(i6,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(i3,{sessionId:e,events:[]})];case 3:return i.sent(),[2,(0,ea.pi)((0,ea.pi)({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(iD,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return(0,ea.mG)(n,void 0,void 0,function(){var n,r,i,o,a,s;return(0,ea.Jh)(this,function(u){switch(u.label){case 0:return u.trys.push([0,10,,11]),[4,(n=this.db.transaction(i3,"readwrite")).store.get(e)];case 1:if(r=u.sent())return[3,3];return[4,n.store.put({sessionId:e,events:[t]})];case 2:return u.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(r.events,t))return[3,5];return i=r.events,[4,n.store.put({sessionId:e,events:[t]})];case 4:return u.sent(),[3,7];case 5:return o=r.events.concat(t),[4,n.store.put({sessionId:e,events:o})];case 6:u.sent(),u.label=7;case 7:return[4,n.done];case 8:if(u.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(a=u.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:a}];case 10:return s=u.sent(),this.loggerProvider.warn("".concat(iD,": ").concat(s)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return(0,ea.mG)(n,void 0,void 0,function(){var n;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(i6,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(iD,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return(0,ea.mG)(n,void 0,void 0,function(){var e;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(i6,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(iD,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return(0,ea.mG)(n,void 0,void 0,function(){var t,n,r,i,o,a,s,u=this;return(0,ea.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,6,,7]),[4,i8()];case 1:if(!(t=l.sent()))return[2];n=function(e,t){return(0,ea.mG)(u,void 0,void 0,function(){var n,r,i=this;return(0,ea.Jh)(this,function(o){switch(o.label){case 0:return n=t.sessionSequences,r=[],Object.keys(n).forEach(function(o){var a=parseInt(o,10),s=n[a];if(a===t.currentSequenceId){var u=s.events.map(function(t){return(0,ea.mG)(i,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(u)}else s.status!==ee.SENT&&r.push(i.storeSendingEvents(e,s.events))}),[4,i7(r)];case 1:return o.sent(),[2]}})})},r="".concat(e_,"_").concat(this.apiKey.substring(0,10)),l.label=2;case 2:return l.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(r),[4,new Promise(function(t){i.onsuccess=function(r){return(0,ea.mG)(u,void 0,void 0,function(){var i,o,a,s=this;return(0,ea.Jh)(this,function(u){switch(u.label){case 0:if(!(o=(i=r&&r.target.result)&&i[0]))return[3,2];return a=[],Object.keys(o).forEach(function(t){var r=parseInt(t,10),i=o[r];if(e===r)a.push(n(r,i));else{var u=i.sessionSequences;Object.keys(u).forEach(function(e){var t=parseInt(e,10);u[t].status!==ee.SENT&&a.push(s.storeSendingEvents(r,u[t].events))})}}),[4,i7(a)];case 1:u.sent(),u.label=2;case 2:return t(),[2]}})})}})];case 3:return l.sent(),(o=eu())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return a=l.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(a)),[3,5];case 5:return[3,7];case 6:return s=l.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(s,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},n.apiKey=t.apiKey,n.db=t.db,n}return(0,ea.ZT)(t,e),t.new=function(e,n,r){return(0,ea.mG)(this,void 0,void 0,function(){var i,o,a,s;return(0,ea.Jh)(this,function(u){switch(u.label){case 0:var l;return u.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(l="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let a=indexedDB.open(e,1),s=i$(a);return r&&a.addEventListener("upgradeneeded",e=>{r(i$(a.result),e.oldVersion,e.newVersion,i$(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(l,0,{upgrade:i9})];case 1:return[2,e.sent()]}})}))];case 1:return o=u.sent(),[4,(a=new t((0,ea.pi)((0,ea.pi)({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return u.sent(),[2,a];case 3:return s=u.sent(),n.loggerProvider.warn("".concat(iD,": ").concat(s)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,ea.Jh)(this,function(s){switch(s.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=s.sent()))return[2,void 0];return[2,[t]];case 2:n=[],s.label=3;case 3:return s.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(r=ea.XA.apply(void 0,[s.sent()])).next(),s.label=5;case 5:if(i.done)return[3,7];t=i.value,n.push(t),s.label=6;case 6:return i=r.next(),[3,5];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}return[7];case 10:return[2,n]}})})},t}(i4),ot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,ea.ZT)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=(0,ea.ev)([],(0,ea.CR)(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=(0,ea.CR)(e,2),n=t[0],r=t[1],i=r.sessionId,o=r.events;return{sequenceId:Number(n),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){var n;return(0,ea.Jh)(this,function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]})})},t.prototype.storeSendingEvents=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(i4),on=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,a=e.payloadBatcher,s=e.storeType;return(0,ea.mG)(void 0,void 0,void 0,function(){var e,u,l,c,d,f;function h(t){return void 0===t&&(t=!1),(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return[2,e.flush(t)]})})}return(0,ea.Jh)(this,function(p){switch(p.label){case 0:if(e=new iU((0,ea.pi)((0,ea.pi)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:a})),u=function(){return new ot({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},l=function(){return(0,ea.mG)(void 0,void 0,void 0,function(){var e;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:return[4,oe.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return e=a.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:u()]}})})},"idb"!==s)return[3,2];return[4,l()];case 1:return d=p.sent(),[3,3];case 2:d=u(),p.label=3;case 3:return c=d,f=function(n){var r=n.events,i=n.sessionId,a=n.deviceId,s=n.sequenceId;t.debugMode&&iM().then(function(e){var n=e.totalStorageSize,r=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(n," KB, percentage of quota: ").concat(r,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:r,sessionId:i,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:a,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return(0,ea.mG)(void 0,void 0,void 0,function(){return(0,ea.Jh)(this,function(e){switch(e.label){case 0:return[4,c.cleanUpSessionEventsStore(i,s)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var n=e.sessionId,r=e.deviceId;c.storeCurrentSequence(n).then(function(e){e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var n=e.event,r=e.sessionId,i=e.deviceId;c.addEventToCurrentSequence(r,n.data).then(function(e){return e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return(0,ea.mG)(void 0,void 0,void 0,function(){var e;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return[4,c.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach(function(e){f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:h}]}})})},or=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach(function(e){n.set(e.name,e.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null===(t=this.managers.get(r.type))||void 0===t||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})})},e.prototype.flush=function(e){return(0,ea.mG)(this,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.flush(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e}(),oi=((k=oi||{})[k.DomContentLoaded=0]="DomContentLoaded",k[k.Load=1]="Load",k[k.FullSnapshot=2]="FullSnapshot",k[k.IncrementalSnapshot=3]="IncrementalSnapshot",k[k.Meta=4]="Meta",k[k.Custom=5]="Custom",k[k.Plugin=6]="Plugin",k),oo=((C=oo||{})[C.Mutation=0]="Mutation",C[C.MouseMove=1]="MouseMove",C[C.MouseInteraction=2]="MouseInteraction",C[C.Scroll=3]="Scroll",C[C.ViewportResize=4]="ViewportResize",C[C.Input=5]="Input",C[C.TouchMove=6]="TouchMove",C[C.MediaInteraction=7]="MediaInteraction",C[C.StyleSheetRule=8]="StyleSheetRule",C[C.CanvasMutation=9]="CanvasMutation",C[C.Font=10]="Font",C[C.Log=11]="Log",C[C.Drag=12]="Drag",C[C.StyleDeclaration=13]="StyleDeclaration",C[C.Selection=14]="Selection",C[C.AdoptedStyleSheet=15]="AdoptedStyleSheet",C[C.CustomElement=16]="CustomElement",C),oa=((O=oa||{})[O.MouseUp=0]="MouseUp",O[O.MouseDown=1]="MouseDown",O[O.Click=2]="Click",O[O.ContextMenu=3]="ContextMenu",O[O.DblClick=4]="DblClick",O[O.Focus=5]="Focus",O[O.Blur=6]="Blur",O[O.TouchStart=7]="TouchStart",O[O.TouchMove_Departed=8]="TouchMove_Departed",O[O.TouchEnd=9]="TouchEnd",O[O.TouchCancel=10]="TouchCancel",O),os=((T=os||{})[T.Mouse=0]="Mouse",T[T.Pen=1]="Pen",T[T.Touch=2]="Touch",T),ou=((P=ou||{})[P["2D"]=0]="2D",P[P.WebGL=1]="WebGL",P[P.WebGL2=2]="WebGL2",P),ol=((I=ol||{})[I.Play=0]="Play",I[I.Pause=1]="Pause",I[I.Seeked=2]="Seeked",I[I.VolumeChange=3]="VolumeChange",I[I.RateChange=4]="RateChange",I),oc=((R=oc||{}).Start="start",R.Pause="pause",R.Resume="resume",R.Resize="resize",R.Finish="finish",R.FullsnapshotRebuilded="fullsnapshot-rebuilded",R.LoadStylesheetStart="load-stylesheet-start",R.LoadStylesheetEnd="load-stylesheet-end",R.SkipStart="skip-start",R.SkipEnd="skip-end",R.MouseInteraction="mouse-interaction",R.EventCast="event-cast",R.CustomEvent="custom-event",R.Flush="flush",R.StateChange="state-change",R.PlayBack="play-back",R.Destroy="destroy",R),od=((A=od||{})[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment",A);function of(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,u,l,c=new Date().getTime()-er.getTime();if(void 0!==et.timeoutMs&&c>et.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=ow((e=o.getAttribute("id"))&&et.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||ow.apply(void 0,(0,ea.ev)([],(0,ea.CR)(Array.from(o.attributes).filter(function(e){return et.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||ow.apply(void 0,(0,ea.ev)([],(0,ea.CR)(Array.from(o.classList).filter(et.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||ow((s=o.tagName.toLowerCase(),et.tagName(s)?{name:s,penalty:2}:null))||[om()],f=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)f&&(d=d.concat(d.filter(ob).map(function(e){return oy(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(ob).map(function(e){return oy(e,f)})));else if("one"==t){var h=(0,ea.CR)(d=d.slice(0,1),1)[0];f&&ob(h)&&(d=[oy(h,f)])}else"none"==t&&(d=[om()],f&&(d=[oy(d[0],f)]));try{for(var p=(u=void 0,(0,ea.XA)(d)),v=p.next();!v.done;v=p.next()){var h=v.value;h.level=a}}catch(e){u={error:e}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}if(i.push(d),i.length>=et.seedMinLength&&(r=oh(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=oh(i,n)),!r&&n)?n():r}function oh(e,t){var n,r,i=oS(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),(0,ea.Jh)(this,function(u){switch(u.label){case 0:if(!(t.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),i=(r=(0,ea.XA)(t[0])).next(),u.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,ea.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:u.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:u.sent(),u.label=11;case 11:return[2]}})}(e));if(i.length>et.threshold)return t?t():null;try{for(var o=(0,ea.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(og(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function op(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function ov(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function og(e){var t=op(e);switch(en.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function om(){return{name:"*",penalty:3}}function oy(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function ob(e){return"html"!==e.name&&!e.name.startsWith("#")}function ow(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(ox);return n.length>0?n:null}function ox(e){return null!=e}function oS(e){return(0,ea.ev)([],(0,ea.CR)(e),!1).sort(function(e,t){return ov(e)-ov(t)})}var oE=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)}),{version:t,events:r}},o_=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&r.push(t)}),{version:t,events:Object.values(r.reduce(function(e,t){var n=t.x,r=t.y,i=t.selector,o=t.timestamp,a=o-o%36e5,s="".concat(n,":").concat(r,":").concat(null!=i?i:"",":").concat(a);return e[s]?e[s].count+=1:e[s]=(0,ea.pi)((0,ea.pi)({},t),{timestamp:a,count:1}),e},{}))}},ok=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type===oa.Click){var o,a=eu();if(a){var s=a.location,u=a.innerHeight,l=a.innerWidth;if(s){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=iw.IM.mirror.getNode(t.id);if(f)try{o=function(e,t){if(er=new Date,e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};en=(n=(et=(0,ea.pi)((0,ea.pi)({},r),void 0)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=of(e,"all",function(){return of(e,"two",function(){return of(e,"one",function(){return of(e,"none")})})});if(i){var o=oS(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),(0,ea.Jh)(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>et.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var u;if(!(i<t.length-1))return[3,5];if(r.counter>et.maxNumberOfTries||(r.counter+=1,(o=(0,ea.ev)([],(0,ea.CR)(t),!1)).splice(i,1),a=op(o),r.visited.has(a)))return[2];if(!(og(o)&&(u=o,en.querySelector(op(u))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,(0,ea.XA)(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),op(i)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=iw.P6.getWindowScroll(a),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:u,viewportWidth:l,pageUrl:s.href,timestamp:Date.now(),type:"click"},v=i();v&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(p)},deviceId:v})}}}}}},oC=function(){function e(e,t){var n=eu();n&&n.navigator&&"function"==typeof n.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(n.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Accept","*/*"),n.send(JSON.stringify(t)),!0},this.basePageUrl=iA(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var n=this.context,r=n.sessionId,i=n.type,o=new URLSearchParams({device_id:e,session_id:String(r),type:String(i),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(a,t)||this.sendXhr(a,t)},e}(),oO=iw.P6.getWindowHeight,oT=iw.P6.getWindowWidth,oP=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(n){var r=e(),i=eu();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:oO(),viewportWidth:oT(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=oT(),this._maxScrollHeight=oO(),this.transport=e}return e.default=function(t,n){return new e(new oC(t,n))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=oT();this._maxScrollX=e.x;var r=e.x+n;r>this._maxScrollWidth&&(this._maxScrollWidth=r),this.timestamp=t}if(e.y>this._maxScrollY){var i=oO();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),oI=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId="".concat(n,"/").concat(t))},oR=Uint8Array,oA=Uint16Array,oM=Uint32Array,oj=new oR([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oN=new oR([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),oL=new oR([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oD=function(e,t){for(var n=new oA(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new oM(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},oF=oD(oj,2),oU=oF[0],oB=oF[1];oU[28]=258,oB[258]=28;for(var oV=oD(oN,0),oq=(oV[0],oV[1]),oz=new oA(32768),oW=0;oW<32768;++oW){var o$=(43690&oW)>>>1|(21845&oW)<<1;o$=(61680&(o$=(52428&o$)>>>2|(13107&o$)<<2))>>>4|(3855&o$)<<4,oz[oW]=((65280&o$)>>>8|(255&o$)<<8)>>>1}for(var oG=function(e,t,n){for(var r,i=e.length,o=0,a=new oA(t);o<i;++o)++a[e[o]-1];var s=new oA(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){r=new oA(1<<t);var u=15-t;for(o=0;o<i;++o)if(e[o])for(var l=o<<4|e[o],c=t-e[o],d=s[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)r[oz[d]>>>u]=l}else for(o=0,r=new oA(i);o<i;++o)r[o]=oz[s[e[o]-1]++]>>>15-e[o];return r},oH=new oR(288),oW=0;oW<144;++oW)oH[oW]=8;for(var oW=144;oW<256;++oW)oH[oW]=9;for(var oW=256;oW<280;++oW)oH[oW]=7;for(var oW=280;oW<288;++oW)oH[oW]=8;for(var oZ=new oR(32),oW=0;oW<32;++oW)oZ[oW]=5;var oK=oG(oH,9,0),oX=oG(oZ,5,0),oJ=function(e){return(e/8>>0)+(7&e&&1)},oY=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof oA?oA:e instanceof oM?oM:oR)(n-t);return r.set(e.subarray(t,n)),r},oQ=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},o0=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},o1=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new oR(0),0];if(1==i){var a=new oR(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],u=n[1],l=0,c=1,d=2;for(n[0]={s:-1,f:s.f+u.f,l:s,r:u};c!=i-1;)s=n[n[l].f<n[d].f?l++:d++],u=n[l!=c&&n[l].f<n[d].f?l++:d++],n[c++]={s:-1,f:s.f+u.f,l:s,r:u};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new oA(f+1),p=o2(n[c-1],h,0);if(p>t){var r=0,v=0,g=p-t,m=1<<g;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var y=o[r].s;if(h[y]>t)v+=m-(1<<p-h[y]),h[y]=t;else break}for(v>>>=g;v>0;){var b=o[r].s;h[b]<t?v-=1<<t-h[b]++-1:++r}for(;r>=0&&v;--r){var w=o[r].s;h[w]==t&&(--h[w],++v)}p=t}return[new oR(h),p]},o2=function(e,t,n){return -1==e.s?Math.max(o2(e.l,t,n+1),o2(e.r,t,n+1)):t[e.s]=n},o5=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new oA(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},o4=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},o3=function(e,t,n){var r=n.length,i=oJ(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},o6=function(e,t,n,r,i,o,a,s,u,l,c){oQ(t,c++,n),++i[256];for(var d,f,h,p,v=o1(i,15),g=v[0],m=v[1],y=o1(o,15),b=y[0],w=y[1],x=o5(g),S=x[0],E=x[1],_=o5(b),k=_[0],C=_[1],O=new oA(19),T=0;T<S.length;++T)O[31&S[T]]++;for(var T=0;T<k.length;++T)O[31&k[T]]++;for(var P=o1(O,7),I=P[0],R=P[1],A=19;A>4&&!I[oL[A-1]];--A);var M=l+5<<3,j=o4(i,oH)+o4(o,oZ)+a,N=o4(i,g)+o4(o,b)+a+14+3*A+o4(O,I)+(2*O[16]+3*O[17]+7*O[18]);if(M<=j&&M<=N)return o3(t,c,e.subarray(u,u+l));if(oQ(t,c,1+(N<j)),c+=2,N<j){d=oG(g,m,0),f=g,h=oG(b,w,0),p=b;var L=oG(I,R,0);oQ(t,c,E-257),oQ(t,c+5,C-1),oQ(t,c+10,A-4),c+=14;for(var T=0;T<A;++T)oQ(t,c+3*T,I[oL[T]]);c+=3*A;for(var D=[S,k],F=0;F<2;++F)for(var U=D[F],T=0;T<U.length;++T){var B=31&U[T];oQ(t,c,L[B]),c+=I[B],B>15&&(oQ(t,c,U[T]>>>5&127),c+=U[T]>>>12)}}else d=oK,f=oH,h=oX,p=oZ;for(var T=0;T<s;++T)if(r[T]>255){var B=r[T]>>>18&31;o0(t,c,d[B+257]),c+=f[B+257],B>7&&(oQ(t,c,r[T]>>>23&31),c+=oj[B]);var V=31&r[T];o0(t,c,h[V]),c+=p[V],V>3&&(o0(t,c,r[T]>>>5&8191),c+=oN[V])}else o0(t,c,d[r[T]]),c+=f[r[T]];return o0(t,c,d[256]),c+f[256]},o8=new oM([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),o7=function(e,t,n,r,i,o){var a=e.length,s=new oR(r+a+5*(1+Math.floor(a/7e3))+i),u=s.subarray(r,s.length-i),l=0;if(!t||a<8)for(var c=0;c<=a;c+=65535){var d=c+65535;d<a?l=o3(u,l,e.subarray(c,d)):(u[c]=o,l=o3(u,l,e.subarray(c,a)))}else{for(var f=o8[t-1],h=f>>>13,p=8191&f,v=(1<<n)-1,g=new oA(32768),m=new oA(v+1),y=Math.ceil(n/3),b=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&v},x=new oM(25e3),S=new oA(288),E=new oA(32),_=0,k=0,c=0,C=0,O=0,T=0;c<a;++c){var P=w(c),I=32767&c,R=m[P];if(g[I]=R,m[P]=I,O<=c){var A=a-c;if((_>7e3||C>24576)&&A>423){l=o6(e,u,0,x,S,E,k,C,T,c-T,l),C=_=k=0,T=c;for(var M=0;M<286;++M)S[M]=0;for(var M=0;M<30;++M)E[M]=0}var j=2,N=0,L=p,D=I-R&32767;if(A>2&&P==w(c-D))for(var F=Math.min(h,A)-1,U=Math.min(32767,c),B=Math.min(258,A);D<=U&&--L&&I!=R;){if(e[c+j]==e[c+j-D]){for(var V=0;V<B&&e[c+V]==e[c+V-D];++V);if(V>j){if(j=V,N=D,V>F)break;for(var q=Math.min(D,V-2),z=0,M=0;M<q;++M){var W=c-D+M+32768&32767,$=g[W],G=W-$+32768&32767;G>z&&(z=G,R=W)}}}R=g[I=R],D+=I-R+32768&32767}if(N){x[C++]=268435456|oB[j]<<18|oq[N];var H=31&oB[j],Z=31&oq[N];k+=oj[H]+oN[Z],++S[257+H],++E[Z],O=c+j,++_}else x[C++]=e[c],++S[e[c]]}}l=o6(e,u,o,x,S,E,k,C,T,c-T,l)}return oY(s,0,r+oJ(l)+i)},o9=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)r+=n[a],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},ae=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},at=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)};let an=e=>{var t,n,r,i,o;return function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):n+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&i)}return n}((t=function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var r=new oR(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},a=0;a<n;++a){if(i+5>r.length){var s=new oR(i+8+(n-a<<1));s.set(r),r=s}var u=e.charCodeAt(a);u<128?o(u):(u<2048?o(192|u>>>6):(u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++a))>>>18),o(128|u>>>12&63)):o(224|u>>>12),o(128|u>>>6&63)),o(128|63&u))}return oY(r,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===n&&(n={}),(r=o9()).p(t),at(o=o7(t,null==(i=n).level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+i.mem,2,4,!0),n),ae(o,o.length-4,r.d()),o),!0)};var ar=function(){function e(e,t,n,r){var i,o,a,s=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(an(e))},this.addCompressedEventToManager=function(e,t){s.eventsManager&&s.deviceId&&s.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:s.deviceId})},this.addCompressedEvent=function(e,t){if(s.worker)s.worker.postMessage({event:e,sessionId:t});else{var n=s.compressEvent(e);s.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null===(e=s.worker)||void 0===e||e.terminate()};var u=eu();this.canUseIdleCallback=u&&"requestIdleCallback"in u,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null===(i=t.performanceConfig)||void 0===i?void 0:i.timeout)||2e3;var l=null!==(o=({}).COMPRESSION_WEBWORKER_BODY)&&void 0!==o?o:r;if((null===(a=this.config.experimental)||void 0===a?void 0:a.useWebWorker)&&u&&u.Worker&&l){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var c=new Worker(URL.createObjectURL(new Blob([l],{type:"application/javascript"})));c.onerror=function(e){t.loggerProvider.error(e)},c.onmessage=function(e){var t=e.data,n=t.compressedEvent,r=t.sessionId;s.addCompressedEventToManager(n,r)},this.worker=c}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var n;this.canUseIdleCallback&&(null===(n=this.config.performanceConfig)||void 0===n?void 0:n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var n=this.taskQueue.shift();if(n){var r=n.event,i=n.sessionId;this.addCompressedEvent(r,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),ai=function(){function e(){this.fetchObserver=null}return e.prototype.start=function(e){this.eventCallback=e,this.observeFetch()},e.prototype.stop=function(){var e;null===(e=this.fetchObserver)||void 0===e||e.call(this),this.fetchObserver=null,this.eventCallback=void 0},e.prototype.notifyEvent=function(e){var t;null===(t=this.eventCallback)||void 0===t||t.call(this,e)},e.prototype.observeFetch=function(){var e=this,t=eu();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return(0,ea.mG)(e,void 0,void 0,function(){var e,i,o,a,s,u,l;return(0,ea.Jh)(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==r?void 0:r.method)||"GET",url:t.toString(),requestHeaders:null==r?void 0:r.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n(t,r)];case 2:return o=c.sent(),a=Date.now(),i.status=o.status,i.duration=a-e,s={},o.headers.forEach(function(e,t){s[t]=e}),i.responseHeaders=s,this.notifyEvent(i),[2,o];case 3:throw u=c.sent(),a=Date.now(),i.duration=a-e,l=u,i.error={name:l.name||"UnknownError",message:l.message||"An unknown error occurred"},this.notifyEvent(i),u;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=n})}},e}(),ao=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.pageLeaveFns=[],this.teardownEventListeners=function(t){var n=eu();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),t||n.addEventListener("blur",e.blurListener),t||n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),t||n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),t||n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents(!1)},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),(0,ea.mG)(e,void 0,void 0,function(){var e,i,o,a;return(0,ea.Jh)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),e=void 0,!((i=this.config)&&t!==J.METADATA)||(e={config:ij(i),version:iF},!r))return[3,2];return[4,iM()];case 1:o=s.sent(),e=(0,ea.pi)((0,ea.pi)({},o),e),s.label=2;case 2:return this.recordCancelCallback?iw.IM.addCustomEvent(t,(0,ea.pi)((0,ea.pi)({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return a=s.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",a),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null===(t=e.networkObservers)||void 0===t||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new im(new eP)}return e.prototype.init=function(e,t){return es(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,a,s,u,l;return(0,ea.mG)(this,void 0,void 0,function(){var c,d,f,h,p,v,g,m,y,b,w,x;return(0,ea.Jh)(this,function(S){switch(S.label){case 0:return this.loggerProvider=new im(t.loggerProvider||new eP),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new oI({sessionId:t.sessionId,deviceId:t.deviceId}),c=this,[4,(0,ea.mG)(void 0,void 0,void 0,function(){var n;return(0,ea.Jh)(this,function(r){switch(r.label){case 0:return[4,ik({localConfig:n=new ib(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new iL(r.sent(),n)]}})})];case 1:return c.joinedConfigGenerator=S.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:f=(d=S.sent()).joinedConfig,h=d.localConfig,p=d.remoteConfig,this.config=f,this.setMetadata(t.sessionId,f,h,p,null===(n=t.version)||void 0===n?void 0:n.version,iF,null===(r=t.version)||void 0===r?void 0:r.type),t.sessionId&&(null===(i=this.config.interactionConfig)||void 0===i?void 0:i.enabled)&&(v=oP.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[v.send(this.getDeviceId.bind(this)).bind(v)],this.scrollHook=v.hook.bind(v)),g=[],"idb"!==(m=this.config.storeType)||(null===(o=eu())||void 0===o?void 0:o.indexedDB)||(m="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(m," for event storage.")),S.label=3;case 3:return S.trys.push([3,5,,6]),[4,on({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:m})];case 4:return y=S.sent(),g.push({name:"replay",manager:y}),[3,6];case 5:return b=S.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(b.toString())),[3,6];case 6:if(!(null===(a=this.config.interactionConfig)||void 0===a?void 0:a.enabled))return[3,10];w=this.config.interactionConfig.batch?o_:oE,S.label=7;case 7:return S.trys.push([7,9,,10]),[4,on({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!==(s=this.config.interactionConfig.trackEveryNms)&&void 0!==s?s:3e4,maxInterval:6e4,payloadBatcher:w,storeType:m})];case 8:return x=S.sent(),g.push({name:"interaction",manager:x}),[3,10];case 9:return b=S.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(b.toString())),[3,10];case 10:return this.eventsManager=new(or.bind.apply(or,(0,ea.ev)([void 0],(0,ea.CR)(g),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new ar(this.eventsManager,this.config,this.getDeviceId()),(null===(l=null===(u=this.config.loggingConfig)||void 0===u?void 0:u.network)||void 0===l?void 0:l.enabled)&&(this.networkObservers=new ai),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return es(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){var n,r,i;return(0,ea.Jh)(this,function(o){switch(o.label){case 0:if((n=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(n),r=t||this.getDeviceId(),this.identifiers=new oI({sessionId:e,deviceId:r}),!(this.joinedConfigGenerator&&n))return[3,2];return[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 1:i=o.sent().joinedConfig,this.config=i,o.label=2;case 2:return this.recordEvents(),[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,n=this.identifiers;if(!t||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var r=this.getShouldRecord(),i={};return r&&((e={})[ih]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[iv]=JSON.stringify({appHash:iI(t.apiKey).toString()}))),this.addCustomRRWebEvent(J.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),(0,ea.mG)(this,void 0,void 0,function(){var n;return(0,ea.Jh)(this,function(r){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,n;n=ex(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==n?n:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,n=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(iI(e.toString()))%1e6/1e6<t);return n||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),n},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==n?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){if((null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,n,r,i=null===(r=null===(n=this.config)||void 0===n?void 0:n.privacyConfig)||void 0===r?void 0:r.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){var r,i,o;return(0,ea.Jh)(this,function(a){switch(a.label){case 0:if(r=[],!(null===(t=null==e?void 0:e.console)||void 0===t?void 0:t.enabled))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.e(881).then(n.bind(n,30111))];case 2:return i=a.sent().getRecordConsolePlugin,r.push(i({level:e.console.levels})),[3,4];case 3:return o=a.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,r.length>0?r:void 0]}})})},e.prototype.recordEvents=function(e){var t,n;return void 0===e&&(e=!0),(0,ea.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,l,c,d,f,h,p=this;return(0,ea.Jh)(this,function(v){switch(v.label){case 0:if(r=this.config,i=this.getShouldRecord(),o=null===(t=this.identifiers)||void 0===t?void 0:t.sessionId,!i||!o||!r)return[2];this.stopRecordingEvents(),null===(n=this.networkObservers)||void 0===n||n.start(function(e){p.addCustomRRWebEvent(J.FETCH_REQUEST,e)}),a=r.privacyConfig,s=r.interactionConfig,u=r.loggingConfig,l=(null==s?void 0:s.enabled)?{mouseInteraction:this.eventsManager&&ok(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:o,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(o,".")),v.label=1;case 1:return v.trys.push([1,3,,4]),c=this,d=iw.IM,h={emit:function(e){if(p.shouldOptOut()){p.loggerProvider.log("Opting session ".concat(o," out of recording due to optOut config.")),p.stopRecordingEvents(),p.sendEvents();return}p.eventCompressor&&p.eventCompressor.enqueueEvent(e,o)},inlineStylesheet:r.shouldInlineStylesheet,hooks:l,maskAllInputs:!0,maskTextClass:ig,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:iP("input",a),maskTextFn:iP("text",a),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return p.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(u)];case 2:return c.recordCancelCallback=d.apply(void 0,[(h.plugins=v.sent(),h)]),this.addCustomRRWebEvent(J.DEBUG_INFO),e&&this.addCustomRRWebEvent(J.METADATA,this.metadata),[3,4];case 3:return f=v.sent(),this.loggerProvider.warn("Failed to initialize session replay:",f),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(e){return"plugin"===e?"@amplitude/plugin-session-replay-browser":"segment"===e?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(e,t,n,r,i,o,a){var s=(null==e?void 0:e.toString())?iI(e.toString()):void 0;this.metadata={joinedConfig:t,localConfig:n,remoteConfig:r,sessionId:e,hashValue:s,sampleRate:t.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:i,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:o}},e}(),aa=function(e){return function(){var t=e.config||iy();return{logger:t.loggerProvider,logLevel:t.logLevel}}},as={init:ic((M=new ao).init.bind(M),"init",aa(M)),setSessionId:ic(M.setSessionId.bind(M),"setSessionId",aa(M)),getSessionId:ic(M.getSessionId.bind(M),"getSessionId",aa(M)),getSessionReplayProperties:ic(M.getSessionReplayProperties.bind(M),"getSessionReplayProperties",aa(M)),flush:ic(M.flush.bind(M),"flush",aa(M)),shutdown:ic(M.shutdown.bind(M),"shutdown",aa(M))},au=as.init,al=as.setSessionId,ac=as.getSessionId,ad=as.getSessionReplayProperties,af=as.flush,ah=as.shutdown,ap="1.16.13",av=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:af,getSessionId:ac,getSessionReplayProperties:ad,init:au,setSessionId:al,shutdown:ah},this.options=(0,ea.pi)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,a;return(0,ea.mG)(this,void 0,void 0,function(){var t;return(0,ea.Jh)(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(ap,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=(0,ea.pi)((0,ea.pi)({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(n=this.options.deviceId)&&void 0!==n?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(r=this.options.privacyConfig)||void 0===r?void 0:r.blockSelector,maskSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.maskSelector,unmaskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.unmaskSelector,defaultMaskLevel:null===(a=this.options.privacyConfig)||void 0===a?void 0:a.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:ap},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental},[4,this.sr.init(e.apiKey,this.srInitOptions).promise];case 1:return s.sent(),[3,3];case 2:return t=s.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){var n,r,i;return(0,ea.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(n=this.options.customSessionId(e)))return[3,3];if(!(n!==this.sr.getSessionId()))return[3,2];return[4,this.sr.setSessionId(n).promise];case 1:o.sent(),o.label=2;case 2:r=this.sr.getSessionReplayProperties(),e.event_properties=(0,ea.pi)((0,ea.pi)({},e.event_properties),r),o.label=3;case 3:return[3,7];case 4:if(!((n=this.config.sessionId)&&n!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(n).promise];case 5:o.sent(),o.label=6;case 6:n&&n===e.session_id&&(r=this.sr.getSessionReplayProperties(),e.event_properties=(0,ea.pi)((0,ea.pi)({},e.event_properties),r)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null===(t=this.config)||void 0===t||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),ag=n(12138).Buffer,am=function(e,t){return(am=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ay(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}am(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ab=function(){return(ab=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function aw(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function ax(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function aS(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aE(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a_(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ak={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},aC=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return Uint8Array.from(t)},aO=function(e,t){void 0===t&&(t=0);for(var n=aC(e),r=n.length,i=r>>2,o=t,a=0;a<i;a++)o=aT(aR(n,a<<2),o);var s=i<<2,u=0;switch(r-s){case 3:u^=n[s+2]<<16,u^=n[s+1]<<8,u^=n[s],o^=u=Math.imul(u=aI(u=Math.imul(u,-862048943),15),461845907);break;case 2:u^=n[s+1]<<8,u^=n[s],o^=u=Math.imul(u=aI(u=Math.imul(u,-862048943),15),461845907);break;case 1:u^=n[s],o^=u=Math.imul(u=aI(u=Math.imul(u,-862048943),15),461845907)}return aP(o^=r)>>>0},aT=function(e,t){var n=e,r=t;return r^=n=Math.imul(n=aI(n=Math.imul(n,-862048943),15),461845907),(r=Math.imul(r=aI(r,13),5))+-430675100|0},aP=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16},aI=function(e,t,n){void 0===n&&(n=32),t>n&&(t%=n);var r=(e&4294967295<<n-t>>>0)>>>0>>>n-t>>>0;return(e<<t|r)>>>0},aR=function(e,t){return void 0===t&&(t=0),aA(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},aA=function(e){return(-16777216&e)>>>24|(16711680&e)>>>8|(65280&e)<<8|(255&e)<<24},aM=function(e,t){var n,r;if(t&&0!==t.length){try{for(var i=aS(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(e)return e}},aj="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),aN=function(){function e(e,t,n,r){void 0===r&&(r=void 0),this.major=e,this.minor=t,this.patch=n,this.preRelease=r}return e.parse=function(t){if(t){var n=new RegExp(aj).exec(t);if(n){var r=Number(n[1]),i=Number(n[2]);if(!(isNaN(r)||isNaN(i)))return new e(r,i,Number(n[4])||0,n[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),aL=function(){function e(){}return e.prototype.evaluate=function(e,t){var n,r,i={},o={context:e,result:i};try{for(var a=aS(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=this.evaluateFlag(o,u);l&&(i[u.key]=l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var n,r,i,o=aS(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(i=this.evaluateSegment(e,t,s)){var u=ab(ab(ab({},t.metadata),s.metadata),i.metadata);i=ab(ab({},i),{metadata:u});break}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.evaluateSegment=function(e,t,n){if(!n.conditions){var r=this.bucket(e,n);return void 0!==r?t.variants[r]:void 0}if(this.evaluateConditions(e,n.conditions)){var r=this.bucket(e,n);if(void 0!==r)return t.variants[r]}},e.prototype.evaluateConditions=function(e,t){var n,r,i,o;try{for(var a=aS(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=!0;try{for(var c=(i=void 0,aS(u)),d=c.next();!d.done;d=c.next()){var f=d.value;if(!(l=this.matchCondition(e,f)))break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(l)return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(e,t){var n=aM(e,t.selector);if(!n)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var r=this.coerceStringArray(n);return!!r&&this.matchSet(r,t.op,t.values)}var i=this.coerceString(n);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return aO(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var n,r,i,o,a=this.coerceString(aM(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),u=this.getHash(s),l=u%100,c=Math.floor(u/100);try{for(var d=aS(t.bucket.allocations),f=d.next();!f.done;f=d.next()){var h=f.value,p=h.range[0],v=h.range[1];if(l>=p&&l<v)try{for(var g=(i=void 0,aS(h.distributions)),m=g.next();!m.done;m=g.next()){var y=m.value,b=y.range[0],w=y.range[1];if(c>=b&&c<w)return y.variant}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return t.variant},e.prototype.matchNull=function(e,t){var n=this.containsNone(t);switch(e){case ak.IS:case ak.CONTAINS:case ak.LESS_THAN:case ak.LESS_THAN_EQUALS:case ak.GREATER_THAN:case ak.GREATER_THAN_EQUALS:case ak.VERSION_LESS_THAN:case ak.VERSION_LESS_THAN_EQUALS:case ak.VERSION_GREATER_THAN:case ak.VERSION_GREATER_THAN_EQUALS:case ak.SET_IS:case ak.SET_CONTAINS:case ak.SET_CONTAINS_ANY:return n;case ak.IS_NOT:case ak.DOES_NOT_CONTAIN:case ak.SET_DOES_NOT_CONTAIN:case ak.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(e,t,n){switch(t){case ak.SET_IS:return this.setEquals(e,n);case ak.SET_IS_NOT:return!this.setEquals(e,n);case ak.SET_CONTAINS:return this.matchesSetContainsAll(e,n);case ak.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,n);case ak.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,n);case ak.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,n);default:return!1}},e.prototype.matchString=function(e,t,n){var r=this;switch(t){case ak.IS:return this.matchesIs(e,n);case ak.IS_NOT:return!this.matchesIs(e,n);case ak.CONTAINS:return this.matchesContains(e,n);case ak.DOES_NOT_CONTAIN:return!this.matchesContains(e,n);case ak.LESS_THAN:case ak.LESS_THAN_EQUALS:case ak.GREATER_THAN:case ak.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return r.parseNumber(e)},this.comparator);case ak.VERSION_LESS_THAN:case ak.VERSION_LESS_THAN_EQUALS:case ak.VERSION_GREATER_THAN:case ak.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return aN.parse(e)},this.versionComparator);case ak.REGEX_MATCH:return this.matchesRegex(e,n);case ak.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,n);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var n=e.toLowerCase();if("true"===n||"false"===n)return t.some(function(e){return e.toLowerCase()===n})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var n,r;try{for(var i=aS(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(e,t,n,r,i){var o=this,a=r(e),s=n.map(function(e){return r(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?n.some(function(n){return o.comparator(e,t,n)}):s.some(function(e){return i(a,t,e)})},e.prototype.comparator=function(e,t,n){switch(t){case ak.LESS_THAN:case ak.VERSION_LESS_THAN:return e<n;case ak.LESS_THAN_EQUALS:case ak.VERSION_LESS_THAN_EQUALS:return e<=n;case ak.GREATER_THAN:case ak.VERSION_GREATER_THAN:return e>n;case ak.GREATER_THAN_EQUALS:case ak.VERSION_GREATER_THAN_EQUALS:return e>=n;default:return!1}},e.prototype.versionComparator=function(e,t,n){var r=e.compareTo(n);switch(t){case ak.LESS_THAN:case ak.VERSION_LESS_THAN:return r<0;case ak.LESS_THAN_EQUALS:case ak.VERSION_LESS_THAN_EQUALS:return r<=0;case ak.GREATER_THAN:case ak.VERSION_GREATER_THAN:return r>0;case ak.GREATER_THAN_EQUALS:case ak.VERSION_GREATER_THAN_EQUALS:return r>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!==(t=Number(e))&&void 0!==t?t:void 0},e.prototype.coerceString=function(e){return null==e?void 0:"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}var r=String(e);try{var i=JSON.parse(r);if(Array.isArray(i)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(r);return o?[o]:void 0}catch(e){var o=this.coerceString(r);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case ak.SET_IS:case ak.SET_IS_NOT:case ak.SET_CONTAINS:case ak.SET_DOES_NOT_CONTAIN:case ak.SET_CONTAINS_ANY:case ak.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var n=new Set(e),r=new Set(t);return n.size===r.size&&a_([],aE(r),!1).every(function(e){return n.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var n,r;if(e.length<t.length)return!1;try{for(var i=aS(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var n,r;try{for(var i=aS(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e}(),aD=function(e,t){var n,r,i=ab({},e),o=[],a=t||Object.keys(i);try{for(var s=aS(a),u=s.next();!u.done;u=s.next()){var l=u.value,c=aF(l,i);c&&o.push.apply(o,a_([],aE(c),!1))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o},aF=function(e,t,n){void 0===n&&(n=[]);var r,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];n.push(o.key);var a=[],s=function(e){if(n.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(n));var r=aF(e,t,n);r&&a.push.apply(a,a_([],aE(r),!1))};try{for(var u=aS(o.dependencies),l=u.next();!l.done;l=u.next()){var c=l.value;s(c)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return a.push(o),n.pop(),delete t[o.key],a}};let aU="function"==typeof atob,aB="function"==typeof btoa,aV="function"==typeof ag,aq="function"==typeof TextDecoder?new TextDecoder:void 0,az="function"==typeof TextEncoder?new TextEncoder:void 0,aW=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),a$=(o={},aW.forEach((e,t)=>o[e]=t),o),aG=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,aH=String.fromCharCode.bind(String),aZ="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),aK=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),aX=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),aJ=aB?e=>btoa(e):aV?e=>ag.from(e,"binary").toString("base64"):e=>{let t,n,r,i,o="",a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=aW[(t=n<<16|r<<8|i)>>18&63]+aW[t>>12&63]+aW[t>>6&63]+aW[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},aY=aV?e=>ag.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(aH.apply(null,e.subarray(n,n+4096)));return aJ(t.join(""))},aQ=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?aH(192|t>>>6)+aH(128|63&t):aH(224|t>>>12&15)+aH(128|t>>>6&63)+aH(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return aH(240|t>>>18&7)+aH(128|t>>>12&63)+aH(128|t>>>6&63)+aH(128|63&t)},a0=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a1=e=>e.replace(a0,aQ),a2=aV?e=>ag.from(e,"utf8").toString("base64"):az?e=>aY(az.encode(e)):e=>aJ(a1(e)),a5=(e,t=!1)=>t?aK(a2(e)):a2(e),a4=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,a3=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return aH((t>>>10)+55296)+aH((1023&t)+56320);case 3:return aH((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return aH((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},a6=e=>e.replace(a4,a3),a8=aU?e=>atob(aX(e)):aV?e=>ag.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!aG.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",r,i;for(let o=0;o<e.length;)t=a$[e.charAt(o++)]<<18|a$[e.charAt(o++)]<<12|(r=a$[e.charAt(o++)])<<6|(i=a$[e.charAt(o++)]),n+=64===r?aH(t>>16&255):64===i?aH(t>>16&255,t>>8&255):aH(t>>16&255,t>>8&255,255&t);return n},a7=aV?e=>aZ(ag.from(e,"base64")):e=>aZ(a8(e).split("").map(e=>e.charCodeAt(0))),a9=aV?e=>ag.from(e,"base64").toString("utf8"):aq?e=>aq.decode(a7(e)):e=>a6(a8(e)),se=e=>aX(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),st={encodeURL:e=>a5(e,!0)};var sn=function(e){function t(n,r){var i=e.call(this,r)||this;return i.statusCode=n,Object.setPrototypeOf(i,t.prototype),i}return ay(t,e),t}(Error),sr=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return ay(t,e),t}(Error),si=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getVariants=function(e,t){return aw(this,void 0,void 0,function(){var n,r,i,o;return ax(this,function(a){switch(a.label){case 0:return n=st.encodeURL(JSON.stringify(e)),r={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":n},(null==t?void 0:t.flagKeys)&&(r["X-Amp-Exp-Flag-Keys"]=st.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(r["X-Amp-Exp-Track"]=t.trackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:r,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new sn(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),so=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getFlags=function(e){return aw(this,void 0,void 0,function(){var t,n;return ax(this,function(r){switch(r.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=st.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(n=r.sent()).status)throw Error("Flags error response: status=".concat(n.status));return[2,JSON.parse(n.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),sa="undefined"!=typeof globalThis?globalThis:n.g||self,ss=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},su=function(){var e=ss();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},sl=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=sa.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(sa.clearInterval(this.poller),this.poller=void 0)},e}(),sc=n(49413);!function(){function e(e){this.amplitudeInstance=e}e.prototype.getUser=function(){var e,t,n,r,i,o,a,s,u,l;return{device_id:null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e.options)||void 0===t?void 0:t.deviceId,user_id:null===(r=null===(n=this.amplitudeInstance)||void 0===n?void 0:n.options)||void 0===r?void 0:r.userId,version:null===(o=null===(i=this.amplitudeInstance)||void 0===i?void 0:i.options)||void 0===o?void 0:o.versionName,language:null===(s=null===(a=this.amplitudeInstance)||void 0===a?void 0:a.options)||void 0===s?void 0:s.language,platform:null===(l=null===(u=this.amplitudeInstance)||void 0===u?void 0:u.options)||void 0===l?void 0:l.platform,os:this.getOs(),device_model:this.getDeviceModel()}},e.prototype.getOs=function(){var e,t,n,r,i,o;return[null===(n=null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e._ua)||void 0===t?void 0:t.browser)||void 0===n?void 0:n.name,null===(o=null===(i=null===(r=this.amplitudeInstance)||void 0===r?void 0:r._ua)||void 0===i?void 0:i.browser)||void 0===o?void 0:o.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(){var e,t,n;return null===(n=null===(t=null===(e=this.amplitudeInstance)||void 0===e?void 0:e._ua)||void 0===t?void 0:t.os)||void 0===n?void 0:n.name}}(),function(){function e(e){this.amplitudeInstance=e}e.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},e.prototype.setUserProperty=function(e){var t,n;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null===(n=e.variant)||void 0===n?void 0:n.value,t))},e.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})}}();var sd=function(){return(sd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function sf(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function sh(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function sp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function sg(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var sm=function(e,t){void 0===t&&(t=!1);var n,r,i=sw(e,t),o=void 0,a=sa.document.cookie.split("; ");try{for(var s=sp(a),u=s.next();!u.done;u=s.next()){var l=u.value,c=sv(l.split("=",2),2),d=c[0],f=c[1];d===i&&(o=decodeURIComponent(f))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(o)try{if(t){var h=atob(o);return JSON.parse(decodeURIComponent(h))}var p=o.split("."),v=void 0;return p.length>=2&&p[1]&&(v=atob(p[1])),{deviceId:p[0],userId:v}}catch(e){return}},sy=function(e){var t=sw(e,!0);try{var n=sa.localStorage.getItem(t);if(!n)return;var r=JSON.parse(n);if("object"!=typeof r)return;return r}catch(e){return}},sb=function(e){var t=sw(e,!0);try{var n=sa.sessionStorage.getItem(t);if(!n)return;var r=JSON.parse(n);if("object"!=typeof r)return;return r}catch(e){return}},sw=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},sx=function(){function e(e,t,n){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return sf(this,void 0,void 0,function(){return sh(this,function(n){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=sm(this.apiKey,!0);return!!(e||(e=sm(this.apiKey,!1))||(e=sy(this.apiKey))||(e=sb(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return sf(this,void 0,void 0,function(){var t,n=this;return sh(this,function(r){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),n.identityStore.removeIdentityListener(t)};n.identityStore.addIdentityListener(t)}),new Promise(function(t,n){sa.setTimeout(n,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),sS=sa.fetch||function(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase() in s}}}};for(var l in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(u())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(l,t.headers[l]);i.send(t.body||null)})},sE=function(){function e(e){this.client=e}return e.prototype.request=function(e){return sf(this,void 0,void 0,function(){return sh(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),s_={request:function(e,t,n,r,i){var o;return o=sf(void 0,void 0,void 0,function(){var i,o;return sh(this,function(a){switch(a.label){case 0:return[4,sS(e,{method:t,headers:n,body:r})];case 1:return o={status:(i=a.sent()).status},[4,i.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==i||i<=0?o:new Promise(function(e,t){sa.setTimeout(function(){t(new sr("Request timeout after "+i+" milliseconds"))},i),o.then(e,t)})}};(j=ei||(ei={})).LocalStorage="localStorage",j.InitialVariants="initialVariants",(N=eo||(eo={})).LocalStorage="storage",N.InitialVariants="initial",N.SecondaryLocalStorage="secondary-storage",N.SecondaryInitialVariants="secondary-initial",N.FallbackInline="fallback-inline",N.FallbackConfig="fallback-config",N.LocalEvaluation="local-evaluation";var sk=function(e){return!e||e===eo.FallbackInline||e===eo.FallbackConfig||e===eo.SecondaryInitialVariants},sC={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:ei.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:s_},sO="1.15.6",sT=function(){function e(e,t){var n,r=this;this.isReady=new Promise(function(e){r.resolve=e}),this.config=e,this.client=t;var i=null!==(n=e.instanceName)&&void 0!==n?n:sC.instanceName;this.queue=new sI(i),this.cache=new sP(i)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e){if(this.cache.shouldTrack(e)){var t=this.getExposureEvent(e);this.queue.push(t)}},e.prototype.getExposureEvent=function(e){var t,n,r,i={eventType:"$exposure",eventProperties:e};return(null===(t=e.metadata)||void 0===t?void 0:t.exposureEvent)?i={eventType:null===(n=e.metadata)||void 0===n?void 0:n.exposureEvent,eventProperties:e}:(null===(r=e.metadata)||void 0===r?void 0:r.deliveryMethod)==="web"&&(i={eventType:"$impression",eventProperties:e}),i},e}(),sP=function(){function e(e){this.isSessionStorageAvailable=sR(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(e),this.isSessionStorageAvailable&&sa.sessionStorage.removeItem("EXP_sent_".concat(e))}return e.prototype.shouldTrack=function(e){if((null===(t=e.metadata)||void 0===t?void 0:t.deliveryMethod)==="web")return!0;this.loadCache();var t,n=this.inMemoryCache[e.flag_key],r=!1;return n&&n.variant===e.variant||(r=!0,this.inMemoryCache[e.flag_key]=e),this.storeCache(),r},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=sa.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&sa.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),sI=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=su(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=sa.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var e,t;if(this.tracker&&0!==this.inMemoryQueue.length){try{for(var n=sp(this.inMemoryQueue),r=n.next();!r.done;r=n.next()){var i=r.value;try{if(!this.tracker(i))return}catch(e){return}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.inMemoryQueue=[],this.poller&&(sa.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=sa.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),sa.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),sR=function(){var e=ss();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},sA=function(){function e(){this.globalScope=ss()}return e.prototype.get=function(e){var t;return null===(t=this.globalScope)||void 0===t?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var n;null===(n=this.globalScope)||void 0===n||n.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null===(t=this.globalScope)||void 0===t||t.localStorage.removeItem(e)},e}(),sM=function(e,t,n){var r=e.substring(e.length-6);return new sN("amp-exp-".concat(t,"-").concat(r),n,sL)},sj=function(e,t,n){void 0===n&&(n=new sA);var r=e.substring(e.length-6);return new sN("amp-exp-".concat(t,"-").concat(r,"-flags"),n)},sN=function(){function e(e,t,n){this.cache={},this.namespace=e,this.storage=t,this.transformer=n}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return sd({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,n;try{for(var r=sp(Object.keys(e)),i=r.next();!i.done;i=r.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,n,r=this.storage.get(this.namespace);try{n=JSON.parse(r)||{}}catch(e){return}var i={};try{for(var o=sp(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var u=void 0;(u=this.transformer?this.transformer(n[s]):n[s])&&(i[s]=u)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),sL=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,n=e.value,r=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var a={};return t?a.key=t:n&&(a.key=n),n&&(a.value=n),i&&(a.metadata=i),r&&(a.payload=r),o&&(a.expKey=o),a}},sD=function(){function e(){this.globalScope=ss()}return e.prototype.get=function(e){var t;return null===(t=this.globalScope)||void 0===t?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var n;null===(n=this.globalScope)||void 0===n||n.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null===(t=this.globalScope)||void 0===t||t.sessionStorage.removeItem(e)},e}(),sF=function(e,t,n,r){var i,o=null==n?void 0:n.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:n,userProperty:a,properties:{key:t,variant:o,source:r},userProperties:((i={})[a]=o,i)}},sU=function(e){return null==e},sB=function(e){return!!sU(e)||e&&0===Object.keys(e).length},sV=function(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.evaluationMode)==="local"},sq=function(){function e(e,t,n,r){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=n,this.scalar=r}return e.prototype.start=function(e){return sf(this,void 0,void 0,function(){return sh(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,n){return sf(this,void 0,void 0,function(){var r=this;return sh(this,function(i){return this.done||(this.timeoutHandle=sa.setTimeout(function(){return sf(r,void 0,void 0,function(){var r,i;return sh(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(r=t+1)<this.attempts&&(i=Math.min(n*this.scalar,this.max),this.backoff(e,r,i)),[3,3];case 3:return[2]}})})},n)),[2]})})},e}(),sz=function(e){if(!e)return{};var t,n,r,i,o={user:e},a=ss();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var u=sp(Object.keys(e.groups)),l=u.next();!l.done;l=u.next()){var c=l.value,d=e.groups[c];if(d.length>0&&d[0]){var f=d[0],h={group_name:f},p=null===(i=null===(r=e.group_properties)||void 0===r?void 0:r[c])||void 0===i?void 0:i[f];p&&Object.keys(p).length>0&&(h.group_properties=p),s[c]=h}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},sW=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},s$=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var n={};return e.key&&(n.key=e.key),e.value&&(n.value=e.value),e.payload&&(n.payload=e.payload),t&&(n.expKey=t),e.metadata&&(n.metadata=e.metadata),n},sG=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),sH=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),sZ=function(){function e(e,t){var n,r,i,o,a,s=this;this.engine=new aL,this.isRunning=!1,this.apiKey=e,this.config=sd(sd(sd({},sC),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null===(n=null==t?void 0:t.serverZone)||void 0===n?void 0:n.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":sC.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null===(r=null==t?void 0:t.serverZone)||void 0===r?void 0:r.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":sC.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<6e4?6e4:null!==(i=t.flagConfigPollingIntervalMillis)&&void 0!==i?i:sC.flagConfigPollingIntervalMillis});var u=null===(o=this.config)||void 0===o?void 0:o.internalInstanceNameSuffix;if(this.isWebExperiment="web"===u,this.poller=new sl(function(){return s.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var l in this.config.initialVariants)this.config.initialVariants[l]=sL(this.config.initialVariants[l]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new sG(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new sH(this.config.exposureTrackingProvider)),this.integrationManager=new sT(this.config,this);var c=new sE(this.config.httpClient||s_);this.flagApi=new so(this.apiKey,this.config.flagsServerUrl,c),this.evaluationApi=new si(this.apiKey,this.config.serverUrl,c);var d=u?"".concat(this.config.instanceName,"-").concat(u):this.config.instanceName;a=this.isWebExperiment?new sD:new sA,this.variants=sM(this.apiKey,d,a),this.flags=sj(this.apiKey,d,a);try{this.flags.load(),this.variants.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){var t;return sf(this,void 0,void 0,function(){var n;return sh(this,function(r){switch(r.label){case 0:if(this.isRunning)return[2];if(this.isRunning=!0,this.setUser(e),n=this.doFlags(),!(null===(t=this.config.fetchOnStart)||void 0===t||t))return[3,2];return[4,Promise.all([this.fetch(e),n])];case 1:return r.sent(),[3,4];case 2:return[4,n];case 3:r.sent(),r.label=4;case 4:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(e,t){return void 0===e&&(e=this.user),sf(this,void 0,void 0,function(){var n;return sh(this,function(r){switch(r.label){case 0:this.setUser(e||{}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.config.debug&&(n instanceof sr?console.debug(n):console.error(n)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var n,r,i=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,i),this.debug("[Experiment] variant for ".concat(e," is ").concat((null===(n=i.variant)||void 0===n?void 0:n.key)||(null===(r=i.variant)||void 0===r?void 0:r.value))),i.variant||{}},e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)sV(this.flags.get(t))||delete e[t];return sd(sd(sd({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null===(e=this.user)||void 0===e||!e.user_properties)return sd({},this.user);var e,t=sd({},this.user.user_properties);return sd(sd({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null===(t=this.user)||void 0===t?void 0:t.user_properties){var n=sd({},e.user_properties);this.user=sd(sd({},e),{user_properties:n})}else this.user=sd({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,n,r=this.addContext(this.user),i=aD(this.flags.getAll(),e),o=sz(r),a=this.engine.evaluate(o,i),s={};try{for(var u=sp(Object.keys(a)),l=u.next();!l.done;l=u.next()){var c=l.value;s[c]=s$(a[c])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s},e.prototype.variantAndSource=function(e,t){var n={};this.config.source===ei.LocalStorage?n=this.localStorageVariantAndSource(e,t):this.config.source===ei.InitialVariants&&(n=this.initialVariantsVariantAndSource(e,t));var r=this.flags.get(e);return(sV(r)||!n.variant&&r)&&(n=this.localEvaluationVariantAndSource(e,r,t)),n},e.prototype.localEvaluationVariantAndSource=function(e,t,n){var r,i={},o=this.evaluate([t.key])[e],a=eo.LocalEvaluation,s=null===(r=null==o?void 0:o.metadata)||void 0===r?void 0:r.default;if(!sU(o)&&!s)return{variant:sW(o),source:a,hasDefaultVariant:!1};if(s&&(i={variant:sW(o),source:a,hasDefaultVariant:!0}),!sU(n))return{variant:sW(n),source:eo.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=this.config.initialVariants[e];if(!sU(u))return{variant:sW(u),source:eo.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var l=sW(this.config.fallbackVariant),c={variant:l,source:eo.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return sB(l)?i:c},e.prototype.localStorageVariantAndSource=function(e,t){var n,r={},i=this.variants.get(e),o=null===(n=null==i?void 0:i.metadata)||void 0===n?void 0:n.default;if(!sU(i)&&!o)return{variant:sW(i),source:eo.LocalStorage,hasDefaultVariant:!1};if(o&&(r={variant:sW(i),source:eo.LocalStorage,hasDefaultVariant:!0}),!sU(t))return{variant:sW(t),source:eo.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var a=this.config.initialVariants[e];if(!sU(a))return{variant:sW(a),source:eo.SecondaryInitialVariants,hasDefaultVariant:r.hasDefaultVariant};var s=sW(this.config.fallbackVariant),u={variant:s,source:eo.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return sB(s)?r:u},e.prototype.initialVariantsVariantAndSource=function(e,t){var n,r={},i=this.config.initialVariants[e];if(!sU(i))return{variant:sW(i),source:eo.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),a=null===(n=null==o?void 0:o.metadata)||void 0===n?void 0:n.default;if(!sU(o)&&!a)return{variant:sW(o),source:eo.LocalStorage,hasDefaultVariant:!1};if(a&&(r={variant:sW(o),source:eo.LocalStorage,hasDefaultVariant:!0}),!sU(t))return{variant:sW(t),source:eo.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var s=sW(this.config.fallbackVariant),u={variant:s,source:eo.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return sB(s)?r:u},e.prototype.fetchInternal=function(e,t,n,r){return sf(this,void 0,void 0,function(){var i,o;return sh(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(n)),n&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,r)];case 2:return i=a.sent(),[4,this.storeVariants(i,r)];case 3:return a.sent(),[2,i];case 4:throw o=a.sent(),n&&this.shouldRetryFetch(o)&&this.startRetries(e,r),o;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(e){var t=sd({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,n){return sf(this,void 0,void 0,function(){var r,i,o,a,s,u,l;return sh(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,sd({timeoutMillis:t},n))];case 2:r=c.sent(),i={};try{for(a=(o=sp(Object.keys(r))).next();!a.done;a=o.next())i[s=a.value]=s$(r[s])}catch(e){u={error:e}}finally{try{a&&!a.done&&(l=o.return)&&l.call(o)}finally{if(u)throw u.error}}return this.debug("[Experiment] Received variants: ",i),[2,i]}})})},e.prototype.doFlags=function(){return sf(this,void 0,void 0,function(){var e,t,n;return sh(this,function(r){switch(r.label){case 0:if(r.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=r.sent(),r.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:sO,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:(null==e?void 0:e.user_id)||(null==e?void 0:e.device_id)?{user_id:null==e?void 0:e.user_id,device_id:null==e?void 0:e.device_id}:void 0})];case 3:return t=r.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((n=r.sent())instanceof sr)this.config.debug&&console.debug(n);else throw n;return[3,5];case 5:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return sf(this,void 0,void 0,function(){var n,r,i,o;return sh(this,function(a){for(o in 0===(n=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),r=function(t){n=n.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)r(o);for(o in n)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return sf(this,void 0,void 0,function(){var n=this;return sh(this,function(r){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new sq(8,500,1e4,1.5),this.retriesBackoff.start(function(){return sf(n,void 0,void 0,function(){return sh(this,function(n){switch(n.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return n.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,n=null===(t=this.userProvider)||void 0===t?void 0:t.getUser(),r=this.integrationManager.getUser(),i=sd(sd(sd({},null==n?void 0:n.user_properties),r.user_properties),null==e?void 0:e.user_properties);return sd(sd(sd(sd({library:"experiment-js-client/".concat(sO)},n),r),e),{user_properties:i})},e.prototype.addContextOrWait=function(e){return sf(this,void 0,void 0,function(){return sh(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==ei.LocalStorage?this.variants.getAll():this.config.source==ei.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==ei.LocalStorage?this.config.initialVariants:this.config.source==ei.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null===(i=null===(r=null===(n=t.variant)||void 0===n?void 0:n.metadata)||void 0===r?void 0:r.trackExposure)||void 0===i||i){this.legacyExposureInternal(e,t.variant,t.source);var n,r,i,o,a,s,u,l,c,d={flag_key:e},f=sk(t.source);if(!f||t.hasDefaultVariant){(null===(o=t.variant)||void 0===o?void 0:o.expKey)&&(d.experiment_key=null===(a=t.variant)||void 0===a?void 0:a.expKey);var h=null===(s=t.variant)||void 0===s?void 0:s.metadata;f||(null==h?void 0:h.default)||((null===(u=t.variant)||void 0===u?void 0:u.key)?d.variant=t.variant.key:(null===(l=t.variant)||void 0===l?void 0:l.value)&&(d.variant=t.variant.value)),h&&(d.metadata=h),null===(c=this.exposureTrackingProvider)||void 0===c||c.track(d),this.integrationManager.track(d)}}},e.prototype.legacyExposureInternal=function(e,t,n){var r,i,o,a,s;if(this.analyticsProvider){var u=sF(this.addContext(this.getUser()),e,t,n);!sk(n)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null===(a=null===(o=this.analyticsProvider)||void 0===o?void 0:o.setUserProperty)||void 0===a||a.call(o,u),null===(s=this.analyticsProvider)||void 0===s||s.track(u)):null===(i=null===(r=this.analyticsProvider)||void 0===r?void 0:r.unsetUserProperty)||void 0===i||i.call(r,u)}},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.config.debug&&console.debug.apply(console,sg([e],sv(t),!1))},e.prototype.shouldRetryFetch=function(e){return!(e instanceof sn)||e.statusCode<400||e.statusCode>=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),sK=function(){function e(e,t){var n,r,i;this.globalScope=ss(),this.userAgent=void 0!==(null===(n=this.globalScope)||void 0===n?void 0:n.navigator)?null===(r=this.globalScope)||void 0===r?void 0:r.navigator.userAgent:void 0,this.ua=new sc.UAParser(this.userAgent).getResult(),this.localStorage=new sA,this.sessionStorage=new sD,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null===(i=this.apiKey)||void 0===i?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,n,r,i,o=(null===(e=this.userProvider)||void 0===e?void 0:e.getUser())||{};return sd({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!==(n=null===(t=this.ua.device)||void 0===t?void 0:t.type)&&void 0!==n?n:"desktop",referring_url:null===(i=null===(r=this.globalScope)||void 0===r?void 0:r.document)||void 0===i?void 0:i.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,n;return[null===(t=e.browser)||void 0===t?void 0:t.name,null===(n=e.browser)||void 0===n?void 0:n.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null===(t=e.os)||void 0===t?void 0:t.name},e.prototype.getBrowser=function(e){var t,n=null===(t=e.browser)||void 0===t?void 0:t.name;return(null==n?void 0:n.includes("Chrom"))&&(n="Chrome"),(null==n?void 0:n.includes("Firefox"))&&(n="Firefox"),(null==n?void 0:n.includes("Safari"))&&(n="Safari"),(null==n?void 0:n.includes("Edge"))&&(n="Edge"),(null==n?void 0:n.includes("Opera"))&&(n="Opera"),n},e.prototype.getCookie=function(){var e,t,n,r,i;if(null===(t=null===(e=this.globalScope)||void 0===e?void 0:e.document)||void 0===t?void 0:t.cookie)return Object.fromEntries(null===(i=null===(r=null===(n=this.globalScope)||void 0===n?void 0:n.document)||void 0===r?void 0:r.cookie)||void 0===i?void 0:i.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var n=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return n.landing_url||(n.landing_url=null===(t=null===(e=this.globalScope)||void 0===e?void 0:e.location)||void 0===t?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(n))),n.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,n,r={};try{var i=new URL(this.globalScope.location.href);try{for(var o=sp(i.searchParams),a=o.next();!a.done;a=o.next()){var s=sv(a.value,2),u=s[0],l=s[1];r[u]=sg(sg([],sv(null!==(n=r[u])&&void 0!==n?n:[]),!1),sv(l.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(r).reduce(function(e,t){var n=sv(t,2),r=n[0],i=n[1];return e[r]=1==i.length?i[0]:i,e},{})}},e}();sa.experimentInstances={};var sX=sa.experimentInstances,sJ=function(e){return(null==e?void 0:e.instanceName)||sC.instanceName},sY=function(e,t){var n=sJ(t),r=null==t?void 0:t.internalInstanceNameSuffix;return r?"".concat(n,".").concat(e,".").concat(r):"".concat(n,".").concat(e)},sQ=function(e,t,n){var r=sY(e,t),i=sX[r];return i||(i=new sZ(e,sd(sd({},t),{userProvider:new sK(null==t?void 0:t.userProvider,e)})),n&&i.addPlugin(n()),sX[r]=i),i};!function(){function e(){}e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return sf(this,void 0,void 0,function(){return sh(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e){return sf(this,void 0,void 0,function(){return sh(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return sC.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){},e.prototype.exposure=function(e){}}();var s0=function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(e,t){return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(t){var n,r;return this.experiment=sQ(n=e.apiKey,r=this.config,function(){return new sx(n,ew.getInstance(sJ(r)),1e4)}),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e}(),s1={experiment:(L=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ea.ZT)(t,e),Object.defineProperty(t.prototype,"experiment",{get:function(){if(void 0!==this.config){var e=this.plugins(s0);if(0===e.length){this.config.loggerProvider.debug("".concat(s0.pluginName," plugin is not found."));return}if(1===e.length)return e[0].experiment;this.config.loggerProvider.debug("Multiple instances of ".concat(s0.pluginName," are found."))}},enumerable:!1,configurable:!0}),t.prototype.initAll=function(t,n){return(0,ea.mG)(this,void 0,void 0,function(){var r,i;return(0,ea.Jh)(this,function(o){switch(o.label){case 0:return r={serverZone:null==n?void 0:n.serverZone,instanceName:null==n?void 0:n.instanceName},e.prototype.add.call(this,{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return(0,ea.mG)(this,void 0,void 0,function(){return(0,ea.Jh)(this,function(n){return e.library="".concat("amplitude-ts-unified","/").concat("1.0.0-beta.2","-").concat(null!==(t=e.library)&&void 0!==t?t:""),[2,e]})})}}),[4,e.prototype.init.call(this,t,(0,ea.pi)((0,ea.pi)({},null==n?void 0:n.analytics),r)).promise];case 1:return o.sent(),[4,e.prototype.add.call(this,new av((0,ea.pi)((0,ea.pi)({},null==n?void 0:n.sr),r))).promise];case 2:return o.sent(),[4,e.prototype.add.call(this,new s0((0,ea.pi)((0,ea.pi)({},null==n?void 0:n.experiment),r))).promise];case 3:return o.sent(),void 0===(i=this.plugin(av.pluginName))?this.config.loggerProvider.debug("".concat(av.pluginName," plugin is not found.")):this.sr=i.sr,[2]}})})},t.prototype.init=function(t,n,r){return void 0===t&&(t=""),e.prototype.init.call(this,t,n,r)},t}(ia))).experiment,sr:L.sr,initAll:ic(L.initAll.bind(L),"initAll",is(L),il(L,["config"])),init:ic(L.init.bind(L),"init",is(L),il(L,["config"])),add:ic(L.add.bind(L),"add",is(L),il(L,["config.apiKey","timeline.plugins"])),remove:ic(L.remove.bind(L),"remove",is(L),il(L,["config.apiKey","timeline.plugins"])),track:ic(L.track.bind(L),"track",is(L),il(L,["config.apiKey","timeline.queue.length"])),logEvent:ic(L.logEvent.bind(L),"logEvent",is(L),il(L,["config.apiKey","timeline.queue.length"])),identify:ic(L.identify.bind(L),"identify",is(L),il(L,["config.apiKey","timeline.queue.length"])),groupIdentify:ic(L.groupIdentify.bind(L),"groupIdentify",is(L),il(L,["config.apiKey","timeline.queue.length"])),setGroup:ic(L.setGroup.bind(L),"setGroup",is(L),il(L,["config.apiKey","timeline.queue.length"])),revenue:ic(L.revenue.bind(L),"revenue",is(L),il(L,["config.apiKey","timeline.queue.length"])),flush:ic(L.flush.bind(L),"flush",is(L),il(L,["config.apiKey","timeline.queue.length"])),getUserId:ic(L.getUserId.bind(L),"getUserId",is(L),il(L,["config","config.userId"])),setUserId:ic(L.setUserId.bind(L),"setUserId",is(L),il(L,["config","config.userId"])),getDeviceId:ic(L.getDeviceId.bind(L),"getDeviceId",is(L),il(L,["config","config.deviceId"])),setDeviceId:ic(L.setDeviceId.bind(L),"setDeviceId",is(L),il(L,["config","config.deviceId"])),reset:ic(L.reset.bind(L),"reset",is(L),il(L,["config","config.userId","config.deviceId"])),getSessionId:ic(L.getSessionId.bind(L),"getSessionId",is(L),il(L,["config"])),setSessionId:ic(L.setSessionId.bind(L),"setSessionId",is(L),il(L,["config"])),extendSession:ic(L.extendSession.bind(L),"extendSession",is(L),il(L,["config"])),setOptOut:ic(L.setOptOut.bind(L),"setOptOut",is(L),il(L,["config"])),setTransport:ic(L.setTransport.bind(L),"setTransport",is(L),il(L,["config"]))},s2=s1.initAll,s5=(s1.experiment,s1.sr,s1.add,s1.extendSession,s1.flush,s1.getDeviceId,s1.getSessionId,s1.getUserId,s1.groupIdentify,s1.identify,s1.logEvent,s1.remove,s1.reset,s1.revenue,s1.setDeviceId,s1.setGroup,s1.setOptOut,s1.setSessionId,s1.setTransport,s1.setUserId,s1.track)},28255:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,v=0,g=0,m=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function w(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return m=g<v?l(y,g++):0,p++,10===m&&(p=1,h++),m}function S(){return l(y,g)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(e){return h=p=1,v=d(y=e),g=0,[]}function k(e){var t,n;return(t=g-1,n=function e(t){for(;x();)switch(m){case t:return g;case 34:case 39:34!==t&&39!==t&&e(m);break;case 40:41===t&&e(t);break;case 92:x()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",P="comm",I="rule",R="decl",A="@keyframes";function M(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function j(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case P:return"";case A:return e.return=e.value+"{"+M(e.children,r)+"}";case I:e.value=e.props.join(",")}return d(n=M(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,a,u,l,d,f,h){for(var p=o-1,v=0===o?a:[""],g=v.length,m=0,y=0,w=0;m<r;++m)for(var x=0,S=c(e,p+1,p=i(y=u[m])),E=e;x<g;++x)(E=(y>0?v[x]+" "+S:s(S,/&\f/g,v[x])).trim())&&(d[w++]=E);return b(e,t,n,0===o?I:l,d,f,h)}function L(e,t,n,r){return b(e,t,n,R,c(e,0,r),c(e,r+1,-1),r)}var D=function(e,t,n){for(var r=0,i=0;r=i,i=S(),38===r&&12===i&&(t[n]=1),!E(i);)x();return c(y,e,g)},F=function(e,t){var n=-1,r=44;do switch(E(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=D(g-1,t,n);break;case 2:e[n]+=k(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=x());return e},U=function(e,t){var n;return n=F(_(e),t),y="",n},B=new WeakMap,V=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=U(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},q=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},z=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case R:e.return=function e(t,n){switch(45^l(t,0)?(((n<<2^l(t,0))<<2^l(t,1))<<2^l(t,2))<<2^l(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+O+t+C+t+t;case 6828:case 4268:return T+t+C+t+t;case 6165:return T+t+C+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+s(t,"shrink","negative")+t;case 5292:return T+t+C+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+C+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(l(t,n+1)){case 109:if(45!==l(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==l(t,n+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==l(t,n+1))break;case 6444:switch(l(t,d(t)-3-(~u(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===l(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(l(t,n+11)){case 114:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case A:return M([w(e,{value:s(e.value,"@","@"+T)})],r);case I:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return M([w(e,{props:[s(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return M([w(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],W=function(e){var t,n,i,a,v,w,C=e.key;if("css"===C){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||z,I={},R=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)I[t[n]]=!0;R.push(e)});var A=(n=(t=[V,q].concat(T,[j,(i=function(e){w.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),D=function(e){var t,n;return M((n=function e(t,n,r,i,a,v,w,_,C){for(var O,T=0,I=0,R=w,A=0,M=0,j=0,D=1,F=1,U=1,B=0,V="",q=a,z=v,W=i,$=V;F;)switch(j=B,B=x()){case 40:if(108!=j&&58==l($,R-1)){-1!=u($+=s(k(B),"&","&\f"),"&\f")&&(U=-1);break}case 34:case 39:case 91:$+=k(B);break;case 9:case 10:case 13:case 32:$+=function(e){for(;m=S();)if(m<33)x();else break;return E(e)>2||E(m)>3?"":" "}(j);break;case 92:$+=function(e,t){for(var n;--t&&x()&&!(m<48)&&!(m>102)&&(!(m>57)||!(m<65))&&(!(m>70)||!(m<97)););return n=g+(t<6&&32==S()&&32==x()),c(y,e,n)}(g-1,7);continue;case 47:switch(S()){case 42:case 47:f(b(O=function(e,t){for(;x();)if(e+m===57)break;else if(e+m===84&&47===S())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:x())}(x(),g),n,r,P,o(m),c(O,2,-2),0),C);break;default:$+="/"}break;case 123*D:_[T++]=d($)*U;case 125*D:case 59:case 0:switch(B){case 0:case 125:F=0;case 59+I:-1==U&&($=s($,/\f/g,"")),M>0&&d($)-R&&f(M>32?L($+";",i,r,R-1):L(s($," ","")+";",i,r,R-2),C);break;case 59:$+=";";default:if(f(W=N($,n,r,T,I,a,_,V,q=[],z=[],R),v),123===B){if(0===I)e($,n,W,W,q,v,R,_,z);else switch(99===A&&110===l($,3)?100:A){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(N(t,W,W,0,0,a,_,V,a,q=[],R),z),a,z,R,_,i?q:z);break;default:e($,W,W,W,[""],z,0,_,z)}}}T=I=M=0,D=U=1,V=$="",R=w;break;case 58:R=1+d($),M=j;default:if(D<1){if(123==B)--D;else if(125==B&&0==D++&&125==(m=g>0?l(y,--g):0,p--,10===m&&(p=1,h--),m))continue}switch($+=o(B),B*D){case 38:U=I>0?1:($+="\f",-1);break;case 44:_[T++]=(d($)-1)*U,U=1;break;case 64:45===S()&&($+=k(x())),A=S(),I=R=d(V=$+=function(e){for(;!E(S());)x();return c(y,e,g)}(g)),B++;break;case 45:45===j&&2==d($)&&(D=0)}}return v}("",null,null,null,[""],t=_(t=e),0,[0],t),y="",n),A)};v=function(e,t,n,r){w=n,D(e?e+"{"+t.styles+"}":t.styles),r&&(F.inserted[t.name]=!0)};var F={key:C,sheet:new r({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:I,registered:{},insert:v};return F.sheet.hydrate(R),F}},93522:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},61830:function(e,t,n){"use strict";n.d(t,{E:function(){return w},T:function(){return h},_:function(){return d},a:function(){return v},c:function(){return y},h:function(){return g},w:function(){return f}});var r=n(97129),i=n(28255),o=n(23258),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(54162),u=n(57083),l=n(60279),c=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,r.useContext)(c)},f=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},h=r.createContext({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),v=function(e){var t=r.useContext(h);return e.theme!==t&&(t=p(t)(e.theme)),r.createElement(h.Provider,{value:t},e.children)},g={}.hasOwnProperty,m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)g.call(t,r)&&(n[r]=t[r]);return n[m]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,l.L)(function(){return(0,s.My)(t,n,r)}),null},w=f(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[m],a=[i],l="";"string"==typeof e.className?l=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var c=(0,u.O)(a,void 0,r.useContext(h));l+=t.key+"-"+c.name;var d={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==m&&(d[f]=e[f]);return d.className=l,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),r.createElement(o,d))})},86501:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(61830),a=n(97129),s=n(54162),u=n(60279),l=n(57083);n(28255),n(6002);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,l.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,u.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,u.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},57083:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(93522),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":l(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)l(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var u=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+u+";";break;default:r+=o+"{"+u+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var u=1;u<e.length;u++)a+=f(n,t,e[u]),o&&(a+=s[u]);h.lastIndex=0;for(var l="";null!==(i=h.exec(a));)l+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+l,styles:a,next:r}}},60279:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(97129),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},54162:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},22808:function(e,t,n){"use strict";var r=n(42126),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,l,c,d,f=!1;t||(t={}),a=t.debug||!1;try{if(u=r(),l=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){a&&console.error("unable to copy using execCommand: ",r),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){a&&console.error("unable to copy using clipboardData: ",r),a&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),d&&document.body.removeChild(d),u()}return f}},55234:function(e,t,n){e.exports={graphlib:n(84833),layout:n(73556),debug:n(63592),util:{time:n(13298).time,notime:n(13298).notime},version:n(51463)}},61644:function(e,t,n){"use strict";var r=n(78301),i=n(18256);e.exports={run:function(e){var t,n,o,a="greedy"===e.graph().acyclicer?i(e,function(t){return e.edge(t).weight}):(t=[],n={},o={},r.forEach(e.nodes(),function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),function(e){r.has(n,e.w)?t.push(e):i(e.w)}),delete n[a])}),t);r.forEach(a,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},1117:function(e,t,n){var r=n(78301),i=n(13298);function o(e,t,n,r,o,a){var s=o[t][a-1],u=i.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},n);o[t][a]=u,e.setParent(u,r),s&&e.setEdge(s,u,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.forEach(i,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s<u;++s)o(e,"borderLeft","_bl",n,a,s),o(e,"borderRight","_br",n,a,s)}})}},92460:function(e,t,n){"use strict";var r=n(78301);function i(e){r.forEach(e.nodes(),function(t){o(e.node(t))}),r.forEach(e.edges(),function(t){o(e.edge(t))})}function o(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();("bt"===t||"rl"===t)&&(r.forEach(e.nodes(),function(t){a(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)})),("lr"===t||"rl"===t)&&(r.forEach(e.nodes(),function(t){s(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"x")&&s(n)}),i(e))}}},40206:function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},63592:function(e,t,n){var r=n(78301),i=n(13298),o=n(84833).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){n.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){n.setNode("layer"+t,{rank:"same"}),r.reduce(e,function(e,t){return n.setEdge(e,t,{style:"invis"}),t})}),n}}},84833:function(e,t,n){var r;try{r=n(83895)}catch(e){}r||(r=window.graphlib),e.exports=r},18256:function(e,t,n){var r=n(78301),i=n(84833).Graph,o=n(40206);e.exports=function(e,t){if(1>=e.nodeCount())return[];var n,l,c,d,f,h,p=(n=t||a,l=new i,c=0,d=0,r.forEach(e.nodes(),function(e){l.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var t=l.edge(e.v,e.w)||0,r=n(e);l.setEdge(e.v,e.w,t+r),d=Math.max(d,l.node(e.v).out+=r),c=Math.max(c,l.node(e.w).in+=r)}),f=r.range(d+c+3).map(function(){return new o}),h=c+1,r.forEach(l.nodes(),function(e){u(f,h,l.node(e))}),{graph:l,buckets:f,zeroIdx:h}),v=function(e,t,n){for(var r,i=[],o=t[t.length-1],a=t[0];e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount()){for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){i=i.concat(s(e,t,n,r,!0));break}}}return i}(p.graph,p.buckets,p.zeroIdx);return r.flatten(r.map(v,function(t){return e.outEdges(t.v,t.w)}),!0)};var a=r.constant(1);function s(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(t,n,s)}),r.forEach(e.outEdges(i.v),function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,u(t,n,a)}),e.removeNode(i.v),a}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},73556:function(e,t,n){"use strict";var r=n(78301),i=n(61644),o=n(52503),a=n(94192),s=n(13298).normalizeRanks,u=n(97616),l=n(13298).removeEmptyRanks,c=n(21060),d=n(1117),f=n(92460),h=n(30909),p=n(62212),v=n(13298),g=n(84833).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?v.time:v.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){var t,n;return t=new g({multigraph:!0,compound:!0}),n=C(e.graph()),t.setGraph(r.merge({},y,k(n,m),r.pick(n,b))),r.forEach(e.nodes(),function(n){var i=C(e.node(n));t.setNode(n,r.defaults(k(i,w),x)),t.setParent(n,e.parent(n))}),r.forEach(e.edges(),function(n){var i=C(e.edge(n));t.setEdge(n,r.merge({},E,k(i,S),r.pick(i,_)))}),t});n(" runLayout",function(){n(" makeSpaceForEdgeLabels",function(){var e;e=t.graph(),e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),n(" removeSelfEdges",function(){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),n(" acyclic",function(){i.run(t)}),n(" nestingGraph.run",function(){c.run(t)}),n(" rank",function(){a(v.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};v.addDummyNode(t,"edge-proxy",i,"_ep")}})}),n(" removeEmptyRanks",function(){l(t)}),n(" nestingGraph.cleanup",function(){c.cleanup(t)}),n(" normalizeRanks",function(){s(t)}),n(" assignRankMinMax",function(){var e;e=0,r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}),n(" removeEdgeLabelProxies",function(){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),n(" normalize.run",function(){o.run(t)}),n(" parentDummyChains",function(){u(t)}),n(" addBorderSegments",function(){d(t)}),n(" order",function(){h(t)}),n(" insertSelfEdges",function(){var e;e=v.buildLayerMatrix(t),r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),n(" adjustCoordinateSystem",function(){f.adjust(t)}),n(" position",function(){p(t)}),n(" positionSelfEdges",function(){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}),n(" removeBorderNodes",function(){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),n(" normalize.undo",function(){o.undo(t)}),n(" fixupEdgeLabelCoords",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),n(" undoCoordinateSystem",function(){f.undo(t)}),n(" translateGraph",function(){(function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,u=a.marginy||0;function l(e){var r=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(e.nodes(),function(t){l(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&l(n)}),t-=s,i-=u,r.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),r.forEach(e.edges(),function(n){var o=e.edge(n);r.forEach(o.points,function(e){e.x-=t,e.y-=i}),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)}),a.width=n-t+s,a.height=o-i+u})(t)}),n(" assignNodeIntersects",function(){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(v.intersectRect(o,n)),i.points.push(v.intersectRect(a,r))})}),n(" reversePoints",function(){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}),n(" acyclic.undo",function(){i.undo(t)})}),n(" updateInputGraph",function(){r.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(e.edges(),function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],x={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_=["labelpos"];function k(e,t){return r.mapValues(r.pick(e,t),Number)}function C(e){var t={};return r.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}},78301:function(e,t,n){var r;try{r={cloneDeep:n(94269),constant:n(48512),defaults:n(82276),each:n(89729),filter:n(75137),find:n(88440),flatten:n(19418),forEach:n(65024),forIn:n(83613),has:n(74981),isUndefined:n(4361),last:n(64149),map:n(17278),mapValues:n(86607),max:n(15492),merge:n(69825),min:n(76712),minBy:n(54419),now:n(91646),pick:n(41305),range:n(17313),reduce:n(96949),sortBy:n(74724),uniqueId:n(46812),values:n(33401),zipObject:n(144)}}catch(e){}r||(r=window._),e.exports=r},21060:function(e,t,n){var r=n(78301),i=n(13298);e.exports={run:function(e){var t,n=i.addDummyNode(e,"root",{},"_root"),o=(t={},r.forEach(e.children(),function(n){!function n(i,o){var a=e.children(i);a&&a.length&&r.forEach(a,function(e){n(e,o+1)}),t[i]=o}(n,1)}),t),a=r.max(r.values(o))-1,s=2*a+1;e.graph().nestingRoot=n,r.forEach(e.edges(),function(t){e.edge(t).minlen*=s});var u=r.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)+1;r.forEach(e.children(),function(t){(function e(t,n,o,a,s,u,l){var c=t.children(l);if(!c.length){l!==n&&t.setEdge(n,l,{weight:0,minlen:o});return}var d=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),h=t.node(l);t.setParent(d,l),h.borderTop=d,t.setParent(f,l),h.borderBottom=f,r.forEach(c,function(r){e(t,n,o,a,s,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,v=c!==h?1:s-u[l]+1;t.setEdge(d,c,{weight:p,minlen:v,nestingEdge:!0}),t.setEdge(h,f,{weight:p,minlen:v,nestingEdge:!0})}),t.parent(l)||t.setEdge(n,d,{weight:0,minlen:s+u[l]})})(e,n,s,u,a,o,t)}),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},52503:function(e,t,n){"use strict";var r=n(78301),i=n(13298);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(t){(function(e,t){var n,r,o,a=t.v,s=e.node(a).rank,u=t.w,l=e.node(u).rank,c=t.name,d=e.edge(t),f=d.labelRank;if(l!==s+1){for(e.removeEdge(t),o=0,++s;s<l;++o,++s)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},n=i.addDummyNode(e,"edge",r,"_d"),s===f&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(a,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,u,{weight:d.weight},c)}})(e,t)})},undo:function(e){r.forEach(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}}},9062:function(e,t,n){var r=n(78301);e.exports=function(e,t,n){var i,o={};r.forEach(n,function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s){t.setEdge(a,s);return}s=r}})}},23175:function(e,t,n){var r=n(78301);e.exports=function(e,t){return r.map(t,function(t){var n=e.inEdges(t);if(!n.length)return{v:t};var i=r.reduce(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}})}},71556:function(e,t,n){var r=n(78301),i=n(84833).Graph;e.exports=function(e,t,n){var o=function(e){for(var t;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(i){var s=e.node(i),u=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||o),r.forEach(e[n](i),function(t){var n=t.v===i?t.w:t.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:e.edge(t).weight+s})}),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),a}},4469:function(e,t,n){"use strict";var r=n(78301);e.exports=function(e,t){for(var n=0,i=1;i<t.length;++i)n+=function(e,t,n){for(var i=r.zipObject(n,r.map(n,function(e,t){return t})),o=r.flatten(r.map(t,function(t){return r.sortBy(r.map(e.outEdges(t),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(Array(s),function(){return 0}),l=0;return r.forEach(o.forEach(function(e){var t=e.pos+a;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;l+=e.weight*n})),l}(e,t[i-1],t[i]);return n}},30909:function(e,t,n){"use strict";var r=n(78301),i=n(99867),o=n(4469),a=n(65732),s=n(71556),u=n(9062),l=n(84833).Graph,c=n(13298);function d(e,t,n){return r.map(t,function(t){return s(e,t,n)})}function f(e,t){r.forEach(t,function(t){r.forEach(t,function(t,n){e.node(t).order=n})})}e.exports=function(e){var t=c.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),s=d(e,r.range(t-1,-1,-1),"outEdges"),h=i(e);f(e,h);for(var p,v=Number.POSITIVE_INFINITY,g=0,m=0;m<4;++g,++m){(function(e,t){var n=new l;r.forEach(e,function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,function(t,n){e.node(t).order=n}),u(e,n,o.vs)})})(g%2?n:s,g%4>=2),h=c.buildLayerMatrix(e);var y=o(e,h);y<v&&(m=0,p=r.cloneDeep(h),v=y)}f(e,p)}},99867:function(e,t,n){"use strict";var r=n(78301);e.exports=function(e){var t={},n=r.filter(e.nodes(),function(t){return!e.children(t).length}),i=r.max(r.map(n,function(t){return e.node(t).rank})),o=r.map(r.range(i+1),function(){return[]}),a=r.sortBy(n,function(t){return e.node(t).rank});return r.forEach(a,function n(i){r.has(t,i)||(t[i]=!0,o[e.node(i).rank].push(i),r.forEach(e.successors(i),n))}),o}},7314:function(e,t,n){"use strict";var r=n(78301);e.exports=function(e,t){var n={};return r.forEach(e,function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),r.forEach(t.edges(),function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))}),function(e){for(var t=[];e.length;){var n=e.pop();t.push(n),r.forEach(n.in.reverse(),function(e){return function(t){!t.merged&&(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),r.forEach(n.out,function(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return r.map(r.filter(t,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(n,function(e){return!e.indegree}))}},65732:function(e,t,n){var r=n(78301),i=n(23175),o=n(7314),a=n(34660);e.exports=function e(t,n,s,u){var l=t.children(n),c=t.node(n),d=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,h={};d&&(l=r.filter(l,function(e){return e!==d&&e!==f}));var p=i(t,l);r.forEach(p,function(n){if(t.children(n.v).length){var i=e(t,n.v,s,u);h[n.v]=i,r.has(i,"barycenter")&&(r.isUndefined(n.barycenter)?(n.barycenter=i.barycenter,n.weight=i.weight):(n.barycenter=(n.barycenter*n.weight+i.barycenter*i.weight)/(n.weight+i.weight),n.weight+=i.weight))}});var v=o(p,s);r.forEach(v,function(e){e.vs=r.flatten(e.vs.map(function(e){return h[e]?h[e].vs:e}),!0)});var g=a(v,u);if(d&&(g.vs=r.flatten([d,g.vs,f],!0),t.predecessors(d).length)){var m=t.node(t.predecessors(d)[0]),y=t.node(t.predecessors(f)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+m.order+y.order)/(g.weight+2),g.weight+=2}return g}},34660:function(e,t,n){var r=n(78301),i=n(13298);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n,a=i.partition(e,function(e){return r.has(e,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(e){return-e.i}),l=[],c=0,d=0,f=0;s.sort((n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),f=o(l,u,f),r.forEach(s,function(e){f+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,f=o(l,u,f)});var h={vs:r.flatten(l,!0)};return d&&(h.barycenter=c/d,h.weight=d),h}},97616:function(e,t,n){var r=n(78301);e.exports=function(e){var t,n,i=(t={},n=0,r.forEach(e.children(),function i(o){var a=n;r.forEach(e.children(o),i),t[o]={low:a,lim:n++}}),t);r.forEach(e.graph().dummyChains,function(t){for(var n=e.node(t),r=n.edgeObj,o=function(e,t,n,r){var i,o,a=[],s=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do a.push(i=e.parent(i));while(i&&(t[i].low>u||l>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,i,r.v,r.w),a=o.path,s=o.lca,u=0,l=a[0],c=!0;t!==r.w;){if(n=e.node(t),c){for(;(l=a[u])!==s&&e.node(l).maxRank<n.rank;)u++;l===s&&(c=!1)}if(!c){for(;u<a.length-1&&e.node(l=a[u+1]).minRank<=n.rank;)u++;l=a[u]}e.setParent(t,l),t=e.successors(t)[0]}})}},89924:function(e,t,n){"use strict";var r=n(78301),i=n(84833).Graph,o=n(13298);function a(e,t){var n={};return r.reduce(t,function(t,i){var o=0,a=0,s=t.length,l=r.last(i);return r.forEach(i,function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),f=d?e.node(d).order:s;(d||t===l)&&(r.forEach(i.slice(a,c+1),function(t){r.forEach(e.predecessors(t),function(r){var i=e.node(r),a=i.order;(a<o||f<a)&&!(i.dummy&&e.node(t).dummy)&&u(n,r,t)})}),a=c+1,o=f)}),i}),n}function s(e,t){var n={};function i(t,i,o,a,s){var l;r.forEach(r.range(i,o),function(i){l=t[i],e.node(l).dummy&&r.forEach(e.predecessors(l),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&u(n,t,l)})})}return r.reduce(t,function(t,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,t.length)}),n}),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},a={},s={};return r.forEach(t,function(e){r.forEach(e,function(e,t){o[e]=e,a[e]=e,s[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var u=i(e);if(u.length)for(var c=((u=r.sortBy(u,function(e){return s[e]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=u[d];a[e]===e&&t<s[h]&&!l(n,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}})}),{root:o,align:a}}function d(e,t,n,o,a){var s,u,l,c,d,f={},h=(l=new i,s=(c=e.graph()).nodesep,u=c.edgesep,d=function(e,t,n){var i,o,l=e.node(t),c=e.node(n);if(i=0+l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":o=-l.width/2;break;case"r":o=l.width/2}if(o&&(i+=a?o:-o),o=0,i+=(l.dummy?u:s)/2+(c.dummy?u:s)/2+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":o=c.width/2;break;case"r":o=-c.width/2}return o&&(i+=a?o:-o),o=0,i},r.forEach(t,function(t){var i;r.forEach(t,function(t){var r=n[t];if(l.setNode(r),i){var o=n[i],a=l.edge(o,r);l.setEdge(o,r,Math.max(d(e,t,i),a||0))}i=t})}),l),p=a?"borderLeft":"borderRight";function v(e,t){for(var n=h.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return v(function(e){f[e]=h.inEdges(e).reduce(function(e,t){return Math.max(e,f[t.v]+h.edge(t))},0)},h.predecessors.bind(h)),v(function(t){var n=h.outEdges(t).reduce(function(e,t){return Math.min(e,f[t.w]-h.edge(t))},Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==p&&(f[t]=Math.max(f[t],n))},h.successors.bind(h)),r.forEach(o,function(e){f[e]=f[n[e]]}),f}function f(e,t){return r.minBy(r.values(t),function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,function(t,r){var o=e.node(r).width/2;n=Math.max(t+o,n),i=Math.min(t-o,i)}),n-i})}function h(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var s,u=n+a,l=e[u];if(l!==t){var c=r.values(l);(s="l"===a?i-r.min(c):o-r.max(c))&&(e[u]=r.mapValues(l,function(e){return e+s}))}})})}function p(e,t){return r.mapValues(e.ul,function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2})}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(a(e,n),s(e,n)),u={};r.forEach(["u","d"],function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(t=r.map(t,function(e){return r.values(e).reverse()}));var a=("u"===o?e.predecessors:e.successors).bind(e),s=c(e,t,i,a),l=d(e,t,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,function(e){return-e})),u[o+n]=l})});var l=f(e,u);return h(u,l),p(u,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:u,hasConflict:l,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:p}},62212:function(e,t,n){"use strict";var r=n(78301),i=n(13298),o=n(89924).positionX;e.exports=function(e){var t,n,a,s;t=e=i.asNonCompoundGraph(e),n=i.buildLayerMatrix(t),a=t.graph().ranksep,s=0,r.forEach(n,function(e){var n=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=s+n/2}),s+=n+a}),r.forEach(o(e),function(t,n){e.node(n).x=t})}},4274:function(e,t,n){"use strict";var r=n(78301),i=n(84833).Graph,o=n(71481).slack;e.exports=function(e){var t,n,a=new i({directed:!1}),s=e.nodes()[0],u=e.nodeCount();for(a.setNode(s,{});r.forEach(a.nodes(),function t(n){r.forEach(e.nodeEdges(n),function(r){var i=r.v,s=n===i?r.w:i;a.hasNode(s)||o(e,r)||(a.setNode(s,{}),a.setEdge(n,s,{}),t(s))})}),a.nodeCount()<u;)t=function(e,t){return r.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)})}(a,e),n=a.hasNode(t.v)?o(e,t):-o(e,t),function(e,t,n){r.forEach(e.nodes(),function(e){t.node(e).rank+=n})}(a,e,n);return a}},94192:function(e,t,n){"use strict";var r=n(71481).longestPath,i=n(4274),o=n(86245);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:o(e);break;case"tight-tree":r(e),i(e);break;case"longest-path":a(e)}};var a=r},86245:function(e,t,n){"use strict";var r=n(78301),i=n(4274),o=n(71481).slack,a=n(71481).longestPath,s=n(84833).alg.preorder,u=n(84833).alg.postorder,l=n(13298).simplify;function c(e){a(e=l(e));var t,n,r=i(e);for(h(r),d(r,e);t=p(r);)n=v(r,e,t),g(r,e,t,n)}function d(e,t){var n=u(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r;r=e.node(n).parent,e.edge(n,r).cutvalue=f(e,t,n)})}function f(e,t,n){var i=e.node(n).parent,o=!0,a=t.edge(n,i),s=0;return a||(o=!1,a=t.edge(i,n)),s=a.weight,r.forEach(t.nodeEdges(n),function(r){var a=r.v===n,u=a?r.w:r.v;if(u!==i){var l=a===o,c=t.edge(r).weight;if(s+=l?c:-c,e.hasEdge(n,u)){var d=e.edge(n,u).cutvalue;s+=l?-d:d}}}),s}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,a){var s=i,u=t.node(o);return n[o]=!0,r.forEach(t.neighbors(o),function(a){r.has(n,a)||(i=e(t,n,i,a,o))}),u.low=s,u.lim=i++,a?u.parent=a:delete u.parent,i}(e,{},1,t)}function p(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function v(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),u=e.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var d=r.filter(t.edges(),function(t){return c===m(e,e.node(t.v),l)&&c!==m(e,e.node(t.w),l)});return r.minBy(d,function(e){return o(t,e)})}function g(e,t,n,i){var o,a,u=n.v,l=n.w;e.removeEdge(u,l),e.setEdge(i.v,i.w,{}),h(e),d(e,t),o=r.find(e.nodes(),function(e){return!t.node(e).parent}),a=(a=s(e,o)).slice(1),r.forEach(a,function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)})}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=h,c.initCutValues=d,c.calcCutValue=f,c.leaveEdge=p,c.enterEdge=v,c.exchangeEdges=g},71481:function(e,t,n){"use strict";var r=n(78301);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var a=r.min(r.map(e.outEdges(i),function(t){return n(t.w)-e.edge(t).minlen}));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),o.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},13298:function(e,t,n){"use strict";var r=n(78301),i=n(84833).Graph;function o(e,t,n,i){var o;do o=r.uniqueId(i);while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function a(e){return r.max(r.map(e.nodes(),function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n}))}e.exports={addDummyNode:o,simplify:function(e){var t=new i().setGraph(e.graph());return r.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t},successorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.outEdges(t),function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.inEdges(t),function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,u=e.width/2,l=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),function(){return[]});return r.forEach(e.nodes(),function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)}),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank}));r.forEach(e.nodes(),function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)})},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank})),n=[];r.forEach(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=e.graph().nodeRankFactor;r.forEach(n,function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,function(t){e.node(t).rank+=i})})},addBorderNode:function(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},51463:function(e){e.exports="0.8.5"},83895:function(e,t,n){var r=n(12788);e.exports={Graph:r.Graph,json:n(79780),alg:n(48452),version:r.version}},33701:function(e,t,n){var r=n(51629);e.exports=function(e){var t,n={},i=[];return r.each(e.nodes(),function(o){t=[],function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}(o),t.length&&i.push(t)}),i}},27792:function(e,t,n){var r=n(51629);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],a={};return r.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);(function e(t,n,i,o,a,s){!r.has(o,n)&&(o[n]=!0,i||s.push(n),r.each(a(n),function(n){e(t,n,i,o,a,s)}),i&&s.push(n))})(e,t,"post"===n,a,i,o)}),o}},16495:function(e,t,n){var r=n(23600),i=n(51629);e.exports=function(e,t,n){return i.transform(e.nodes(),function(i,o){i[o]=r(e,o,t,n)},{})}},23600:function(e,t,n){var r=n(51629),i=n(34002);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,a,s={},u=new i,l=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),l=a.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=o,u.decrease(t,l))};for(e.nodes().forEach(function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)});u.size()>0&&(a=s[o=u.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(o).forEach(l);return s}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},20942:function(e,t,n){var r=n(51629),i=n(43439);e.exports=function(e){return r.filter(i(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},60108:function(e,t,n){var r=n(51629);e.exports=function(e,t,n){var r,o,a,s;return r=t||i,o=n||function(t){return e.outEdges(t)},a={},(s=e.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},s.forEach(function(t){e!==t&&(a[e][t]={distance:Number.POSITIVE_INFINITY})}),o(e).forEach(function(t){var n=t.v===e?t.w:t.v,i=r(t);a[e][n]={distance:i,predecessor:e}})}),s.forEach(function(e){var t=a[e];s.forEach(function(n){var r=a[n];s.forEach(function(n){var i=r[e],o=t[n],a=r[n],s=i.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),a};var i=r.constant(1)},48452:function(e,t,n){e.exports={components:n(33701),dijkstra:n(23600),dijkstraAll:n(16495),findCycles:n(20942),floydWarshall:n(60108),isAcyclic:n(19932),postorder:n(30558),preorder:n(34478),prim:n(56312),tarjan:n(43439),topsort:n(54914)}},19932:function(e,t,n){var r=n(54914);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},30558:function(e,t,n){var r=n(27792);e.exports=function(e,t){return r(e,t,"post")}},34478:function(e,t,n){var r=n(27792);e.exports=function(e,t){return r(e,t,"pre")}},56312:function(e,t,n){var r=n(51629),i=n(72311),o=n(34002);e.exports=function(e,t){var n,a=new i,s={},u=new o;function l(e){var r=e.v===n?e.w:e.v,i=u.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){u.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),u.decrease(e.nodes()[0],0);for(var c=!1;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else if(c)throw Error("Input graph is not connected: "+e);else c=!0;e.nodeEdges(n).forEach(l)}return a}},43439:function(e,t,n){var r=n(51629);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach(function(a){r.has(i,a)||function a(s){var u=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach(function(e){r.has(i,e)?i[e].onStack&&(u.lowlink=Math.min(u.lowlink,i[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,i[e].lowlink))}),u.lowlink===u.index){var l,c=[];do i[l=n.pop()].onStack=!1,c.push(l);while(s!==l);o.push(c)}}(a)}),o}},54914:function(e,t,n){var r=n(51629);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))}),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=Error()},34002:function(e,t,n){var r=n(51629);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(e){return e.key})},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},72311:function(e,t,n){"use strict";var r=n(51629);function i(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function s(e,t,n,i){var o=""+t,a=""+n;if(!e&&o>a){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(e,t){return s(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},i.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},i.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,function(e){n.length>1?i.setNode(e,t):i.setNode(e)}),this},i.prototype.setNode=function(e,t){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return r.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{t+="";for(var n=t;!r.isUndefined(n);n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var i={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))}),t},i.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},i.prototype.setEdge=function(){var e,t,n,i,a=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(e=u.v,t=u.w,n=u.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=u,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,e,t,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[l]=c,o(this._preds[t],e),o(this._sucs[e],t),this._in[t][l]=c,this._out[e][l]=c,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1==arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var i=1==arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(e,t,n){var r=1==arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.v===t}):i}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.w===t}):i}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},12788:function(e,t,n){e.exports={Graph:n(72311),version:n(39050)}},79780:function(e,t,n){var r=n(51629),i=n(72311);e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:r.map(e.nodes(),function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}),edges:r.map(e.edges(),function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i})};return r.isUndefined(e.graph())||(t.value=r.clone(e.graph())),t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),r.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},51629:function(e,t,n){var r;try{r={clone:n(12023),constant:n(48512),each:n(89729),filter:n(75137),has:n(74981),isArray:n(51886),isEmpty:n(50577),isFunction:n(39886),isUndefined:n(4361),keys:n(18285),map:n(17278),reduce:n(96949),size:n(82487),transform:n(42708),union:n(31328),values:n(33401)}}catch(e){}r||(r=window._),e.exports=r},39050:function(e){e.exports="2.1.8"},6002:function(e,t,n){"use strict";var r=n(35236),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),v=u(n),g=0;g<a.length;++g){var m=a[g];if(!o[m]&&!(r&&r[m])&&!(v&&v[m])&&!(s&&s[m])){var y=f(n,m);try{l(t,m,y)}catch(e){}}}}return t}},61011:function(e,t,n){e=n.nmd(e);var r,i,o,a,s,u,l,c,d,f,h,p="__lodash_hash_undefined__",v="[object Arguments]",g="[object Function]",m="[object Object]",y=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[v]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[g]=w["[object Map]"]=w["[object Number]"]=w[m]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,E=x||S||Function("return this")(),_=t&&!t.nodeType&&t,k=_&&e&&!e.nodeType&&e,C=k&&k.exports===_,O=C&&x.process,T=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return O&&O.binding&&O.binding("util")}catch(e){}}(),P=T&&T.isTypedArray,I=Array.prototype,R=Function.prototype,A=Object.prototype,M=E["__core-js_shared__"],j=R.toString,N=A.hasOwnProperty,L=(l=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",D=A.toString,F=j.call(Object),U=RegExp("^"+j.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=C?E.Buffer:void 0,V=E.Symbol,q=E.Uint8Array,z=B?B.allocUnsafe:void 0,W=(c=Object.getPrototypeOf,d=Object,function(e){return c(d(e))}),$=Object.create,G=A.propertyIsEnumerable,H=I.splice,Z=V?V.toStringTag:void 0,K=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=B?B.isBuffer:void 0,J=Math.max,Y=Date.now,Q=eh(E,"Map"),ee=eh(Object,"create"),et=function(){function e(){}return function(t){if(!ek(t))return{};if($)return $(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function en(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function er(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eo(e){var t=this.__data__=new er(e);this.size=t.size}function ea(e,t,n){(void 0===n||ey(e[t],n))&&(void 0!==n||t in e)||eu(e,t,n)}function es(e,t){for(var n=e.length;n--;)if(ey(e[n][0],t))return n;return -1}function eu(e,t,n){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}en.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},en.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},en.prototype.get=function(e){var t=this.__data__;if(ee){var n=t[e];return n===p?void 0:n}return N.call(t,e)?t[e]:void 0},en.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:N.call(t,e)},en.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ee&&void 0===t?p:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,n=es(t,e);return!(n<0)&&(n==t.length-1?t.pop():H.call(t,n,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,n=es(t,e);return n<0?void 0:t[n][1]},er.prototype.has=function(e){return es(this.__data__,e)>-1},er.prototype.set=function(e,t){var n=this.__data__,r=es(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ei.prototype.clear=function(){this.size=0,this.__data__={hash:new en,map:new(Q||er),string:new en}},ei.prototype.delete=function(e){var t=ef(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return ef(this,e).get(e)},ei.prototype.has=function(e){return ef(this,e).has(e)},ei.prototype.set=function(e,t){var n=ef(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},eo.prototype.clear=function(){this.__data__=new er,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof er){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ei(r)}return n.set(e,t),this.size=n.size,this};var el=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function ec(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=N.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var i=D.call(e);return r&&(t?e[Z]=n:delete e[Z]),i}(e):D.call(e)}function ed(e){return eC(e)&&ec(e)==v}function ef(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eh(e,t){var n=null==e?void 0:e[t];return!(!ek(n)||L&&L in n)&&(eE(n)?U:y).test(function(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function ep(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&b.test(e))&&e>-1&&e%1==0&&e<t}function ev(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var em=(r=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eI,i=0,o=0,function(){var e=Y(),t=16-(e-o);if(o=e,t>0){if(++i>=800)return arguments[0]}else i=0;return r.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var eb=ed(function(){return arguments}())?ed:function(e){return eC(e)&&N.call(e,"callee")&&!G.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&e_(e.length)&&!eE(e)}var eS=X||function(){return!1};function eE(e){if(!ek(e))return!1;var t=ec(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function e_(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ek(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eC(e){return null!=e&&"object"==typeof e}var eO=P?function(e){return P(e)}:function(e){return eC(e)&&e_(e.length)&&!!w[ec(e)]};function eT(e){return ex(e)?function(e,t){var n=ew(e),r=!n&&eb(e),i=!n&&!r&&eS(e),o=!n&&!r&&!i&&eO(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)(t||N.call(e,l))&&!(a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ep(l,u)))&&s.push(l);return s}(e,!0):function(e){if(!ek(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ev(e),n=[];for(var r in e)"constructor"==r&&(t||!N.call(e,r))||n.push(r);return n}(e)}var eP=(f=function(e,t,n,r){!function e(t,n,r,i,o){t!==n&&el(n,function(a,s){if(o||(o=new eo),ek(a))(function(e,t,n,r,i,o,a){var s=eg(e,n),u=eg(t,n),l=a.get(u);if(l){ea(e,n,l);return}var c=o?o(s,u,n+"",e,t,a):void 0,d=void 0===c;if(d){var f,h,p,v=ew(u),g=!v&&eS(u),y=!v&&!g&&eO(u);c=u,v||g||y?ew(s)?c=s:eC(s)&&ex(s)?c=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):g?(d=!1,c=function(e,t){if(t)return e.slice();var n=e.length,r=z?z(n):new e.constructor(n);return e.copy(r),r}(u,!0)):y?(d=!1,new q(h=new(f=u.buffer).constructor(f.byteLength)).set(new q(f)),p=h,c=new u.constructor(p,u.byteOffset,u.length)):c=[]:function(e){if(!eC(e)||ec(e)!=m)return!1;var t=W(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==F}(u)||eb(u)?(c=s,eb(s)?c=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=void 0;void 0===u&&(u=e[s]),i?eu(n,s,u):function(e,t,n){var r=e[t];N.call(e,t)&&ey(r,n)&&(void 0!==n||t in e)||eu(e,t,n)}(n,s,u)}return n}(s,eT(s)):(!ek(s)||eE(s))&&(c="function"!=typeof u.constructor||ev(u)?{}:et(W(u)))):d=!1}d&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),ea(e,n,c)})(t,n,s,r,e,i,o);else{var u=i?i(eg(t,s),a,s+"",t,n,o):void 0;void 0===u&&(u=a),ea(t,s,u)}},eT)}(e,t,n,r)},em((a=h=function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=f.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!ek(n))return!1;var r=typeof t;return("number"==r?!!(ex(n)&&ep(t,n.length)):"string"==r&&(t in n))&&ey(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&f(e,a,n,i)}return e},s=void 0,u=eI,s=J(void 0===s?a.length-1:s,0),function(){for(var e=arguments,t=-1,n=J(e.length-s,0),r=Array(n);++t<n;)r[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=u(r),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(a,this,i)}),h+""));function eI(e){return e}e.exports=eP},64901:function(e,t,n){var r=n(68427)(n(94441),"DataView");e.exports=r},91694:function(e,t,n){var r=n(38903),i=n(98723),o=n(43504),a=n(65111),s=n(90182);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},37351:function(e,t,n){var r=n(35295),i=n(33779),o=n(24812),a=n(17066),s=n(5952);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},11397:function(e,t,n){var r=n(68427)(n(94441),"Map");e.exports=r},12253:function(e,t,n){var r=n(63697),i=n(39178),o=n(21918),a=n(9803),s=n(52713);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},88288:function(e,t,n){var r=n(68427)(n(94441),"Promise");e.exports=r},22581:function(e,t,n){var r=n(68427)(n(94441),"Set");e.exports=r},23322:function(e,t,n){var r=n(12253),i=n(49848),o=n(80205);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},34966:function(e,t,n){var r=n(37351),i=n(38216),o=n(59073),a=n(61297),s=n(51075),u=n(19036);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},39313:function(e,t,n){var r=n(94441).Symbol;e.exports=r},65066:function(e,t,n){var r=n(94441).Uint8Array;e.exports=r},95783:function(e,t,n){var r=n(68427)(n(94441),"WeakMap");e.exports=r},70732:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},53397:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},5560:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},34178:function(e,t,n){var r=n(85811);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},19597:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},53778:function(e,t,n){var r=n(37795),i=n(48156),o=n(51886),a=n(99410),s=n(28546),u=n(63470),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&u(e),h=n||c||d||f,p=h?r(e.length,String):[],v=p.length;for(var g in e)(t||l.call(e,g))&&!(h&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v)))&&p.push(g);return p}},93715:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},56875:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},29219:function(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},14449:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},13096:function(e,t,n){var r=n(35788)("length");e.exports=r},95851:function(e,t,n){var r=n(11727),i=n(87624);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},46814:function(e,t,n){var r=n(11727),i=n(87624),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},94052:function(e,t,n){var r=n(87624);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},75683:function(e,t,n){var r=n(36149),i=n(18285);e.exports=function(e,t){return e&&r(t,i(t),e)}},12075:function(e,t,n){var r=n(36149),i=n(36530);e.exports=function(e,t){return e&&r(t,i(t),e)}},11727:function(e,t,n){var r=n(17701);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},4335:function(e,t,n){var r=n(34966),i=n(53397),o=n(46814),a=n(75683),s=n(12075),u=n(489),l=n(15279),c=n(47660),d=n(60403),f=n(60755),h=n(19302),p=n(93859),v=n(73219),g=n(20725),m=n(70432),y=n(51886),b=n(99410),w=n(12067),x=n(32096),S=n(65163),E=n(18285),_=n(36530),k="[object Arguments]",C="[object Function]",O="[object Object]",T={};T[k]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[O]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[C]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,P,I,R,A){var M,j=1&n,N=2&n,L=4&n;if(P&&(M=R?P(t,I,R,A):P(t)),void 0!==M)return M;if(!x(t))return t;var D=y(t);if(D){if(M=v(t),!j)return l(t,M)}else{var F=p(t),U=F==C||"[object GeneratorFunction]"==F;if(b(t))return u(t,j);if(F==O||F==k||U&&!R){if(M=N||U?{}:m(t),!j)return N?d(t,s(M,t)):c(t,a(M,t))}else{if(!T[F])return R?t:{};M=g(t,F,j)}}A||(A=new r);var B=A.get(t);if(B)return B;A.set(t,M),S(t)?t.forEach(function(r){M.add(e(r,n,P,r,t,A))}):w(t)&&t.forEach(function(r,i){M.set(i,e(r,n,P,i,t,A))});var V=L?N?h:f:N?_:E,q=D?void 0:V(t);return i(q||t,function(r,i){q&&(r=t[i=r]),o(M,i,e(r,n,P,i,t,A))}),M}},76588:function(e,t,n){var r=n(32096),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},67135:function(e,t,n){var r=n(12746),i=n(67019)(r);e.exports=i},46002:function(e,t,n){var r=n(24042);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,l=a}return l}},51709:function(e,t,n){var r=n(67135);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},73888:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},45429:function(e,t,n){var r=n(56875),i=n(50922);e.exports=function e(t,n,o,a,s){var u=-1,l=t.length;for(o||(o=i),s||(s=[]);++u<l;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},27985:function(e,t,n){var r=n(10761)();e.exports=r},12746:function(e,t,n){var r=n(27985),i=n(18285);e.exports=function(e,t){return e&&r(e,t,i)}},80734:function(e,t,n){var r=n(642),i=n(23980);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},32867:function(e,t,n){var r=n(56875),i=n(51886);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},71711:function(e,t,n){var r=n(39313),i=n(12998),o=n(99430),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},50279:function(e){e.exports=function(e,t){return e>t}},25175:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},69262:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},85811:function(e,t,n){var r=n(73888),i=n(42410),o=n(79767);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},35060:function(e,t,n){var r=n(71711),i=n(72220);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},30572:function(e,t,n){var r=n(74054),i=n(72220);e.exports=function e(t,n,o,a,s){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,a,e,s):t!=t&&n!=n)}},74054:function(e,t,n){var r=n(34966),i=n(12644),o=n(13100),a=n(74151),s=n(93859),u=n(51886),l=n(99410),c=n(63470),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,m){var y=u(e),b=u(t),w=y?f:s(e),x=b?f:s(t);w=w==d?h:w,x=x==d?h:x;var S=w==h,E=x==h,_=w==x;if(_&&l(e)){if(!l(t))return!1;y=!0,S=!1}if(_&&!S)return m||(m=new r),y||c(e)?i(e,t,n,v,g,m):o(e,t,w,n,v,g,m);if(!(1&n)){var k=S&&p.call(e,"__wrapped__"),C=E&&p.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,T=C?t.value():t;return m||(m=new r),g(O,T,n,v,m)}}return!!_&&(m||(m=new r),a(e,t,n,v,g,m))}},11880:function(e,t,n){var r=n(93859),i=n(72220);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},44869:function(e,t,n){var r=n(34966),i=n(30572);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],d=e[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(o)var p=o(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},42410:function(e){e.exports=function(e){return e!=e}},20980:function(e,t,n){var r=n(39886),i=n(50444),o=n(32096),a=n(65084),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,d=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},4253:function(e,t,n){var r=n(93859),i=n(72220);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},84661:function(e,t,n){var r=n(71711),i=n(2609),o=n(72220),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},64971:function(e,t,n){var r=n(5129),i=n(79938),o=n(98477),a=n(51886),s=n(87054);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},73907:function(e,t,n){var r=n(8173),i=n(75454),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},77872:function(e,t,n){var r=n(32096),i=n(8173),o=n(30559),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||n.push(s);return n}},23831:function(e){e.exports=function(e,t){return e<t}},79630:function(e,t,n){var r=n(67135),i=n(44867);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},5129:function(e,t,n){var r=n(44869),i=n(34200),o=n(95064);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},79938:function(e,t,n){var r=n(30572),i=n(95327),o=n(89021),a=n(55261),s=n(30684),u=n(95064),l=n(23980);e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},99249:function(e,t,n){var r=n(34966),i=n(95851),o=n(27985),a=n(67587),s=n(32096),u=n(36530),l=n(82508);e.exports=function e(t,n,c,d,f){t!==n&&o(n,function(o,u){if(f||(f=new r),s(o))a(t,n,u,c,e,d,f);else{var h=d?d(l(t,u),o,u+"",t,n,f):void 0;void 0===h&&(h=o),i(t,u,h)}},u)}},67587:function(e,t,n){var r=n(95851),i=n(489),o=n(17466),a=n(15279),s=n(70432),u=n(48156),l=n(51886),c=n(74621),d=n(99410),f=n(39886),h=n(32096),p=n(19278),v=n(63470),g=n(82508),m=n(79137);e.exports=function(e,t,n,y,b,w,x){var S=g(e,n),E=g(t,n),_=x.get(E);if(_){r(e,n,_);return}var k=w?w(S,E,n+"",e,t,x):void 0,C=void 0===k;if(C){var O=l(E),T=!O&&d(E),P=!O&&!T&&v(E);k=E,O||T||P?l(S)?k=S:c(S)?k=a(S):T?(C=!1,k=i(E,!0)):P?(C=!1,k=o(E,!0)):k=[]:p(E)||u(E)?(k=S,u(S)?k=m(S):(!h(S)||f(S))&&(k=s(E))):C=!1}C&&(x.set(E,k),b(k,E,y,w,x),x.delete(E)),r(e,n,k)}},13189:function(e,t,n){var r=n(93715),i=n(80734),o=n(64971),a=n(79630),s=n(28987),u=n(62279),l=n(36535),c=n(98477),d=n(51886);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=r(t,u(o)),s(a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return l(e,t,n)})}},32722:function(e,t,n){var r=n(27892),i=n(89021);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},27892:function(e,t,n){var r=n(80734),i=n(87672),o=n(642);e.exports=function(e,t,n){for(var a=-1,s=t.length,u={};++a<s;){var l=t[a],c=r(e,l);n(c,l)&&i(u,o(l,e),c)}return u}},35788:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},34447:function(e,t,n){var r=n(80734);e.exports=function(e){return function(t){return r(t,e)}}},88095:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},13113:function(e){e.exports=function(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}},82628:function(e,t,n){var r=n(98477),i=n(91544),o=n(59910);e.exports=function(e,t){return o(i(e,t,r),e+"")}},87672:function(e,t,n){var r=n(46814),i=n(642),o=n(28546),a=n(32096),s=n(23980);e.exports=function(e,t,n,u){if(!a(e))return e;t=i(t,e);for(var l=-1,c=t.length,d=c-1,f=e;null!=f&&++l<c;){var h=s(t[l]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(l!=d){var v=f[h];void 0===(p=u?u(v,h,f):void 0)&&(p=a(v)?v:o(t[l+1])?[]:{})}r(f,h,p),f=f[h]}return e}},88223:function(e,t,n){var r=n(48512),i=n(17701),o=n(98477),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},28987:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},37795:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},37581:function(e,t,n){var r=n(39313),i=n(93715),o=n(51886),a=n(24042),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},8244:function(e,t,n){var r=n(30988),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},62279:function(e){e.exports=function(e){return function(t){return e(t)}}},69898:function(e,t,n){var r=n(23322),i=n(34178),o=n(19597),a=n(5557),s=n(80405),u=n(81803);e.exports=function(e,t,n){var l=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var v=t?null:s(e);if(v)return u(v);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++l<d;){var g=e[l],m=t?t(g):g;if(g=n||0!==g?g:0,f&&m==m){for(var y=p.length;y--;)if(p[y]===m)continue e;t&&p.push(m),h.push(g)}else c(p,m,n)||(p!==h&&p.push(m),h.push(g))}return h}},26927:function(e,t,n){var r=n(93715);e.exports=function(e,t){return r(t,function(t){return e[t]})}},21382:function(e){e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},5557:function(e){e.exports=function(e,t){return e.has(t)}},93136:function(e,t,n){var r=n(98477);e.exports=function(e){return"function"==typeof e?e:r}},642:function(e,t,n){var r=n(51886),i=n(55261),o=n(41131),a=n(36871);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},51128:function(e,t,n){var r=n(65066);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},489:function(e,t,n){e=n.nmd(e);var r=n(94441),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},21141:function(e,t,n){var r=n(51128);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},64153:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},8483:function(e,t,n){var r=n(39313),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},17466:function(e,t,n){var r=n(51128);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},43921:function(e,t,n){var r=n(24042);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)return -1}return 0}},36535:function(e,t,n){var r=n(43921);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++i<s;){var l=r(o[i],a[i]);if(l){if(i>=u)return l;return l*("desc"==n[i]?-1:1)}}return e.index-t.index}},15279:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},36149:function(e,t,n){var r=n(46814),i=n(11727);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):r(n,l,c)}return n}},47660:function(e,t,n){var r=n(36149),i=n(65014);e.exports=function(e,t){return r(e,i(e),t)}},60403:function(e,t,n){var r=n(36149),i=n(17286);e.exports=function(e,t){return r(e,i(e),t)}},73133:function(e,t,n){var r=n(94441)["__core-js_shared__"];e.exports=r},72968:function(e,t,n){var r=n(82628),i=n(51880);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}},67019:function(e,t,n){var r=n(44867);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},10761:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},76987:function(e,t,n){var r=n(64971),i=n(44867),o=n(18285);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}},8911:function(e,t,n){var r=n(88095),i=n(51880),o=n(11040);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},80405:function(e,t,n){var r=n(22581),i=n(96087),o=n(81803),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},17701:function(e,t,n){var r=n(68427),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},12644:function(e,t,n){var r=n(23322),i=n(14449),o=n(5557);e.exports=function(e,t,n,a,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var p=-1,v=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var m=e[p],y=t[p];if(a)var b=l?a(y,m,p,t,e,u):a(m,y,p,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(m===e||s(m,e,n,a,u)))return g.push(t)})){v=!1;break}}else if(!(m===y||s(m,y,n,a,u))){v=!1;break}}return u.delete(e),u.delete(t),v}},13100:function(e,t,n){var r=n(39313),i=n(65066),o=n(87624),a=n(12644),s=n(63257),u=n(81803),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)break;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var g=a(h(e),h(t),r,l,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},74151:function(e,t,n){var r=n(60755),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var g=u;++d<c;){var m=e[f=l[d]],y=t[f];if(o)var b=u?o(y,m,f,t,e,s):o(m,y,f,e,t,s);if(!(void 0===b?m===y||a(m,y,n,o,s):b)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(v=!1)}return s.delete(e),s.delete(t),v}},84848:function(e,t,n){var r=n(19418),i=n(91544),o=n(59910);e.exports=function(e){return o(i(e,void 0,r),e+"")}},35206:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},60755:function(e,t,n){var r=n(32867),i=n(65014),o=n(18285);e.exports=function(e){return r(e,o,i)}},19302:function(e,t,n){var r=n(32867),i=n(17286),o=n(36530);e.exports=function(e){return r(e,o,i)}},20511:function(e,t,n){var r=n(97074);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},34200:function(e,t,n){var r=n(30684),i=n(18285);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},68427:function(e,t,n){var r=n(20980),i=n(63991);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},52158:function(e,t,n){var r=n(18710)(Object.getPrototypeOf,Object);e.exports=r},12998:function(e,t,n){var r=n(39313),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},65014:function(e,t,n){var r=n(5560),i=n(72747),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},17286:function(e,t,n){var r=n(56875),i=n(52158),o=n(65014),a=n(72747),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},93859:function(e,t,n){var r=n(64901),i=n(11397),o=n(88288),a=n(22581),s=n(95783),u=n(71711),l=n(65084),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",v=l(r),g=l(i),m=l(o),y=l(a),b=l(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return p;case g:return c;case m:return d;case y:return f;case b:return h}return t}),e.exports=w},63991:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},19736:function(e,t,n){var r=n(642),i=n(48156),o=n(51886),a=n(28546),s=n(2609),u=n(23980);e.exports=function(e,t,n){t=r(t,e);for(var l=-1,c=t.length,d=!1;++l<c;){var f=u(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},81285:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},38903:function(e,t,n){var r=n(38285);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},98723:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},43504:function(e,t,n){var r=n(38285),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},65111:function(e,t,n){var r=n(38285),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},90182:function(e,t,n){var r=n(38285);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},73219:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},20725:function(e,t,n){var r=n(51128),i=n(21141),o=n(64153),a=n(8483),s=n(17466);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},70432:function(e,t,n){var r=n(76588),i=n(52158),o=n(8173);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},50922:function(e,t,n){var r=n(39313),i=n(48156),o=n(51886),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},28546:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},51880:function(e,t,n){var r=n(87624),i=n(44867),o=n(28546),a=n(32096);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return("number"==s?!!(i(n)&&o(t,n.length)):"string"==s&&t in n)&&r(n[t],e)}},55261:function(e,t,n){var r=n(51886),i=n(24042),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},97074:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},50444:function(e,t,n){var r,i=n(73133),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},8173:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30684:function(e,t,n){var r=n(32096);e.exports=function(e){return e==e&&!r(e)}},35295:function(e){e.exports=function(){this.__data__=[],this.size=0}},33779:function(e,t,n){var r=n(94052),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},24812:function(e,t,n){var r=n(94052);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},17066:function(e,t,n){var r=n(94052);e.exports=function(e){return r(this.__data__,e)>-1}},5952:function(e,t,n){var r=n(94052);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},63697:function(e,t,n){var r=n(91694),i=n(37351),o=n(11397);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},39178:function(e,t,n){var r=n(20511);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},21918:function(e,t,n){var r=n(20511);e.exports=function(e){return r(this,e).get(e)}},9803:function(e,t,n){var r=n(20511);e.exports=function(e){return r(this,e).has(e)}},52713:function(e,t,n){var r=n(20511);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},63257:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},95064:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},97047:function(e,t,n){var r=n(45274);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},38285:function(e,t,n){var r=n(68427)(Object,"create");e.exports=r},75454:function(e,t,n){var r=n(18710)(Object.keys,Object);e.exports=r},30559:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},97134:function(e,t,n){e=n.nmd(e);var r=n(35206),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},99430:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},18710:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},91544:function(e,t,n){var r=n(70732),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}},94441:function(e,t,n){var r=n(35206),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},82508:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},49848:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},80205:function(e){e.exports=function(e){return this.__data__.has(e)}},81803:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},59910:function(e,t,n){var r=n(88223),i=n(17645)(r);e.exports=i},17645:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},38216:function(e,t,n){var r=n(37351);e.exports=function(){this.__data__=new r,this.size=0}},59073:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},61297:function(e){e.exports=function(e){return this.__data__.get(e)}},51075:function(e){e.exports=function(e){return this.__data__.has(e)}},19036:function(e,t,n){var r=n(37351),i=n(11397),o=n(12253);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},79767:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},11792:function(e,t,n){var r=n(13096),i=n(81285),o=n(24479);e.exports=function(e){return i(e)?o(e):r(e)}},41131:function(e,t,n){var r=n(97047),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},23980:function(e,t,n){var r=n(24042),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},65084:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},30988:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},24479:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|")+")"+(u+s+l),"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},12023:function(e,t,n){var r=n(4335);e.exports=function(e){return r(e,4)}},94269:function(e,t,n){var r=n(4335);e.exports=function(e){return r(e,5)}},48512:function(e){e.exports=function(e){return function(){return e}}},82276:function(e,t,n){var r=n(82628),i=n(87624),o=n(51880),a=n(36530),s=Object.prototype,u=s.hasOwnProperty,l=r(function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n<r;)for(var c=t[n],d=a(c),f=-1,h=d.length;++f<h;){var p=d[f],v=e[p];(void 0===v||i(v,s[p])&&!u.call(e,p))&&(e[p]=c[p])}return e});e.exports=l},89729:function(e,t,n){e.exports=n(65024)},87624:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},75137:function(e,t,n){var r=n(5560),i=n(51709),o=n(64971),a=n(51886);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},88440:function(e,t,n){var r=n(76987)(n(26694));e.exports=r},26694:function(e,t,n){var r=n(73888),i=n(64971),o=n(99),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},19418:function(e,t,n){var r=n(45429);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},65024:function(e,t,n){var r=n(53397),i=n(67135),o=n(93136),a=n(51886);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},83613:function(e,t,n){var r=n(27985),i=n(93136),o=n(36530);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},95327:function(e,t,n){var r=n(80734);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},74981:function(e,t,n){var r=n(25175),i=n(19736);e.exports=function(e,t){return null!=e&&i(e,t,r)}},89021:function(e,t,n){var r=n(69262),i=n(19736);e.exports=function(e,t){return null!=e&&i(e,t,r)}},98477:function(e){e.exports=function(e){return e}},48156:function(e,t,n){var r=n(35060),i=n(72220),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},51886:function(e){var t=Array.isArray;e.exports=t},44867:function(e,t,n){var r=n(39886),i=n(2609);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},74621:function(e,t,n){var r=n(44867),i=n(72220);e.exports=function(e){return i(e)&&r(e)}},99410:function(e,t,n){e=n.nmd(e);var r=n(94441),i=n(66236),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},50577:function(e,t,n){var r=n(73907),i=n(93859),o=n(48156),a=n(51886),s=n(44867),u=n(99410),l=n(8173),c=n(63470),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},39886:function(e,t,n){var r=n(71711),i=n(32096);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2609:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},12067:function(e,t,n){var r=n(11880),i=n(62279),o=n(97134),a=o&&o.isMap,s=a?i(a):r;e.exports=s},52657:function(e,t,n){var r=n(71711),i=n(72220);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},32096:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},72220:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},19278:function(e,t,n){var r=n(71711),i=n(52158),o=n(72220),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},65163:function(e,t,n){var r=n(4253),i=n(62279),o=n(97134),a=o&&o.isSet,s=a?i(a):r;e.exports=s},56847:function(e,t,n){var r=n(71711),i=n(51886),o=n(72220);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},24042:function(e,t,n){var r=n(71711),i=n(72220);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},63470:function(e,t,n){var r=n(84661),i=n(62279),o=n(97134),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},4361:function(e){e.exports=function(e){return void 0===e}},18285:function(e,t,n){var r=n(53778),i=n(73907),o=n(44867);e.exports=function(e){return o(e)?r(e):i(e)}},36530:function(e,t,n){var r=n(53778),i=n(77872),o=n(44867);e.exports=function(e){return o(e)?r(e,!0):i(e)}},64149:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},17278:function(e,t,n){var r=n(93715),i=n(64971),o=n(79630),a=n(51886);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},86607:function(e,t,n){var r=n(11727),i=n(12746),o=n(64971);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},15492:function(e,t,n){var r=n(46002),i=n(50279),o=n(98477);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},45274:function(e,t,n){var r=n(12253);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},69825:function(e,t,n){var r=n(99249),i=n(72968)(function(e,t,n){r(e,t,n)});e.exports=i},76712:function(e,t,n){var r=n(46002),i=n(23831),o=n(98477);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},54419:function(e,t,n){var r=n(46002),i=n(64971),o=n(23831);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},96087:function(e){e.exports=function(){}},91646:function(e,t,n){var r=n(94441);e.exports=function(){return r.Date.now()}},41305:function(e,t,n){var r=n(32722),i=n(84848)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},87054:function(e,t,n){var r=n(35788),i=n(34447),o=n(55261),a=n(23980);e.exports=function(e){return o(e)?r(a(e)):i(e)}},17313:function(e,t,n){var r=n(8911)();e.exports=r},96949:function(e,t,n){var r=n(29219),i=n(67135),o=n(64971),a=n(13113),s=n(51886);e.exports=function(e,t,n){var u=s(e)?r:a,l=arguments.length<3;return u(e,o(t,4),n,l,i)}},82487:function(e,t,n){var r=n(73907),i=n(93859),o=n(44867),a=n(56847),s=n(11792);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},74724:function(e,t,n){var r=n(45429),i=n(13189),o=n(82628),a=n(51880),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},72747:function(e){e.exports=function(){return[]}},66236:function(e){e.exports=function(){return!1}},11040:function(e,t,n){var r=n(23233),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},99:function(e,t,n){var r=n(11040);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},23233:function(e,t,n){var r=n(8244),i=n(32096),o=n(24042),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},79137:function(e,t,n){var r=n(36149),i=n(36530);e.exports=function(e){return r(e,i(e))}},36871:function(e,t,n){var r=n(37581);e.exports=function(e){return null==e?"":r(e)}},42708:function(e,t,n){var r=n(53397),i=n(76588),o=n(12746),a=n(64971),s=n(52158),u=n(51886),l=n(99410),c=n(39886),d=n(32096),f=n(63470);e.exports=function(e,t,n){var h=u(e),p=h||l(e)||f(e);if(t=a(t,4),null==n){var v=e&&e.constructor;n=p?h?new v:[]:d(e)&&c(v)?i(s(e)):{}}return(p?r:o)(e,function(e,r,i){return t(n,e,r,i)}),n}},31328:function(e,t,n){var r=n(45429),i=n(82628),o=n(69898),a=n(74621),s=i(function(e){return o(r(e,1,a,!0))});e.exports=s},46812:function(e,t,n){var r=n(36871),i=0;e.exports=function(e){var t=++i;return r(e)+t}},33401:function(e,t,n){var r=n(26927),i=n(18285);e.exports=function(e){return null==e?[]:r(e,i(e))}},144:function(e,t,n){var r=n(46814),i=n(21382);e.exports=function(e,t){return i(e||[],t||[],r)}},80317:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n,i,o=0;o<e.length;o++)if(!((n=e[o])===(i=t[o])||r(n)&&r(i)))return!1;return!0}function o(e,t){void 0===t&&(t=i);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}},58687:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(19505),i=n.n(r)},85555:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(50032)},80970:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(62225);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8346:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(62225),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(4591),i=n(26415),o=r._(n(97129)),a=n(15880),s=n(7509),u=n(23239),l=n(93518),c=n(80970),d=n(20897),f=n(98593),h=n(44761),p=n(8346),v=n(82906),g=n(18840),m=new Set;function y(e,t,n,r,i,o){if("undefined"!=typeof window&&(o||(0,s.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(i))return;m.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let n,r;let{href:u,as:m,children:w,prefetch:x=null,passHref:S,replace:E,shallow:_,scroll:k,locale:C,onClick:O,onMouseEnter:T,onTouchStart:P,legacyBehavior:I=!1,...R}=e;n=w,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let A=o.default.useContext(d.RouterContext),M=o.default.useContext(f.AppRouterContext),j=null!=A?A:M,N=!A,L=!1!==x,D=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:U}=o.default.useMemo(()=>{if(!A){let e=b(u);return{href:e,as:m?b(m):e}}let[e,t]=(0,a.resolveHref)(A,u,!0);return{href:e,as:m?(0,a.resolveHref)(A,m):t||e}},[A,u,m]),B=o.default.useRef(F),V=o.default.useRef(U);I&&(r=o.default.Children.only(n));let q=I?r&&"object"==typeof r&&r.ref:t,[z,W,$]=(0,h.useIntersection)({rootMargin:"200px"}),G=o.default.useCallback(e=>{(V.current!==U||B.current!==F)&&($(),V.current=U,B.current=F),z(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[U,q,F,$,z]);o.default.useEffect(()=>{j&&W&&L&&y(j,F,U,{locale:C},{kind:D},N)},[U,F,W,C,L,null==A?void 0:A.locale,j,N,D]);let H={ref:G,onClick(e){I||"function"!=typeof O||O(e),I&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),j&&!e.defaultPrevented&&function(e,t,n,r,i,a,u,l,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(f):f()}(e,j,F,U,E,_,k,C,N)},onMouseEnter(e){I||"function"!=typeof T||T(e),I&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),j&&(L||!N)&&y(j,F,U,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},N)},onTouchStart:function(e){I||"function"!=typeof P||P(e),I&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),j&&(L||!N)&&y(j,F,U,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},N)}};if((0,l.isAbsoluteUrl)(U))H.href=U;else if(!I||S||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,p.getDomainLocale)(U,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);H.href=t||(0,v.addBasePath)((0,c.addLocale)(U,e,null==A?void 0:A.defaultLocale))}return I?o.default.cloneElement(r,H):(0,i.jsx)("a",{...R,...H,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(33184),i=n(23239),o=n(50089),a=n(93518),s=n(62225),u=n(7509),l=n(83764),c=n(6577);function d(e,t,n){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,u.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,l.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(n,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44761:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(97129),i=n(39210),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,l=u||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(l||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[l,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12138:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)o.push(n[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|f(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=I[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return y(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,o=n,0===i&&o===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var d=!0,f=0;f<u;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return -1}function y(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(P(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,u=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;d<u;++d)if(l[d]!==c[d]){o=l[d],a=c[d];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,c,d,f,h,p,v,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var m=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return u=t,l=n,T(k(e,this.length-u),this,u,l);case"ascii":return c=t,d=n,T(C(e),this,c,d);case"latin1":case"binary":return i=this,o=e,a=t,s=n,T(C(o),i,a,s);case"base64":return f=t,h=n,T(O(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,v=n,T(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,v);default:if(m)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),m=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),u=a.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%u]}return this};var _=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var I=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*v}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},62461:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var u=n.length-s,l=a<u?a:u,c=-1,d=0;d<=l;++d){if(d===l){if(u>l){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>l&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else -1===u&&(a=!1,u=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47===u){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===u?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,l=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!l){s=c+1;break}continue}-1===u&&(l=!1,u=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===u||0===d||1===d&&a===u-1&&a===s+1?-1!==u&&(0===s&&o?r.base=r.name=e.slice(1,u):r.base=r.name=e.slice(s,u)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},50032:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],l=!1,c=-1;function d(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&f())}function f(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c<t;)r&&r[c].run();c=-1,t=u.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},98550:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_SUFFIX:function(){return u},APP_DIR_ALIAS:function(){return O},CACHE_ONE_YEAR:function(){return w},DOT_NEXT_ALIAS:function(){return k},ESLINT_DEFAULT_DIRS:function(){return $},GSP_NO_RETURNED_VALUE:function(){return U},GSSP_COMPONENT_MEMBER_ERROR:function(){return q},GSSP_NO_RETURNED_VALUE:function(){return B},INSTRUMENTATION_HOOK_FILENAME:function(){return E},MIDDLEWARE_FILENAME:function(){return x},MIDDLEWARE_LOCATION_REGEXP:function(){return S},NEXT_BODY_SUFFIX:function(){return d},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return b},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return p},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return v},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return h},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return y},NEXT_CACHE_TAGS_HEADER:function(){return f},NEXT_CACHE_TAG_MAX_ITEMS:function(){return g},NEXT_CACHE_TAG_MAX_LENGTH:function(){return m},NEXT_DATA_SUFFIX:function(){return l},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return c},NEXT_QUERY_PARAM_PREFIX:function(){return n},NON_STANDARD_NODE_ENV:function(){return z},PAGES_DIR_ALIAS:function(){return _},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return M},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return A},RSC_ACTION_ENCRYPTION_ALIAS:function(){return R},RSC_ACTION_PROXY_ALIAS:function(){return I},RSC_ACTION_VALIDATE_ALIAS:function(){return P},RSC_MOD_REF_PROXY_ALIAS:function(){return T},RSC_PREFETCH_SUFFIX:function(){return a},RSC_SUFFIX:function(){return s},SERVER_PROPS_EXPORT_ERROR:function(){return F},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return N},SERVER_PROPS_SSG_CONFLICT:function(){return L},SERVER_RUNTIME:function(){return G},SSG_FALLBACK_EXPORT_ERROR:function(){return W},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return j},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return D},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return V},WEBPACK_LAYERS:function(){return Z},WEBPACK_RESOURCE_QUERIES:function(){return K}});let n="nxtP",r="nxtI",i="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",a=".prefetch.rsc",s=".rsc",u=".action",l=".json",c=".meta",d=".body",f="x-next-cache-tags",h="x-next-cache-soft-tags",p="x-next-revalidated-tags",v="x-next-revalidate-tag-token",g=128,m=256,y=1024,b="_N_T_",w=31536e3,x="middleware",S=`(?:src/)?${x}`,E="instrumentation",_="private-next-pages",k="private-dot-next",C="private-next-root-dir",O="private-next-app-dir",T="private-next-rsc-mod-ref-proxy",P="private-next-rsc-action-validate",I="private-next-rsc-server-reference",R="private-next-rsc-action-encryption",A="private-next-rsc-action-client-wrapper",M="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",j="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",N="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",L="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",D="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",F="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",U="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",B="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",V="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",q="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",z='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',W="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],G={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},H={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},Z={...H,GROUP:{serverOnly:[H.reactServerComponents,H.actionBrowser,H.appMetadataRoute,H.appRouteHandler,H.instrument],clientOnly:[H.serverSideRendering,H.appPagesBrowser],nonClientServerTarget:[H.middleware,H.api],app:[H.reactServerComponents,H.actionBrowser,H.appMetadataRoute,H.appRouteHandler,H.serverSideRendering,H.appPagesBrowser,H.shared,H.instrument]}},K={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},14336:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},20897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(4591)._(n(97129)).default.createContext(null)},23239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(23865)._(n(33184)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:n&&(l=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+l+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},83764:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(16484),i=n(30236)},6577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(31454),i=n(31599);function o(e,t,n){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;o=e;let l=Object.keys(s);return l.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=s[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:l,result:o}}},30236:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(83053),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},7509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(93518),i=n(7177);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},50089:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},33184:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},31454:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(93518);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),a}}},31599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return h},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l},parseParameter:function(){return s}});let r=n(98550),i=n(83053),o=n(14336),a=n(73610);function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},r=1;return{parameterizedRoute:t.map(e=>{let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:i,repeat:u}=s(a[1]);return n[e]={pos:r++,repeat:u,optional:i},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:i}=s(a[1]);return n[e]={pos:r++,repeat:t,optional:i},t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function c(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:a}=e,{key:u,optional:l,repeat:c}=s(r),d=u.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?i[d]=""+a+u:i[d]=u;let h=t?(0,o.escapeStringRegexp)(t):"";return c?l?"(?:/"+h+"(?<"+d+">.+?))?":"/"+h+"(?<"+d+">.+?)":"/"+h+"(?<"+d+">[^/]+?)"}function d(e,t){let n;let s=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:s.map(e=>{let n=i.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&a){let[n]=e.split(a[0]);return c({getSafeRouteKey:u,interceptionMarker:n,segment:a[1],routeKeys:l,keyPrefix:t?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return a?c({getSafeRouteKey:u,segment:a[1],routeKeys:l,keyPrefix:t?r.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let n=d(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function h(e,t){let{parameterizedRoute:n}=u(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=d(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},16484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},93518:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return m},NormalizeError:function(){return v},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return l},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&l(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class v extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},86518:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,u,l,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(u=s;0!=u--;)if(!e(o[u],a[u]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=o.entries();!(u=c.next()).done;)if(!e(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(u=s;0!=u--;)if(o[u]!==a[u])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(l=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&o instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!o.$$typeof)&&!e(o[l[u]],a[l[u]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},25281:function(e,t,n){"use strict";n.d(t,{w_:function(){return u}});var r=n(97129),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function u(e){return function(t){return r.createElement(l,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function l(e){var t=function(t){var n,i=e.attr,o=e.size,u=e.title,l=s(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,l,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},45324:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case v:case u:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},35236:function(e,t,n){"use strict";e.exports=n(45324)},42126:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},37084:function(e,t,n){"use strict";var r=n(97129),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})},[e,n,t]),a(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},56942:function(e,t,n){"use strict";var r=n(97129),i=n(86124),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=l(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},86124:function(e,t,n){"use strict";e.exports=n(37084)},5618:function(e,t,n){"use strict";e.exports=n(56942)},50758:function(){},43751:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(54563);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},23258:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},84017:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(43751);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},78253:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},49796:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},54563:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3759);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},3759:function(e,t,n){"use strict";function r(e){return(r="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})(e)}n.d(t,{Z:function(){return r}})},86186:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(67964),i=n(97129),o=n(34510);function a(e){let{isOpen:t,ref:n}=e,[a,s]=(0,i.useState)(t),[u,l]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{u||(s(t),l(!0))},[t,u,a]),(0,o.O)(()=>n.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,r.kR)(n.current)).CustomEvent("animationend",{bubbles:!0});null===(e=n.current)||void 0===e||e.dispatchEvent(t)}}}},57077:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(97129);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)},t)}},94082:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(97129),i=n(22808);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e);(0,r.useEffect)(()=>s(e),[e]);let{timeout:u=1500,...l}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(e=>{let t="string"==typeof e?e:a;"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(i(t,l))):o(i(t,l))},[a,l]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},u)),()=>{e&&window.clearTimeout(e)}},[u,n]),{value:a,setValue:s,onCopy:c,hasCopied:n}}},77622:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(57077),i=n(97129);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:t,onOpen:n,isOpen:o,id:a}=e,s=(0,r.W)(n),u=(0,r.W)(t),[l,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:l,f=void 0!==o,h=(0,i.useId)(),p=null!=a?a:"disclosure-".concat(h),v=(0,i.useCallback)(()=>{f||c(!1),null==u||u()},[f,u]),g=(0,i.useCallback)(()=>{f||c(!0),null==s||s()},[f,s]),m=(0,i.useCallback)(()=>{d?v():g()},[d,g,v]);return{isOpen:d,onOpen:g,onClose:v,onToggle:m,isControlled:f,getButtonProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"aria-expanded":d,"aria-controls":p,onClick(t){var n;null===(n=e.onClick)||void 0===n||n.call(e,t),m()}}},getDisclosureProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,hidden:!d,id:p}}}}},34510:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(97129),i=n(57077);function o(e,t,n,o){let a=(0,i.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,e,o,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,o)}}},41898:function(e,t,n){"use strict";n.d(t,{C:function(){return c},G:function(){return f}});var r=n(67964),i=n(44899),o=n(29816),a=n(97129),s=n(34510),u=n(98418),l=n(48904);function c(e,t){let{shouldFocus:n,visible:o,focusRef:a}=t,s=n&&!o;(0,l.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,i.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}let d={preventScroll:!0,shouldFocus:!1};function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,{focusRef:n,preventScroll:r,shouldFocus:i,visible:c}=t,f="current"in e?e.current:e,h=i&&c,p=(0,a.useRef)(h),v=(0,a.useRef)(c);(0,u.G)(()=>{!v.current&&c&&(p.current=h),v.current=c},[c,h]);let g=(0,a.useCallback)(()=>{if(c&&f&&p.current&&(p.current=!1,!f.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null===(e=n.current)||void 0===e||e.focus({preventScroll:r})});else{let e=(0,o.t5)(f);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,f,n]);(0,l.r)(()=>{g()},[g]),(0,s.O)(f,"transitionend",g)}},11637:function(e,t,n){"use strict";n.d(t,{lq:function(){return i},qq:function(){return o}});var r=n(97129);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}}(t,e)})}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>i(...t),t)}},74540:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(97129),i=n(57077);function o(e){let{ref:t,handler:n,enabled:o=!0}=e,u=(0,i.W)(n),l=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,r.useEffect)(()=>{if(!o)return;let e=e=>{a(e,t)&&(l.isPointerDown=!0)},r=e=>{if(l.ignoreEmulatedMouseEvents){l.ignoreEmulatedMouseEvents=!1;return}l.isPointerDown&&n&&a(e,t)&&(l.isPointerDown=!1,u(e))},i=e=>{l.ignoreEmulatedMouseEvents=!0,n&&l.isPointerDown&&a(e,t)&&(l.isPointerDown=!1,u(e))},c=s(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",r,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",i,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",r,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",i,!0)}},[n,t,u,l,o])}function a(e,t){var n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:n.call(e)[0])&&void 0!==i?i:e.target;return(!o||!!s(o).contains(o))&&!(null===(r=t.current)||void 0===r?void 0:r.contains(o))}function s(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}},98418:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r,i=n(97129);let o=(null===(r=globalThis)||void 0===r?void 0:r.document)?i.useLayoutEffect:i.useEffect},48904:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(97129);let i=(e,t)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},74378:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=(0,n(53941).I)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"})},48862:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});let r=(0,n(53941).I)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"})},97001:function(e,t,n){"use strict";n.d(t,{uZ:function(){return u},Hm:function(){return c},TR:function(){return h},XO:function(){return p},oX:function(){return l},uL:function(){return d}});var r=n(65753),i=n(26415),o=n(2585);function a(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var s=n(70986);let[u,l]=(0,r.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[c,d]=(0,r.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:a,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:a,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function h(e){return f[e].colorScheme}function p(e){return f[e].icon}},92447:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(26415),i=n(19838),o=n(40590),a=n(97001),s=n(34272),u=n(5439);let l=(0,s.G)(function(e,t){let{status:n}=(0,a.oX)(),s=(0,a.uL)(),l=(0,i.k0)({display:"inline",...s.description});return(0,r.jsx)(u.m.div,{ref:t,"data-status":n,...e,className:(0,o.cx)("chakra-alert__desc",e.className),__css:l})});l.displayName="AlertDescription"},74744:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(26415),i=n(40590),o=n(97001),a=n(5439);function s(e){let{status:t}=(0,o.oX)(),n=(0,o.XO)(t),s=(0,o.uL)(),u="loading"===t?s.spinner:s.icon;return(0,r.jsx)(a.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:u,children:e.children||(0,r.jsx)(n,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},36495:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var r=n(26415),i=n(93197),o=n(19838),a=n(40590),s=n(97001),u=n(56338),l=n(34272),c=n(5439);let d=(0,l.G)(function(e,t){var n;let{status:l="info",addRole:d=!0,...f}=(0,i.L)(e),h=null!==(n=e.colorScheme)&&void 0!==n?n:(0,s.TR)(l),p=(0,u.j)("Alert",{...e,colorScheme:h}),v=(0,o.k0)({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container});return(0,r.jsx)(s.uZ,{value:{status:l},children:(0,r.jsx)(s.Hm,{value:p,children:(0,r.jsx)(c.m.div,{"data-status":l,role:d?"alert":void 0,ref:t,...f,className:(0,a.cx)("chakra-alert",e.className),__css:v})})})});d.displayName="Alert"},85534:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(5439).m)("div");r.displayName="Box"},12711:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});let[r,i]=(0,n(65753).k)({strict:!1,name:"ButtonGroupContext"})},74152:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(26415),i=n(40590),o=n(97129),a=n(12711),s=n(34272),u=n(5439);let l={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,s.G)(function(e,t){let{size:n,colorScheme:s,variant:d,className:f,spacing:h="0.5rem",isAttached:p,isDisabled:v,orientation:g="horizontal",...m}=e,y=(0,i.cx)("chakra-button__group",f),b=(0,o.useMemo)(()=>({size:n,colorScheme:s,variant:d,isDisabled:v}),[n,s,d,v]),w={display:"inline-flex",...p?l[g]:c[g](h)},x="vertical"===g;return(0,r.jsx)(a.D,{value:b,children:(0,r.jsx)(u.m.div,{ref:t,role:"group",__css:w,className:y,"data-attached":p?"":void 0,"data-orientation":g,flexDir:x?"column":void 0,...m})})});d.displayName="ButtonGroup"},26861:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(26415),i=n(11637),o=n(93197),a=n(86711),s=n(40590),u=n(97129),l=n(12711),c=n(5439);function d(e){let{children:t,className:n,...i}=e,o=(0,u.isValidElement)(t)?(0,u.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=(0,s.cx)("chakra-button__icon",n);return(0,r.jsx)(c.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:a,children:o})}d.displayName="ButtonIcon";var f=n(19838),h=n(70986);function p(e){let{label:t,placement:n,spacing:i="0.5rem",children:o=(0,r.jsx)(h.$,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:l,...d}=e,p=(0,s.cx)("chakra-button__spinner",a),v="start"===n?"marginEnd":"marginStart",g=(0,u.useMemo)(()=>(0,f.k0)({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...l}),[l,t,v,i]);return(0,r.jsx)(c.m.div,{className:p,...d,__css:g,children:o})}p.displayName="ButtonSpinner";var v=n(34272),g=n(56338);let m=(0,v.G)((e,t)=>{let n=(0,l.i)(),d=(0,g.m)("Button",{...n,...e}),{isDisabled:f=null==n?void 0:n.isDisabled,isLoading:h,isActive:v,children:m,leftIcon:b,rightIcon:w,loadingText:x,iconSpacing:S="0.5rem",type:E,spinner:_,spinnerPlacement:k="start",className:C,as:O,shouldWrapChildren:T,...P}=(0,o.L)(e),I=(0,u.useMemo)(()=>{let e={...null==d?void 0:d._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...d,...!!n&&{_focus:e}}},[d,n]),{ref:R,type:A}=function(e){let[t,n]=(0,u.useState)(!e);return{ref:(0,u.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(O),M={rightIcon:w,leftIcon:b,iconSpacing:S,children:m,shouldWrapChildren:T};return(0,r.jsxs)(c.m.button,{disabled:f||h,ref:(0,i.qq)(t,R),as:O,type:null!=E?E:A,"data-active":(0,a.P)(v),"data-loading":(0,a.P)(h),__css:I,className:(0,s.cx)("chakra-button",C),...P,children:[h&&"start"===k&&(0,r.jsx)(p,{className:"chakra-button__spinner--start",label:x,placement:"start",spacing:S,children:_}),h?x||(0,r.jsx)(c.m.span,{opacity:0,children:(0,r.jsx)(y,{...M})}):(0,r.jsx)(y,{...M}),h&&"end"===k&&(0,r.jsx)(p,{className:"chakra-button__spinner--end",label:x,placement:"end",spacing:S,children:_})]})});function y(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o,shouldWrapChildren:a}=e;return a?(0,r.jsxs)("span",{style:{display:"contents"},children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]})}m.displayName="Button"},19730:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(26415),i=n(97129),o=n(26861);let a=(0,n(34272).G)((e,t)=>{let{icon:n,children:a,isRound:s,"aria-label":u,...l}=e,c=n||a,d=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,r.jsx)(o.z,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":u,...l,children:d})});a.displayName="IconButton"},22672:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(26415),i=n(5439),o=n(34272);let a=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";let s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,o.G)(function(e,t){let{axis:n="both",...o}=e;return(0,r.jsx)(i.m.div,{ref:t,__css:s[n],...o,position:"absolute"})})},78828:function(e,t,n){"use strict";n.d(t,{X:function(){return _}});var r=n(26415),i=n(93197),o=n(23080),a=n(57824),s=n(40590),u=n(86501),l=n(97129);let[c,d]=(0,n(65753).k)({name:"CheckboxGroupContext",strict:!1});var f=n(5439);function h(e){return(0,r.jsx)(f.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,r.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function p(e){return(0,r.jsx)(f.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function v(e){let{isIndeterminate:t,isChecked:n,...i}=e;return n||t?(0,r.jsx)(f.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsx)(t?p:h,{...i})}):null}var g=n(99882),m=n(34272),y=n(56338);let b={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},w={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},x=(0,u.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),S=(0,u.F4)({from:{opacity:0},to:{opacity:1}}),E=(0,u.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),_=(0,m.G)(function(e,t){let n=d(),u={...n,...e},c=(0,y.j)("Checkbox",u),h=(0,i.L)(e),{spacing:p="0.5rem",className:m,children:_,iconColor:k,iconSize:C,icon:O=(0,r.jsx)(v,{}),isChecked:T,isDisabled:P=null==n?void 0:n.isDisabled,onChange:I,inputProps:R,...A}=h,M=T;(null==n?void 0:n.value)&&h.value&&(M=n.value.includes(h.value));let j=I;(null==n?void 0:n.onChange)&&h.value&&(j=(0,o.P)(n.onChange,I));let{state:N,getInputProps:L,getCheckboxProps:D,getLabelProps:F,getRootProps:U}=(0,g.O)({...A,isDisabled:P,isChecked:M,onChange:j}),B=function(e){let[t,n]=(0,l.useState)(e),[r,i]=(0,l.useState)(!1);return e!==t&&(i(!0),n(e)),r}(N.isChecked),V=(0,l.useMemo)(()=>({animation:B?N.isIndeterminate?"".concat(S," 20ms linear, ").concat(E," 200ms linear"):"".concat(x," 200ms linear"):void 0,...c.icon,...(0,a.o)({fontSize:C,color:k})}),[k,C,B,N.isIndeterminate,c.icon]),q=(0,l.cloneElement)(O,{__css:V,isIndeterminate:N.isIndeterminate,isChecked:N.isChecked});return(0,r.jsxs)(f.m.label,{__css:{...w,...c.container},className:(0,s.cx)("chakra-checkbox",m),...U(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...L(R,t)}),(0,r.jsx)(f.m.span,{__css:{...b,...c.control},className:"chakra-checkbox__control",...D(),children:q}),_&&(0,r.jsx)(f.m.span,{className:"chakra-checkbox__label",...F(),__css:{marginStart:p,...c.label},children:_})]})});_.displayName="Checkbox"},99882:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(57077),i=n(98418),o=n(48904),a=n(11637),s=n(25597),u=n(86711),l=n(23080),c=n(7592),d=n(97129),f=n(17648),h=n(54227);function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:t,isReadOnly:n,isRequired:p,isInvalid:g,id:m,onBlur:y,onFocus:b,"aria-describedby":w}=(0,f.K)(e),{defaultChecked:x,isChecked:S,isFocusable:E,onChange:_,isIndeterminate:k,name:C,value:O,tabIndex:T,"aria-label":P,"aria-labelledby":I,"aria-invalid":R,...A}=e,M=(0,s.C)(A,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=(0,r.W)(_),N=(0,r.W)(y),L=(0,r.W)(b),[D,F]=(0,d.useState)(!1),[U,B]=(0,d.useState)(!1),[V,q]=(0,d.useState)(!1),z=(0,d.useRef)(!1);(0,d.useEffect)(()=>(0,c.BT)(e=>{z.current=e}),[]);let W=(0,d.useRef)(null),[$,G]=(0,d.useState)(!0),[H,Z]=(0,d.useState)(!!x),K=void 0!==S,X=K?S:H,J=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}K||(X?Z(e.currentTarget.checked):Z(!!k||e.currentTarget.checked)),null==j||j(e)},[n,t,X,K,k,j]);(0,i.G)(()=>{W.current&&(W.current.indeterminate=!!k)},[k]),(0,o.r)(()=>{t&&F(!1)},[t,F]),(0,i.G)(()=>{let e=W.current;if(!(null==e?void 0:e.form))return;let t=()=>{Z(!!x)};return e.form.addEventListener("reset",t),()=>{var n;return null===(n=e.form)||void 0===n?void 0:n.removeEventListener("reset",t)}},[]);let Y=t&&!E,Q=(0,d.useCallback)(e=>{" "===e.key&&q(!0)},[q]),ee=(0,d.useCallback)(e=>{" "===e.key&&q(!1)},[q]);(0,i.G)(()=>{W.current&&W.current.checked!==X&&Z(W.current.checked)},[W.current]);let et=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-active":(0,u.P)(V),"data-hover":(0,u.P)(U),"data-checked":(0,u.P)(X),"data-focus":(0,u.P)(D),"data-focus-visible":(0,u.P)(D&&z.current),"data-indeterminate":(0,u.P)(k),"data-disabled":(0,u.P)(t),"data-invalid":(0,u.P)(g),"data-readonly":(0,u.P)(n),"aria-hidden":!0,onMouseDown:(0,l.v)(e.onMouseDown,e=>{D&&e.preventDefault(),q(!0)}),onMouseUp:(0,l.v)(e.onMouseUp,()=>q(!1)),onMouseEnter:(0,l.v)(e.onMouseEnter,()=>B(!0)),onMouseLeave:(0,l.v)(e.onMouseLeave,()=>B(!1))}},[V,X,t,D,U,k,g,n]),en=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-active":(0,u.P)(V),"data-hover":(0,u.P)(U),"data-checked":(0,u.P)(X),"data-focus":(0,u.P)(D),"data-focus-visible":(0,u.P)(D&&z.current),"data-indeterminate":(0,u.P)(k),"data-disabled":(0,u.P)(t),"data-invalid":(0,u.P)(g),"data-readonly":(0,u.P)(n)}},[V,X,t,D,U,k,g,n]),er=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...M,...e,ref:(0,a.lq)(n,e=>{e&&G("LABEL"===e.tagName)}),onClick:(0,l.v)(e.onClick,()=>{if(!$){var e;null===(e=W.current)||void 0===e||e.click(),requestAnimationFrame(()=>{var e;null===(e=W.current)||void 0===e||e.focus({preventScroll:!0})})}}),"data-disabled":(0,u.P)(t),"data-checked":(0,u.P)(X),"data-invalid":(0,u.P)(g)}},[M,t,X,g,$]),ei=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(W,r),type:"checkbox",name:C,value:O,id:m,tabIndex:T,onChange:(0,l.v)(e.onChange,J),onBlur:(0,l.v)(e.onBlur,N,()=>F(!1)),onFocus:(0,l.v)(e.onFocus,L,()=>F(!0)),onKeyDown:(0,l.v)(e.onKeyDown,Q),onKeyUp:(0,l.v)(e.onKeyUp,ee),required:p,checked:X,disabled:Y,readOnly:n,"aria-label":P,"aria-labelledby":I,"aria-invalid":R?!!R:g,"aria-describedby":w,"aria-disabled":t,"aria-checked":k?"mixed":X,style:h.N}},[C,O,m,T,J,N,L,Q,ee,p,X,Y,n,P,I,R,g,w,t,k]),eo=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:n,onMouseDown:(0,l.v)(e.onMouseDown,v),"data-disabled":(0,u.P)(t),"data-checked":(0,u.P)(X),"data-invalid":(0,u.P)(g)}},[X,t,g]);return{state:{isInvalid:g,isFocused:D,isChecked:X,isActive:V,isHovered:U,isIndeterminate:k,isDisabled:t,isReadOnly:n,isRequired:p},getRootProps:er,getCheckboxProps:et,getIndicatorProps:en,getInputProps:ei,getLabelProps:eo,htmlProps:M}}function v(e){e.preventDefault(),e.stopPropagation()}},25614:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(11637),i=n(86711),o=n(97129);function a(e){var t,n,r;let{tagName:i,isContentEditable:o}=null!==(r=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==r?r:e.target;return"INPUT"!==i&&"TEXTAREA"!==i&&!0!==o}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:s,clickOnEnter:u=!0,clickOnSpace:l=!0,onMouseDown:c,onMouseUp:d,onClick:f,onKeyDown:h,onKeyUp:p,tabIndex:v,onMouseOver:g,onMouseLeave:m,...y}=e,[b,w]=(0,o.useState)(!0),[x,S]=(0,o.useState)(!1),E=function(){let e=(0,o.useRef)(new Map),t=e.current,n=(0,o.useCallback)((t,n,r,i)=>{e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)},[]),r=(0,o.useCallback)((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)},[]);return(0,o.useEffect)(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),_=b?v:v||0,k=n&&!s,C=(0,o.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==f||f(e)},[n,f]),O=(0,o.useCallback)(e=>{x&&a(e)&&(e.preventDefault(),e.stopPropagation(),S(!1),E.remove(document,"keyup",O,!1))},[x,E]),T=(0,o.useCallback)(e=>{if(null==h||h(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=u&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),S(!0)),t&&(e.preventDefault(),e.currentTarget.click()),E.add(document,"keyup",O,!1)},[n,b,h,u,l,E,O]),P=(0,o.useCallback)(e=>{null==p||p(e),!n&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),S(!1),e.currentTarget.click())},[l,b,n,p]),I=(0,o.useCallback)(e=>{0===e.button&&(S(!1),E.remove(document,"mouseup",I,!1))},[E]),R=(0,o.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||S(!0),e.currentTarget.focus({preventScroll:!0}),E.add(document,"mouseup",I,!1),null==c||c(e)}},[n,b,c,E,I]),A=(0,o.useCallback)(e=>{0===e.button&&(b||S(!1),null==d||d(e))},[d,b]),M=(0,o.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),j=(0,o.useCallback)(e=>{x&&(e.preventDefault(),S(!1)),null==m||m(e)},[x,m]),N=(0,r.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!1)});return b?{...y,ref:N,type:"button","aria-disabled":k?void 0:n,disabled:k,onClick:C,onMouseDown:c,onMouseUp:d,onKeyUp:p,onKeyDown:h,onMouseOver:g,onMouseLeave:m}:{...y,ref:N,role:"button","data-active":(0,i.P)(x),"aria-disabled":n?"true":void 0,tabIndex:k?void 0:_,onClick:C,onMouseDown:R,onMouseUp:A,onKeyUp:P,onKeyDown:T,onMouseOver:M,onMouseLeave:j}}},56761:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(26415),i=n(93197),o=n(2585),a=n(34272),s=n(56338),u=n(5439);function l(e){return(0,r.jsx)(o.J,{focusable:"false","aria-hidden":!0,...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}let c=(0,a.G)(function(e,t){let n=(0,s.m)("CloseButton",e),{children:o,isDisabled:a,__css:c,...d}=(0,i.L)(e);return(0,r.jsx)(u.m.button,{type:"button","aria-label":"Close",ref:t,disabled:a,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:o||(0,r.jsx)(l,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},62767:function(e,t,n){"use strict";n.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var r=n(97129);let i=(0,r.createContext)({});function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:n}=o();return"dark"===n?t:e}i.displayName="ColorModeContext"},30266:function(e,t,n){"use strict";n.d(t,{n:function(){return g}});var r=n(11637),i=n(65753),o=n(97129);function a(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}let s=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function u(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function l(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}let c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,d=e=>e;var f=Object.defineProperty,h=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t,n)=>(h(e,"symbol"!=typeof t?t+"":t,n),n);class v{constructor(){var e=this;p(this,"descendants",new Map),p(this,"register",e=>{if(null!=e)return s(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),p(this,"unregister",e=>{this.descendants.delete(e);let t=a(Array.from(this.descendants.keys()));this.assignIndex(t)}),p(this,"destroy",()=>{this.descendants.clear()}),p(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),p(this,"count",()=>this.descendants.size),p(this,"enabledCount",()=>this.enabledValues().length),p(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),p(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),p(this,"item",e=>{if(0!==this.count())return this.values()[e]}),p(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),p(this,"first",()=>this.item(0)),p(this,"firstEnabled",()=>this.enabledItem(0)),p(this,"last",()=>this.item(this.descendants.size-1)),p(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),p(this,"indexOf",e=>{var t,n;return e&&null!==(n=null===(t=this.descendants.get(e))||void 0===t?void 0:t.index)&&void 0!==n?n:-1}),p(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),p(this,"next",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=u(t,e.count(),n);return e.item(r)}),p(this,"nextEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let i=u(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}),p(this,"prev",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=l(t,e.count()-1,n);return e.item(r)}),p(this,"prevEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let i=l(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}),p(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=a(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}}function g(){let[e,t]=(0,i.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{let e=(0,o.useRef)(new v);return c(()=>()=>e.current.destroy()),e.current},e=>{let n=t(),[i,a]=(0,o.useState)(-1),s=(0,o.useRef)(null);c(()=>()=>{s.current&&n.unregister(s.current)},[]),c(()=>{if(!s.current)return;let e=Number(s.current.dataset.index);i==e||Number.isNaN(e)||a(e)});let u=e?d(n.register(e)):d(n.register);return{descendants:n,index:i,enabledIndex:n.enabledIndexOf(s.current),register:(0,r.lq)(u,s)}}]}},70291:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var r=n(26415),i=n(93197),o=n(40590),a=n(34272),s=n(56338),u=n(5439);let l=(0,a.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:a,borderTopWidth:l,borderRightWidth:c,borderWidth:d,borderStyle:f,borderColor:h,...p}=(0,s.m)("Divider",e),{className:v,orientation:g="horizontal",__css:m,...y}=(0,i.L)(e);return(0,r.jsx)(u.m.hr,{ref:t,"aria-orientation":g,...y,__css:{...p,border:"0",borderColor:h,borderStyle:f,...{vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:a||l||d||"1px",width:"100%"}}[g],...m},className:(0,o.cx)("chakra-divider",v)})});l.displayName="Divider"},98031:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(97129);function i(e){var t;let n=r.version;return"string"!=typeof n||n.startsWith("18.")?null==e?void 0:e.ref:null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.ref}},23209:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return u}});var r=n(26415),i=n(98418),o=n(97129);let a=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function s(){let{defer:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[,t]=(0,o.useReducer)(e=>e+1,0);return(0,i.G)(()=>{e&&t()},[e]),(0,o.useContext)(a)}function u(e){let{children:t,environment:n,disabled:i}=e,s=(0,o.useRef)(null),u=(0,o.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},getWindow:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window}},[n]),l=!i||!n;return(0,r.jsxs)(a.Provider,{value:u,children:[t,l&&(0,r.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",u.displayName="EnvironmentProvider"},31680:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(26415),i=n(34272),o=n(5439);let a=(0,i.G)(function(e,t){let{direction:n,align:i,justify:a,wrap:s,basis:u,grow:l,shrink:c,...d}=e;return(0,r.jsx)(o.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:u,flexGrow:l,flexShrink:c},...d})});a.displayName="Flex"},91155:function(e,t,n){"use strict";n.d(t,{NI:function(){return m},NJ:function(){return g},e:function(){return p}});var r=n(26415),i=n(11637),o=n(93197),a=n(65753),s=n(86711),u=n(40590),l=n(97129),c=n(34272),d=n(56338),f=n(5439);let[h,p]=(0,a.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[v,g]=(0,a.k)({strict:!1,name:"FormControlContext"}),m=(0,c.G)(function(e,t){let n=(0,d.j)("Form",e),{getRootProps:a,htmlProps:c,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...u}=e,c=(0,l.useId)(),d=t||"field-".concat(c),f="".concat(d,"-label"),h="".concat(d,"-feedback"),p="".concat(d,"-helptext"),[v,g]=(0,l.useState)(!1),[m,y]=(0,l.useState)(!1),[b,w]=(0,l.useState)(!1),x=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:p,...e,ref:(0,i.lq)(t,e=>{e&&y(!0)})}},[p]),S=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}},[d,o,b,r,a,f]),E=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:h,...e,ref:(0,i.lq)(t,e=>{e&&g(!0)}),"aria-live":"polite"}},[h]),_=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,...u,ref:t,role:"group","data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a)}},[u,o,b,r,a]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:v,setHasFeedbackText:g,hasHelpText:m,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:u,getHelpTextProps:x,getErrorMessageProps:E,getRootProps:_,getLabelProps:S,getRequiredIndicatorProps:(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}},[])}}((0,o.L)(e)),g=(0,u.cx)("chakra-form-control",e.className);return(0,r.jsx)(v,{value:p,children:(0,r.jsx)(h,{value:n,children:(0,r.jsx)(f.m.div,{...a({},t),className:g,__css:n.container})})})});m.displayName="FormControl",(0,c.G)(function(e,t){let n=g(),i=p(),o=(0,u.cx)("chakra-form__helper-text",e.className);return(0,r.jsx)(f.m.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:i.helperText,className:o})}).displayName="FormHelperText"},94389:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(26415),i=n(93197),o=n(40590),a=n(91155),s=n(34272),u=n(56338),l=n(5439);let c=(0,s.G)(function(e,t){var n;let s=(0,u.m)("FormLabel",e),c=(0,i.L)(e),{className:f,children:h,requiredIndicator:p=(0,r.jsx)(d,{}),optionalIndicator:v=null,...g}=c,m=(0,a.NJ)(),y=null!==(n=null==m?void 0:m.getLabelProps(g,t))&&void 0!==n?n:{ref:t,...g};return(0,r.jsxs)(l.m.label,{...y,className:(0,o.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...s},children:[h,(null==m?void 0:m.isRequired)?p:v]})});c.displayName="FormLabel";let d=(0,s.G)(function(e,t){let n=(0,a.NJ)(),i=(0,a.e)();if(!(null==n?void 0:n.isRequired))return null;let s=(0,o.cx)("chakra-form__required-indicator",e.className);return(0,r.jsx)(l.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:s})});d.displayName="RequiredIndicator"},17648:function(e,t,n){"use strict";n.d(t,{K:function(){return s},Y:function(){return a}});var r=n(86711),i=n(23080),o=n(91155);function a(e){let{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...a}=s(e);return{...a,disabled:t,readOnly:i,required:o,"aria-invalid":(0,r.Q)(n),"aria-required":(0,r.Q)(o),"aria-readonly":(0,r.Q)(i)}}function s(e){var t,n,r;let a=(0,o.NJ)(),{id:s,disabled:u,readOnly:l,required:c,isRequired:d,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:v,onBlur:g,...m}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...m,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!==(t=null!=u?u:p)&&void 0!==t?t:null==a?void 0:a.isDisabled,isReadOnly:null!==(n=null!=l?l:h)&&void 0!==n?n:null==a?void 0:a.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==a?void 0:a.isRequired,isInvalid:null!=f?f:null==a?void 0:a.isInvalid,onFocus:(0,i.v)(null==a?void 0:a.onFocus,v),onBlur:(0,i.v)(null==a?void 0:a.onBlur,g)}}},53941:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(26415),i=n(97129),o=n(2585),a=n(34272);function s(e){let{viewBox:t="0 0 24 24",d:n,displayName:s,defaultProps:u={}}=e,l=i.Children.toArray(e.path),c=(0,a.G)((e,i)=>(0,r.jsx)(o.J,{ref:i,viewBox:t,...u,...e,children:l.length?l:(0,r.jsx)("path",{fill:"currentColor",d:n})}));return c.displayName=s,c}},2585:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(26415),i=n(40590),o=n(34272),a=n(56338),s=n(5439);let u={path:(0,r.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,r.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,r.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},l=(0,o.G)((e,t)=>{let{as:n,viewBox:o,color:l="currentColor",focusable:c=!1,children:d,className:f,__css:h,...p}=e,v=(0,i.cx)("chakra-icon",f),g=(0,a.m)("Icon",e),m={ref:t,focusable:c,className:v,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...h,...g}},y=null!=o?o:u.viewBox;if(n&&"string"!=typeof n)return(0,r.jsx)(s.m.svg,{as:n,...m,...p});let b=null!=d?d:u.path;return(0,r.jsx)(s.m.svg,{verticalAlign:"middle",viewBox:y,...m,...p,children:b})});l.displayName="Icon"},8685:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(26415),i=n(93197),o=n(40590),a=n(17648),s=n(34272),u=n(56338),l=n(5439);let c=(0,s.G)(function(e,t){let{htmlSize:n,...s}=e,c=(0,u.j)("Input",s),d=(0,i.L)(s),f=(0,a.Y)(d),h=(0,o.cx)("chakra-input",e.className);return(0,r.jsx)(l.m.input,{size:n,...f,__css:c.field,ref:t,className:h})});c.displayName="Input",c.id="Input"},81983:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(26415),i=n(93197),o=n(40590),a=n(34272),s=n(56338),u=n(5439);let l=(0,a.G)(function(e,t){let n=(0,s.m)("Link",e),{className:a,isExternal:l,...c}=(0,i.L)(e);return(0,r.jsx)(u.m.a,{target:l?"_blank":void 0,rel:l?"noopener":void 0,ref:t,className:(0,o.cx)("chakra-link",a),...c,__css:n})});l.displayName="Link"},86629:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(44271),i=n(65386),o=n(97129),a=n(23209),s=n(87953);function u(e,t){var n;let u=function(e){var t,n;let i=(0,r.Kn)(e)?e:{fallback:null!=e?e:"base"},u=(0,s.F)().__breakpoints.details.map(e=>{let{minMaxQuery:t,breakpoint:n}=e;return{breakpoint:n,query:t.replace("@media screen and ","")}}),l=u.map(e=>e.breakpoint===i.fallback),c=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ssr:n=!0,fallback:r}=t,{getWindow:i}=(0,a.O)(),s=Array.isArray(e)?e:[e],u=Array.isArray(r)?r:[r];u=u.filter(e=>null!=e);let[l,c]=(0,o.useState)(()=>s.map((e,t)=>({media:e,matches:n?!!u[t]:i().matchMedia(e).matches})));return(0,o.useEffect)(()=>{let e=i();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[i]),l.map(e=>e.matches)})(u.map(e=>e.query),{fallback:l,ssr:i.ssr}).findIndex(e=>!0==e);return null!==(n=null===(t=u[c])||void 0===t?void 0:t.breakpoint)&&void 0!==n?n:i.fallback}((0,r.Kn)(t)?t:{fallback:null!=t?t:"base"}),l=(0,s.F)();if(!u)return;let c=Array.from((null===(n=l.__breakpoints)||void 0===n?void 0:n.keys)||[]);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.AV,r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){let t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}if(-1!==r)return e[n[r]]}(Array.isArray(e)?Object.fromEntries(Object.entries((0,i.Yq)(e,c)).map(e=>{let[t,n]=e;return[t,n]})):e,u,c)}},59362:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(26415),i=n(40590),o=n(16177),a=n(61404),s=n(34272),u=n(5439);let l=(0,s.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(u.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,s.G)((e,t)=>{let{children:n,as:o,...s}=e,c=(0,a.zZ)(s,t),d=o||l;return(0,r.jsx)(d,{...c,className:(0,i.cx)("chakra-menu__menu-button",e.className),children:(0,r.jsx)(u.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},5045:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(26415),i=n(40590),o=n(16177),a=n(34272),s=n(5439);let u=(0,a.G)((e,t)=>{let{title:n,children:a,className:u,...l}=e,c=(0,i.cx)("chakra-menu__group__title",u),d=(0,o.x)();return(0,r.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&(0,r.jsx)(s.m.p,{className:c,...l,__css:d.groupTitle,children:n}),a]})});u.displayName="MenuGroup"},23952:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(26415),i=n(40590),o=n(97129),a=n(16177),s=n(5439);let u=e=>{let{className:t,children:n,...u}=e,l=(0,a.x)(),c=o.Children.only(n),d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",c.props.className)}):null,f=(0,i.cx)("chakra-menu__icon-wrapper",t);return(0,r.jsx)(s.m.span,{className:f,...u,__css:l.icon,children:d})};u.displayName="MenuIcon"},24332:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(26415),i=n(40590),o=n(16177),a=n(34272),s=n(5439);let u=(0,a.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(s.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});u.displayName="MenuCommand";var l=n(23952),c=n(97129);let d=(0,a.G)((e,t)=>{let{type:n,...i}=e,a=(0,o.x)(),u=i.as||n?null!=n?n:void 0:"button",l=(0,c.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...a.item}),[a.item]);return(0,r.jsx)(s.m.button,{ref:t,type:u,...i,__css:l})});var f=n(61404);let h=(0,a.G)((e,t)=>{let{icon:n,iconSpacing:o="0.75rem",command:a,commandSpacing:s="0.75rem",children:c,...h}=e,p=(0,f.iX)(h,t),v=n||a?(0,r.jsx)("span",{style:{pointerEvents:"none",flex:1},children:c}):c;return(0,r.jsxs)(d,{...p,className:(0,i.cx)("chakra-menu__menuitem",p.className),children:[n&&(0,r.jsx)(l.O,{fontSize:"0.8em",marginEnd:o,children:n}),v,a&&(0,r.jsx)(u,{marginStart:s,children:a})]})});h.displayName="MenuItem"},34283:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(26415),i=n(40590),o=n(23080),a=n(74550),s=n(16177),u=n(61404),l=n(5439),c=n(34272);let d={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},f=(0,l.m)(a.E.div),h=(0,c.G)(function(e,t){var n,a;let{rootProps:c,motionProps:h,...p}=e,{isOpen:v,onTransitionEnd:g,unstable__animationState:m}=(0,u.Xh)(),y=(0,u._l)(p,t),b=(0,u.Qh)(c),w=(0,s.x)();return(0,r.jsx)(l.m.div,{...b,__css:{zIndex:null!==(a=e.zIndex)&&void 0!==a?a:null===(n=w.list)||void 0===n?void 0:n.zIndex},children:(0,r.jsx)(f,{variants:d,initial:!1,animate:v?"enter":"exit",__css:{outline:0,...w.list},...h,...y,className:(0,i.cx)("chakra-menu__menu-list",y.className),onUpdate:g,onAnimationComplete:(0,o.P)(m.onComplete,y.onAnimationComplete)})})});h.displayName="MenuList"},16177:function(e,t,n){"use strict";n.d(t,{v:function(){return h},x:function(){return f}});var r=n(26415),i=n(93197),o=n(65753),a=n(83262),s=n(97129),u=n(61404),l=n(87953),c=n(56338);let[d,f]=(0,o.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),h=e=>{let{children:t}=e,n=(0,c.j)("Menu",e),o=(0,i.L)(e),{direction:f}=(0,l.F)(),{descendants:h,...p}=(0,u.H9)({...o,direction:f}),v=(0,s.useMemo)(()=>p,[p]),{isOpen:g,onClose:m,forceUpdate:y}=v;return(0,r.jsx)(u.wN,{value:h,children:(0,r.jsx)(u.Kb,{value:v,children:(0,r.jsx)(d,{value:n,children:(0,a.P)(t,{isOpen:g,onClose:m,forceUpdate:y})})})})};h.displayName="Menu"},61404:function(e,t,n){"use strict";n.d(t,{wN:function(){return m},Kb:function(){return x},H9:function(){return _},zZ:function(){return k},Xh:function(){return S},iX:function(){return P},_l:function(){return O},Qh:function(){return T}});var r=n(77622),i=n(74540),o=n(41898),a=n(86186),s=n(97129),u=n(48904),l=n(11637),c=n(65753),d=n(86711),f=n(23080),h=n(53112),p=n(30266),v=n(19022),g=n(25614);let[m,y,b,w]=(0,p.n)(),[x,S]=(0,c.k)({strict:!1,name:"MenuContext"});function E(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,closeOnSelect:n=!0,closeOnBlur:l=!0,initialFocusRef:c,autoSelect:d=!0,isLazy:f,isOpen:h,defaultIsOpen:p,onClose:g,onOpen:m,placement:y="bottom-start",lazyBehavior:w="unmount",direction:x,computePositionOnMount:S=!1,..._}=e,k=(0,s.useRef)(null),C=(0,s.useRef)(null),O=(0,s.useRef)(!0),T=b(),P=(0,s.useCallback)(()=>{requestAnimationFrame(()=>{var e;null===(e=k.current)||void 0===e||e.focus({preventScroll:!1})})},[]),I=(0,s.useCallback)(()=>{let e=setTimeout(()=>{var e,t;if(c)null===(e=c.current)||void 0===e||e.focus();else if(T.count()){let e=T.firstEnabled();e&&U(e.index)}else null===(t=k.current)||void 0===t||t.focus({preventScroll:!1})});W.current.add(e)},[T,c]),R=(0,s.useCallback)(()=>{let e=setTimeout(()=>{if(T.count()){let e=T.lastEnabled();e&&U(e.index)}else{var e;null===(e=k.current)||void 0===e||e.focus({preventScroll:!1})}});W.current.add(e)},[T]),A=(0,s.useCallback)(()=>{null==m||m(),d?I():P()},[d,I,P,m]),{isOpen:M,onOpen:j,onClose:N,onToggle:L}=(0,r.q)({isOpen:h,defaultIsOpen:p,onClose:g,onOpen:A});(0,i.O)({enabled:M&&l,ref:k,handler:e=>{var t,n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==i?i:e.target;(null===(r=C.current)||void 0===r?void 0:r.contains(o))||N()}});let D=(0,v.D)({..._,enabled:M||S,placement:y,direction:x}),[F,U]=(0,s.useState)(-1);(0,o.C)(k,{focusRef:C,visible:M,shouldFocus:!0});let B=(0,a.h)({isOpen:M,ref:k}),[V,q]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=function(e,t){let n=(0,s.useId)();return(0,s.useMemo)(()=>e||[void 0,n].filter(Boolean).join("-"),[e,void 0,n])}(e);return(0,s.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(i)),[i,n])}(t,"menu-button","menu-list"),z=(0,s.useCallback)(()=>{j(),P()},[j,P]),W=(0,s.useRef)(new Set([]));return(0,s.useEffect)(()=>{let e=W.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),(0,u.r)(()=>{var e;M||(U(-1),null===(e=k.current)||void 0===e||e.scrollTo(0,0))},[M]),(0,u.r)(()=>{M&&-1===F&&P()},[F,M]),(0,s.useEffect)(()=>{var e;if(!M)return;let t=T.item(F);null==t||null===(e=t.node)||void 0===e||e.focus({preventScroll:!O.current})},[T,F,M]),{openAndFocusMenu:z,openAndFocusFirstItem:(0,s.useCallback)(()=>{j(),I()},[I,j]),openAndFocusLastItem:(0,s.useCallback)(()=>{O.current=!0,j(),R()},[j,R]),onTransitionEnd:(0,s.useCallback)(()=>{var e,t;let n=E(k.current),r=null===(e=k.current)||void 0===e?void 0:e.contains(n.activeElement);if(!(M&&!r))return;let i=null===(t=T.item(F))||void 0===t?void 0:t.node;null==i||i.focus({preventScroll:!O.current})},[M,F,T]),unstable__animationState:B,descendants:T,popper:D,buttonId:V,menuId:q,forceUpdate:D.forceUpdate,orientation:"vertical",isOpen:M,onToggle:L,onOpen:j,onClose:N,menuRef:k,buttonRef:C,focusedIndex:F,closeOnSelect:n,closeOnBlur:l,autoSelect:d,setFocusedIndex:U,isLazy:f,lazyBehavior:w,initialFocusRef:c,scrollIntoViewRef:O}}function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=S(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:a,scrollIntoViewRef:u}=n,c=(0,s.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:a}[e.key];t&&(u.current=!0,e.preventDefault(),e.stopPropagation(),t(e))},[o,a,u]);return{...e,ref:(0,l.lq)(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":(0,d.P)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,f.v)(e.onClick,r),onKeyDown:(0,f.v)(e.onKeyDown,c)}}function C(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!==(t=e.ownerDocument.defaultView)&&void 0!==t?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==e?void 0:null===(t=e.getAttribute("role"))||void 0===t?void 0:t.startsWith("menuitem"))}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=S();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:a,onClose:u,menuId:c,isLazy:d,lazyBehavior:p,scrollIntoViewRef:v,unstable__animationState:g}=n,m=y(),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=(0,s.useState)([]),o=(0,s.useRef)(void 0),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)},u=()=>{a(),o.current=setTimeout(()=>{i([]),o.current=null},t)};return(0,s.useEffect)(()=>a,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...r];e.pop(),i(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let o=r.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),i(o),e(o.join("")),u()}}}}({preventDefault:e=>" "!==e.key&&C(e.target)}),w=(0,s.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:e=>{e.stopPropagation(),u()},ArrowDown:()=>{var e;v.current=!0;let t=null!==(e=m.nextEnabled(r))&&void 0!==e?e:m.firstEnabled();t&&i(t.index)},ArrowUp:()=>{var e;v.current=!0;let t=null!==(e=m.prevEnabled(r))&&void 0!==e?e:m.firstEnabled();t&&i(t.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let n=b(e=>{let t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));let i=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;return i.includes(r)?((t=i.indexOf(r)+1)===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return r}(m.values(),e,e=>{var t,n;return null!==(n=null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.textContent)&&void 0!==n?n:""},m.item(r));t&&i(m.indexOf(t.node))});C(e.target)&&n(e)},[m,r,b,u,i,v]),x=(0,s.useRef)(!1);a&&(x.current=!0);let E=(0,h.k)({wasSelected:x.current,enabled:d,mode:p,isSelected:g.present});return{...e,ref:(0,l.lq)(o,t),children:E?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,f.v)(e.onKeyDown,w)}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{popper:t,isOpen:n}=S();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:a,isDisabled:u,isFocusable:c,closeOnSelect:d,type:f,...h}=e,{setFocusedIndex:p,focusedIndex:v,closeOnSelect:m,onClose:y,menuId:b,scrollIntoViewRef:x}=S(),_=(0,s.useRef)(null),k="".concat(b,"-menuitem-").concat((0,s.useId)()),{index:O,register:T}=w({disabled:u&&!c}),P=(0,s.useCallback)(e=>{null==n||n(e),u||(x.current=!1,p(O))},[p,O,u,n,x]),I=(0,s.useCallback)(e=>{var t;null==r||r(e),_.current&&E(t=_.current).activeElement!==t&&P(e)},[P,r]),R=(0,s.useCallback)(e=>{null==i||i(e),u||p(-1)},[p,u,i]),A=(0,s.useCallback)(e=>{null==o||o(e),C(e.currentTarget)&&(null!=d?d:m)&&y()},[y,o,m,d]),M=(0,s.useCallback)(e=>{null==a||a(e),p(O)},[p,a,O]),j=O===v,N=(0,g.h)({onClick:A,onFocus:M,onMouseEnter:P,onMouseMove:I,onMouseLeave:R,ref:(0,l.lq)(T,_,t),isDisabled:u,isFocusable:c});return{...h,...N,type:null!=f?f:N.type,id:k,role:"menuitem",tabIndex:j?0:-1}}},8624:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(26415),i=n(40590),o=n(97129),a=n(93089),s=n(34272),u=n(5439);let l=(0,s.G)((e,t)=>{let{className:n,...s}=e,{bodyId:l,setBodyMounted:c}=(0,a.vR)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),f=(0,a.I_)();return(0,r.jsx)(u.m.div,{ref:t,className:d,id:l,...s,__css:f.body})});l.displayName="ModalBody"},18979:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(26415),i=n(40590),o=n(23080),a=n(93089),s=n(56761);let u=(0,n(34272).G)((e,t)=>{let{onClick:n,className:u,...l}=e,{onClose:c}=(0,a.vR)(),d=(0,i.cx)("chakra-modal__close-btn",u),f=(0,a.I_)();return(0,r.jsx)(s.P,{ref:t,__css:f.closeButton,className:d,onClick:(0,o.v)(n,e=>{e.stopPropagation(),c()}),...l})});u.displayName="ModalCloseButton"},70620:function(e,t,n){"use strict";n.d(t,{h:function(){return tJ}});var r,i,o,a,s,u=n(26415),l=n(19838),c=n(40590),d=n(93089),f=n(68098),h=n(97129),p=n(13752),v="right-scroll-bar-position",g="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var y="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,b=new WeakMap;function w(e,t){var n,r,i,o=(n=t||null,r=function(t){return e.forEach(function(e){return m(e,t)})},(i=(0,h.useState)(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade);return y(function(){var t=b.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach(function(e){r.has(e)||m(e,null)}),r.forEach(function(e){n.has(e)||m(e,i)})}b.set(o,e)},[e]),o}function x(e){return e}function S(e,t){void 0===t&&(t=x);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function E(e,t){return void 0===t&&(t=x),S(e,t)}function _(e){void 0===e&&(e={});var t=S(null);return t.options=(0,p.pi)({async:!0,ssr:!1},e),t}var k=_(),C=function(){},O=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:C}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,x=e.gapMode,S=(0,p._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=w([n,t]),_=(0,p.pi)((0,p.pi)({},S),i);return h.createElement(h.Fragment,null,c&&h.createElement(f,{sideCar:k,removeScrollBar:l,shards:d,noRelative:v,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:x}),a?h.cloneElement(h.Children.only(s),(0,p.pi)((0,p.pi)({},_),{ref:E})):h.createElement(void 0===b?"div":b,(0,p.pi)({},_,{className:u,ref:E}),s))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:g,zeroRight:v};var T=function(e){var t=e.sideCar,n=(0,p._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,(0,p.pi)({},n))};T.isSideCarExport=!0;var P=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},I=function(){var e=P();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},R=function(){var e=I();return function(t){return e(t.styles,t.dynamic),null}},A={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[M(n),M(r),M(i)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return A;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},L=R(),D="data-scroll-locked",F=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(D,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(v," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(g," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(v," .").concat(v," {\n right: 0 ").concat(r,";\n }\n \n .").concat(g," .").concat(g," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(D,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},U=function(){var e=parseInt(document.body.getAttribute(D)||"0",10);return isFinite(e)?e:0},B=function(){h.useEffect(function(){return document.body.setAttribute(D,(U()+1).toString()),function(){var e=U()-1;e<=0?document.body.removeAttribute(D):document.body.setAttribute(D,e.toString())}},[])},V=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;B();var o=h.useMemo(function(){return N(i)},[i]);return h.createElement(L,{styles:F(o,!t,i,n?"":"!important")})},q=!1;if("undefined"!=typeof window)try{var z=Object.defineProperty({},"passive",{get:function(){return q=!0,!0}});window.addEventListener("test",z,z),window.removeEventListener("test",z,z)}catch(e){q=!1}var W=!!q&&{passive:!1},$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},G=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),H(e,r)){var i=Z(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},H=function(e,t){return"v"===e?$(t,"overflowY"):$(t,"overflowX")},Z=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},K=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,u=n.target,l=t.contains(u),c=!1,d=s>0,f=0,h=0;do{if(!u)break;var p=Z(e,u),v=p[0],g=p[1]-p[2]-a*v;(v||g)&&H(e,u)&&(f+=g,h+=v);var m=u.parentNode;u=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},X=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},J=function(e){return[e.deltaX,e.deltaY]},Y=function(e){return e&&"current"in e?e.current:e},Q=0,ee=[],et=(r=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(Q++)[0],o=h.useState(R)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,p.ev)([e.lockRef.current],(e.shards||[]).map(Y),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=X(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-o[0],l="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=G(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=G(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=i),!i)return!0;var h=r.current||i;return K(h,t,e,"h"===h?u:l,!0)},[]),u=h.useCallback(function(e){if(ee.length&&ee[ee.length-1]===o){var n="deltaY"in e?J(e):X(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(Y).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=h.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=h.useCallback(function(e){n.current=X(e),r.current=void 0},[]),d=h.useCallback(function(t){l(t.type,J(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){l(t.type,X(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return ee.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,W),document.addEventListener("touchmove",u,W),document.addEventListener("touchstart",c,W),function(){ee=ee.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,W),document.removeEventListener("touchmove",u,W),document.removeEventListener("touchstart",c,W)}},[]);var v=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,v?h.createElement(V,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},k.useMedium(r),T),en=h.forwardRef(function(e,t){return h.createElement(O,(0,p.pi)({},e,{ref:t,sideCar:et}))});en.classNames=O.classNames;var er=n(85539),ei=n(78253),eo=n(23258),ea="data-focus-lock",es="data-focus-lock-disabled",eu={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},el=E({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),ec=E(),ed=E(),ef=_({async:!0,ssr:"undefined"!=typeof document}),eh=(0,h.createContext)(void 0),ep=[],ev=(0,h.forwardRef)(function(e,t){var n,r=(0,h.useState)(),i=r[0],o=r[1],a=(0,h.useRef)(),s=(0,h.useRef)(!1),u=(0,h.useRef)(null),l=(0,h.useState)({})[1],c=e.children,d=e.disabled,f=void 0!==d&&d,p=e.noFocusGuards,v=void 0!==p&&p,g=e.persistentFocus,m=e.crossFrame,y=e.autoFocus,b=(e.allowTextSelection,e.group),x=e.className,S=e.whiteList,E=e.hasPositiveIndices,_=e.shards,k=void 0===_?ep:_,C=e.as,O=e.lockProps,T=e.sideCar,P=e.returnFocus,I=void 0!==P&&P,R=e.focusOptions,A=e.onActivation,M=e.onDeactivation,j=(0,h.useState)({})[0],N=(0,h.useCallback)(function(e){var t=e.captureFocusRestore;if(!u.current){var n,r=null==(n=document)?void 0:n.activeElement;u.current=r,r!==document.body&&(u.current=t(r))}a.current&&A&&A(a.current),s.current=!0,l()},[A]),L=(0,h.useCallback)(function(){s.current=!1,M&&M(a.current),l()},[M]),D=(0,h.useCallback)(function(e){var t=u.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof I?I(n):I;if(r){var i="object"==typeof r?r:void 0;u.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[I]),F=(0,h.useCallback)(function(e){s.current&&el.useMedium(e)},[]),U=ec.useMedium,B=(0,h.useCallback)(function(e){a.current!==e&&(a.current=e,o(e))},[]),V=(0,eo.Z)(((n={})[es]=f&&"disabled",n[ea]=b,n),void 0===O?{}:O),q=!0!==v,z=q&&"tail"!==v,W=w([t,B]),$=(0,h.useMemo)(function(){return{observed:a,shards:k,enabled:!f,active:s.current}},[f,s.current,k,i]);return h.createElement(h.Fragment,null,q&&[h.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:eu}),E?h.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:eu}):null],!f&&h.createElement(T,{id:j,sideCar:ef,observed:i,disabled:f,persistentFocus:void 0!==g&&g,crossFrame:void 0===m||m,autoFocus:void 0===y||y,whiteList:S,shards:k,onActivation:N,onDeactivation:L,returnFocus:D,focusOptions:R,noFocusGuards:v}),h.createElement(void 0===C?"div":C,(0,eo.Z)({ref:W},V,{className:x,onBlur:U,onFocus:F}),h.createElement(eh.Provider,{value:$},c)),z&&h.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:eu}))});ev.propTypes={};var eg=n(49796),em=n(43751),ey=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},eb=function(e){return Array.isArray(e)?e:[e]},ew=function(e){return Array.isArray(e)?e[0]:e},ex=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},eS=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},eE=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},e_=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=e_.bind(void 0,e),!t||eE(t)||!ex(t)&&!t.hasAttribute("inert")&&n(eS(t)));return e.set(t,i),i},ek=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=ek.bind(void 0,e),!t||!!eE(t)||!!eP(t)&&n(eS(t)));return e.set(t,i),i},eC=function(e){return e.dataset},eO=function(e){return"INPUT"===e.tagName},eT=function(e){return eO(e)&&"radio"===e.type},eP=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},eI=function(e){var t;return!!(e&&(null===(t=eC(e))||void 0===t?void 0:t.focusGuard))},eR=function(e){return!eI(e)},eA=function(e){return!!e},eM=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return -1}return i||o},ej=function(e,t,n){return ey(e).map(function(e,t){var r=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(eM)},eN="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",eL="".concat(eN,", [data-focus-guard]"),eD=function(e,t){return ey((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?eL:eN)?[n]:[],eD(n))},[])},eF=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?eU([e.contentDocument.body],t):[e]},eU=function(e,t){return e.reduce(function(e,n){var r,i=eD(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return eF(e,t)}));return e.concat(o,n.parentNode?ey(n.parentNode.querySelectorAll(eN)).filter(function(e){return e===n}):[])},[])},eB=function(e,t){return ey(e).filter(function(e){return e_(t,e)}).filter(function(e){return!((eO(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},eV=function(e,t){return void 0===t&&(t=new Map),ey(e).filter(function(e){return ek(t,e)})},eq=function(e,t,n){return ej(eB(eU(e,n),t),!0,n)},ez=function(e,t){return ej(eB(eU(e),t),!1)},eW=function(e,t){return e.shadowRoot?eW(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||ey(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&eW(r,t)}return eW(e,t)})},e$=function(e){try{return e()}catch(e){return}},eG=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?eG(t.shadowRoot):t instanceof HTMLIFrameElement&&e$(function(){return t.contentWindow.document})?eG(t.contentWindow.document):t}},eH=function(e){void 0===e&&(e=document);var t=eG(e);return!!t&&ey(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return eW(e,t)})},eZ=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},eK=function(e){return e.parentNode?eK(e.parentNode):e},eX=function(e){return eb(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(ea);return e.push.apply(e,n?eZ(ey(eK(t).querySelectorAll("[".concat(ea,'="').concat(n,'"]:not([').concat(es,'="disabled"])')))):[t]),e},[])},eJ=function(e,t){return void 0===t&&(t=eG(ew(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&eX(e).some(function(e){var n;return eW(e,t)||(n=t,!!ey(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},eY=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},eQ=function(e,t){return eT(e)&&e.name&&t.filter(eT).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},e0=function(e){var t=new Set;return e.forEach(function(n){return t.add(eQ(n,e))}),e.filter(function(e){return t.has(e)})},e1=function(e){return e[0]&&e.length>1?eQ(e[0],e):e[0]},e2=function(e,t){return e.indexOf(eQ(t,e))},e5="NEW_FOCUS",e4=function(e,t,n,r,i){var o=e.length,a=e[0],s=e[o-1],u=eI(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?n.indexOf(r):-1,c=i?n.indexOf(i):l,d=i?e.indexOf(i):-1;if(-1===l)return -1!==d?d:e5;if(-1===d)return e5;var f=l-c,h=n.indexOf(a),p=n.indexOf(s),v=e0(n),g=void 0!==r?v.indexOf(r):-1,m=i?v.indexOf(i):g,y=v.filter(function(e){return e.tabIndex>=0}),b=void 0!==r?y.indexOf(r):-1,w=i?y.indexOf(i):b;if(!f&&d>=0||0===t.length)return d;var x=e2(e,t[0]),S=e2(e,t[t.length-1]);if(l<=h&&u&&Math.abs(f)>1)return S;if(l>=p&&u&&Math.abs(f)>1)return x;if(f&&Math.abs(b>=0&&w>=0?w-b:m-g)>1)return d;if(l<=h)return S;if(l>p)return x;if(f)return Math.abs(f)>1?d:(o+d+f)%o}},e3=function(e,t,n){var r=eV(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=eC(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?e1(r):e1(eV(t))},e6=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&e6(e.parentNode.host||e.parentNode,t),t},e8=function(e,t){for(var n=e6(e),r=e6(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},e7=function(e,t,n){var r=eb(e),i=eb(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=e8(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=e8(o,e);t&&(a=!a||eW(t,a)?t:e8(t,a))})}),a},e9=function(e,t){return e.reduce(function(e,n){return e.concat(eB(ey(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return eU([e])}).reduce(function(e,t){return e.concat(t)},[]),t))},[])},te=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(eA)},tt=function(e,t){var n=eG(eb(e).length>0?document:ew(e).ownerDocument),r=eX(e).filter(eR),i=e7(n||e,e,r),o=new Map,a=ez(r,o),s=a.filter(function(e){return eR(e.node)});if(s[0]){var u=ez([i],o).map(function(e){return e.node}),l=te(u,s),c=l.map(function(e){return e.node}),d=l.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=e4(c,d,u,n,t);if(f===e5){var h=e3(a,d,e9(r,o))||e3(a,c,e9(r,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:l[f]}},tn=0,tr=!1,ti=function(e,t,n){void 0===n&&(n={});var r=tt(e,t);if(!tr&&r){if(tn>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),tr=!0,setTimeout(function(){tr=!1},1);return}tn++,eY(r.node,n.focusOptions),tn--}};function to(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var ta=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:to(n),parent:to(n.parentElement),left:to(n.previousElementSibling),right:to(n.nextElementSibling)}),n=n.parentElement;return{element:to(e),stack:t,ownerDocument:e.ownerDocument}},ts=function(e){if(e)for(var t,n,r,i,o,a=e.stack,s=e.ownerDocument,u=new Map,l=0;l<a.length;l++){var c=a[l],d=null===(t=c.parent)||void 0===t?void 0:t.call(c);if(d&&s.contains(d)){for(var f=null===(n=c.left)||void 0===n?void 0:n.call(c),h=c.current(),p=d.contains(h)?h:void 0,v=null===(r=c.right)||void 0===r?void 0:r.call(c),g=eq([d],u),m=null!==(o=null!==(i=null!=p?p:null==f?void 0:f.nextElementSibling)&&void 0!==i?i:v)&&void 0!==o?o:f;m;){for(var y=0;y<g.length;y++){var b=g[y];if(null==m?void 0:m.contains(b.node))return b.node}m=m.nextElementSibling}if(g.length)return g[0].node}}},tu=function(e){var t=ta(e);return function(){return ts(t)}},tl=function(e){var t=eX(e).filter(eR),n=ej(eU([e7(e,e,t)],!0),!0,!0),r=eU(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:eI(t)}})},tc=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=eb(t);if(r.every(function(t){return!eW(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?eq(r,new Map):ez(r,new Map),o=i.findIndex(function(t){return t.node===e});if(-1!==o)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},td=function(e,t){var n=t?eq(eb(e),new Map):ez(eb(e),new Map);return{first:n[0],last:n[n.length-1]}},tf=function(e,t,n){void 0===t&&(t={});var r,i=(r=t,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),o=tc(e,i.scope,i.onlyTabbable);if(o){var a=n(o,i.cycle);a&&eY(a.node,i.focusOptions)}},th=function(e,t,n){var r,i=td(e,null===(r=t.onlyTabbable)||void 0===r||r)[n];i&&eY(i.node,t.focusOptions)};function tp(e){setTimeout(e,1)}var tv=function(e){return e&&"current"in e?e.current:e},tg=function(){return document&&document.activeElement===document.body},tm=null,ty=null,tb=function(){return null},tw=null,tx=!1,tS=!1,tE=function(e,t){tw={observerNode:e,portaledElement:t}};function t_(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var tk=function(e){return ez(e,new Map)},tC=function(){var e=!1;if(tm){var t=tm,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,u=t.noFocusGuards,l=n||tw&&tw.portaledElement;if(tg()&&ty&&ty!==document.body&&(!document.body.contains(ty)||!tk([(f=ty).parentNode]).some(function(e){return e.node===f}))){var c=tb();c&&c.focus()}var d=document&&document.activeElement;if(l){var f,h=[l].concat(o.map(tv).filter(Boolean));if((!d||(tm.whiteList||function(){return!0})(d))&&(r||function(){if(!(a?!!tx:"meanwhile"===tx)||!u||!ty||tS)return!1;var e=tk(h),t=e.findIndex(function(e){return e.node===ty});return 0===t||t===e.length-1}()||!(tg()||eH())||!ty&&i)&&(l&&!(eJ(h)||d&&h.some(function(e){return function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}(d,e,e)})||tw&&tw.portaledElement===d)&&(document&&!ty&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ti(h,ty,{focusOptions:s}),tw={})),(ty=document&&document.activeElement)!==document.body&&(tb=tu(ty)),tx=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,v=tl(h),g=v.map(function(e){return e.node}).indexOf(p);g>-1&&(v.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),t_(g,v.length,1,v),t_(g,-1,-1,v))}}}return e},tO=function(e){tC()&&e&&(e.stopPropagation(),e.preventDefault())},tT=function(){return tp(tC)},tP=function(){tS=!0},tI=function(){tS=!1,tx="just",tp(function(){tx="meanwhile"})},tR=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tT),window.addEventListener("focus",tP),window.addEventListener("blur",tI)},tA=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tT),window.removeEventListener("focus",tP),window.removeEventListener("blur",tI)},tM={moveFocusInside:ti,focusInside:eJ,focusNextElement:function(e,t){void 0===t&&(t={}),tf(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},focusPrevElement:function(e,t){void 0===t&&(t={}),tf(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},focusFirstElement:function(e,t){void 0===t&&(t={}),th(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),th(e,t,"last")},captureFocusRestore:tu};el.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||tE(n,t)}),ec.assignMedium(tT),ed.assignMedium(function(e){return e(tM)});var tj=(i=function(e){return e.filter(function(e){return!e.disabled})},o=function(e){var t=e.slice(-1)[0];t&&!tm&&tR();var n=tm,r=n&&t&&t.id===n.id;tm=t,!n||r||(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(ty=null,r&&n.observed===t.observed||t.onActivation(tM),tC(!0),tp(tC)):(tA(),ty=null)},function(e){var t,n=[];function r(){o(t=i(n.map(function(e){return e.props})))}var a=function(i){function o(){return i.apply(this,arguments)||this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,(0,eg.Z)(o,i),o.peek=function(){return t};var a=o.prototype;return a.componentDidMount=function(){n.push(this),r()},a.componentDidUpdate=function(){r()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},a.render=function(){return h.createElement(e,this.props)},o}(h.PureComponent);return(0,em.Z)(a,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),a})(function(){return null}),tN=(0,h.forwardRef)(function(e,t){return h.createElement(ev,(0,eo.Z)({sideCar:tj,ref:t},e))}),tL=ev.propTypes||{};tL.sideCar,(0,ei.Z)(tL,["sideCar"]),tN.propTypes={};var tD=n(29816);let tF=null!==(s=tN.default)&&void 0!==s?s:tN,tU=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=(0,h.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==r?void 0:r.current)&&0===(0,tD.t5)(r.current).length&&requestAnimationFrame(()=>{var e;null===(e=r.current)||void 0===e||e.focus()})},[t,r]),f=(0,h.useCallback)(()=>{var e;null==n||null===(e=n.current)||void 0===e||e.focus()},[n]),p=i&&!n;return(0,u.jsx)(tF,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};function tB(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:p,isOpen:v}=(0,d.vR)(),[g,m]=(0,f.oO)();(0,h.useEffect)(()=>{!g&&m&&setTimeout(m)},[g,m]);let y=(0,er.$)(r,v);return(0,u.jsx)(tU,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:p,children:(0,u.jsx)(en,{removeScrollBar:!c,allowPinchZoom:a,enabled:1===y&&o,forwardProps:!0,children:e.children})})}tU.displayName="FocusLock";var tV=n(74550),tq=n(41466),tz=n(29930);let tW={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tz.p$.exit(tz.Sh.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:e=>{var t;let{transition:n,transitionEnd:r,delay:i}=e;return{opacity:1,x:0,y:0,transition:null!==(t=null==n?void 0:n.enter)&&void 0!==t?t:tz.p$.enter(tz.Sh.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:a,delay:s}=e,u={x:r,y:n};return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tz.p$.exit(tz.Sh.exit,s),...a?{...u,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{...u,...null==o?void 0:o.exit}}}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:l,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,v=!n||r&&n,g=r||n?"enter":"exit",m={offsetX:a,offsetY:s,reverse:i,transition:l,transitionEnd:d,delay:f};return(0,u.jsx)(tq.M,{...h,custom:m,children:v&&(0,u.jsx)(tV.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",o),custom:m,...tW,animate:g,...p})})}).displayName="SlideFade";let t$={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,...n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{scale:r,...null==o?void 0:o.exit}},transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tz.p$.exit(tz.Sh.exit,a)}},enter:e=>{var t;let{transitionEnd:n,transition:r,delay:i}=e;return{opacity:1,scale:1,transition:null!==(t=null==r?void 0:r.enter)&&void 0!==t?t:tz.p$.enter(tz.Sh.enter,i),transitionEnd:null==n?void 0:n.enter}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:l,delay:d,animatePresenceProps:f,...h}=e,p=!n||r&&n,v=r||n?"enter":"exit",g={initialScale:o,reverse:i,transition:s,transitionEnd:l,delay:d};return(0,u.jsx)(tq.M,{...f,custom:g,children:p&&(0,u.jsx)(tV.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",a),...t$,animate:v,custom:g,...h})})}).displayName="ScaleFade";var tG=n(5439);let tH={slideInBottom:{...tW,custom:{offsetY:16,reverse:!0}},slideInRight:{...tW,custom:{offsetX:16,reverse:!0}},slideInTop:{...tW,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...tW,custom:{offsetX:-16,reverse:!0}},scale:{...t$,custom:{initialScale:.95,reverse:!0}},none:{}},tZ=(0,tG.m)(tV.E.section),tK=e=>tH[e||"none"],tX=(0,h.forwardRef)((e,t)=>{let{preset:n,motionProps:r=tK(n),...i}=e;return(0,u.jsx)(tZ,{ref:t,...r,...i})});tX.displayName="ModalTransition";let tJ=(0,n(34272).G)((e,t)=>{let{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:f}=(0,d.vR)(),h=s(a,t),p=f(i),v=(0,c.cx)("chakra-modal__content",n),g=(0,d.I_)(),m=(0,l.k0)({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...g.dialog}),y=(0,l.k0)({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...g.dialogContainer}),{motionPreset:b}=(0,d.vR)();return(0,u.jsx)(tB,{children:(0,u.jsx)(tG.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,u.jsx)(tX,{preset:b,motionProps:o,className:v,...h,__css:m,children:r})})})});tJ.displayName="ModalContent"},80794:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(26415),i=n(19838),o=n(40590),a=n(93089),s=n(34272),u=n(5439);let l=(0,s.G)((e,t)=>{let{className:n,...s}=e,l=(0,o.cx)("chakra-modal__footer",n),c=(0,a.I_)(),d=(0,i.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(u.m.footer,{ref:t,...s,__css:d,className:l})});l.displayName="ModalFooter"},58759:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(26415),i=n(19838),o=n(40590),a=n(97129),s=n(93089),u=n(34272),l=n(5439);let c=(0,u.G)((e,t)=>{let{className:n,...u}=e,{headerId:c,setHeaderMounted:d}=(0,s.vR)();(0,a.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let f=(0,o.cx)("chakra-modal__header",n),h=(0,s.I_)(),p=(0,i.k0)({flex:0,...h.header});return(0,r.jsx)(l.m.header,{ref:t,className:f,id:c,...u,__css:p})});c.displayName="ModalHeader"},85539:function(e,t,n){"use strict";n.d(t,{$:function(){return l},m:function(){return u}});var r=n(97129),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class s{add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&e===Array.from(this.modals)[this.modals.size-1]}constructor(){a(this,"modals"),this.modals=new Set}}let u=new s;function l(e,t){let[n,i]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let n=e.current;if(n)return t&&i(u.add(n)),()=>{u.remove(n),i(0)}},[t,e]),n}},47796:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(26415),i=n(40590),o=n(74550),a=n(93089),s=n(41466),u=n(97129),l=n(29930);let c={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(){var e;let{transition:t,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:1,transition:null!==(e=null==t?void 0:t.enter)&&void 0!==e?e:l.p$.enter(l.Sh.enter,r),transitionEnd:null==n?void 0:n.enter}},exit:function(){var e;let{transition:t,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:0,transition:null!==(e=null==t?void 0:t.exit)&&void 0!==e?e:l.p$.exit(l.Sh.exit,r),transitionEnd:null==n?void 0:n.exit}}}};(0,u.forwardRef)(function(e,t){let{unmountOnExit:n,in:a,className:u,transition:l,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,v=a||n?"enter":"exit",g=!n||a&&n,m={transition:l,transitionEnd:d,delay:f};return(0,r.jsx)(s.M,{...h,custom:m,children:g&&(0,r.jsx)(o.E.div,{ref:t,className:(0,i.cx)("chakra-fade",u),custom:m,...c,animate:v,...p})})}).displayName="Fade";var d=n(5439),f=n(34272);let h=(0,d.m)(o.E.div),p=(0,f.G)((e,t)=>{let{className:n,transition:o,motionProps:s,...u}=e,l=(0,i.cx)("chakra-modal__overlay",n),d={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,a.I_)().overlay},{motionPreset:f}=(0,a.vR)(),p="none"===f?{}:c;return(0,r.jsx)(h,{...s||p,__css:d,ref:t,className:l,...u})});p.displayName="ModalOverlay"},93089:function(e,t,n){"use strict";n.d(t,{u_:function(){return E},vR:function(){return S},I_:function(){return w}});var r=n(26415),i=n(65753),o=n(41466),a=n(11637),s=n(23080),u=new WeakMap,l=new WeakMap,c={},d=0,f=function(e){return e&&(e.host||f(e.parentNode))},h=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=f(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});c[n]||(c[n]=new WeakMap);var o=c[n],a=[],s=new Set,h=new Set(i),p=function(e){!e||s.has(e)||(s.add(e),p(e.parentNode))};i.forEach(p);var v=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))v(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,c=(u.get(e)||0)+1,d=(o.get(e)||0)+1;u.set(e,c),o.set(e,d),a.push(e),1===c&&i&&l.set(e,!0),1===d&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),s.clear(),d++,function(){a.forEach(function(e){var t=u.get(e)-1,i=o.get(e)-1;u.set(e,t),o.set(e,i),t||(l.has(e)||e.removeAttribute(r),l.delete(e)),i||e.removeAttribute(n)}),--d||(u=new WeakMap,u=new WeakMap,l=new WeakMap,c={})}},p=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),h(r,i,n,"aria-hidden")):function(){return null}},v=n(97129),g=n(85539),m=n(92784),y=n(56338);let[b,w]=(0,i.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[x,S]=(0,i.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),E=e=>{var t;let n={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:null===(t=e.lockFocusAcrossFrames)||void 0===t||t},{portalProps:i,children:u,autoFocus:l,trapFocus:c,initialFocusRef:d,finalFocusRef:f,returnFocusOnClose:h,blockScrollOnMount:w,allowPinchZoom:S,preserveScrollBarGap:E,motionPreset:_,lockFocusAcrossFrames:k,animatePresenceProps:C,onCloseComplete:O}=n,T=(0,y.j)("Modal",n),P={...function(e){let{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:u=!0,onOverlayClick:l,onEsc:c}=e,d=(0,v.useRef)(null),f=(0,v.useRef)(null),[h,m,y]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=(0,v.useId)(),o=e||i;return(0,v.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(o)),[o,n])}(r,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let n=e.current;(0,v.useEffect)(()=>{if(e.current&&t)return p(e.current)},[t,e,n])}(d,t&&u);let b=(0,g.$)(d,t),w=(0,v.useRef)(null),x=(0,v.useCallback)(e=>{w.current=e.target},[]),S=(0,v.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),o&&(null==n||n()),null==c||c())},[o,n,c]),[E,_]=(0,v.useState)(!1),[k,C]=(0,v.useState)(!1),O=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{role:"dialog",...e,ref:(0,a.lq)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":k?y:void 0,onClick:(0,s.v)(e.onClick,e=>e.stopPropagation())}},[y,k,h,m,E]),T=(0,v.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&g.m.isTopModal(d.current)&&(i&&(null==n||n()),null==l||l())},[n,i,l]),P=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(t,f),onClick:(0,s.v)(e.onClick,T),onKeyDown:(0,s.v)(e.onKeyDown,S),onMouseDown:(0,s.v)(e.onMouseDown,x)}},[S,x,T]);return{isOpen:t,onClose:n,headerId:m,bodyId:y,setBodyMounted:C,setHeaderMounted:_,dialogRef:d,overlayRef:f,getDialogProps:O,getDialogContainerProps:P,index:b}}(n),autoFocus:l,trapFocus:c,initialFocusRef:d,finalFocusRef:f,returnFocusOnClose:h,blockScrollOnMount:w,allowPinchZoom:S,preserveScrollBarGap:E,motionPreset:_,lockFocusAcrossFrames:k};return(0,r.jsx)(x,{value:P,children:(0,r.jsx)(b,{value:T,children:(0,r.jsx)(o.M,{...C,onExitComplete:O,children:P.isOpen&&(0,r.jsx)(m.h,{...i,children:u})})})})};E.displayName="Modal"},3232:function(e,t,n){"use strict";n.d(t,{b:function(){return u}});var r=n(26415),i=n(40590),o=n(33583),a=n(34272),s=n(5439);let u=(0,a.G)(function(e,t){let{getBodyProps:n}=(0,o.lp)(),a=(0,o.SV)();return(0,r.jsx)(s.m.div,{...n(e,t),className:(0,i.cx)("chakra-popover__body",e.className),__css:a.body})});u.displayName="PopoverBody"},60278:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var r=n(26415),i=n(19838),o=n(23080),a=n(40590),s=n(33583),u=n(74550),l=n(5439),c=n(34272);let d={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},f=(0,l.m)(u.E.section),h=(0,c.G)(function(e,t){let{variants:n=d,...i}=e,{isOpen:o}=(0,s.lp)();return(0,r.jsx)(f,{ref:t,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(n),initial:!1,animate:o?"enter":"exit",...i})});h.displayName="PopoverTransition";let p=(0,c.G)(function(e,t){let{rootProps:n,motionProps:u,...c}=e,{getPopoverProps:d,getPopoverPositionerProps:f,onAnimationComplete:p}=(0,s.lp)(),v=(0,s.SV)(),g=(0,i.k0)({position:"relative",display:"flex",flexDirection:"column",...v.content});return(0,r.jsx)(l.m.div,{...f(n),__css:v.popper,className:"chakra-popover__popper",children:(0,r.jsx)(h,{...u,...d(c,t),onAnimationComplete:(0,o.P)(p,c.onAnimationComplete),className:(0,a.cx)("chakra-popover__content",e.className),__css:g})})});p.displayName="PopoverContent"},33583:function(e,t,n){"use strict";n.d(t,{H2:function(){return i},SV:function(){return s},WG:function(){return a},lp:function(){return o}});var r=n(65753);let[i,o]=(0,r.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[a,s]=(0,r.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Popover />\" "})},6651:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(26415),i=n(97129),o=n(33583),a=n(98031);function s(e){let t=i.Children.only(e.children),{getTriggerProps:n}=(0,o.lp)();return(0,r.jsx)(r.Fragment,{children:(0,i.cloneElement)(t,n(t.props,(0,a.e)(t)))})}s.displayName="PopoverTrigger"},95388:function(e,t,n){"use strict";n.d(t,{J:function(){return P}});var r=n(26415),i=n(93197),o=n(83262),a=n(33583),s=n(77622),u=n(86186),l=n(34510);let c=()=>"undefined"!=typeof window,d=e=>c()&&e.test(navigator.vendor),f=e=>c()&&e.test(function(){var e;let t=navigator.userAgentData;return null!==(e=null==t?void 0:t.platform)&&void 0!==e?e:navigator.platform}()),h=()=>f(/mac|iphone|ipad|ipod/i),p=()=>h()&&d(/apple/i);var v=n(41898),g=n(74540),m=n(11637),y=n(44899),b=n(53112),w=n(23080),x=n(97129),S=n(19022),E=n(76947);let _={click:"click",hover:"hover"};function k(e,t){return e===t||(null==e?void 0:e.contains(t))}function C(e){var t;let n=e.currentTarget.ownerDocument.activeElement;return null!==(t=e.relatedTarget)&&void 0!==t?t:n}var O=n(87953),T=n(56338);function P(e){let t=(0,T.j)("Popover",e),{children:n,...c}=(0,i.L)(e),d=(0,O.F)(),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:o=!0,autoFocus:a=!0,arrowSize:c,arrowShadowColor:d,trigger:f=_.click,openDelay:h=200,closeDelay:O=200,isLazy:T,lazyBehavior:P="unmount",computePositionOnMount:I,...R}=e,{isOpen:A,onClose:M,onOpen:j,onToggle:N}=(0,s.q)(e),[L,D]=(0,x.useState)(o);(0,x.useEffect)(()=>D(o),[o]);let F=(0,x.useRef)(null),U=(0,x.useRef)(null),B=(0,x.useRef)(null),V=(0,x.useRef)(!1),q=(0,x.useRef)(!1);A&&(q.current=!0);let[z,W]=(0,x.useState)(!1),[$,G]=(0,x.useState)(!1),H=(0,x.useId)(),Z=null!=i?i:H,[K,X,J,Y]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>"".concat(e,"-").concat(Z)),{referenceRef:Q,getArrowProps:ee,getPopperProps:et,getArrowInnerProps:en,forceUpdate:er}=(0,S.D)({...R,enabled:A||!!I}),ei=(0,u.h)({isOpen:A,ref:B});!function(e){let{ref:t,elements:n,enabled:r}=e,i=()=>{var e,n;return null!==(n=null===(e=t.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==n?n:document};(0,l.O)(i,"pointerdown",e=>{var o,a,s;if(!p()||!r)return;let u=null!==(s=null===(a=e.composedPath)||void 0===a?void 0:null===(o=a.call(e))||void 0===o?void 0:o[0])&&void 0!==s?s:e.target,l=(null!=n?n:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(u))||t===u});i().activeElement!==u&&l&&(e.preventDefault(),u.focus())})}({enabled:A,ref:U}),(0,v.C)(B,{focusRef:U,visible:A,shouldFocus:L&&f===_.click}),(0,v.G)(B,{focusRef:r,visible:A,shouldFocus:a&&f===_.click}),(0,g.O)({enabled:A&&t,ref:B,handler(e){var t,n;let r=null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:[e.target];k(U.current,r)||(r&&D(!(0,y.EB)(r)),M())}});let eo=(0,b.k)({wasSelected:q.current,enabled:T,mode:P,isSelected:ei.present}),ea=(0,x.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i={...e,style:{...e.style,transformOrigin:E.Dq.transformOrigin.varRef,[E.Dq.arrowSize.var]:c?"".concat(c,"px"):void 0,[E.Dq.arrowShadowColor.var]:d},ref:(0,m.lq)(B,r),children:eo?e.children:null,id:X,tabIndex:-1,role:"dialog",onKeyDown:(0,w.v)(e.onKeyDown,e=>{!e.nativeEvent.isComposing&&n&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M())}),onBlur:(0,w.v)(e.onBlur,e=>{let n=C(e),r=k(B.current,n),i=k(U.current,n);n&&D(!(0,y.EB)(n)),A&&t&&!r&&!i&&M()}),"aria-labelledby":z?J:void 0,"aria-describedby":$?Y:void 0};return f===_.hover&&(i.role="tooltip",i.onMouseEnter=(0,w.v)(e.onMouseEnter,()=>{V.current=!0}),i.onMouseLeave=(0,w.v)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(V.current=!1,setTimeout(()=>M(),O))})),i},[eo,X,z,J,$,Y,f,n,M,A,t,O,d,c]),es=(0,x.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return et({...e,style:{visibility:A?"visible":"hidden",...e.style}},t)},[A,et]),eu=(0,x.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,m.lq)(t,F,Q)}},[F,Q]),el=(0,x.useRef)(void 0),ec=(0,x.useRef)(void 0),ed=(0,x.useCallback)(e=>{null==F.current&&Q(e)},[Q]),ef=(0,x.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={...e,ref:(0,m.lq)(U,n,ed),id:K,"aria-haspopup":"dialog","aria-expanded":A,"aria-controls":X};return f===_.click&&(r.onClick=(0,w.v)(e.onClick,N)),f===_.hover&&(r.onFocus=(0,w.v)(e.onFocus,()=>{void 0===el.current&&j()}),r.onBlur=(0,w.v)(e.onBlur,e=>{let n=C(e),r=!k(B.current,n);A&&t&&r&&M()}),r.onKeyDown=(0,w.v)(e.onKeyDown,e=>{"Escape"===e.key&&M()}),r.onMouseEnter=(0,w.v)(e.onMouseEnter,()=>{V.current=!0,el.current=window.setTimeout(()=>j(),h)}),r.onMouseLeave=(0,w.v)(e.onMouseLeave,()=>{V.current=!1,el.current&&(clearTimeout(el.current),el.current=void 0),ec.current=window.setTimeout(()=>{!1===V.current&&M()},O)})),r},[K,A,X,f,ed,N,j,t,M,h,O]);(0,x.useEffect)(()=>()=>{el.current&&clearTimeout(el.current),ec.current&&clearTimeout(ec.current)},[]);let eh=(0,x.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,id:J,ref:(0,m.lq)(t,e=>{W(!!e)})}},[J]),ep=(0,x.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,id:Y,ref:(0,m.lq)(t,e=>{G(!!e)})}},[Y]);return{forceUpdate:er,isOpen:A,onAnimationComplete:ei.onComplete,onClose:M,getAnchorProps:eu,getArrowProps:ee,getArrowInnerProps:en,getPopoverPositionerProps:es,getPopoverProps:ea,getTriggerProps:ef,getHeaderProps:eh,getBodyProps:ep}}({...c,direction:d.direction});return(0,r.jsx)(a.H2,{value:f,children:(0,r.jsx)(a.WG,{value:t,children:(0,o.P)(n,{isOpen:f.isOpen,onClose:f.onClose,forceUpdate:f.forceUpdate})})})}P.displayName="Popover"},19022:function(e,t,n){"use strict";n.d(t,{D:function(){return eE}});var r,i,o,a,s,u=n(11637);function l(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){var t=l(e).Element;return e instanceof t||e instanceof Element}function d(e){var t=l(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function f(e){if("undefined"==typeof ShadowRoot)return!1;var t=l(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var h=Math.max,p=Math.min,v=Math.round;function g(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(g())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&v(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&v(r.height)/e.offsetHeight||1);var a=(c(e)?l(e):window).visualViewport,s=!m()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,f=(r.top+(s&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:u+h,bottom:f+p,left:u,x:u,y:f}}function b(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function S(e){return y(x(e)).left+b(e).scrollLeft}function E(e){return l(e).getComputedStyle(e)}function _(e){var t=E(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||x(e)}function O(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(w(t))>=0?t.ownerDocument.body:d(t)&&_(t)?t:e(C(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=l(r),a=i?[o].concat(o.visualViewport||[],_(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(C(a)))}function T(e){return d(e)&&"fixed"!==E(e).position?e.offsetParent:null}function P(e){for(var t=l(e),n=T(e);n&&["table","td","th"].indexOf(w(n))>=0&&"static"===E(n).position;)n=T(n);return n&&("html"===w(n)||"body"===w(n)&&"static"===E(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===E(e).position)return null;var n=C(e);for(f(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(w(n));){var r=E(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var I="bottom",R="right",A="left",M="auto",j=["top",I,R,A],N="start",L="viewport",D="popper",F=j.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),U=[].concat(j,[M]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-end"])},[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],V={placement:"bottom",modifiers:[],strategy:"absolute"};function q(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var z={passive:!0};function W(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function H(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?$(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case I:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:u};break;case A:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?G(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case N:t[l]=t[l]-(n[c]/2-r[c]/2);break;case"end":t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,i,o,a,s,u=e.popper,c=e.popperRect,d=e.placement,f=e.variation,h=e.offsets,p=e.position,g=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,b=e.isFixed,w=h.x,S=void 0===w?0:w,_=h.y,k=void 0===_?0:_,C="function"==typeof y?y({x:S,y:k}):{x:S,y:k};S=C.x,k=C.y;var O=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),M=A,j="top",N=window;if(m){var L=P(u),D="clientHeight",F="clientWidth";L===l(u)&&"static"!==E(L=x(u)).position&&"absolute"===p&&(D="scrollHeight",F="scrollWidth"),("top"===d||(d===A||d===R)&&"end"===f)&&(j=I,k-=(b&&L===N&&N.visualViewport?N.visualViewport.height:L[D])-c.height,k*=g?1:-1),(d===A||("top"===d||d===I)&&"end"===f)&&(M=R,S-=(b&&L===N&&N.visualViewport?N.visualViewport.width:L[F])-c.width,S*=g?1:-1)}var U=Object.assign({position:p},m&&Z),B=!0===y?(t={x:S,y:k},n=l(u),r=t.x,i=t.y,{x:v(r*(o=n.devicePixelRatio||1))/o||0,y:v(i*o)/o||0}):{x:S,y:k};return(S=B.x,k=B.y,g)?Object.assign({},U,((s={})[j]=T?"0":"",s[M]=O?"0":"",s.transform=1>=(N.devicePixelRatio||1)?"translate("+S+"px, "+k+"px)":"translate3d("+S+"px, "+k+"px, 0)",s)):Object.assign({},U,((a={})[j]=T?k+"px":"",a[M]=O?S+"px":"",a.transform="",a))}var X={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,function(e){return X[e]})}var Y={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return Y[e]})}function ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,t,n){var r,i,o,a,s,u,d,f,p,v;return t===L?et(function(e,t){var n=l(e),r=x(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var c=m();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+S(e),y:u}}(e,n)):c(t)?((r=y(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):et((i=x(e),a=x(i),s=b(i),u=null==(o=i.ownerDocument)?void 0:o.body,d=h(a.scrollWidth,a.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),f=h(a.scrollHeight,a.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-s.scrollLeft+S(i),v=-s.scrollTop,"rtl"===E(u||a).direction&&(p+=h(a.clientWidth,u?u.clientWidth:0)-d),{width:d,height:f,x:p,y:v}))}function er(){return{top:0,right:0,bottom:0,left:0}}function ei(e){return Object.assign({},er(),e)}function eo(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ea(e,t){void 0===t&&(t={});var n,r,i,o,a,s,u,l,f=t,v=f.placement,g=void 0===v?e.placement:v,m=f.strategy,b=void 0===m?e.strategy:m,S=f.boundary,_=f.rootBoundary,k=f.elementContext,T=void 0===k?D:k,A=f.altBoundary,M=f.padding,N=void 0===M?0:M,F=ei("number"!=typeof N?N:eo(N,j)),U=e.rects.popper,B=e.elements[void 0!==A&&A?T===D?"reference":D:T],V=(n=c(B)?B:B.contextElement||x(e.elements.popper),r=void 0===S?"clippingParents":S,i=void 0===_?L:_,u=(s=[].concat("clippingParents"===r?(o=O(C(n)),c(a=["absolute","fixed"].indexOf(E(n).position)>=0&&d(n)?P(n):n)?o.filter(function(e){return c(e)&&ee(e,a)&&"body"!==w(e)}):[]):[].concat(r),[i]))[0],(l=s.reduce(function(e,t){var r=en(n,t,b);return e.top=h(r.top,e.top),e.right=p(r.right,e.right),e.bottom=p(r.bottom,e.bottom),e.left=h(r.left,e.left),e},en(n,u,b))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),q=y(e.elements.reference),z=H({reference:q,element:U,strategy:"absolute",placement:g}),W=et(Object.assign({},U,z)),$=T===D?W:q,G={top:V.top-$.top+F.top,bottom:$.bottom-V.bottom+F.bottom,left:V.left-$.left+F.left,right:$.right-V.right+F.right},Z=e.modifiersData.offset;if(T===D&&Z){var K=Z[g];Object.keys(G).forEach(function(e){var t=[R,I].indexOf(e)>=0?1:-1,n=["top",I].indexOf(e)>=0?"y":"x";G[e]+=K[n]*t})}return G}function es(e,t,n){return h(e,p(t,n))}function eu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function el(e){return["top",R,I,A].some(function(t){return e[t]>=0})}var ec=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=l(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,z)}),s&&u.addEventListener("resize",n.update,z),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,z)}),s&&u.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,s={placement:W(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];d(i)&&w(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});d(r)&&w(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=U.reduce(function(e,n){var r,i,a,s,u,l;return e[n]=(r=t.rects,a=[A,"top"].indexOf(i=W(n))>=0?-1:1,u=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],l=s[1],u=u||0,l=(l||0)*a,[A,R].indexOf(i)>=0?{x:l,y:u}:{x:u,y:l}),e},{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,g=t.options.placement,m=W(g)===g,y=u||(m||!p?[J(g)]:function(e){if(W(e)===M)return[];var t=J(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,a,s,u,f,h,g,m,y,b;return e.concat(W(n)===M?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:v}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,u=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?U:f,0===(y=(m=(g=$(i))?u?F:F.filter(function(e){return $(e)===g}):j).filter(function(e){return h.indexOf(e)>=0})).length&&(y=m),Object.keys(b=y.reduce(function(e,n){return e[n]=ea(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[W(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,E=!0,_=b[0],k=0;k<b.length;k++){var C=b[k],O=W(C),T=$(C)===N,P=["top",I].indexOf(O)>=0,L=P?"width":"height",D=ea(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),B=P?T?R:A:T?I:"top";w[L]>x[L]&&(B=J(B));var V=J(B),q=[];if(o&&q.push(D[O]<=0),s&&q.push(D[B]<=0,D[V]<=0),q.every(function(e){return e})){_=C,E=!1;break}S.set(C,q)}if(E)for(var z=p?3:1,G=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},H=z;H>0&&"break"!==G(H);H--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,u=n.altBoundary,l=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,v=void 0===f?0:f,g=ea(t,{boundary:a,rootBoundary:s,padding:l,altBoundary:u}),m=W(t.placement),y=$(t.placement),b=!y,w=G(m),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,C="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(void 0===i||i){var j,L="y"===w?"top":A,D="y"===w?I:R,F="y"===w?"height":"width",U=S[w],B=U+g[L],V=U-g[D],q=d?-_[F]/2:0,z=y===N?E[F]:_[F],H=y===N?-_[F]:-E[F],Z=t.elements.arrow,K=d&&Z?k(Z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),J=X[L],Y=X[D],Q=es(0,E[F],K[F]),ee=b?E[F]/2-q-Q-J-O.mainAxis:z-Q-J-O.mainAxis,et=b?-E[F]/2+q+Q+Y+O.mainAxis:H+Q+Y+O.mainAxis,en=t.elements.arrow&&P(t.elements.arrow),ei=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,eo=null!=(j=null==T?void 0:T[w])?j:0,eu=es(d?p(B,U+ee-eo-ei):B,U,d?h(V,U+et-eo):V);S[w]=eu,M[w]=eu-U}if(void 0!==o&&o){var el,ec,ed="x"===w?"top":A,ef="x"===w?I:R,eh=S[x],ep="y"===x?"height":"width",ev=eh+g[ed],eg=eh-g[ef],em=-1!==["top",A].indexOf(m),ey=null!=(ec=null==T?void 0:T[x])?ec:0,eb=em?ev:eh-E[ep]-_[ep]-ey+O.altAxis,ew=em?eh+E[ep]+_[ep]-ey-O.altAxis:eg,ex=d&&em?(el=es(eb,eh,ew))>ew?ew:el:es(d?eb:ev,eh,d?ew:eg);S[x]=ex,M[x]=ex-eh}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,u=W(r.placement),l=G(u),c=[A,R].indexOf(u)>=0?"height":"width";if(a&&s){var d=ei("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eo(t,j)),f=k(a),h="y"===l?"top":A,p="y"===l?I:R,v=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],g=s[l]-r.rects.reference[l],m=P(a),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=d[h],w=y-f[c]-d[p],x=y/2-f[c]/2+(v/2-g/2),S=es(b,x,w);r.modifiersData[i]=((n={})[l]=S,n.centerOffset=S-x,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ee(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ea(t,{elementContext:"reference"}),s=ea(t,{altBoundary:!0}),u=eu(a,r),l=eu(s,i,o),c=el(u),d=el(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?V:a,function(e,t,n){void 0===n&&(n=s);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],f=!1,h={state:a,setOptions:function(n){var r,i,l,d,f,v="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},s,a.options,v),a.scrollParents={reference:c(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var g=(i=Object.keys(r=[].concat(o,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,d=new Set,f=[],i.forEach(function(e){l.set(e.name,e)}),i.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var n=l.get(t);n&&e(n)}}),f.push(t)}(e)}),B.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:h,options:void 0===n?{}:n});u.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!f){var e,t,n,r,i,o,s,u,c,p,g,m,E=a.elements,C=E.reference,O=E.popper;if(q(C,O)){a.rects={reference:(t=P(O),n="fixed"===a.options.strategy,r=d(t),u=d(t)&&(o=v((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=v(i.height)/t.offsetHeight||1,1!==o||1!==s),c=x(t),p=y(C,u,n),g={scrollLeft:0,scrollTop:0},m={x:0,y:0},(r||!r&&!n)&&(("body"!==w(t)||_(c))&&(g=(e=t)!==l(e)&&d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),d(t)?(m=y(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):c&&(m.x=S(c))),{x:p.left+g.scrollLeft-m.x,y:p.top+g.scrollTop-m.y,width:p.width,height:p.height}),popper:k(O)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var T=0;T<a.orderedModifiers.length;T++){if(!0===a.reset){a.reset=!1,T=-1;continue}var I=a.orderedModifiers[T],R=I.fn,A=I.options,M=void 0===A?{}:A,j=I.name;"function"==typeof R&&(a=R({state:a,options:M,name:j,instance:h})||a)}}}},update:(r=function(){return new Promise(function(e){h.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){p(),f=!0}};if(!q(e,t))return h;function p(){u.forEach(function(e){return e()}),u=[]}return h.setOptions(n).then(function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)}),h}),ed=n(97129),ef=n(76947);let eh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{let{state:t}=e;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:e=>{let{state:t}=e;return()=>{let e=t.elements.reference;t.elements.popper.style.width="".concat(e.offsetWidth,"px")}}},ep={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{let{state:t}=e;ev(t)},effect:e=>{let{state:t}=e;return()=>{ev(t)}}},ev=e=>{e.elements.popper.style.setProperty(ef.Dq.transformOrigin.var,(0,ef.mv)(e.placement))},eg={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;em(t)}},em=e=>{var t;if(!e.placement)return;let n=ey(e.placement);if((null===(t=e.elements)||void 0===t?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ef.Dq.arrowSize.varRef,height:ef.Dq.arrowSize.varRef,zIndex:-1});let t={[ef.Dq.arrowSizeHalf.var]:"calc(".concat(ef.Dq.arrowSize.varRef," / 2 - 1px)"),[ef.Dq.arrowOffset.var]:"calc(".concat(ef.Dq.arrowSizeHalf.varRef," * -1)")};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},ey=e=>e.startsWith("top")?{property:"bottom",value:ef.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ef.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ef.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ef.Dq.arrowOffset.varRef}:void 0,eb={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{let{state:t}=e;ew(t)},effect:e=>{let{state:t}=e;return()=>{ew(t)}}},ew=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let n=(0,ef.Ke)(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:ef.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},ex={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},eS={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function eE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:h,direction:p="ltr"}=e,v=(0,ed.useRef)(null),g=(0,ed.useRef)(null),m=(0,ed.useRef)(null),y=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",i=(null===(t=ex[e])||void 0===t?void 0:t[r])||e;return"ltr"===r?i:null!==(n=eS[e])&&void 0!==n?n:i}(r,p),b=(0,ed.useRef)(()=>{}),w=(0,ed.useCallback)(()=>{var e;t&&v.current&&g.current&&(null===(e=b.current)||void 0===e||e.call(b),m.current=ec(v.current,g.current,{placement:y,modifiers:[eb,eg,ep,{...eh,enabled:!!h},{name:"eventListeners",...(0,ef.$B)(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=s?s:[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...null!=n?n:[]],strategy:i}),m.current.forceUpdate(),b.current=m.current.destroy)},[y,t,n,h,a,o,s,l,c,f,d,i]);(0,ed.useEffect)(()=>()=>{if(!v.current&&!g.current){var e;null===(e=m.current)||void 0===e||e.destroy(),m.current=null}},[]);let x=(0,ed.useCallback)(e=>{v.current=e,w()},[w]),S=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,u.lq)(x,t)}},[x]),E=(0,ed.useCallback)(e=>{g.current=e,w()},[w]),_=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,u.lq)(E,t),style:{...e.style,position:i,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}},[i,E,h]),k=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{size:n,shadowColor:r,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(e)}},[]),C=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-popper-arrow-inner":""}},[]);return{update(){var e;null===(e=m.current)||void 0===e||e.update()},forceUpdate(){var e;null===(e=m.current)||void 0===e||e.forceUpdate()},transformOrigin:ef.Dq.transformOrigin.varRef,referenceRef:x,popperRef:E,getPopperProps:_,getArrowProps:k,getArrowInnerProps:C,getReferenceProps:S}}},76947:function(e,t,n){"use strict";n.d(t,{$B:function(){return l},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});let r=(e,t)=>({var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}let a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],u={scroll:!0,resize:!0};function l(e){return"object"==typeof e?{enabled:!0,options:{...u,...e}}:{enabled:e,options:u}}},88791:function(e,t,n){"use strict";n.d(t,{L:function(){return o},h:function(){return a}});var r=n(26415);let[i,o]=(0,n(65753).k)({strict:!1,name:"PortalManagerContext"});function a(e){let{children:t,zIndex:n}=e;return(0,r.jsx)(i,{value:{zIndex:n},children:t})}a.displayName="PortalManager"},92784:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var r=n(26415),i=n(98418),o=n(65753),a=n(97129),s=n(51853),u=n(88791);let[l,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",f=e=>(0,r.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h=e=>{let{appendToParentPortal:t,children:n}=e,[o,h]=(0,a.useState)(null),p=(0,a.useRef)(null),[,v]=(0,a.useState)({});(0,a.useEffect)(()=>v({}),[]);let g=c(),m=(0,u.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,n=t&&null!=g?g:e.body;if(!n)return;p.current=e.createElement("div"),p.current.className=d,n.appendChild(p.current),v({});let r=p.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==m?void 0:m.zIndex)?(0,r.jsx)(f,{zIndex:null==m?void 0:m.zIndex,children:n}):n;return p.current?(0,s.createPortal)((0,r.jsx)(l,{value:p.current,children:y}),p.current):(0,r.jsx)("span",{ref:e=>{e&&h(e)}})},p=e=>{let{children:t,containerRef:n,appendToParentPortal:o}=e,u=n.current,c=null!=u?u:"undefined"!=typeof window?document.body:void 0,f=(0,a.useMemo)(()=>{let e=null==u?void 0:u.ownerDocument.createElement("div");return e&&(e.className=d),e},[u]),[,h]=(0,a.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,s.createPortal)((0,r.jsx)(l,{value:o?f:null,children:t}),f):null};function v(e){let{containerRef:t,...n}={appendToParentPortal:!0,...e};return t?(0,r.jsx)(p,{containerRef:t,...n}):(0,r.jsx)(h,{...n})}v.className=d,v.selector=".chakra-portal",v.displayName="Portal"},56365:function(e,t,n){"use strict";n.d(t,{P:function(){return v}});var r=n(26415),i=n(93197),o=n(77820),a=n(63399),s=n(86711),u=n(97129),l=n(40590),c=n(34272),d=n(5439);let f=(0,c.G)(function(e,t){let{children:n,placeholder:i,className:o,...a}=e;return(0,r.jsxs)(d.m.select,{...a,ref:t,className:(0,l.cx)("chakra-select",o),children:[i&&(0,r.jsx)("option",{value:"",children:i}),n]})});f.displayName="SelectField";var h=n(17648),p=n(56338);let v=(0,c.G)((e,t)=>{var n;let u=(0,p.j)("Select",e),{rootProps:l,placeholder:c,icon:v,color:g,height:m,h:b,minH:w,minHeight:x,iconColor:S,iconSize:E,..._}=(0,i.L)(e),[k,C]=(0,a.V)(_,o.oE),O=(0,h.Y)(C),T={paddingEnd:"2rem",...u.field,_focus:{zIndex:"unset",...null===(n=u.field)||void 0===n?void 0:n._focus}};return(0,r.jsxs)(d.m.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:g},...k,...l,children:[(0,r.jsx)(f,{ref:t,height:null!=b?b:m,minH:null!=w?w:x,placeholder:c,...O,__css:T,children:e.children}),(0,r.jsx)(y,{"data-disabled":(0,s.P)(O.disabled),...(S||g)&&{color:S||g},__css:u.icon,...E&&{fontSize:E},children:v})]})});v.displayName="Select";let g=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),m=(0,d.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),y=e=>{let{children:t=(0,r.jsx)(g,{}),...n}=e,i=(0,u.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,r.jsx)(m,{...n,className:"chakra-select__icon-wrapper",children:(0,u.isValidElement)(t)?i:null})};y.displayName="SelectIcon"},17146:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r=(0,n(5439).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},70986:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(26415),i=n(93197),o=n(40590),a=n(86501),s=n(34272),u=n(56338),l=n(5439);let c=(0,a.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,s.G)((e,t)=>{let n=(0,u.m)("Spinner",e),{label:a="Loading...",thickness:s="2px",speed:d="0.45s",emptyColor:f="transparent",className:h,...p}=(0,i.L)(e),v=(0,o.cx)("chakra-spinner",h),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:f,borderLeftColor:f,animation:"".concat(c," ").concat(d," linear infinite"),...n};return(0,r.jsx)(l.m.div,{ref:t,__css:g,className:v,...p,children:a&&(0,r.jsx)(l.m.span,{srOnly:!0,children:a})})});d.displayName="Spinner"},28733:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(26415),i=n(81994);let o=(0,n(34272).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"row",ref:t}));o.displayName="HStack"},81994:function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(26415),i=n(19345),o=n(40590),a=n(97129),s=n(5439);let u=e=>(0,r.jsx)(s.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});u.displayName="StackItem";var l=n(65386);let c=(0,n(34272).G)((e,t)=>{let{isInline:n,direction:c,align:d,justify:f,spacing:h="0.5rem",wrap:p,children:v,divider:g,className:m,shouldWrapChildren:y,...b}=e,w=n?"row":null!=c?c:"column",x=(0,a.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,l.XQ)(n,e=>r[e])}})({spacing:h,direction:w}),[h,w]),S=!!g,E=!y&&!S,_=(0,a.useMemo)(()=>{let e=(0,i.W)(v);return E?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,s=(0,r.jsx)(u,{children:t},i),l=y?s:t;if(!S)return l;let c=(0,a.cloneElement)(g,{__css:x});return(0,r.jsxs)(a.Fragment,{children:[l,o?null:c]},i)})},[g,x,S,E,y,v]),k=(0,o.cx)("chakra-stack",m);return(0,r.jsx)(s.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:w,flexWrap:p,gap:S?void 0:h,className:k,...b,children:_})});c.displayName="Stack"},9678:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(26415),i=n(81994);let o=(0,n(34272).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"column",ref:t}));o.displayName="VStack"},5439:function(e,t,n){"use strict";n.d(t,{m:function(){return T}});var r=n(77820),i=n(87620),o=n(83262),a=n(57824),s=n(23258),u=n(61830),l=n(57083),c=n(60279),d=n(54162),f=n(97129),h=n(93522),p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,v=(0,h.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),g=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?v:g},y=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,d.hC)(t,n,r),(0,c.L)(function(){return(0,d.My)(t,n,r)}),null},w=(function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),h=c||m(a),p=!h("as");return function(){var v=arguments,g=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&g.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)g.push.apply(g,v);else{var w=v[0];g.push(w[0]);for(var x=v.length,S=1;S<x;S++)g.push(v[S],w[S])}var E=(0,u.w)(function(e,t,n){var r=p&&e.as||a,o="",s=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=f.useContext(u.T)}"string"==typeof e.className?o=(0,d.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var w=(0,l.O)(g.concat(s),t.registered,v);o+=t.key+"-"+w.name,void 0!==i&&(o+=" "+i);var x=p&&void 0===c?m(r):h,S={};for(var E in e)(!p||"as"!==E)&&x(E)&&(S[E]=e[E]);return S.className=o,n&&(S.ref=n),f.createElement(f.Fragment,null,f.createElement(b,{cache:t,serialized:w,isStringTag:"string"==typeof r}),f.createElement(r,S))});return E.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=g,E.__emotion_forwardProp=c,Object.defineProperty(E,"toString",{value:function(){return"."+i}}),E.withComponent=function(t,r){return e(t,(0,s.Z)({},n,r,{shouldForwardProp:y(E,r,!0)})).apply(void 0,g)},E}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){w[e]=w(e)});let x=new Set([...r.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),S=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function E(e){return(S.has(e)||!x.has(e))&&"_"!==e[0]}var _=n(62767);let k=w.default||w,C=e=>{let{baseStyle:t}=e;return e=>{let{theme:n,css:s,__css:u,sx:l,...c}=e,[d]=function(e,...t){let n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=e=>{let t={};for(let r=0;r<e.length;r++){let i=e[r];n[i]&&(Object.defineProperty(t,i,n[i]),delete n[i])}return t};return t.map(e=>i(Array.isArray(e)?e:r.filter(e))).concat(i(r))}(c,r.ZR),f=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let n={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},u,(0,o.P)(t,e),(0,a.o)(d),l),h=(0,i.i)(f)(e.theme);return s?[h,s]:h}};function O(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=E);let i=C({baseStyle:n}),o=k(e,r)(i);return(0,f.forwardRef)(function(e,t){let{children:n,...r}=e,{colorMode:i,forced:a}=(0,_.If)();return(0,f.createElement)(o,{ref:t,"data-theme":a?i:void 0,...r},n)})}let T=function(){let e=new Map;return new Proxy(O,{apply:(e,t,n)=>O(...n),get:(t,n)=>(e.has(n)||e.set(n,O(n)),e.get(n))})}()},34272:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(97129);function i(e){return(0,r.forwardRef)(e)}},29291:function(e,t,n){"use strict";n.d(t,{dQ:function(){return a},uP:function(){return o}});var r=n(87953),i=n(62767);function o(){let e=(0,i.If)(),t=(0,r.F)();return{...e,theme:t}}function a(e,t,n){let i=(0,r.F)();return(function(e,t,n){let r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return n=>{let o=i.filter(Boolean),a=r.map((t,r)=>{var i,a;return"breakpoints"===e?function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__breakpoints)||void 0===r?void 0:null===(n=r.asArray)||void 0===n?void 0:n[t]};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,t,null!==(i=o[r])&&void 0!==i?i:t):function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__cssMap)||void 0===r?void 0:null===(n=r[t])||void 0===n?void 0:n.value};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,"".concat(e,".").concat(t),null!==(a=o[r])&&void 0!==a?a:t)});return Array.isArray(t)?a:a[0]}})(e,t,n)(i)}},56338:function(e,t,n){"use strict";n.d(t,{j:function(){return h},m:function(){return f}});var r=n(44271),i=n(23289),o=n(83262),a=n(61011),s=n(17988),u=n(97129),l=n(86518),c=n(29291);function d(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{styleConfig:d,...f}=n,{theme:h,colorMode:p}=(0,c.uP)(),v=e?(0,s.W)(h,"components.".concat(e)):void 0,g=d||v,m=a({theme:h,colorMode:p},null!==(t=null==g?void 0:g.defaultProps)&&void 0!==t?t:{},Object.fromEntries(Object.entries(f).filter(e=>{let[t,n]=e;return void 0!==n&&"children"!==t&&!(0,u.isValidElement)(n)})),(e,t)=>e?void 0:t),y=(0,u.useRef)({});if(g){let e=(e=>{let{variant:t,size:n,theme:s}=e,u=function(e){let t=e.__breakpoints;return function(e,n,s,u){var l;if(!t)return;let c={},d=(l=t.toArrayValue,Array.isArray(s)?s:(0,r.Kn)(s)?l(s):null!=s?[s]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let r=0;r<f;r++){let s=t.details[r],l=t.details[function(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return -1}(d,r)],f=(0,i.Y)(s.minW,l?._minW),v=(0,o.P)(e[n]?.[d[r]],u);if(v){if(p){e.parts?.forEach(e=>{a(c,{[e]:h?v[e]:{[f]:v[e]}})});continue}if(!p){h?a(c,v):c[f]=v;continue}c[f]=v}}return c}}(s);return a({},(0,o.P)(g.baseStyle??{},e),u(g,"sizes",n,e),u(g,"variants",t,e))})(m);l(y.current,e)||(y.current=e)}return y.current}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(e,t)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(e,t)}},87953:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(61830),i=n(97129);function o(){let e=(0,i.useContext)(r.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},69224:function(e,t,n){"use strict";n.d(t,{C:function(){return p}});var r=n(26415),i=n(36495),o=n(74744),a=n(40590),s=n(97001),u=n(34272),l=n(5439);let c=(0,u.G)(function(e,t){let n=(0,s.uL)(),{status:i}=(0,s.oX)();return(0,r.jsx)(l.m.div,{ref:t,"data-status":i,...e,className:(0,a.cx)("chakra-alert__title",e.className),__css:n.title})});c.displayName="AlertTitle";var d=n(92447),f=n(56761);let h=e=>{let{status:t,variant:n="solid",id:a,title:s,isClosable:u,onClose:h,description:p,colorScheme:v,icon:g}=e,m=a?{root:"toast-".concat(a),title:"toast-".concat(a,"-title"),description:"toast-".concat(a,"-description")}:void 0;return(0,r.jsxs)(i.b,{addRole:!1,status:t,variant:n,id:null==m?void 0:m.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:v,children:[(0,r.jsx)(o.z,{children:g}),(0,r.jsxs)(l.m.div,{flex:"1",maxWidth:"100%",children:[s&&(0,r.jsx)(c,{id:null==m?void 0:m.title,children:s}),p&&(0,r.jsx)(d.X,{id:null==m?void 0:m.description,display:"block",children:p})]}),u&&(0,r.jsx)(f.P,{size:"sm",onClick:h,position:"absolute",insetEnd:1,top:1})]})};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{render:t,toastComponent:n=h}=e;return i=>"function"==typeof t?t({...i,...e}):(0,r.jsx)(n,{...i,...e})}},56513:function(e,t,n){"use strict";n.d(t,{Qi:function(){return y},VW:function(){return w},OX:function(){return b}});var r=n(26415),i=n(65753),o=n(41466),a=n(97129),s=n(48904),u=n(57077),l=n(83262),c=n(68098),d=n(74550),f=n(99189),h=n(5439);let p={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},v=(0,a.memo)(e=>{let{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:v=!1,position:g="bottom",duration:m=5e3,containerStyle:y,motionVariants:b=p,toastSpacing:w="0.5rem"}=e,[x,S]=(0,a.useState)(m),E=(0,c.hO)();(0,s.r)(()=>{E||null==i||i()},[E]),(0,s.r)(()=>{S(m)},[m]);let _=()=>{E&&o()};(0,a.useEffect)(()=>{E&&v&&o()},[E,v,o]),function(e,t){let n=(0,u.W)(e);(0,a.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(_,x);let k=(0,a.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...y}),[y,w]),C=(0,a.useMemo)(()=>(0,f.sv)(g),[g]);return(0,r.jsx)(d.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>S(null),onHoverEnd:()=>S(m),custom:{position:g},style:C,children:(0,r.jsx)(h.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:k,children:(0,l.P)(n,{id:t,onClose:_})})})});v.displayName="ToastComponent";var g=n(35096),m=n(92784);let[y,b]=(0,i.k)({name:"ToastOptionsContext",strict:!1}),w=e=>{let t=(0,a.useSyncExternalStore)(g.f.subscribe,g.f.getState,g.f.getState),{motionVariants:n,component:i=v,portalProps:s,animatePresenceProps:u}=e,l=Object.keys(t).map(e=>{let a=t[e];return(0,r.jsx)("div",{role:"region","aria-live":"polite","aria-label":"Notifications-".concat(e),id:"chakra-toast-manager-".concat(e),style:(0,f.IW)(e),children:(0,r.jsx)(o.M,{...u,initial:!1,children:a.map(e=>(0,r.jsx)(i,{motionVariants:n,...e},e.id))})},e)});return(0,r.jsx)(m.h,{...s,children:l})}},35096:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(69224),i=n(99189);let o=function(e){let t=e,n=new Set,s=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{s(()=>e),n.delete(t)}),removeToast:(e,t)=>{s(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a+=1;let i=null!==(t=r.id)&&void 0!==t?t:a,s=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:e,position:s,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),s),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),{position:r,id:i}=n;return s(e=>{var t,i;let o=r.includes("top")?[n,...null!==(t=e[r])&&void 0!==t?t:[]]:[...null!==(i=e[r])&&void 0!==i?i:[],n];return{...e,[r]:o}}),i},update:(e,t)=>{e&&s(n=>{let o={...n},{position:a,index:s}=(0,i.Dn)(o,e);return a&&-1!==s&&(o[a][s]={...o[a][s],...t,message:(0,r.C)(t)}),o})},closeAll:function(){let{positions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{s(t=>{let n=(0,i.ym)(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,i.Dn)(o.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),a=0},99189:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});let r=(e,t)=>e.find(e=>e.id===t);function i(e,t){let n=o(e,t),r=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:r}}function o(e,t){for(let[n,i]of Object.entries(e))if(r(i,t))return n}function a(e){let t=e.includes("right"),n=e.includes("left"),r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:r,left:i}}},60657:function(e,t,n){"use strict";n.d(t,{p:function(){return l}});var r=n(97129),i=n(83262),o=n(69224),a=n(35096),s=n(56513),u=n(29291);function l(e){let{theme:t}=(0,u.uP)(),n=(0,s.OX)();return(0,r.useMemo)(()=>(function(e,t){let n=n=>{var r;return{...t,...n,position:function(e,t){var n;let r=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r}(null!==(r=null==n?void 0:n.position)&&void 0!==r?r:null==t?void 0:t.position,e)}},r=e=>{let t=n(e),r=(0,o.C)(t);return a.f.notify(r,t)};return r.update=(e,t)=>{a.f.update(e,n(t))},r.promise=(e,t)=>{let n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...(0,i.P)(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...(0,i.P)(t.error,e)}))},r.closeAll=a.f.closeAll,r.close=a.f.close,r.isActive=a.f.isActive,r})(t.direction,{...n,...e}),[e,t.direction,n])}},35690:function(e,t,n){"use strict";n.d(t,{u:function(){return T}});var r=n(26415),i=n(93197),o=n(25597),a=n(37678),s=n(74550),u=n(41466),l=n(97129),c=n(98031);let d={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};var f=n(77622),h=n(34510),p=n(11637),v=n(9489),g=n(23080),m=n(19022),y=n(76947);let b=e=>{var t;return(null===(t=e.current)||void 0===t?void 0:t.ownerDocument)||document},w=e=>{var t,n;return(null===(n=e.current)||void 0===n?void 0:null===(t=n.ownerDocument)||void 0===t?void 0:t.defaultView)||window},x="chakra-ui:close-tooltip";var S=n(87953),E=n(92784),_=n(5439),k=n(34272),C=n(56338);let O=(0,_.m)(s.E.div),T=(0,k.G)((e,t)=>{var n,s;let k;let T=(0,C.m)("Tooltip",e),P=(0,i.L)(e),I=(0,S.F)(),{children:R,label:A,shouldWrapChildren:M,"aria-label":j,hasArrow:N,bg:L,portalProps:D,background:F,backgroundColor:U,bgColor:B,motionProps:V,animatePresenceProps:q,...z}=P,W=null!==(s=null!==(n=null!=F?F:U)&&void 0!==n?n:L)&&void 0!==s?s:B;if(W){T.bg=W;let e=I.__cssMap?.[`colors.${W}`]?.varRef??W;T[y.Dq.arrowBg.var]=e}let $=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:s=!0,onOpen:u,onClose:c,placement:d,id:S,isOpen:E,defaultIsOpen:_,arrowSize:k=10,arrowShadowColor:C,arrowPadding:O,modifiers:T,isDisabled:P,gutter:I,offset:R,direction:A,...M}=e,{isOpen:j,onOpen:N,onClose:L}=(0,f.q)({isOpen:E,defaultIsOpen:_,onOpen:u,onClose:c}),{referenceRef:D,getPopperProps:F,getArrowInnerProps:U,getArrowProps:B}=(0,m.D)({enabled:j,placement:d,arrowPadding:O,modifiers:T,gutter:I,offset:R,direction:A}),V=(0,l.useId)(),q="tooltip-".concat(null!=S?S:V),z=(0,l.useRef)(null),W=(0,l.useRef)(void 0),$=(0,l.useCallback)(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),G=(0,l.useRef)(void 0),H=(0,l.useCallback)(()=>{G.current&&(clearTimeout(G.current),G.current=void 0)},[]),Z=(0,l.useCallback)(()=>{H(),L()},[L,H]),K=((0,l.useEffect)(()=>{let e=b(z);return e.addEventListener(x,Z),()=>e.removeEventListener(x,Z)},[Z,z]),()=>{let e=b(z),t=w(z);e.dispatchEvent(new t.CustomEvent(x))}),X=(0,l.useCallback)(()=>{if(!P&&!W.current){j&&K();let e=w(z);W.current=e.setTimeout(N,t)}},[K,P,j,N,t]),J=(0,l.useCallback)(()=>{$();let e=w(z);G.current=e.setTimeout(Z,n)},[n,Z,$]),Y=(0,l.useCallback)(()=>{j&&r&&J()},[r,J,j]),Q=(0,l.useCallback)(()=>{j&&a&&J()},[a,J,j]),ee=(0,l.useCallback)(e=>{j&&"Escape"===e.key&&J()},[j,J]);(0,h.O)(()=>b(z),"keydown",s?ee:void 0),(0,h.O)(()=>{if(!o)return null;let e=z.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,v.Re)(t)&&function(e){let{overflow:t,overflowX:n,overflowY:r}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?w(z):t},"scroll",()=>{j&&o&&Z()},{passive:!0,capture:!0}),(0,l.useEffect)(()=>{P&&($(),j&&L())},[P,j,L,$]),(0,l.useEffect)(()=>()=>{$(),H()},[$,H]),(0,h.O)(()=>z.current,"pointerleave",J);let et=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,p.lq)(z,t,D),onPointerEnter:(0,g.v)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&X()}),onClick:(0,g.v)(e.onClick,Y),onPointerDown:(0,g.v)(e.onPointerDown,Q),onFocus:(0,g.v)(e.onFocus,X),onBlur:(0,g.v)(e.onBlur,J),"aria-describedby":j?q:void 0}},[X,J,Q,j,q,Y,D]),en=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return F({...e,style:{...e.style,[y.Dq.arrowSize.var]:k?"".concat(k,"px"):void 0,[y.Dq.arrowShadowColor.var]:C}},t)},[F,k,C]);return{isOpen:j,show:X,hide:J,getTriggerProps:et,getTooltipProps:(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={...e.style,position:"relative",transformOrigin:y.Dq.transformOrigin.varRef};return{ref:t,...M,...e,id:q,role:"tooltip",style:n}},[M,q]),getTooltipPositionerProps:en,getArrowProps:B,getArrowInnerProps:U}}({...z,direction:I.direction});if(!(0,l.isValidElement)(R)||M)k=(0,r.jsx)(_.m.span,{display:"inline-block",tabIndex:0,...$.getTriggerProps(),children:R});else{let e=l.Children.only(R);k=(0,l.cloneElement)(e,$.getTriggerProps(e.props,(0,c.e)(e)))}let G=!!j,H=$.getTooltipProps({},t),Z=G?(0,o.C)(H,["role","id"]):H,K=(0,a.e)(H,["role","id"]);return A?(0,r.jsxs)(r.Fragment,{children:[k,(0,r.jsx)(u.M,{...q,children:$.isOpen&&(0,r.jsx)(E.h,{...D,children:(0,r.jsx)(_.m.div,{...$.getTooltipPositionerProps(),__css:{zIndex:T.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(O,{variants:d,initial:"exit",animate:"enter",exit:"exit",...V,...Z,__css:T,children:[A,G&&(0,r.jsx)(_.m.span,{srOnly:!0,...K,children:j}),N&&(0,r.jsx)(_.m.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,r.jsx)(_.m.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:T.bg}})})]})})})})]}):(0,r.jsx)(r.Fragment,{children:R})});T.displayName="Tooltip"},29930:function(e,t,n){"use strict";n.d(t,{Sh:function(){return r},p$:function(){return i}});let r={enter:{duration:.2,ease:[0,0,.2,1]},exit:{duration:.1,ease:[.4,0,1,1]}},i={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},78398:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(26415),i=n(93197),o=n(40590),a=n(34272),s=n(56338),u=n(5439);let l=(0,a.G)(function(e,t){let n=(0,s.m)("Heading",e),{className:a,...l}=(0,i.L)(e);return(0,r.jsx)(u.m.h2,{ref:t,className:(0,o.cx)("chakra-heading",e.className),...l,__css:n})});l.displayName="Heading"},79558:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(26415),i=n(93197),o=n(57824),a=n(40590),s=n(34272),u=n(56338),l=n(5439);let c=(0,s.G)(function(e,t){let n=(0,u.m)("Text",e),{className:s,align:c,decoration:d,casing:f,...h}=(0,i.L)(e),p=(0,o.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,r.jsx)(l.m.p,{ref:t,className:(0,a.cx)("chakra-text",e.className),...p,...h,__css:n})});c.displayName="Text"},54227:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});let r={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},65838:function(e,t,n){"use strict";function r(e,t,n){let r=function(e,t=""){var n;return((n=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?n:Number.isInteger(parseFloat(n.toString()))?n:n.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,n);return{variable:r,reference:`var(${r}${t?`, ${t}`:""})`}}function i(e,t){let n={};for(let i of t){if(Array.isArray(i)){let[t,o]=i;n[t]=r(`${e}-${t}`,o);continue}n[i]=r(`${e}-${i}`)}return n}n.d(t,{_6:function(){return i},gJ:function(){return r}})},87620:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(83262),i=n(44271),o=n(61011),a=n(26880),s=n(77820);let u=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:a}=t.__breakpoints,s={};for(let u in e){let l=(0,r.P)(e[u],t);if(null==l)continue;if(!Array.isArray(l=(0,i.Kn)(l)&&n(l)?o(l):l)){s[u]=l;continue}let c=l.slice(0,a.length).length;for(let e=0;e<c;e+=1){let t=a?.[e];if(!t){s[u]=l[e];continue}s[t]=s[t]||{},null!=l[e]&&(s[t][u]=l[e])}}return s},l=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),c=(e,t)=>{if(null==t)return t;let n=t=>e.__cssMap?.[t]?.varRef,r=e=>n(e)??e,[i,o]=function(e){let t=[],n="",r=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(r=!0,n+=o):")"===o?(r=!1,n+=o):","!==o||r?n+=o:(t.push(n),n="")}return(n=n.trim())&&t.push(n),t}(t);return t=n(i)??r(o)??r(t)},d=e=>t=>(function(e){let{configs:t={},pseudos:n={},theme:a}=e,s=(e,d=!1)=>{let f=(0,r.P)(e,a),h=u(f)(a),p={};for(let e in h){let u=h[e],v=(0,r.P)(u,a);e in n&&(e=n[e]),l(e,v)&&(v=c(a,v));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(v)){p[e]=p[e]??{},p[e]=o({},p[e],s(v,!0));continue}let m=g?.transform?.(v,a,f)??v;m=g?.processResult?s(m,!0):m;let y=(0,r.P)(g?.property,a);if(!d&&g?.static&&(p=o({},p,(0,r.P)(g.static,a))),y&&Array.isArray(y)){for(let e of y)p[e]=m;continue}if(y){"&"===y&&(0,i.Kn)(m)?p=o({},p,m):p[y]=m;continue}if((0,i.Kn)(m)){p=o({},p,m);continue}p[e]=m}return p};return s})({theme:t,pseudos:a.v,configs:s.Ul})(e)},19838:function(e,t,n){"use strict";function r(e){return e}function i(e){return e}function o(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}n.d(t,{D:function(){return o},fj:function(){return i},k0:function(){return r}})},26880:function(e,t,n){"use strict";n.d(t,{_:function(){return v},v:function(){return p}});let r=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,i=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,o=(e,t)=>`${e}:focus-visible ${t}`,a=(e,t)=>`${e}:focus-within ${t}`,s=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,u=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,l=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,c=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,d=e=>h(t=>e(t,"&"),"[role=group]","[data-group]",".group"),f=e=>h(t=>e(t,"~ &"),"[data-peer]",".peer"),h=(e,...t)=>t.map(e).join(", "),p={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:d((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:d((e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`),_groupHover:d(r),_peerHover:f(r),_groupFocus:d(i),_peerFocus:f(i),_groupFocusVisible:d(o),_peerFocusVisible:f(o),_groupActive:d(s),_peerActive:f(s),_groupDisabled:d(u),_peerDisabled:f(u),_groupInvalid:d(l),_peerInvalid:f(l),_groupChecked:d(c),_peerChecked:f(c),_groupFocusWithin:d(a),_peerFocusWithin:f(a),_peerPlaceholderShown:f((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},v=Object.keys(p)},77820:function(e,t,n){"use strict";n.d(t,{ZR:function(){return X},oE:function(){return H},cC:function(){return Z},Ul:function(){return G}});var r=n(61011),i=n(26880),o=n(44271);let a=e=>/!(important)?$/.test(e),s=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,u=(e,t)=>n=>{let r=String(t),i=a(r),u=s(r),l=e?`${e}.${u}`:u,c=(0,o.Kn)(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return c=s(c),i?`${c} !important`:c};function l(e){let{scale:t,transform:n,compose:r}=e;return(e,i)=>{let o=u(t,e)(i),a=n?.(o,i)??o;return r&&(a=r(a,i)),a}}let c=(...e)=>t=>e.reduce((e,t)=>t(e),t);function d(e,t){return n=>{let r={property:n,scale:e};return r.transform=l({scale:e,transform:t}),r}}let f=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],p={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},v={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},y=new Set(Object.values(m)),b=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),w=e=>e.trim(),x=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),S=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},E=e=>t=>`${e}(${t})`,_={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:v,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":_.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=S(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||b.has(e))return e;if(!(x(e)||b.has(e)))return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=n?.[1],i=n?.[2];if(!r||!i)return e;let o=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=i.split(",").map(w).filter(Boolean);if(s?.length===0)return e;let u=a in m?m[a]:a;s.unshift(u);let l=s.map(e=>{if(y.has(e))return e;let n=e.indexOf(" "),[r,i]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=x(i)?i:i&&i.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${l.join(", ")})`})(e,t??{}),blur:E("blur"),opacity:E("opacity"),brightness:E("brightness"),contrast:E("contrast"),dropShadow:E("drop-shadow"),grayscale:E("grayscale"),hueRotate:e=>E("hue-rotate")(_.degree(e)),invert:E("invert"),saturate:E("saturate"),sepia:E("sepia"),bgImage:e=>null==e?e:x(e)||b.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){let{space:t,divide:n}=g[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},k={borderWidths:d("borderWidths"),borderStyles:d("borderStyles"),colors:d("colors"),borders:d("borders"),gradients:d("gradients",_.gradient),radii:d("radii",_.px),space:d("space",c(_.vh,_.px)),spaceT:d("space",c(_.vh,_.px)),degreeT:e=>({property:e,transform:_.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:d("sizes",c(_.vh,_.px)),sizesT:d("sizes",c(_.vh,_.fraction)),shadows:d("shadows"),logical:function(e){let{property:t,scale:n,transform:r}=e;return{scale:n,property:f(t),transform:n?l({scale:n,compose:r}):r}},blur:d("blur",_.blur)},C={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:_.bgClip}};Object.assign(C,{bgImage:C.backgroundImage,bgImg:C.backgroundImage});let O={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(O,{rounded:O.borderRadius,roundedTop:O.borderTopRadius,roundedTopLeft:O.borderTopLeftRadius,roundedTopRight:O.borderTopRightRadius,roundedTopStart:O.borderStartStartRadius,roundedTopEnd:O.borderStartEndRadius,roundedBottom:O.borderBottomRadius,roundedBottomLeft:O.borderBottomLeftRadius,roundedBottomRight:O.borderBottomRightRadius,roundedBottomStart:O.borderEndStartRadius,roundedBottomEnd:O.borderEndEndRadius,roundedLeft:O.borderLeftRadius,roundedRight:O.borderRightRadius,roundedStart:O.borderInlineStartRadius,roundedEnd:O.borderInlineEndRadius,borderStart:O.borderInlineStart,borderEnd:O.borderInlineEnd,borderTopStartRadius:O.borderStartStartRadius,borderTopEndRadius:O.borderStartEndRadius,borderBottomStartRadius:O.borderEndStartRadius,borderBottomEndRadius:O.borderEndEndRadius,borderStartRadius:O.borderInlineStartRadius,borderEndRadius:O.borderInlineEndRadius,borderStartWidth:O.borderInlineStartWidth,borderEndWidth:O.borderInlineEndWidth,borderStartColor:O.borderInlineStartColor,borderEndColor:O.borderInlineEndColor,borderStartStyle:O.borderInlineStartStyle,borderEndStyle:O.borderInlineEndStyle});let T={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(P,{flexDir:P.flexDirection});let I={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{let n=t.__breakpoints?.get(e)?.minW??e;return{[`@media screen and (min-width: ${n})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{let n=t.__breakpoints?.get(e)?._minW??e;return{[`@media screen and (max-width: ${n})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(I,{w:I.width,h:I.height,minW:I.minWidth,maxW:I.maxWidth,minH:I.minHeight,maxH:I.maxHeight,overscroll:I.overscrollBehavior,overscrollX:I.overscrollBehaviorX,overscrollY:I.overscrollBehaviorY});let R={filter:{transform:_.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",_.brightness),contrast:k.propT("--chakra-contrast",_.contrast),hueRotate:k.propT("--chakra-hue-rotate",_.hueRotate),invert:k.propT("--chakra-invert",_.invert),saturate:k.propT("--chakra-saturate",_.saturate),dropShadow:k.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",_.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",_.saturate)},A={ring:{transform:_.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},j={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},N=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}),L={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},D={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},F=(e,t,n)=>{let r={},i=N(e,t,{});for(let e in i)e in n&&null!=n[e]||(r[e]=i[e]);return r},U={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(U,{insetStart:U.insetInlineStart,insetEnd:U.insetInlineEnd});let B={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(B,{shadow:B.boxShadow});let V={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(V,{m:V.margin,mt:V.marginTop,mr:V.marginRight,me:V.marginInlineEnd,marginEnd:V.marginInlineEnd,mb:V.marginBottom,ml:V.marginLeft,ms:V.marginInlineStart,marginStart:V.marginInlineStart,mx:V.marginX,my:V.marginY,p:V.padding,pt:V.paddingTop,py:V.paddingY,px:V.paddingX,pb:V.paddingBottom,pl:V.paddingLeft,ps:V.paddingInlineStart,paddingStart:V.paddingInlineStart,pr:V.paddingRight,pe:V.paddingInlineEnd,paddingEnd:V.paddingInlineEnd});let q={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},z={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",_.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},W={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},$={clipPath:!0,transform:k.propT("transform",_.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},G=r({},C,O,T,P,I,R,A,M,j,{srOnly:{transform:e=>!0===e?L:"focusable"===e?D:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>F(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>F(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>F(t,e,n)}},U,B,V,q,z,W,$,{listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},{transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")}),H=Object.keys(Object.assign({},V,I,P,j,U)),Z=[...Object.keys(G),...i._],K={...G,...i.v},X=e=>e in K},93197:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(25597);function i(e){return(0,r.C)(e,["styleConfig","size","variant","colorScheme"])}},86711:function(e,t,n){"use strict";n.d(t,{P:function(){return r},Q:function(){return i}});let r=e=>e?"":void 0,i=e=>!!e||void 0},23289:function(e,t,n){"use strict";n.d(t,{Y:function(){return l},y:function(){return c}});var r=n(44271);function i(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}let o=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,a=e=>Object.fromEntries(Object.entries(e).sort(o));function s(e){let t=a(e);return Object.assign(Object.values(t),t)}function u(e){return e?"number"==typeof(e=i(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function l(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${i(e)})`),t&&n.push("and",`(max-width: ${i(t)})`),n.join(" ")}function c(e){if(!e)return null;e.base=e.base??"0px";let t=s(e),n=Object.entries(e).sort(o).map(([e,t],n,r)=>{let[,i]=r[n+1]??[];return i=parseFloat(i)>0?u(i):void 0,{_minW:u(t),breakpoint:e,minW:t,maxW:i,maxWQuery:l(null,i),minWQuery:l(t),minMaxQuery:l(t,i)}}),i=new Set(Object.keys(a(e))),c=Array.from(i.values());return{keys:i,normalized:t,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>i.has(e))},asObject:a(e),asArray:s(e),details:n,get:e=>n.find(t=>t.breakpoint===e),media:[null,...t.map(e=>l(e)).slice(1)],toArrayValue(e){if(!(0,r.Kn)(e))throw Error("toArrayValue: value must be an object");let t=c.map(t=>e[t]??null);for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=c[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}},23080:function(e,t,n){"use strict";function r(...e){return function(...t){e.forEach(e=>e?.(...t))}}function i(...e){return function(t){e.some(e=>(e?.(t),t?.defaultPrevented))}}n.d(t,{P:function(){return r},v:function(){return i}})},19345:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(97129);function i(e){return r.Children.toArray(e).filter(e=>(0,r.isValidElement)(e))}},57824:function(e,t,n){"use strict";function r(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}n.d(t,{o:function(){return r}})},65753:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(97129);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,u=(0,r.createContext)(s);return u.displayName=t,[u.Provider,function e(){let t=(0,r.useContext)(u);if(!t&&n){var s,l;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null===(s=(l=Error).captureStackTrace)||void 0===s||s.call(l,t,e),t}return t},u]}},40590:function(e,t,n){"use strict";n.d(t,{cx:function(){return r}});let r=(...e)=>e.filter(Boolean).join(" ")},29816:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(44899);let i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},17988:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});let r=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e})},9489:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(){return!!globalThis?.document}function o(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function a(e){return!0==!!e.getAttribute("disabled")||!0==!!e.getAttribute("aria-disabled")}n.d(t,{Re:function(){return r},iU:function(){return o},jU:function(){return i},nV:function(){return a},oI:function(){return function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}}})},44271:function(e,t,n){"use strict";function r(e){return Array.isArray(e)}function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!r(e)}n.d(t,{Kn:function(){return i},kJ:function(){return r}})},53112:function(e,t,n){"use strict";function r(e){let{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!n||!!r||"keepMounted"===i&&!!t}n.d(t,{k:function(){return r}})},25597:function(e,t,n){"use strict";function r(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}n.d(t,{C:function(){return r}})},67964:function(e,t,n){"use strict";n.d(t,{kR:function(){return i},vY:function(){return a}});var r=n(9489);function i(e){return o(e)?.defaultView??window}function o(e){return(0,r.Re)(e)?e.ownerDocument:document}function a(e){return o(e).activeElement}},37678:function(e,t,n){"use strict";function r(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}n.d(t,{e:function(){return r}})},65386:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return a}});var r=n(44271);let i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,r.Kn)(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}function a(e,t=i){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},83262:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});let r=e=>"function"==typeof e;function i(e,...t){return r(e)?e(...t):e}},63399:function(e,t,n){"use strict";function r(e,t){let n={},r={};for(let[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}n.d(t,{V:function(){return r}})},44899:function(e,t,n){"use strict";n.d(t,{EB:function(){return a},Wq:function(){return s}});var r=n(9489);let i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){if(!(0,r.Re)(e)||(0,r.oI)(e)||(0,r.nV)(e))return!1;let{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;let n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!(0,r.iU)(e)||i(e)}function s(e){return!!e&&(0,r.Re)(e)&&a(e)&&!o(e)}},15981:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},97330:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(19381),i=n(16690),o=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},46991:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(33795),i=n(47090),o=n(27025),a=class extends i.F{#r;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})};this.#o=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let n="pending"===this.state.status,r=!this.#o.canStart();try{if(n)t();else{this.#a({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#o.start();return await this.#i.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#i.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#a({type:"success",data:i}),i}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.Vr.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},33795:function(e,t,n){"use strict";n.d(t,{Vr:function(){return i}});var r=e=>setTimeout(e,0),i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=r,a=r=>{t?e.push(r):o(()=>{n(r)})},s=()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||s()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},70848:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(19381),i=n(16690),o=new class extends r.l{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},35930:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return u}});var r=n(16690),i=n(33795),o=n(27025),a=n(47090),s=class extends a.F{#u;#l;#c;#d;#o;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#c=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#u)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.KC)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.Kp)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#h?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},a=()=>{let e=(0,r.cG)(this.options,t),n=(()=>{let e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},s=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:a};return i(e),e})();this.options.behavior?.onFetch(s,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#a({type:"fetch",meta:s.fetchOptions?.meta});let u=e=>{(0,o.DV)(e)&&e.silent||this.#a({type:"error",error:e}),(0,o.DV)(e)||(this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#o=(0,o.Mz)({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){u(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){u(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:u,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#l)return{...this.#l,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.Vr.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},77548:function(e,t,n){"use strict";n.d(t,{S:function(){return v}});var r=n(16690),i=n(35930),o=n(33795),a=n(19381),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.Rm)(o,t),s=this.get(a);return s||(s=new i.A({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.Vr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.Vr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.Vr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u=n(46991),l=class extends a.l{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#g=new Map,this.#m=0}#v;#g;#m;build(e,t,n){let r=new u.m({mutationCache:this,mutationId:++this.#m,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#v.add(e);let t=c(e);if("string"==typeof t){let n=this.#g.get(t);n?n.push(e):this.#g.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#g.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#g.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#g.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#g.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.Vr.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#g.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.Vr.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id}var d=n(97330),f=n(70848);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},l=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return c(e),e})(),s=await d(a),{maxPages:u}=t.options,l=o?r.Ht:r.VX;return{pages:l(e.pages,s,u),pageParams:l(e.pageParams,i,u)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);u=await f(t,n,e)}else{let t=e??a.length;do{let e=0===l?s[0]??i.initialPageParam:p(i,u);if(l>0&&null==e)break;u=await f(u,e),l++}while(l<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var v=class{#y;#i;#f;#b;#w;#x;#S;#E;constructor(e={}){this.#y=e.queryCache||new s,this.#i=e.mutationCache||new l,this.#f=e.defaultOptions||{},this.#b=new Map,this.#w=new Map,this.#x=0}mount(){this.#x++,1===this.#x&&(this.#S=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#E=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#x--,0===this.#x&&(this.#S?.(),this.#S=void 0,this.#E?.(),this.#E=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#y.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#y.get(i.queryHash),a=o?.state.data,s=(0,r.SE)(t,a);if(void 0!==s)return this.#y.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.Vr.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;o.Vr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#y;return o.Vr.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.Vr.batch(()=>this.#y.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return o.Vr.batch(()=>(this.#y.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.Vr.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#y.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#b.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#b.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#w.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#w.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#i.clear()}}},47090:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(16690),i=class{#_;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#_=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#_&&(clearTimeout(this.#_),this.#_=void 0)}}},27025:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return u},Mz:function(){return d}});var r=n(97330),i=n(70848),o=n(93805),a=n(16690);function s(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||i.N.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}function d(e){let t,n=!1,c=0,d=!1,f=(0,o.O)(),h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),v=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},g=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},m=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),y=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(v).catch(t=>{if(d)return;let r=e.retry??(a.sk?0:3),i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,u=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!u){g(t);return}c++,e.onFail?.(c,t),(0,a._v)(o).then(()=>h()?void 0:m()).then(()=>{n?g(t):y()})})};return{promise:f,cancel:t=>{d||(g(new l(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?y():m().then(y),f)}}},19381:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},93805:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},16690:function(e,t,n){"use strict";n.d(t,{CN:function(){return E},Ht:function(){return S},KC:function(){return u},Kp:function(){return s},L3:function(){return k},Nc:function(){return l},PN:function(){return a},Rm:function(){return f},SE:function(){return o},VS:function(){return v},VX:function(){return x},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return b},_x:function(){return c},cG:function(){return _},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>p(e[n],t[n]))}function v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(y(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=g(t)&&g(n);if(r||m(t)&&m(n)){let i=r?t:Object.keys(t),o=i.length,a=r?n:Object.keys(n),s=a.length,u=r?[]:{},l=new Set(i),c=0;for(let i=0;i<s;i++){let o=r?i:a[i];(!r&&l.has(o)||r)&&void 0===t[o]&&void 0===n[o]?(u[o]=void 0,c++):(u[o]=e(t[o],n[o]),u[o]===t[o]&&void 0!==t[o]&&c++)}return o===s&&c===o?t:u}return n}(e,t):t}function x(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function S(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var E=Symbol();function _(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function k(e,t){return"function"==typeof e?e(...t):!!e}},88736:function(e,t,n){"use strict";n.d(t,{NL:function(){return a},aH:function(){return s}});var r=n(97129),i=n(26415),o=r.createContext(void 0),a=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},87270:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return T}});var i=n(97330),o=n(33795),a=n(35930),s=n(19381),u=n(93805),l=n(16690),c=class extends s.l{constructor(e,t){super(),this.options=t,this.#d=e,this.#k=null,this.#C=(0,u.O)(),this.options.experimental_prefetchInRender||this.#C.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#d;#O=void 0;#T=void 0;#P=void 0;#I;#R;#C;#k;#A;#M;#j;#N;#L;#D;#F=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),d(this.#O,this.options)?this.#U():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#V(),this.#q(),this.#O.removeObserver(this)}setOptions(e){let t=this.options,n=this.#O;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Nc)(this.options.enabled,this.#O))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#z(),this.#O.setOptions(this.options),t._defaulted&&!(0,l.VS)(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});let r=this.hasListeners();r&&h(this.#O,n,this.options,t)&&this.#U(),this.updateResult(),r&&(this.#O!==n||(0,l.Nc)(this.options.enabled,this.#O)!==(0,l.Nc)(t.enabled,this.#O)||(0,l.KC)(this.options.staleTime,this.#O)!==(0,l.KC)(t.staleTime,this.#O))&&this.#W();let i=this.#$();r&&(this.#O!==n||(0,l.Nc)(this.options.enabled,this.#O)!==(0,l.Nc)(t.enabled,this.#O)||i!==this.#D)&&this.#G(i)}getOptimisticResult(e){let t=this.#d.getQueryCache().build(this.#d,e),n=this.createResult(t,e);return(0,l.VS)(this.getCurrentResult(),n)||(this.#P=n,this.#R=this.options,this.#I=this.#O.state),n}getCurrentResult(){return this.#P}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#d.defaultQueryOptions(e),n=this.#d.getQueryCache().build(this.#d,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#U({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#P))}#U(e){this.#z();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.ZT)),t}#W(){this.#V();let e=(0,l.KC)(this.options.staleTime,this.#O);if(l.sk||this.#P.isStale||!(0,l.PN)(e))return;let t=(0,l.Kp)(this.#P.dataUpdatedAt,e);this.#N=setTimeout(()=>{this.#P.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#G(e){this.#q(),this.#D=e,!l.sk&&!1!==(0,l.Nc)(this.options.enabled,this.#O)&&(0,l.PN)(this.#D)&&0!==this.#D&&(this.#L=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#U()},this.#D))}#B(){this.#W(),this.#G(this.#$())}#V(){this.#N&&(clearTimeout(this.#N),this.#N=void 0)}#q(){this.#L&&(clearInterval(this.#L),this.#L=void 0)}createResult(e,t){let n;let r=this.#O,i=this.options,o=this.#P,s=this.#I,c=this.#R,f=e!==r?e.state:this.#T,{state:v}=e,g={...v},m=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&d(e,t),s=n&&h(e,r,t,i);(o||s)&&(g={...g,...(0,a.z)(v.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=g;n=g.data;let x=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===w){let e;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=o.data,x=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#j?.state.data,this.#j):t.placeholderData,void 0!==e&&(w="success",n=(0,l.oE)(o?.data,e,t),m=!0)}if(t.select&&void 0!==n&&!x){if(o&&n===s?.data&&t.select===this.#A)n=this.#M;else try{this.#A=t.select,n=t.select(n),n=(0,l.oE)(o?.data,n,t),this.#M=n,this.#k=null}catch(e){this.#k=e}}this.#k&&(y=this.#k,n=this.#M,b=Date.now(),w="error");let S="fetching"===g.fetchStatus,E="pending"===w,_="error"===w,k=E&&S,C=void 0!==n,O={status:w,fetchStatus:g.fetchStatus,isPending:E,isSuccess:"success"===w,isError:_,isInitialLoading:k,isLoading:k,data:n,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:_&&!C,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:_&&C,isStale:p(e,t),refetch:this.refetch,promise:this.#C};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===O.status?e.reject(O.error):void 0!==O.data&&e.resolve(O.data)},n=()=>{t(this.#C=O.promise=(0,u.O)())},i=this.#C;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===O.status||O.data!==i.value)&&n();break;case"rejected":("error"!==O.status||O.error!==i.reason)&&n()}}return O}updateResult(){let e=this.#P,t=this.createResult(this.#O,this.options);this.#I=this.#O.state,this.#R=this.options,void 0!==this.#I.data&&(this.#j=this.#O),(0,l.VS)(t,e)||(this.#P=t,this.#H({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#F.size)return!0;let r=new Set(n??this.#F);return this.options.throwOnError&&r.add("error"),Object.keys(this.#P).some(t=>this.#P[t]!==e[t]&&r.has(t))})()}))}#z(){let e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#O)return;let t=this.#O;this.#O=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#H(e){o.Vr.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#P)}),this.#d.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,n){if(!1!==(0,l.Nc)(t.enabled,e)&&"static"!==(0,l.KC)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function h(e,t,n,r){return(e!==t||!1===(0,l.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&e.isStaleByTime((0,l.KC)(t.staleTime,e))}var v=n(97129),g=n(88736);n(26415);var m=v.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),y=()=>v.useContext(m),b=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},w=e=>{v.useEffect(()=>{e.clearReset()},[e])},x=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,l.L3)(r,[t.error,i]))},S=v.createContext(!1),E=()=>v.useContext(S);S.Provider;var _=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},k=(e,t)=>e.isLoading&&e.isFetching&&!t,C=(e,t)=>e?.suspense&&t.isPending,O=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function T(e,t){return function(e,t,n){var r,i,a,s,u;let c=E(),d=y(),f=(0,g.NL)(n),h=f.defaultQueryOptions(e);null===(i=f.getDefaultOptions().queries)||void 0===i||null===(r=i._experimental_beforeQuery)||void 0===r||r.call(i,h),h._optimisticResults=c?"isRestoring":"optimistic",_(h),b(h,d),w(d);let p=!f.getQueryCache().get(h.queryHash),[m]=v.useState(()=>new t(f,h)),S=m.getOptimisticResult(h),T=!c&&!1!==e.subscribed;if(v.useSyncExternalStore(v.useCallback(e=>{let t=T?m.subscribe(o.Vr.batchCalls(e)):l.ZT;return m.updateResult(),t},[m,T]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),v.useEffect(()=>{m.setOptions(h)},[h,m]),C(h,S))throw O(h,m,d);if(x({result:S,errorResetBoundary:d,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw S.error;if(null===(s=f.getDefaultOptions().queries)||void 0===s||null===(a=s._experimental_afterQuery)||void 0===a||a.call(s,h,S),h.experimental_prefetchInRender&&!l.sk&&k(S,c)){let e=p?O(h,m,d):null===(u=f.getQueryCache().get(h.queryHash))||void 0===u?void 0:u.promise;null==e||e.catch(l.ZT).finally(()=>{m.updateResult()})}return h.notifyOnChangeProps?S:m.trackResult(S)}(e,c,t)}},7592:function(e,t,n){"use strict";n.d(t,{BT:function(){return m}});var r=()=>"undefined"!=typeof document,i=!1,o=null,a=!1,s=!1,u=new Set;function l(e,t){u.forEach(n=>n(e,t))}var c="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function d(e){a=!0,e.metaKey||!c&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",l("keyboard",e))}function f(e){if(o="pointer","mousedown"===e.type||"pointerdown"===e.type){a=!0;let t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch{}n||l("pointer",e)}}function h(e){(0===e.mozInputSource&&e.isTrusted||0===e.detail&&!e.pointerType)&&(a=!0,o="virtual")}function p(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(a||s||(o="virtual",l("virtual",e)),a=!1,s=!1)}function v(){a=!1,s=!0}function g(){return"pointer"!==o}function m(e){!function(){if(!r()||i)return;let{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){a=!0,e.apply(this,t)},document.addEventListener("keydown",d,!0),document.addEventListener("keyup",d,!0),document.addEventListener("click",h,!0),window.addEventListener("focus",p,!0),window.addEventListener("blur",v,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",f,!0),document.addEventListener("pointermove",f,!0),document.addEventListener("pointerup",f,!0)):(document.addEventListener("mousedown",f,!0),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",f,!0)),i=!0}(),e(g());let t=()=>e(g());return u.add(t),()=>{u.delete(t)}}},54076:function(e,t,n){"use strict";n.d(t,{IZ:function(){return d},d7:function(){return i}});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:a,CancelToken:s,VERSION:u,all:l,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:v,formToJSON:g,getAdapter:m,mergeConfig:y}=n(25922).default},25922:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{default:function(){return tv}});var u,l,c,d,f,h={};function p(e,t){return function(){return e.apply(t,arguments)}}n.r(h),n.d(h,{hasBrowserEnv:function(){return ey},hasStandardBrowserEnv:function(){return ew},hasStandardBrowserWebWorkerEnv:function(){return ex},navigator:function(){return eb},origin:function(){return eS}});var v=n(85555);let{toString:g}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:y,toStringTag:b}=Symbol,w=(r=Object.create(null),e=>{let t=g.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),x=e=>(e=e.toLowerCase(),t=>w(t)===e),S=e=>t=>typeof t===e,{isArray:E}=Array,_=S("undefined"),k=x("ArrayBuffer"),C=S("string"),O=S("function"),T=S("number"),P=e=>null!==e&&"object"==typeof e,I=e=>{if("object"!==w(e))return!1;let t=m(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(b in e)&&!(y in e)},R=x("Date"),A=x("File"),M=x("Blob"),j=x("FileList"),N=x("URLSearchParams"),[L,D,F,U]=["ReadableStream","Request","Response","Headers"].map(x);function B(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),E(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}}function V(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,z=e=>!_(e)&&e!==q,W=(i="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>i&&e instanceof i),$=x("HTMLFormElement"),G=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H=x("RegExp"),Z=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};B(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},K=x("AsyncFunction"),X=(u="function"==typeof setImmediate,l=O(q.postMessage),u?setImmediate:l?(c=`axios@${Math.random()}`,d=[],q.addEventListener("message",({source:e,data:t})=>{e===q&&t===c&&d.length&&d.shift()()},!1),e=>{d.push(e),q.postMessage(c,"*")}):e=>setTimeout(e)),J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(q):void 0!==v&&v.nextTick||X;var Y={isArray:E,isArrayBuffer:k,isBuffer:function(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||O(e.append)&&("formdata"===(t=w(e))||"object"===t&&O(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&k(e.buffer)},isString:C,isNumber:T,isBoolean:e=>!0===e||!1===e,isObject:P,isPlainObject:I,isReadableStream:L,isRequest:D,isResponse:F,isHeaders:U,isUndefined:_,isDate:R,isFile:A,isBlob:M,isRegExp:H,isFunction:O,isStream:e=>P(e)&&O(e.pipe),isURLSearchParams:N,isTypedArray:W,isFileList:j,forEach:B,merge:function e(){let{caseless:t}=z(this)&&this||{},n={},r=(r,i)=>{let o=t&&V(n,i)||i;I(n[o])&&I(r)?n[o]=e(n[o],r):I(r)?n[o]=e({},r):E(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&B(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(B(t,(t,r)=>{n&&O(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:w,kindOfTest:x,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!T(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[y]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:Z,freezeMethods:e=>{Z(e,(t,n)=>{if(O(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(O(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(E(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:V,global:q,isContextDefined:z,isSpecCompliantForm:function(e){return!!(e&&O(e.append)&&"FormData"===e[b]&&e[y])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(P(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=E(e)?[]:{};return B(e,(e,t)=>{let o=n(e,r+1);_(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:K,isThenable:e=>e&&(P(e)||O(e))&&O(e.then)&&O(e.catch),setImmediate:X,asap:J,isIterable:e=>null!=e&&O(e[y])};function Q(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Y.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});let ee=Q.prototype,et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{et[e]={value:e}}),Object.defineProperties(Q,et),Object.defineProperty(ee,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,i,o)=>{let a=Object.create(ee);return Y.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Q.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var en=n(12138).Buffer;function er(e){return Y.isPlainObject(e)||Y.isArray(e)}function ei(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function eo(e,t,n){return e?e.concat(t).map(function(e,t){return e=ei(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ea=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});var es=function(e,t,n){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(!s&&Y.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):en.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&"object"==typeof e){if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var l;if(Y.isArray(e)&&(l=e,Y.isArray(l)&&!l.some(er))||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(s=Y.toArray(e)))return n=ei(n),s.forEach(function(e,r){Y.isUndefined(e)||null===e||t.append(!0===a?eo([n],r,o):null===a?n:n+"[]",u(e))}),!1}}return!!er(e)||(t.append(eo(i,n,o),u(e)),!1)}let c=[],d=Object.assign(ea,{defaultVisitor:l,convertValue:u,isVisitable:er});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!Y.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Y.forEach(n,function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&i.call(t,n,Y.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function eu(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function el(e,t){this._pairs=[],e&&es(e,this,t)}let ec=el.prototype;function ed(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ef(e,t,n){let r;if(!t)return e;let i=n&&n.encode||ed;Y.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):Y.isURLSearchParams(t)?t.toString():new el(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ec.append=function(e,t){this._pairs.push([e,t])},ec.toString=function(e){let t=e?function(t){return e.call(this,t,eu)}:eu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eh{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ep={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ev="undefined"!=typeof URLSearchParams?URLSearchParams:el,eg="undefined"!=typeof FormData?FormData:null,em="undefined"!=typeof Blob?Blob:null;let ey="undefined"!=typeof window&&"undefined"!=typeof document,eb="object"==typeof navigator&&navigator||void 0,ew=ey&&(!eb||0>["ReactNative","NativeScript","NS"].indexOf(eb.product)),ex="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eS=ey&&window.location.href||"http://localhost";var eE={...h,isBrowser:!0,classes:{URLSearchParams:ev,FormData:eg,Blob:em},protocols:["http","https","file","blob","url","data"]},e_=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&Y.isArray(r)?r.length:o,s)?Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&Y.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Y.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let ek={transitional:ep,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=Y.isObject(e);if(o&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return i?JSON.stringify(e_(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,es(a,new eE.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return eE.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return es(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||ek.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eE.classes.FormData,Blob:eE.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ek.headers[e]={}});let eC=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eO=e=>{let t,n,r;let i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&eC[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let eT=Symbol("internals");function eP(e){return e&&String(e).trim().toLowerCase()}function eI(e){return!1===e||null==e?e:Y.isArray(e)?e.map(eI):String(e)}let eR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eA(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return -1!==t.indexOf(r);if(Y.isRegExp(r))return r.test(t)}}class eM{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eP(t);if(!i)throw Error("header name must be a non-empty string");let o=Y.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=eI(e))}let o=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Y.isString(e)&&(e=e.trim())&&!eR(e))o(eO(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let n={},r,i;for(let t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(n,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=eP(e)){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eP(e)){let n=Y.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eP(e)){let i=Y.findKey(n,e);i&&(!t||eA(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eA(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let o=Y.findKey(n,i);if(o){t[o]=eI(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=eI(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eT]=this[eT]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eP(e);t[r]||(!function(e,t){let n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}function ej(e,t){let n=this||ek,r=t||n,i=eM.from(r.headers),o=r.data;return Y.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eN(e){return!!(e&&e.__CANCEL__)}function eL(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}function eD(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(eM.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(eM),Y.inherits(eL,Q,{__CANCEL__:!0});var eF=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let u=Date.now(),l=i[a];n||(n=u),r[o]=s,i[o]=u;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),u-n<t)return;let f=l&&u-l;return f?Math.round(1e3*d/f):void 0}},eU=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]};let eB=(e,t,n=3)=>{let r=0,i=eF(50,250);return eU(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,u=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eV=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eq=e=>(...t)=>Y.asap(()=>e(...t));var ez=eE.hasStandardBrowserEnv?(o=new URL(eE.origin),a=eE.navigator&&/(msie|trident)/i.test(eE.navigator.userAgent),e=>(e=new URL(e,eE.origin),o.protocol===e.protocol&&o.host===e.host&&(a||o.port===e.port))):()=>!0,eW=eE.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function e$(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eG=e=>e instanceof eM?{...e}:e;function eH(e,t){t=t||{};let n={};function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function a(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(eG(e),eG(t),n,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=u[r]||i,a=o(e[r],t[r],r);Y.isUndefined(a)&&o!==s||(n[r]=a)}),n}var eZ=e=>{let t;let n=eH({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:u}=n;if(n.headers=s=eM.from(s),n.url=ef(e$(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),Y.isFormData(r)){if(eE.hasStandardBrowserEnv||eE.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(eE.hasStandardBrowserEnv&&(i&&Y.isFunction(i)&&(i=i(n)),i||!1!==i&&ez(n.url))){let e=o&&a&&eW.read(a);e&&s.set(o,e)}return n},eK="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s;let u=eZ(e),l=u.data,c=eM.from(u.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=u;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}let v=new XMLHttpRequest;function g(){if(!v)return;let r=eM.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());eD(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v}),v=null}v.open(u.method.toUpperCase(),u.url,!0),v.timeout=u.timeout,"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(g)},v.onabort=function(){v&&(n(new Q("Request aborted",Q.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||ep;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new Q(t,r.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,v)),v=null},void 0===l&&c.setContentType(null),"setRequestHeader"in v&&Y.forEach(c.toJSON(),function(e,t){v.setRequestHeader(t,e)}),Y.isUndefined(u.withCredentials)||(v.withCredentials=!!u.withCredentials),d&&"json"!==d&&(v.responseType=u.responseType),h&&([o,s]=eB(h,!0),v.addEventListener("progress",o)),f&&v.upload&&([i,a]=eB(f),v.upload.addEventListener("progress",i),v.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(r=t=>{v&&(n(!t||t.type?new eL(null,e,v):t),v.abort(),v=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));let m=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u.url);if(m&&-1===eE.protocols.indexOf(m)){n(new Q("Unsupported protocol "+m+":",Q.ERR_BAD_REQUEST,e));return}v.send(l||null)})},eX=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new eL(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>Y.asap(a),s}};let eJ=function*(e,t){let n,r=e.byteLength;if(!t||r<t){yield e;return}let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eY=async function*(e,t){for await(let n of eQ(e))yield*eJ(n,t)},eQ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},e0=(e,t,n,r)=>{let i;let o=eY(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},e1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e2=e1&&"function"==typeof ReadableStream,e5=e1&&("function"==typeof TextEncoder?(s=new TextEncoder,e=>s.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e4=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e2&&e4(()=>{let e=!1,t=new Request(eE.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e6=e2&&e4(()=>Y.isReadableStream(new Response("").body)),e8={stream:e6&&(e=>e.body)};e1&&(f=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e8[e]||(e8[e]=Y.isFunction(f[e])?t=>t[e]():(t,n)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})}));let e7=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new Request(eE.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await e5(e)).byteLength:void 0},e9=async(e,t)=>{let n=Y.toFiniteNumber(e.getContentLength());return null==n?e7(t):n},te={http:null,xhr:eK,fetch:e1&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:u,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eZ(e);d=d?(d+"").toLowerCase():"text";let v=eX([a,s&&s.toAbortSignal()],u),g=v&&v.unsubscribe&&(()=>{v.unsubscribe()});try{if(c&&e3&&"get"!==i&&"head"!==i&&0!==(n=await e9(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(Y.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eV(n,eB(eq(c)));o=e0(t.body,65536,e,r)}}Y.isString(h)||(h=h?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...p,signal:v,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?h:void 0});let s=await fetch(t),u=e6&&("stream"===d||"response"===d);if(e6&&(l||u&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=Y.toFiniteNumber(s.headers.get("content-length")),[n,r]=l&&eV(t,eB(eq(l),!0))||[];s=new Response(e0(s.body,65536,n,()=>{r&&r(),g&&g()}),e)}d=d||"text";let m=await e8[Y.findKey(e8,d)||"text"](s,e);return!u&&g&&g(),await new Promise((n,r)=>{eD(n,r,{data:m,headers:eM.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,t),{cause:n.cause||n});throw Q.from(n,n&&n.code,e,t)}})};Y.forEach(te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tt=e=>`- ${e}`,tn=e=>Y.isFunction(e)||null===e||!1===e;var tr=e=>{let t,n;let{length:r}=e=Y.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!tn(t)&&void 0===(n=te[(r=String(t)).toLowerCase()]))throw new Q(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Q("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function ti(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function to(e){return ti(e),e.headers=eM.from(e.headers),e.data=ej.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tr(e.adapter||ek.adapter)(e).then(function(t){return ti(e),t.data=ej.call(e,e.transformResponse,t),t.headers=eM.from(t.headers),t},function(t){return!eN(t)&&(ti(e),t&&t.response&&(t.response.data=ej.call(e,e.transformResponse,t.response),t.response.headers=eM.from(t.response.headers))),Promise.reject(t)})}let ta="1.9.0",ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let tu={};ts.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ta+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Q(r(i," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!tu[i]&&(tu[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},ts.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var tl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Q("option "+o+" must be "+n,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:ts};let tc=tl.validators;class td{constructor(e){this.defaults=e||{},this.interceptors={request:new eh,response:new eh}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eH(this.defaults,t);void 0!==i&&tl.assertOptions(i,{silentJSONParsing:tc.transitional(tc.boolean),forcedJSONParsing:tc.transitional(tc.boolean),clarifyTimeoutError:tc.transitional(tc.boolean)},!1),null!=o&&(Y.isFunction(o)?t.paramsSerializer={serialize:o}:tl.assertOptions(o,{encode:tc.function,serialize:tc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tl.assertOptions(t,{baseUrl:tc.spelling("baseURL"),withXsrfToken:tc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Y.merge(a.common,a[t.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eM.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(l=l&&e.synchronous,u.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!l){let e=[to.bind(this),void 0];for(e.unshift.apply(e,u),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=u.length;let f=t;for(d=0;d<r;){let e=u[d++],t=u[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=to.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return ef(e$((e=eH(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){td.prototype[e]=function(t,n){return this.request(eH(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eH(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}td.prototype[e]=t(),td.prototype[e+"Form"]=t(!0)});class tf{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eL(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tf(function(t){e=t}),cancel:e}}}let th={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(th).forEach(([e,t])=>{th[t]=e});let tp=function e(t){let n=new td(t),r=p(td.prototype.request,n);return Y.extend(r,td.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eH(t,n))},r}(ek);tp.Axios=td,tp.CanceledError=eL,tp.CancelToken=tf,tp.isCancel=eN,tp.VERSION=ta,tp.toFormData=es,tp.AxiosError=Q,tp.Cancel=tp.CanceledError,tp.all=function(e){return Promise.all(e)},tp.spread=function(e){return function(t){return e.apply(null,t)}},tp.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},tp.mergeConfig=eH,tp.AxiosHeaders=eM,tp.formToJSON=e=>e_(Y.isHTMLForm(e)?new FormData(e):e),tp.getAdapter=tr,tp.HttpStatusCode=th,tp.default=tp;var tv=tp},8496:function(e,t,n){"use strict";n.d(t,{Ph:function(){return t4}});var r,i,o,a=n(97129),s=n(84017);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||l(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(78253);function f(e,t){if(null==e)return{};var n,r,i=(0,d.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function p(e){var t=e.defaultInputValue,n=e.defaultMenuIsOpen,r=e.defaultValue,i=e.inputValue,o=e.menuIsOpen,u=e.onChange,l=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,v=e.value,g=f(e,h),m=c((0,a.useState)(void 0!==i?i:void 0===t?"":t),2),y=m[0],b=m[1],w=c((0,a.useState)(void 0!==o?o:void 0!==n&&n),2),x=w[0],S=w[1],E=c((0,a.useState)(void 0!==v?v:void 0===r?null:r),2),_=E[0],k=E[1],C=(0,a.useCallback)(function(e,t){"function"==typeof u&&u(e,t),k(e)},[u]),O=(0,a.useCallback)(function(e,t){var n;"function"==typeof l&&(n=l(e,t)),b(void 0!==n?n:e)},[l]),T=(0,a.useCallback)(function(){"function"==typeof p&&p(),S(!0)},[p]),P=(0,a.useCallback)(function(){"function"==typeof d&&d(),S(!1)},[d]),I=void 0!==i?i:y,R=void 0!==o?o:x,A=void 0!==v?v:_;return(0,s.Z)((0,s.Z)({},g),{},{inputValue:I,menuIsOpen:R,onChange:C,onInputChange:O,onMenuClose:P,onMenuOpen:T,value:A})}var v=n(23258),g=n(54563);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,g.Z)(r.key),r)}}var y=n(49796);function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var x=n(3759);function S(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var E=n(86501),_=n(43751),k=n(51853);let C=Math.min,O=Math.max,T=Math.round,P=Math.floor,I=e=>({x:e,y:e});function R(){return"undefined"!=typeof window}function A(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!R()&&(e instanceof Node||e instanceof M(e).Node)}function L(e){return!!R()&&(e instanceof Element||e instanceof M(e).Element)}function D(e){return!!R()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function F(e){return!!R()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function B(e){return M(e).getComputedStyle(e)}function V(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=function(e){if("html"===A(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||j(e);return F(t)?t.host:t}(t);return["html","body","#document"].includes(A(n))?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&U(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=M(i);if(o){let e=q(a);return t.concat(a,a.visualViewport||[],U(i)?i:[],e&&n?V(e):[])}return t.concat(i,V(i,[],n))}function q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function z(e){return L(e)?e:e.contextElement}function W(e){let t=z(e);if(!D(t))return I(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=D(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=T(n)!==o||T(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t),a=(o?T(n.width):n.width)/r,s=(o?T(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let $=I(0);function G(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=z(e),s=I(1);t&&(r?L(r)&&(s=W(r)):s=W(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===M(a))&&i)?function(e){let t=M(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$}(a):I(0),l=(o.left+u.x)/s.x,c=(o.top+u.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=M(a),t=r&&L(r)?M(r):r,n=e,i=q(n);for(;i&&r&&t!==n;){let e=W(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,f*=e.y,l+=o,c+=a,i=q(n=M(i))}}return function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:d,height:f,x:l,y:c})}function H(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Z=a.useLayoutEffect,K=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],X=function(){};function J(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Y=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,x.Z)(e)&&null!==e?[e]:[]},Q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=f(e,K);return(0,s.Z)({},t)},ee=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function et(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function en(e){return et(e)?window.pageYOffset:e.scrollTop}function er(e,t){if(et(e)){window.scrollTo(0,t);return}e.scrollTop=t}function ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:X,i=en(e),o=t-i,a=0;!function t(){var s;a+=10,er(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<n?window.requestAnimationFrame(t):r(e)}()}function eo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?er(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&er(e,Math.max(t.offsetTop-i,0))}function ea(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var es=!1,eu="undefined"!=typeof window?window:{};eu.addEventListener&&eu.removeEventListener&&(eu.addEventListener("p",X,{get passive(){return es=!0}}),eu.removeEventListener("p",X,!1));var el=es;function ec(e){return null!=e}for(var ed=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=c(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},ef=["children","innerProps"],eh=["children","innerProps"],ep=function(e){return"auto"===e?"bottom":e},ev=(0,a.createContext)(null),eg=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,d=((0,a.useContext)(ev)||{}).setPortalPlacement,f=(0,a.useRef)(null),h=c((0,a.useState)(r),2),p=h[0],v=h[1],g=c((0,a.useState)(null),2),m=g[0],y=g[1],b=l.spacing.controlHeight;return Z(function(){var e=f.current;if(e){var t="fixed"===o,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:et(u)?window.innerHeight:u.clientHeight,m=en(u),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=v-b,x=g-p,S=w+m,E=c-m-p,_=f-g+m+y,k=m+p-b;switch(i){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return o&&ei(u,_,160),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&x>=r)return o&&ei(u,_,160),{placement:"bottom",maxHeight:a?x-y:E-y};if("auto"===i||a){var C=t,O=a?w:S;return O>=r&&(C=Math.min(O-y-s,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&er(u,_),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return o&&ei(u,k,160),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var T=t;return(!a&&S>=r||a&&w>=r)&&(T=a?w-b:S-b),o&&ei(u,k,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:b});v(a.maxHeight),y(a.placement),null==d||d(a.placement)}},[r,i,o,u,n,d,b]),t({ref:f,placerProps:(0,s.Z)((0,s.Z)({},e),{},{placement:m||ep(i),maxHeight:p})})},em=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,s.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ey=["size"],eb=["innerProps","isRtl","size"],ew={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ex=function(e){var t=e.size,n=f(e,ey);return(0,E.tZ)("svg",(0,v.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ew},n))},eS=function(e){return(0,E.tZ)(ex,(0,v.Z)({size:20},e),(0,E.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eE=function(e){return(0,E.tZ)(ex,(0,v.Z)({size:20},e),(0,E.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},e_=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},ek=(0,E.F4)(o||(r=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})))),eC=function(e){var t=e.delay,n=e.offset;return(0,E.tZ)("span",{css:(0,E.iv)({animation:"".concat(ek," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eO=["data"],eT=["innerRef","isDisabled","isHidden","inputClassName"],eP={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eI={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,s.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eP)},eR=function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",n,t)},eA={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,E.tZ)(eS,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,E.tZ)("div",(0,v.Z)({ref:i},ee(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,E.tZ)(eE,null))},DownChevron:eE,CrossIcon:eS,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,l=e.theme,c=e.selectProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"group",{group:!0}),s),(0,E.tZ)(o,(0,v.Z)({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:i,cx:n}),u),(0,E.tZ)("div",null,t))},GroupHeading:function(e){var t=Q(e);t.data;var n=f(t,eO);return(0,E.tZ)("div",(0,v.Z)({},ee(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,E.tZ)("span",(0,v.Z)({},t,ee(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Q(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,u=r.inputClassName,l=f(r,eT);return(0,E.tZ)("div",(0,v.Z)({},ee(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,E.tZ)("input",(0,v.Z)({className:t({input:!0},u),ref:i,style:(0,s.Z)({label:"input",color:"inherit",background:0,opacity:a?0:1,width:"100%"},eP),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=f(e,eb);return(0,E.tZ)("div",(0,v.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,E.tZ)(eC,{delay:0,offset:n}),(0,E.tZ)(eC,{delay:160,offset:!0}),(0,E.tZ)(eC,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,u=e.menuPosition,l=(0,a.useRef)(null),d=(0,a.useRef)(null),f=c((0,a.useState)(ep(o)),2),h=f[0],p=f[1],g=(0,a.useMemo)(function(){return{setPortalPlacement:p}},[]),m=c((0,a.useState)(null),2),y=m[0],b=m[1],w=(0,a.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===u?0:window.pageYOffset,i=t[h]+n;(i!==(null==y?void 0:y.offset)||t.left!==(null==y?void 0:y.rect.left)||t.width!==(null==y?void 0:y.rect.width))&&b({offset:i,rect:t})}},[r,u,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);Z(function(){w()},[w]);var x=(0,a.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&l.current&&(d.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=z(e),d=o||a?[...c?V(c):[],...V(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&u?function(e,t){let n,r=null,i=j(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();let l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=l;if(s||t(),!f||!h)return;let p=P(d),v=P(i.clientWidth-(c+f)),g={rootMargin:-p+"px "+-v+"px "+-P(i.clientHeight-(d+h))+"px "+-P(c)+"px",threshold:O(0,C(1,u))||1},m=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||H(l,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let v=l?G(e):null;return l&&function t(){let r=G(e);v&&!H(v,r)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(i)}}(r,l.current,w,{elementResize:("ResizeObserver"in window)}))},[r,w]);Z(function(){x()},[x]);var S=(0,a.useCallback)(function(e){l.current=e,x()},[x]);if(!t&&"fixed"!==u||!y)return null;var _=(0,E.tZ)("div",(0,v.Z)({ref:S},ee((0,s.Z)((0,s.Z)({},e),{},{offset:y.offset,position:u,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,E.tZ)(ev.Provider,{value:g},t?(0,k.createPortal)(_,t):_)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=f(e,eh);return(0,E.tZ)("div",(0,v.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=f(e,ef);return(0,E.tZ)("div",(0,v.Z)({},ee((0,s.Z)((0,s.Z)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,u=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,E.tZ)(l,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},(0,E.tZ)(c,{data:r,innerProps:(0,s.Z)({},ee(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,E.tZ)(d,{data:r,innerProps:(0,s.Z)((0,s.Z)({},ee(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:eR,MultiValueLabel:eR,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({role:"button"},n),t||(0,E.tZ)(eS,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,E.tZ)("div",(0,v.Z)({},ee(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},eM=n(80317),ej={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eN=function(e){return(0,E.tZ)("span",(0,v.Z)({css:ej},e))},eL={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&l){var d="".concat(u?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eD=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,v=l.isMulti,g=l.isOptionDisabled,m=l.isSearchable,y=l.menuIsOpen,b=l.options,w=l.screenReaderStatus,x=l.tabSelectsValue,S=l.isLoading,_=l["aria-label"],k=l["aria-live"],C=(0,a.useMemo)(function(){return(0,s.Z)((0,s.Z)({},eL),f||{})},[f]),O=(0,a.useMemo)(function(){var e="";if(t&&C.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,a=t.value,l=i||n||(Array.isArray(a)?null:a),c=l?h(l):"",d=r||o||void 0,f=d?d.map(h):[],p=(0,s.Z)({isDisabled:l&&g(l,u),label:c,labels:f},t);e=C.onChange(p)}return e},[t,C,g,u,h]),T=(0,a.useMemo)(function(){var e="",t=n||r,o=!!(n&&u&&u.includes(n));if(t&&C.onFocus){var a={focused:t,label:h(t),isDisabled:g(t,u),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:u,isAppleDevice:d};e=C.onFocus(a)}return e},[n,r,h,g,C,i,u,d]),P=(0,a.useMemo)(function(){var e="";if(y&&b.length&&!S&&C.onFilter){var t=w({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,y,C,b,w,S]),I=(null==t?void 0:t.action)==="initial-input-focus",R=(0,a.useMemo)(function(){var e="";if(C.guidance){var t=r?"value":y?"menu":"input";e=C.guidance({"aria-label":_,context:t,isDisabled:n&&g(n,u),isMulti:v,isSearchable:m,tabSelectsValue:x,isInitialFocus:I})}return e},[_,n,r,v,g,m,y,C,u,x,I]),A=(0,E.tZ)(a.Fragment,null,(0,E.tZ)("span",{id:"aria-selection"},O),(0,E.tZ)("span",{id:"aria-focused"},T),(0,E.tZ)("span",{id:"aria-results"},P),(0,E.tZ)("span",{id:"aria-guidance"},R));return(0,E.tZ)(a.Fragment,null,(0,E.tZ)(eN,{id:c},I&&A),(0,E.tZ)(eN,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!I&&A))},eF=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eU=RegExp("["+eF.map(function(e){return e.letters}).join("")+"]","g"),eB={},eV=0;eV<eF.length;eV++)for(var eq=eF[eV],ez=0;ez<eq.letters.length;ez++)eB[eq.letters[ez]]=eq.base;var eW=function(e){return e.replace(eU,function(e){return eB[e]})},e$=(0,eM.Z)(eW),eG=function(e){return e.replace(/^\s+|\s+$/g,"")},eH=function(e){return"".concat(e.label," ").concat(e.value)},eZ=["innerRef"];function eK(e){var t=e.innerRef,n=ed(f(e,eZ),"onExited","in","enter","exit","appear");return(0,E.tZ)("input",(0,v.Z)({ref:t},n,{css:(0,E.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var eX=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},eJ=["boxSizing","height","overflow","paddingRight","position"],eY={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function eQ(e){e.cancelable&&e.preventDefault()}function e0(e){e.stopPropagation()}function e1(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function e2(){return"ontouchstart"in window||navigator.maxTouchPoints}var e5=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e4=0,e3={capture:!1,passive:!1},e6=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},e8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e7(e){var t,n,r,i,o,s,u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,_,k,C,O=e.children,T=e.lockEnabled,P=e.captureEnabled,I=(n=(t={isEnabled:void 0===P||P,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,s=t.onTopLeave,u=(0,a.useRef)(!1),l=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(null),f=(0,a.useCallback)(function(e,t){if(null!==d.current){var n=d.current,a=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,v=c-f-a,g=!1;v>t&&u.current&&(i&&i(e),u.current=!1),p&&l.current&&(s&&s(e),l.current=!1),p&&t>v?(r&&!u.current&&r(e),h.scrollTop=c,g=!0,u.current=!0):!p&&-t>a&&(o&&!l.current&&o(e),h.scrollTop=0,g=!0,l.current=!0),g&&eX(e)}},[r,i,o,s]),h=(0,a.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,a.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),v=(0,a.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),g=(0,a.useCallback)(function(e){if(e){var t=!!el&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",v,t)}},[v,p,h]),m=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",v,!1))},[v,p,h]),(0,a.useEffect)(function(){if(n){var e=d.current;return g(e),function(){m(e)}}},[n,g,m]),function(e){d.current=e}),R=(b=(y={isEnabled:T}).isEnabled,x=void 0===(w=y.accountForScrollbars)||w,S=(0,a.useRef)({}),_=(0,a.useRef)(null),k=(0,a.useCallback)(function(e){if(e5){var t=document.body,n=t&&t.style;if(x&&eJ.forEach(function(e){var t=n&&n[e];S.current[e]=t}),x&&e4<1){var r=parseInt(S.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(eY).forEach(function(e){var t=eY[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&e2()&&(t.addEventListener("touchmove",eQ,e3),e&&(e.addEventListener("touchstart",e1,e3),e.addEventListener("touchmove",e0,e3))),e4+=1}},[x]),C=(0,a.useCallback)(function(e){if(e5){var t=document.body,n=t&&t.style;e4=Math.max(e4-1,0),x&&e4<1&&eJ.forEach(function(e){var t=S.current[e];n&&(n[e]=t)}),t&&e2()&&(t.removeEventListener("touchmove",eQ,e3),e&&(e.removeEventListener("touchstart",e1,e3),e.removeEventListener("touchmove",e0,e3)))}},[x]),(0,a.useEffect)(function(){if(b){var e=_.current;return k(e),function(){C(e)}}},[b,k,C]),function(e){_.current=e});return(0,E.tZ)(a.Fragment,null,T&&(0,E.tZ)("div",{onClick:e6,css:e8}),O(function(e){I(e),R(e)}))}var e9={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},te=function(e){var t=e.name,n=e.onFocus;return(0,E.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:e9,value:"",onChange:function(){}})};function tt(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}var tn=function(e){return e.label},tr=function(e){return e.value},ti={clearIndicator:e_,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius,u=i.spacing;return(0,s.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:e_,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,s.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return(0,s.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return(0,s.Z)((0,s.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eI),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return(0,s.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:em,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,u=i.colors;return(0,s.Z)((n={label:"menu"},(0,_.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,_.Z)(n,"position","absolute"),(0,_.Z)(n,"width","100%"),(0,_.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,s.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return(0,s.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,s.Z)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return(0,s.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:em,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,u=o.colors;return(0,s.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,s.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return(0,s.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,s.Z)({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},to={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ta={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ea(),captureMenuScroll:!ea(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,s.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eH,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,u=n.matchFrom,l=a?eG(t):t,c=a?eG(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=e$(l),c=eW(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:tn,getOptionValue:tr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ts(e,t,n,r){var i=tv(e,t,n),o=tg(e,t,n),a=th(e,t),s=tp(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function tu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ts(e,n,t,r)}).filter(function(t){return td(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ts(e,n,t,r);return td(e,o)?o:void 0}).filter(ec)}function tl(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,S(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,S(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function td(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,a=t.value;return(!ty(e)||!i)&&tm(e,{label:o,value:a,data:r},void 0===n?"":n)}var tf=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},th=function(e,t){return e.getOptionLabel(t)},tp=function(e,t){return e.getOptionValue(t)};function tv(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tg(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tp(e,t);return n.some(function(t){return tp(e,t)===r})}function tm(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ty=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tb=1,tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,y.Z)(e,t)}(o,e);var t,n,r,i=(t=w(),function(){var e,n=b(o);return e=t?Reflect.construct(n,arguments,b(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==(0,x.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=tt(/^Mac/i)||tt(/^iPhone/i)||tt(/^iPad/i)||tt(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==l}),"deselect-option",e)}else if(u){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(S(a),[e]),"select-option",e):t.setValue(e,"select-option");r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tf(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tc(tu(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return J.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return th(t.props,e)},t.getOptionValue=function(e){return tp(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=ti[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,(0,s.Z)((0,s.Z)({},eA),e.components)},t.buildCategorizedOptions=function(){return tu(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return tl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,s.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&et(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ty(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,v=h.focusedValue,g=h.selectValue;if(!u){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!l||!d||!p||f&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(l){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++tb),t.state.selectValue=Y(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[a],t.state.focusedOptionId=tf(n,r[a])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&eo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(eo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(to):(0,s.Z)((0,s.Z)({},to),this.props.theme):to}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return tv(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tg(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tm(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,u=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,m=r||this.getElementId("input"),y=(0,s.Z)((0,s.Z)((0,s.Z)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(d,(0,v.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:u,type:"text",value:i},y)):a.createElement(eK,(0,v.Z)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:X,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:u,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,m=this.state,y=m.selectValue,b=m.focusedValue,w=m.isFocused;if(!this.hasValue()||!d)return p?null:a.createElement(u,(0,v.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return y.map(function(t,s){var u=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,v.Z)({},l,{components:{Container:r,Label:i,Remove:o},isFocused:u,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var x=y[0];return a.createElement(s,(0,v.Z)({},l,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,v.Z)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?a.createElement(e,(0,v.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return a.createElement(n,(0,v.Z)({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,v.Z)({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,u=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,m=p.inputValue,y=p.isLoading,b=p.loadingMessage,w=p.minMenuHeight,x=p.maxMenuHeight,S=p.menuIsOpen,E=p.menuPlacement,_=p.menuPosition,k=p.menuPortalTarget,C=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,T=p.noOptionsMessage,P=p.onMenuScrollToTop,I=p.onMenuScrollToBottom;if(!S)return null;var R=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,s=e.isSelected,u=e.label,l=e.value,c=h===i,p=o?void 0:function(){return t.onOptionHover(i)},g=o?void 0:function(){return t.selectOption(i)},m="".concat(t.getElementId("option"),"-").concat(n),y={id:m,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return a.createElement(d,(0,v.Z)({},f,{innerProps:y,data:i,isDisabled:o,isSelected:s,key:m,label:u,type:r,value:l,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,s=e.index,u="".concat(t.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return a.createElement(r,(0,v.Z)({},f,{key:u,data:n,options:o,Heading:i,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return R(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return R(e,"".concat(e.index))});else if(y){var A=b({inputValue:m});if(null===A)return null;e=a.createElement(l,f,A)}else{var M=T({inputValue:m});if(null===M)return null;e=a.createElement(c,f,M)}var j={minMenuHeight:w,maxMenuHeight:x,menuPlacement:E,menuPosition:_,menuShouldScrollIntoView:O},N=a.createElement(eg,(0,v.Z)({},f,j),function(n){var r=n.ref,i=n.placerProps,u=i.placement,l=i.maxHeight;return a.createElement(o,(0,v.Z)({},f,j,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:u}),a.createElement(e7,{captureEnabled:g,onTopArrive:P,onBottomArrive:I,lockEnabled:C},function(n){return a.createElement(s,(0,v.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:y,maxHeight:l,focusedOption:h}),e)}))});return k||"fixed"===_?a.createElement(u,(0,v.Z)({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:E,menuPosition:_}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement(te,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:o,type:"hidden",value:l})}var c=u.length>0?u.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:o,type:"hidden",value:""});return a.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return a.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return a.createElement(eD,(0,v.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,u=o.id,l=o.isDisabled,c=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(r,(0,v.Z)({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,v.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),a.createElement(i,(0,v.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,v.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,u=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,v=e.isMulti,g=Y(f),m={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var y,b=h?tl(tu(e,g)):[],w=h?tc(tu(e,g),"".concat(c,"-option")):[],x=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,S=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],E=tf(w,S);m={selectValue:g,focusedOption:S,focusedOptionId:E,focusableOptionsWithIds:w,focusedValue:x,clearFocusValueOnUpdate:!1}}var _=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},k=a,C=u&&l;return u&&!C&&(k={value:(n=g[0]||null,v?g:n),options:g,action:"initial-input-focus"},C=!l),(null==a?void 0:a.action)==="initial-input-focus"&&(k=null),(0,s.Z)((0,s.Z)((0,s.Z)({},m),_),{},{prevProps:e,ariaSelection:k,prevWasFocused:C})}}],n&&m(o.prototype,n),r&&m(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(a.Component);tw.defaultProps=ta,n(28255);var tx=(0,a.forwardRef)(function(e,t){var n=p(e);return a.createElement(tw,(0,v.Z)({ref:t},n))}),tS=n(87953),tE=n(86629),t_=n(85534),tk=n(56338),tC=n(70291),tO=n(2585),tT=n(70986),tP=n(5439),tI=n(16177),tR=n(62767),tA=n(23952),tM=n(17648),tj=n(26415),tN=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},tD={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tL(e,t,r)})||n.some(function(t){return tL(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tF(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,o=e.formatCreateLabel,u=void 0===o?tD.formatCreateLabel:o,l=e.isValidNewOption,c=void 0===l?tD.isValidNewOption:l,d=e.getNewOptionData,h=void 0===d?tD.getNewOptionData:d,p=e.onCreateOption,v=e.options,g=void 0===v?[]:v,m=e.onChange,y=f(e,tN),b=y.getOptionValue,w=void 0===b?tr:b,x=y.getOptionLabel,E=void 0===x?tn:x,_=y.inputValue,k=y.isLoading,C=y.isMulti,O=y.value,T=y.name,P=(0,a.useMemo)(function(){return c(_,Y(O),g,{getOptionValue:w,getOptionLabel:E})?h(_,u(_)):void 0},[u,h,E,w,_,c,g,O]),I=(0,a.useMemo)(function(){return(n||!k)&&P?"first"===i?[P].concat(S(g)):[].concat(S(g),[P]):g},[n,i,k,P,g]),R=(0,a.useCallback)(function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===P){if(p)p(_);else{var r,i=h(_,_);m((r=[].concat(S(Y(O)),[i]),C?r:i),{action:"create-option",name:T,option:i})}return}m(e,t)},[h,_,C,T,P,p,m,O]);return(0,s.Z)((0,s.Z)({},y),{},{options:I,onChange:R})}var tU=(0,a.forwardRef)(function(e,t){var n=tF(p(e));return a.createElement(tw,(0,v.Z)({ref:t},n))}),tB=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function tV(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,o=e.loadOptions;e.options;var u=e.isLoading,l=e.onInputChange,d=e.filterOption,h=f(e,tB),p=h.inputValue,v=(0,a.useRef)(void 0),g=(0,a.useRef)(!1),m=c((0,a.useState)(Array.isArray(n)?n:void 0),2),y=m[0],b=m[1],w=c((0,a.useState)(void 0!==p?p:""),2),x=w[0],S=w[1],E=c((0,a.useState)(!0===n),2),k=E[0],C=E[1],O=c((0,a.useState)(void 0),2),T=O[0],P=O[1],I=c((0,a.useState)([]),2),R=I[0],A=I[1],M=c((0,a.useState)(!1),2),j=M[0],N=M[1],L=c((0,a.useState)({}),2),D=L[0],F=L[1],U=c((0,a.useState)(void 0),2),B=U[0],V=U[1],q=c((0,a.useState)(void 0),2),z=q[0],W=q[1];i!==z&&(F({}),W(i)),n!==B&&(b(Array.isArray(n)?n:void 0),V(n)),(0,a.useEffect)(function(){return g.current=!0,function(){g.current=!1}},[]);var $=(0,a.useCallback)(function(e,t){if(!o)return t();var n=o(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[o]);(0,a.useEffect)(function(){!0===n&&$(x,function(e){g.current&&(b(e||[]),C(!!v.current))})},[]);var G=(0,a.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n){v.current=void 0,S(""),P(""),A([]),C(!1),N(!1);return}if(i&&D[n])S(n),P(n),A(D[n]),C(!1),N(!1);else{var r=v.current={};S(n),C(!0),N(!T),$(n,function(e){g&&r===v.current&&(v.current=void 0,C(!1),P(n),A(e||[]),N(!1),F(e?(0,s.Z)((0,s.Z)({},D),{},(0,_.Z)({},n,e)):D))})}},[i,$,T,D,l]),H=j?[]:x&&T?R:y||[];return(0,s.Z)((0,s.Z)({},h),{},{options:H,isLoading:k||void 0!==u&&u,onInputChange:G,filterOption:void 0===d?null:d})}var tq=(0,a.forwardRef)(function(e,t){var n=p(tV(e));return a.createElement(tw,(0,v.Z)({ref:t},n))}),tz=(0,a.forwardRef)(function(e,t){var n=tF(p(tV(e)));return a.createElement(tw,(0,v.Z)({ref:t},n))}),tW=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:u,isRtl:l,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...v}=e;return{...v}},t$=e=>"string"==typeof e&&["sm","md","lg"].includes(e),tG=e=>t$(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md",tH=e=>{let t=tG((0,tS.F)().components.Input.defaultProps.size),n=null!=e?e:t;return(0,tE.S)("string"==typeof n?[n]:n,{fallback:"md"})||t},tZ=e=>(0,tj.jsx)(tO.J,{role:"presentation",focusable:"false","aria-hidden":"true",...e,children:(0,tj.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),tK=e=>(0,tj.jsx)(tO.J,{focusable:"false","aria-hidden":!0,...e,children:(0,tj.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),tX=e=>e?({bottom:"top",top:"bottom"})[e]:"top",tJ=e=>(0,tj.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,tj.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),tY=e=>"object"==typeof e&&null!==e&&"colorScheme"in e&&"string"==typeof e.colorScheme,tQ=e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant,t0=e=>"object"==typeof e&&null!==e&&"isFixed"in e&&"boolean"==typeof e.isFixed,t1=e=>(0,tj.jsx)(tO.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,tj.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})}),t2={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tH(a),u={...(0,tk.m)("CloseButton",{size:s}),marginX:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"pointer"},l=null!=o&&o.clearIndicator?o.clearIndicator(u,e):u,c={width:"1em",height:"1em"},d=null!=o&&o.crossIcon?o.crossIcon(c,e):c;return(0,tj.jsx)(t_.x,{role:"button",className:r({indicator:!0,"clear-indicator":!0},n),sx:l,"aria-label":"Clear selected options",...i,children:t||(0,tj.jsx)(tK,{sx:d})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:i,innerProps:o,isDisabled:a,isFocused:s,menuIsOpen:u,selectProps:{chakraStyles:l,size:c,variant:d,focusBorderColor:f,errorBorderColor:h,isInvalid:p,isReadOnly:v}}=e,g=tH(c),{field:{height:m,h:y,...b}}=(0,tk.j)("Input",{size:g,variant:d,focusBorderColor:f,errorBorderColor:h}),w={...b,position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",padding:0,overflow:"hidden",height:"auto",minH:m||y,...a?{pointerEvents:"none"}:{}},x=null!=l&&l.control?l.control(w,e):w;return(0,tj.jsx)(t_.x,{ref:i,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":u},t),sx:x,...o,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!p||void 0,"data-disabled":!!a||void 0,"data-readonly":!!v||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,useBasicStyles:a,size:s,focusBorderColor:u,errorBorderColor:l,variant:c}}=e,d=tH(s),f=(0,tk.j)("Input",{size:d,variant:c,focusBorderColor:u,errorBorderColor:l}),h={sm:"16px",md:"20px",lg:"24px"}[d],p={...f.addon,display:"flex",alignItems:"center",justifyContent:"center",height:"100%",borderRadius:0,borderWidth:0,fontSize:h,...a&&{background:"transparent",padding:0,width:6,marginRight:2,marginLeft:1,cursor:"inherit"}},v=null!=o&&o.dropdownIndicator?o.dropdownIndicator(p,e):p,g={height:"1em",width:"1em"},m=null!=o&&o.downChevron?o.downChevron(g,e):g;return(0,tj.jsx)(t_.x,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),sx:v,children:t||(0,tj.jsx)(tZ,{sx:m})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:a,headingProps:s,label:u,selectProps:l,innerProps:c,getClassNames:d}=e,{chakraStyles:f}=l,h={},p=null!=f&&f.group?f.group(h,e):h;return(0,tj.jsxs)(t_.x,{...c,className:r({group:!0},n),sx:p,children:[(0,tj.jsx)(a,{...s,selectProps:l,cx:r,theme:i,getStyles:o,getClassNames:d,children:u}),(0,tj.jsx)(t_.x,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,hasStickyGroupHeaders:o}}=e,{data:a,...s}=tW(e),u=(0,tk.j)("Menu"),l=tH(i),c={...u.groupTitle,fontSize:{sm:"xs",md:"sm",lg:"md"}[l],padding:{sm:"0.4rem 0.8rem",md:"0.5rem 1rem",lg:"0.6rem 1.2rem"}[l],margin:0,borderBottomWidth:o?"1px":0,position:o?"sticky":"static",top:-2,bg:u.list.bg,zIndex:1},d=null!=r&&r.groupHeading?r.groupHeading(c,e):c;return(0,tj.jsx)(t_.x,{...s,className:t({"group-heading":!0},n),sx:d})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r,useBasicStyles:i,variant:o}}=e,a={opacity:1,...i||"outline"!==o?{display:"none"}:{}},s=null!=r&&r.indicatorSeparator?r.indicatorSeparator(a,e):a;return(0,tj.jsx)(tC.i,{className:n({"indicator-separator":!0},t),sx:s,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},s=null!=o&&o.indicatorsContainer?o.indicatorsContainer(a,e):a;return(0,tj.jsx)(t_.x,{...i,className:r({indicators:!0},n),sx:s,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,isReadOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:u,inputClassName:l,...c}=tW(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=null!=i&&i.inputContainer?i.inputContainer(f,e):f,p={background:0,opacity:u?0:1,width:"100%",...d},v=null!=i&&i.input?i.input(p,e):p;return(0,tj.jsx)(t_.x,{className:n({"input-container":!0},t),"data-value":r||"",sx:h,children:(0,tj.jsx)(tP.m.input,{className:n({input:!0},l),ref:a,sx:v,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i,size:o},color:a,emptyColor:s,speed:u,thickness:l,spinnerSize:c}=e,d=tH(o),f={marginRight:3},h=null!=i&&i.loadingIndicator?i.loadingIndicator(f,e):f;return(0,tj.jsx)(tT.$,{className:n({indicator:!0,"loading-indicator":!0},t),sx:h,...r,size:c||({sm:"xs",md:"sm",lg:"md"})[d],color:a,emptyColor:s,speed:u,thickness:l})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tH(a),u={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},l=null!=o&&o.loadingMessage?o.loadingMessage(u,e):u;return(0,tj.jsx)(t_.x,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),sx:l,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,u={position:"absolute",[tX(a)]:"100%",marginY:"8px",width:"100%",zIndex:1},l=null!=s&&s.menu?s.menu(u,e):u;return(0,tj.jsx)(tI.v,{children:(0,tj.jsx)(t_.x,{...i,ref:o,className:n({menu:!0},t),sx:l,children:r})})},MenuList:e=>{var t;let{className:n,cx:r,innerRef:i,children:o,maxHeight:a,isMulti:s,innerProps:u,selectProps:{chakraStyles:l,size:c,variant:d,focusBorderColor:f,errorBorderColor:h}}=e,p=(0,tk.j)("Menu"),v=tH(c),g=(0,tk.j)("Input",{size:v,variant:d,focusBorderColor:f,errorBorderColor:h}).field,m={...p.list,minW:"100%",maxHeight:`${a}px`,overflowY:"auto","--input-border-radius":null==g?void 0:g["--input-border-radius"],borderRadius:(null==g?void 0:g.borderRadius)||(null==(t=p.list)?void 0:t.borderRadius),position:"relative",WebkitOverflowScrolling:"touch"},y=null!=l&&l.menuList?l.menuList(m,e):m;return(0,tj.jsx)(t_.x,{...u,className:r({"menu-list":!0,"menu-list--is-multi":s},n),sx:y,ref:i,children:o})},MultiValue:e=>{let{children:t,className:n,components:r,cx:i,data:o,innerProps:a,isDisabled:s,isFocused:u,removeProps:l,selectProps:c,cropWithEllipsis:d}=e,{Container:f,Label:h,Remove:p}=r,{chakraStyles:v,colorScheme:g,tagVariant:m,size:y}=c,b=tH(y),w="",x="",S=!1;tY(o)&&(w=o.colorScheme),tQ(o)&&(x=o.variant),t0(o)&&(S=o.isFixed);let E=(0,tk.j)("Tag",{size:b,colorScheme:w||g,variant:x||m||(S?"solid":"subtle")}),_={...E.container,display:"flex",alignItems:"center",minWidth:0,margin:"0.125rem"},k=null!=v&&v.multiValue?v.multiValue(_,e):_,C={...E.label,overflow:"hidden",textOverflow:d||void 0===d?"ellipsis":void 0,whiteSpace:"nowrap"},O=null!=v&&v.multiValueLabel?v.multiValueLabel(C,e):C,T={...E.closeButton,display:"flex",alignItems:"center",justifyContent:"center"},P=null!=v&&v.multiValueRemove?v.multiValueRemove(T,e):T;return(0,tj.jsxs)(f,{data:o,innerProps:{className:i({"multi-value":!0,"multi-value--is-disabled":s},n),...a},sx:k,selectProps:c,children:[(0,tj.jsx)(h,{data:o,innerProps:{className:i({"multi-value__label":!0},n)},sx:O,selectProps:c,children:t}),(0,tj.jsx)(p,{data:o,innerProps:{className:i({"multi-value__remove":!0},n),"aria-label":`Remove ${t||"option"}`,...l},sx:P,selectProps:c,isFocused:u})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tj.jsx)(tP.m.span,{...n,sx:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,sx:r}=e;return(0,tj.jsx)(tP.m.span,{...n,sx:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,data:i,sx:o}=e;return t0(i)&&i.isFixed?null:(0,tj.jsx)(t_.x,{...n,role:"button",sx:o,"data-focus":!!r||void 0,"data-focus-visible":!!r||void 0,children:t||(0,tj.jsx)(t1,{})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s=tH(a),u={color:"chakra-subtle-text",textAlign:"center",paddingY:{sm:"6px",md:"8px",lg:"10px"}[s],fontSize:s},l=null!=o&&o.noOptionsMessage?o.noOptionsMessage(u,e):u;return(0,tj.jsx)(t_.x,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),sx:l,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:u,selectProps:{chakraStyles:l,size:c,isMulti:d,hideSelectedOptions:f,selectedOptionStyle:h,selectedOptionColorScheme:p}}=e,v=(0,tk.j)("Menu").item,g=tH(c),m=(0,tR.ff)(`${p}.500`,`${p}.300`),y=(0,tR.ff)("white","black"),b="color"===h&&u,w={...v,cursor:"pointer",display:"flex",alignItems:"center",width:"100%",textAlign:"start",fontSize:g,paddingX:{sm:"0.6rem",md:"0.8rem",lg:"1rem"}[g],paddingY:{sm:"0.3rem",md:"0.4rem",lg:"0.5rem"}[g],...b?{bg:m,color:y,_active:{bg:m}}:{}},x=null!=l&&l.option?l.option(w,e):w;return(0,tj.jsxs)(t_.x,{...i,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":u},t),sx:x,ref:r,"data-focus":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":u,children:["check"===h&&(!d||!1===f)&&(0,tj.jsx)(tA.O,{fontSize:"0.8em",marginEnd:"0.75rem",opacity:u?1:0,children:(0,tj.jsx)(tJ,{})}),o]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"chakra-placeholder-color",mx:"0.125rem",userSelect:"none"},s=null!=o&&o.placeholder?o.placeholder(a,e):a;return(0,tj.jsx)(t_.x,{...i,className:r({placeholder:!0},n),sx:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:u}}=e,l={position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},c=null!=u&&u.container?u.container(l,e):l;return(0,tj.jsx)(t_.x,{...i,className:r({"--is-disabled":o,"--is-rtl":a,"--has-value":s},n),sx:c,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},u=null!=a&&a.singleValue?a.singleValue(s,e):s;return(0,tj.jsx)(t_.x,{className:r({"single-value":!0,"single-value--is-disabled":i},n),sx:u,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,size:u,variant:l,focusBorderColor:c,errorBorderColor:d,controlShouldRenderValue:f}}=e,h=tH(u),p={display:i&&o&&f?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",paddingX:(0,tk.j)("Input",{size:h,variant:l,focusBorderColor:c,errorBorderColor:d}).field.px,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},v=null!=s&&s.valueContainer?s.valueContainer(p,e):p;return(0,tj.jsx)(t_.x,{...a,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),sx:v,children:t})}},t5=({components:e={},theme:t,size:n,colorScheme:r="gray",isDisabled:i,isInvalid:o,isReadOnly:a,required:s,isRequired:u,inputId:l,tagVariant:c,selectedOptionStyle:d="color",selectedOptionColorScheme:f,selectedOptionColor:h,variant:p,focusBorderColor:v,errorBorderColor:g,chakraStyles:m={},onFocus:y,onBlur:b,menuIsOpen:w,...x})=>{var S;let{variant:E}=(0,tS.F)().components.Input.defaultProps,_=(0,tM.Y)({id:l,isDisabled:i,isInvalid:o,isRequired:u,isReadOnly:a,onFocus:y,onBlur:b}),k=null!=w?w:!_.readOnly&&void 0,C=d;["color","check"].includes(d)||(C="color");let O=f||h||"blue";return"string"!=typeof O&&(O="blue"),{components:{...t2,...e},colorScheme:r,size:n,tagVariant:c,selectedOptionStyle:C,selectedOptionColorScheme:O,variant:null!=p?p:E,chakraStyles:m,focusBorderColor:v,errorBorderColor:g,onFocus:_.onFocus,onBlur:_.onBlur,isDisabled:_.disabled,isInvalid:!!_["aria-invalid"],inputId:_.id,isReadOnly:_.readOnly,required:null!=s?s:_.required,menuIsOpen:k,...x,"aria-invalid":null!=(S=x["aria-invalid"])?S:_["aria-invalid"]}},t4=(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tj.jsx)(tx,{ref:t,...n})});(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tj.jsx)(tU,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tj.jsx)(tq,{ref:t,...n})}),(0,a.forwardRef)((e,t)=>{let n=t5(e);return(0,tj.jsx)(tz,{ref:t,...n})})},11881:function(e,t,n){"use strict";let r,i;function o(e){return e+.5|0}n.d(t,{$:function(){return tf},A:function(){return eN},B:function(){return ej},C:function(){return tc},D:function(){return ek},E:function(){return tE},F:function(){return $},G:function(){return tQ},H:function(){return ed},I:function(){return t$},J:function(){return t2},K:function(){return t1},L:function(){return eq},M:function(){return tW},N:function(){return ey},O:function(){return B},P:function(){return ea},Q:function(){return W},R:function(){return tC},S:function(){return eI},T:function(){return es},U:function(){return eE},V:function(){return ti},W:function(){return eR},X:function(){return ta},Y:function(){return td},Z:function(){return tv},_:function(){return eB},a:function(){return tk},a0:function(){return t_},a1:function(){return eW},a2:function(){return e$},a3:function(){return e7},a4:function(){return X},a5:function(){return et},a6:function(){return e9},a7:function(){return er},a8:function(){return function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tP(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tA(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,u=i[n];return er(u)&&s.isScriptable(n)&&(u=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let u=t(o,a||r);return s.delete(e),tR(e,u)&&(u=tj(i._scopes,i,e,u)),u}(n,u,t,r)),D(u)&&u.length&&(u=function(t,n,r,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:u}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(F(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let l of(n=[],r)){let r=tj(i,o,t,l);n.push(e(r,a,s&&s[t],u))}}return n}(n,u,t,s.isIndexable)),tR(n,u)&&(u=e(u,o,a&&a[n],s)),u})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}},a9:function(){return tT},aA:function(){return t6},aB:function(){return t8},aC:function(){return eG},aD:function(){return t7},aE:function(){return tl},aF:function(){return eC},aG:function(){return j},aH:function(){return ex},aI:function(){return em},aJ:function(){return ew},aK:function(){return eg},aL:function(){return e_},aM:function(){return e8},aN:function(){return ep},aO:function(){return to},aP:function(){return eL},aQ:function(){return eM},aa:function(){return tP},ab:function(){return J},ac:function(){return N},ad:function(){return ez},ae:function(){return t0},af:function(){return ts},ag:function(){return ei},ah:function(){return ns},ai:function(){return G},aj:function(){return eo},ak:function(){return eA},al:function(){return tw},am:function(){return tz},an:function(){return nr},ao:function(){return nn},ap:function(){return t4},aq:function(){return t3},ar:function(){return t5},as:function(){return th},at:function(){return tp},au:function(){return tu},av:function(){return tg},aw:function(){return tx},ax:function(){return tS},ay:function(){return nt},az:function(){return eT},b:function(){return D},c:function(){return e0},d:function(){return tr},e:function(){return eY},f:function(){return ee},g:function(){return U},h:function(){return en},i:function(){return F},j:function(){return tO},k:function(){return L},l:function(){return eF},m:function(){return q},n:function(){return z},o:function(){return e3},p:function(){return eP},q:function(){return eH},r:function(){return eV},s:function(){return ev},t:function(){return eS},u:function(){return eU},v:function(){return V},w:function(){return eZ},x:function(){return eb},y:function(){return tF},z:function(){return tJ}});let a=(e,t,n)=>Math.max(Math.min(e,n),t);function s(e){return a(o(2.55*e),0,255)}function u(e){return a(o(255*e),0,255)}function l(e){return a(o(e/2.55)/100,0,1)}function c(e){return a(o(100*e),0,100)}let d={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},f=[..."0123456789ABCDEF"],h=e=>f[15&e],p=e=>f[(240&e)>>4]+f[15&e],v=e=>(240&e)>>4==(15&e),g=e=>v(e.r)&&v(e.g)&&v(e.b)&&v(e.a),m=(e,t)=>e<255?t(e):"",y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function w(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function x(e,t,n){let r;let i=b(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function S(e){let t,n,r;let i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),u=Math.min(i,o,a),l=(s+u)/2;return s!==u&&(r=s-u,n=l>.5?r/(2-s-u):r/(s+u),t=60*(t=i===s?(o-a)/r+(o<a?6:0):o===s?(a-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,l]}function E(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(u)}function _(e){return(e%360+360)%360}let k={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},C={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,T=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,P=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function I(e,t,n){if(e){let r=S(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=E(b,r,void 0,void 0),e.r=r[0],e.g=r[1],e.b=r[2]}}function R(e,t){return e?Object.assign(t||{},e):e}function A(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=u(e[3]))):(t=R(e,{r:0,g:0,b:0,a:1})).a=u(t.a),t}class M{constructor(e){let t;if(e instanceof M)return e;let n=typeof e;if("object"===n)t=A(e);else if("string"===n){var i,o;o=e.length,"#"===e[0]&&(4===o||5===o?i={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===o?17*d[e[4]]:255}:(7===o||9===o)&&(i={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===o?d[e[7]]<<4|d[e[8]]:255})),t=i||function(e){r||((r=function(){let e,t,n,r,i;let o={},a=Object.keys(C),s=Object.keys(k);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<s.length;t++)n=s[t],i=i.replace(n,k[n]);n=parseInt(C[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||("r"===e.charAt(0)?function(e){let t,n,r;let i=O.exec(e),o=255;if(i){if(i[7]!==t){let e=+i[7];o=i[8]?s(e):a(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?s(t):a(t,0,255)),g:n=255&(i[4]?s(n):a(n,0,255)),b:r=255&(i[6]?s(r):a(r,0,255)),a:o}}}(e):function(e){let t;let n=y.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?s(+n[5]):u(+n[5]));let i=_(+n[2]),o=+n[3]/100,a=+n[4]/100;return{r:(t="hwb"===n[1]?E(x,i,o,a):"hsv"===n[1]?E(w,i,o,a):E(b,i,o,a))[0],g:t[1],b:t[2],a:r}}(e))}this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=R(this._rgb);return e&&(e.a=l(e.a)),e}set rgb(e){this._rgb=A(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${l(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;return this._valid?(t=g(e=this._rgb)?h:p,e?"#"+t(e.r)+t(e.g)+t(e.b)+m(e.a,t):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=S(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${l(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n;let r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,u=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-u,r.r=255&u*r.r+n*i.r+.5,r.g=255&u*r.g+n*i.g+.5,r.b=255&u*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=P(l(e.r)),i=P(l(e.g)),o=P(l(e.b));return{r:u(T(r+n*(P(l(t.r))-r))),g:u(T(i+n*(P(l(t.g))-i))),b:u(T(o+n*(P(l(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new M(this.rgb)}alpha(e){return this._rgb.a=u(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=o(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return I(this._rgb,2,e),this}darken(e){return I(this._rgb,2,-e),this}saturate(e){return I(this._rgb,1,e),this}desaturate(e){return I(this._rgb,1,-e),this}rotate(e){var t,n;return(n=S(t=this._rgb))[0]=_(n[0]+e),n=E(b,n,void 0,void 0),t.r=n[0],t.g=n[1],t.b=n[2],this}}function j(){}let N=(i=0,()=>i++);function L(e){return null==e}function D(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function F(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function U(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function B(e,t){return U(e)?e:t}function V(e,t){return void 0===e?t:e}let q=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function W(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function $(e,t,n,r){let i,o,a;if(D(e)){if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i)}else if(F(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(n,e[a[i]],a[i])}function G(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function H(e){if(D(e))return e.map(H);if(F(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=H(e[n[i]]);return t}return e}function Z(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function K(e,t,n,r){if(!Z(e))return;let i=t[e],o=n[e];F(i)&&F(o)?X(i,o,r):t[e]=H(o)}function X(e,t,n){let r;let i=D(t)?t:[t],o=i.length;if(!F(e))return e;let a=(n=n||{}).merger||K;for(let t=0;t<o;++t){if(!F(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)a(o[t],e,r,n)}return e}function J(e,t){return X(e,t,{merger:Y})}function Y(e,t,n){if(!Z(e))return;let r=t[e],i=n[e];F(r)&&F(i)?J(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=H(i))}let Q={"":e=>e,x:e=>e.x,y:e=>e.y};function ee(e,t){return(Q[t]||(Q[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function et(e){return e.charAt(0).toUpperCase()+e.slice(1)}let en=e=>void 0!==e,er=e=>"function"==typeof e,ei=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function eo(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let ea=Math.PI,es=2*ea,eu=es+ea,el=Number.POSITIVE_INFINITY,ec=ea/180,ed=ea/2,ef=ea/4,eh=2*ea/3,ep=Math.log10,ev=Math.sign;function eg(e,t,n){return Math.abs(e-t)<n}function em(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ep(e=eg(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function ey(e){let t;let n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function eb(e){return!("symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function ew(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ex(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function eS(e){return ea/180*e}function eE(e){return 180/ea*e}function e_(e){if(!U(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function ek(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n);return i<-.5*ea&&(i+=es),{angle:i,distance:Math.sqrt(n*n+r*r)}}function eC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eO(e,t){return(e-t+eu)%es-ea}function eT(e){return(e%es+es)%es}function eP(e,t,n,r){let i=eT(e),o=eT(t),a=eT(n),s=eT(o-i),u=eT(a-i),l=eT(i-o),c=eT(i-a);return i===o||i===a||r&&o===a||s>u&&l<c}function eI(e,t,n){return Math.max(t,Math.min(n,e))}function eR(e){return eI(e,-32768,32767)}function eA(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eM(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let ej=(e,t,n,r)=>eM(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eN=(e,t,n)=>eM(e,n,r=>e[r][t]>=n);function eL(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eD=["push","pop","shift","splice","unshift"];function eF(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eD.forEach(t=>{let n="_onData"+et(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eU(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eD.forEach(t=>{delete e[t]}),delete e._chartjs)}function eB(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eV="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eq(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eV.call(window,()=>{r=!1,e.apply(t,n)}))}}function ez(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eW=e=>"start"===e?"left":"end"===e?"right":"center",e$=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eG=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eH(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:a,vScale:s,_parsed:u}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(ej(u,c,d).lo,n?r:ej(t,c,a.getPixelForValue(d)).lo),l){let e=u.slice(0,i+1).reverse().findIndex(e=>!L(e[s.axis]));i-=Math.max(0,e)}i=eI(i,0,r-1)}if(p){let e=Math.max(ej(u,a.axis,f,!0).hi+1,n?0:ej(t,c,a.getPixelForValue(f),!0).hi+1);if(l){let t=u.slice(e-1).findIndex(e=>!L(e[s.axis]));e+=Math.max(0,t)}o=eI(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eZ(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let eK=e=>0===e||1===e,eX=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*es/n)),eJ=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*es/n)+1,eY={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ed)+1,easeOutSine:e=>Math.sin(e*ed),easeInOutSine:e=>-.5*(Math.cos(ea*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eK(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eK(e)?e:eX(e,.075,.3),easeOutElastic:e=>eK(e)?e:eJ(e,.075,.3),easeInOutElastic:e=>eK(e)?e:e<.5?.5*eX(2*e,.1125,.45):.5+.5*eJ(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*(((t*=1.525)+1)*e-t)*.5:.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eY.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eY.easeInBounce(2*e):.5*eY.easeOutBounce(2*e-1)+.5};function eQ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function e0(e){return eQ(e)?e:new M(e)}function e1(e){return eQ(e)?e:new M(e).saturate(.5).darken(.1).hexString()}let e2=["x","y","borderWidth","radius","tension"],e5=["color","borderColor","backgroundColor"],e4=new Map;function e3(e,t,n){return(function(e,t){let n=e+JSON.stringify(t=t||{}),r=e4.get(n);return r||(r=new Intl.NumberFormat(e,t),e4.set(n,r)),r})(t,n).format(e)}let e6={values:e=>D(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){let t;let i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),Math.abs(t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),o=t}let a=ep(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),u={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(u,this.options.ticks.format),e3(e,i,u)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ep(e))))||t>.8*n.length?e6.numeric.call(this,e,t,n):""}};var e8={formatters:e6};let e7=Object.create(null),e9=Object.create(null);function te(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function tt(e,t,n){return"string"==typeof t?X(te(e,t),n):X(te(e,""),t)}class tn{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>e1(t.backgroundColor),this.hoverBorderColor=(e,t)=>e1(t.borderColor),this.hoverColor=(e,t)=>e1(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tt(this,e,t)}get(e){return te(this,e)}describe(e,t){return tt(e9,e,t)}override(e,t){return tt(e7,e,t)}route(e,t,n,r){let i=te(this,e),o=te(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[r];return F(e)?Object.assign({},t,e):V(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var tr=new tn({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e5},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ti(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function to(e,t,n,r){let i,o,a,s,u;let l=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(l=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(s=n[i])||D(s)){if(D(s))for(o=0,a=s.length;o<a;o++)null==(u=s[o])||D(u)||(d=ti(e,l,c,d,u))}else d=ti(e,l,c,d,s);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete l[c[i]];c.splice(0,h)}return d}function ta(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ts(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function tu(e,t,n,r){tl(e,t,n,r,null)}function tl(e,t,n,r,i){let o,a,s,u,l,c,d,f;let h=t.pointStyle,p=t.rotation,v=t.radius,g=(p||0)*ec;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(v)&&!(v<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,v,0,0,es):e.arc(n,r,v,0,es),e.closePath();break;case"triangle":c=i?i/2:v,e.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=eh,e.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),e.closePath();break;case"rectRounded":l=.516*v,a=Math.cos(g+ef)*(u=v-l),d=Math.cos(g+ef)*(i?i/2-l:u),s=Math.sin(g+ef)*u,f=Math.sin(g+ef)*(i?i/2-l:u),e.arc(n-d,r-s,l,g-ea,g-ed),e.arc(n+f,r-a,l,g-ed,g),e.arc(n+d,r+s,l,g,g+ed),e.arc(n-f,r+a,l,g+ed,g+ea),e.closePath();break;case"rect":if(!p){u=Math.SQRT1_2*v,c=i?i/2:u,e.rect(n-c,r-u,2*c,2*u);break}g+=ef;case"rectRot":d=Math.cos(g)*(i?i/2:v),a=Math.cos(g)*v,s=Math.sin(g)*v,f=Math.sin(g)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":g+=ef;case"cross":d=Math.cos(g)*(i?i/2:v),a=Math.cos(g)*v,s=Math.sin(g)*v,f=Math.sin(g)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(g)*(i?i/2:v),a=Math.cos(g)*v,s=Math.sin(g)*v,f=Math.sin(g)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),g+=ef,d=Math.cos(g)*(i?i/2:v),a=Math.cos(g)*v,s=Math.sin(g)*v,f=Math.sin(g)*(i?i/2:v),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(g)*v,s=Math.sin(g)*v,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:v),r+Math.sin(g)*v);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function tc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function td(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tf(e){e.restore()}function th(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tp(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tv(e,t,n,r,i,o={}){let a,s;let u=D(t)?t:[t],l=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),L(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<u.length;++a)s=u[a],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),l&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),L(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,n,r,o.maxWidth)),e.fillText(s,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,u=n-o.actualBoundingBoxAscent,l=n+o.actualBoundingBoxDescent,c=i.strikethrough?(u+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,n,r,s,o),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*ea,ea,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,ea,ed,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ed,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ed,!0),e.lineTo(n+a.topLeft,r)}let tm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ty=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tb=e=>+e||0;function tw(e,t){let n={},r=F(t),i=r?Object.keys(t):t,o=F(e)?r?n=>V(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tb(o(e));return n}function tx(e){return tw(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tS(e){return tw(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tE(e){let t=tx(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function t_(e,t){e=e||{},t=t||tr.font;let n=V(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=V(e.style,t.style);r&&!(""+r).match(ty)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:V(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(V(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:V(e.weight,t.weight),string:""};return i.string=!i||L(i.size)||L(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tk(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&D(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function tC(e,t,n){let{min:r,max:i}=e,o=z(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function tO(e,t){return Object.assign(Object.create(e),t)}function tT(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tL("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tT([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tA(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tL(tI(o,e),n)))return tR(e,i)?tj(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tD(e).includes(t),ownKeys:e=>tD(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tP(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:er(n)?n:()=>n,isIndexable:er(r)?r:()=>r}}let tI=(e,t)=>e?e+et(t):t,tR=(e,t)=>F(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tA(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tM=(e,t)=>!0===e?t:"string"==typeof e?ee(t,e):void 0;function tj(e,t,n,r){var i;let o=t._rootScopes,a=er(i=t._fallback)?i(n,r):i,s=[...e,...o],u=new Set;u.add(r);let l=tN(u,s,n,a||n,r);return null!==l&&(void 0===a||a===n||null!==(l=tN(u,s,a,l,r)))&&tT(Array.from(u),[""],o,a,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return D(i)&&F(n)?n:i||{}})(t,n,r))}function tN(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tM(n,a);if(t){var o;e.add(t);let a=er(o=t._fallback)?o(n,i):o;if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tL(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tD(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tF(e,t,n,r){let i,o,a;let{iScale:s}=e,{key:u="r"}=this._parsing,l=Array(r);for(i=0;i<r;++i)a=t[o=i+n],l[i]={r:s.parse(ee(a,u),o)};return l}let tU=Number.EPSILON||1e-14,tB=(e,t)=>t<e.length&&!e[t].skip&&e[t],tV=e=>"x"===e?"y":"x";function tq(e,t,n){return Math.max(Math.min(e,n),t)}function tz(e,t,n,r,i){let o,a,s,u;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i;let o=tV(t),a=e.length,s=Array(a).fill(0),u=Array(a),l=tB(e,0);for(n=0;n<a;++n)if(r=i,i=l,l=tB(e,n+1),i){if(l){let e=l[t]-i[t];s[n]=0!==e?(l[o]-i[o])/e:0}u[n]=r?l?ev(s[n-1])!==ev(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(e,t,n){let r,i,o,a,s;let u=e.length,l=tB(e,0);for(let c=0;c<u-1;++c)if(s=l,l=tB(e,c+1),s&&l){if(eg(t[c],0,tU)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,s,u),function(e,t,n="x"){let r,i,o;let a=tV(n),s=e.length,u=tB(e,0);for(let l=0;l<s;++l){if(i=o,o=u,u=tB(e,l+1),!o)continue;let s=o[n],c=o[a];i&&(r=(s-i[n])/3,o[`cp1${n}`]=s-r,o[`cp1${a}`]=c-r*t[l]),u&&(r=(u[n]-s)/3,o[`cp2${n}`]=s+r,o[`cp2${a}`]=c+r*t[l])}}(e,u,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)u=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,a=eC(t,i),s=eC(o,t),u=a/(a+s),l=s/(a+s);u=isNaN(u)?0:u,l=isNaN(l)?0:l;let c=r*u,d=r*l;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(n,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=u.previous.x,s.cp1y=u.previous.y,s.cp2x=u.next.x,s.cp2y=u.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a;let s=tc(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&tc(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=tq(i.cp1x,t.left,t.right),i.cp1y=tq(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tq(i.cp2x,t.left,t.right),i.cp2y=tq(i.cp2y,t.top,t.bottom)))}(e,n)}function tW(){return"undefined"!=typeof window&&"undefined"!=typeof document}function t$(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tG(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tH=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tZ=["top","right","bottom","left"];function tK(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tZ[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let tX=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tJ(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tH(n),o="border-box"===i.boxSizing,a=tK(i,"padding"),s=tK(i,"border","width"),{x:u,y:l,box:c}=function(e,t){let n,r;let i=e.touches,o=i&&i.length?i[0]:e,{offsetX:a,offsetY:s}=o,u=!1;if(tX(a,s,e.target))n=a,r=s;else{let e=t.getBoundingClientRect();n=o.clientX-e.left,r=o.clientY-e.top,u=!0}return{x:n,y:r,box:u}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((u-d)/h*n.width/r),y:Math.round((l-f)/p*n.height/r)}}let tY=e=>Math.round(10*e)/10;function tQ(e,t,n,r){let i=tH(e),o=tK(i,"margin"),a=tG(i.maxWidth,e,"clientWidth")||el,s=tG(i.maxHeight,e,"clientHeight")||el,u=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&t$(e);if(o){let e=o.getBoundingClientRect(),a=tH(o),s=tK(a,"border","width"),u=tK(a,"padding");t=e.width-u.width-s.width,n=e.height-u.height-s.height,r=tG(a.maxWidth,o,"clientWidth"),i=tG(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||el,maxHeight:i||el}}(e,t,n),{width:l,height:c}=u;if("content-box"===i.boxSizing){let e=tK(i,"border","width"),t=tK(i,"padding");l-=t.width+e.width,c-=t.height+e.height}return l=Math.max(0,l-o.width),c=Math.max(0,r?l/r:c-o.height),l=tY(Math.min(l,a,u.maxWidth)),c=tY(Math.min(c,s,u.maxHeight)),l&&!c&&(c=tY(l/2)),(void 0!==t||void 0!==n)&&r&&u.height&&c>u.height&&(l=tY(Math.floor((c=u.height)*r))),{width:l,height:c}}function t0(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let t1=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tW()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function t2(e,t){let n=tH(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t5(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t4(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t3(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=t5(e,i,n),s=t5(i,o,n),u=t5(o,t,n),l=t5(a,s,n),c=t5(s,u,n);return t5(l,c,n)}function t6(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t8(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t7(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t9(e){return"angle"===e?{between:eP,compare:eO,normalize:eT}:{between:eA,compare:(e,t)=>e-t,normalize:e=>e}}function ne({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function nt(e,t,n){let r,i,o;if(!n)return[e];let{property:a,start:s,end:u}=n,l=t.length,{compare:c,between:d,normalize:f}=t9(a),{start:h,end:p,loop:v,style:g}=function(e,t,n){let r;let{property:i,start:o,end:a}=n,{between:s,normalize:u}=t9(i),l=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=l,d+=l,r=0;r<l&&s(u(t[c%l][i]),o,a);++r)c--,d--;c%=l,d%=l}return d<c&&(d+=l),{start:c,end:d,loop:f,style:e.style}}(e,t,n),m=[],y=!1,b=null,w=()=>d(s,o,r)&&0!==c(s,o),x=()=>0===c(u,r)||d(u,o,r),S=()=>y||w(),E=()=>!y||x();for(let e=h,n=h;e<=p;++e)(i=t[e%l]).skip||(r=f(i[a]))===o||(y=d(r,s,u),null===b&&S()&&(b=0===c(r,s)?e:n),null!==b&&E()&&(m.push(ne({start:b,end:e,loop:v,count:l,style:g})),b=null),n=e,o=r);return null!==b&&m.push(ne({start:b,end:p,loop:v,count:l,style:g})),m}function nn(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=nt(r[i],e.points,t);o.length&&n.push(...o)}return n}function nr(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:a,end:s}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return ni(e,[{start:a,end:s,loop:o}],n,t);let u=s<a?s+i:s,l=!!e._fullLoop&&0===a&&s===i-1;return ni(e,function(e,t,n,r){let i;let o=e.length,a=[],s=t,u=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?u.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=n.stop?i:null):(s=i,u.skip&&(t=i)),u=n}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,a,u,l),n,t)}function ni(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=no(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,u=n.length,l=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=s?-1:1;if(e!==t){for(e+=u;n[e%u].skip;)e-=o;for(;n[t%u].skip;)t+=o;e%u!=t%u&&(l.push({start:e%u,end:t%u,loop:r,style:i}),c=i,d=t%u)}}for(let e of t){let t;let o=n[(d=s?d:e.start)%u];for(f=d+1;f<=e.end;f++){let s=n[f%u];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eQ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=no(r.setContext(tO(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%u,p1DataIndex:f%u,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return l}(e,t,n,r):t}function no(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function na(e,t,n){return e.options.clip?e[n]:t[n]}function ns(e,t){let n=t._clip;if(n.disabled)return!1;let r=function(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:na(n,t,"left"),right:na(n,t,"right"),top:na(r,t,"top"),bottom:na(r,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:r.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:r.right+(!0===n.right?0:n.right),top:!1===n.top?0:r.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:r.bottom+(!0===n.bottom?0:n.bottom)}}},25092:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}}})},40571:function(e,t){"use strict";var n={value:()=>{}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new i(r)}function i(e){this._=e}function o(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=o(r[n],e.name,t);else if(null==t)for(n in r)r[n]=o(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},1329:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(40571),i=n(74452),o=n(31147),a=n(64099),s=n(78868),u=e=>()=>e;function l(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,n,p,v=c,g=d,m=f,y=h,b={},w=(0,r.Z)("start","drag","end"),x=0,S=0;function E(e){e.on("mousedown.drag",_).filter(y).on("touchstart.drag",O).on("touchmove.drag",T,s.Q7).on("touchend.drag touchcancel.drag",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(r,o){if(!p&&v.call(this,r,o)){var u=I(this,g.call(this,r,o),r,o,"mouse");u&&((0,i.Z)(r.view).on("mousemove.drag",k,s.Dd).on("mouseup.drag",C,s.Dd),(0,a.Z)(r.view),(0,s.rG)(r),n=!1,e=r.clientX,t=r.clientY,u("start",r))}}function k(r){if((0,s.ZP)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>S}b.mouse("drag",r)}function C(e){(0,i.Z)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.D)(e.view,n),(0,s.ZP)(e),b.mouse("end",e)}function O(e,t){if(v.call(this,e,t)){var n,r,i=e.changedTouches,o=g.call(this,e,t),a=i.length;for(n=0;n<a;++n)(r=I(this,o,e,t,i[n].identifier,i[n]))&&((0,s.rG)(e),r("start",e,i[n]))}}function T(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.ZP)(e),n("drag",e,r[t]))}function P(e){var t,n,r=e.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(n=b[r[t].identifier])&&((0,s.rG)(e),n("end",e,r[t]))}function I(e,t,n,r,i,a){var s,u,c,d=w.copy(),f=(0,o.Z)(a||n,t);if(null!=(c=m.call(e,new l("beforestart",{sourceEvent:n,target:E,identifier:i,active:x,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return s=c.x-f[0]||0,u=c.y-f[1]||0,function n(a,h,p){var v,g=f;switch(a){case"start":b[i]=n,v=x++;break;case"end":delete b[i],--x;case"drag":f=(0,o.Z)(p||h,t),v=x}d.call(a,e,new l(a,{sourceEvent:h,subject:c,target:E,identifier:i,active:v,x:f[0]+s,y:f[1]+u,dx:f[0]-g[0],dy:f[1]-g[1],dispatch:d}),r)}}return E.filter=function(e){return arguments.length?(v="function"==typeof e?e:u(!!e),E):v},E.container=function(e){return arguments.length?(g="function"==typeof e?e:u(e),E):g},E.subject=function(e){return arguments.length?(m="function"==typeof e?e:u(e),E):m},E.touchable=function(e){return arguments.length?(y="function"==typeof e?e:u(!!e),E):y},E.on=function(){var e=w.on.apply(w,arguments);return e===w?E:e},E.clickDistance=function(e){return arguments.length?(S=(e=+e)*e,E):Math.sqrt(S)},E}l.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},64099:function(e,t,n){"use strict";n.d(t,{D:function(){return a},Z:function(){return o}});var r=n(74452),i=n(78868);function o(e){var t=e.document.documentElement,n=(0,r.Z)(e).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in t?n.on("selectstart.drag",i.ZP,i.Dd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.Z)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},78868:function(e,t,n){"use strict";n.d(t,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return a},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(e){e.preventDefault(),e.stopImmediatePropagation()}},47246:function(e,t,n){"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{P:function(){return i},Z:function(){return r}})},9457:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47193);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.Z.hasOwnProperty(t)?{space:r.Z[t],local:e}:e}},47193:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";t.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},31147:function(e,t,n){"use strict";function r(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}n.d(t,{Z:function(){return r}})},74452:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(73640);function i(e){return"string"==typeof e?new r.Y1([[document.querySelector(e)]],[document.documentElement]):new r.Y1([[e]],r.Jz)}},73640:function(e,t,n){"use strict";n.d(t,{Y1:function(){return F},ZP:function(){return B},Jz:function(){return D}});var r=n(77796),i=n(46530),o=n(47246),a=Array.prototype.find;function s(){return this.firstElementChild}var u=Array.prototype.filter;function l(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function h(e,t,n,r,i,o,a){var s,u,l,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(u=t[s])&&(p[s]=l=a.call(u,u.__data__,s,t)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<h;++s)l=a.call(e,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c.get(p[s])===u&&(i[s]=u)}function p(e){return e.__data__}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var g=n(9457),m=n(28586);function y(e){return e.trim().split(/^|\s+/)}function b(e){return e.classList||new w(e)}function w(e){this._node=e,this._names=y(e.getAttribute("class")||"")}function x(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function S(e,t){for(var n=b(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function E(){this.textContent=""}function _(){this.innerHTML=""}function k(){this.nextSibling&&this.parentNode.appendChild(this)}function C(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}w.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var O=n(47193);function T(e){var t=(0,g.Z)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===O.P&&t.documentElement.namespaceURI===O.P?t.createElement(e):t.createElementNS(n,e)}})(t)}function P(){return null}function I(){var e=this.parentNode;e&&e.removeChild(this)}function R(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function A(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function M(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function j(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var N=n(77416);function L(e,t,n){var r=(0,N.Z)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var D=[null];function F(e,t){this._groups=e,this._parents=t}function U(){return new F([[document.documentElement]],D)}F.prototype=U.prototype={constructor:F,select:function(e){"function"!=typeof e&&(e=(0,r.Z)(e));for(var t=this._groups,n=t.length,i=Array(n),o=0;o<n;++o)for(var a,s,u=t[o],l=u.length,c=i[o]=Array(l),d=0;d<l;++d)(a=u[d])&&(s=e.call(a,a.__data__,d,u))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new F(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.Z)(e);for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var u,l=n[s],c=l.length,d=0;d<c;++d)(u=l[d])&&(o.push(e.call(u,u.__data__,d,l)),a.push(u));return new F(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.P)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?l:(t="function"==typeof e?e:(0,o.P)(e),function(){return u.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],u=s.length,l=r[i]=[],c=0;c<u;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&l.push(a);return new F(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var n=t?h:f,r=this._parents,i=this._groups;"function"!=typeof e&&(x=e,e=function(){return x});for(var o=i.length,a=Array(o),s=Array(o),u=Array(o),l=0;l<o;++l){var c=r[l],d=i[l],v=d.length,g="object"==typeof(w=e.call(c,c&&c.__data__,l,r))&&"length"in w?w:Array.from(w),m=g.length,y=s[l]=Array(m),b=a[l]=Array(m);n(c,d,y,b,u[l]=Array(v),g,t);for(var w,x,S,E,_=0,k=0;_<m;++_)if(S=y[_]){for(_>=k&&(k=_+1);!(E=b[k])&&++k<m;);S._next=E||null}}return(a=new F(a,r))._enter=s,a._exit=u,a},enter:function(){return new F(this._enter||this._groups.map(c),this._parents)},exit:function(){return new F(this._exit||this._groups.map(c),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),u=0;u<a;++u)for(var l,c=n[u],d=r[u],f=c.length,h=s[u]=Array(f),p=0;p<f;++p)(l=c[p]||d[p])&&(h[p]=l);for(;u<i;++u)s[u]=n[u];return new F(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=v);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new F(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,g.Z)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:m.Z,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=y(e+"");if(arguments.length<2){for(var r=b(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?x:S)(this,e)}}:t?function(e){return function(){x(this,e)}}:function(e){return function(){S(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?E:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?_:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(k)},lower:function(){return this.each(C)},append:function(e){var t="function"==typeof e?e:T(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:T(e),i=null==t?P:"function"==typeof t?t:(0,r.Z)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(I)},clone:function(e){return this.select(e?A:R)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value}return}for(r=0,s=t?j:M;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return L(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return L(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var B=U},28586:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(77416);function i(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,r.Z)(e).getComputedStyle(e,null).getPropertyValue(t)}},77796:function(e,t,n){"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{Z:function(){return i}})},46530:function(e,t,n){"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{Z:function(){return i}})},77416:function(e,t,n){"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{Z:function(){return r}})},53630:function(e,t,n){"use strict";n.d(t,{sP:function(){return eQ},CR:function(){return eW}});var r,i=n(40571),o=n(64099);function a(e){return((e=Math.exp(e))+1/e)/2}var s,u,l=function e(t,n,r){function i(e,i){var o,s,u=e[0],l=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-u,v=f-l,g=p*p+v*v;if(g<1e-12)s=Math.log(h/c)/t,o=function(e){return[u+e*p,l+e*v,c*Math.exp(t*e*s)]};else{var m=Math.sqrt(g),y=(h*h-c*c+r*g)/(2*c*n*m),b=(h*h-c*c-r*g)/(2*h*n*m),w=Math.log(Math.sqrt(y*y+1)-y);s=(Math.log(Math.sqrt(b*b+1)-b)-w)/t,o=function(e){var r,i,o=e*s,d=a(w),f=c/(n*m)*(((r=Math.exp(2*(r=t*o+w)))-1)/(r+1)*d-((i=Math.exp(i=w))-1/i)/2);return[u+f*p,l+f*v,c*d/a(t*o+w)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),c=n(74452),d=n(31147),f=n(73640),h=0,p=0,v=0,g=0,m=0,y=0,b="object"==typeof performance&&performance.now?performance:Date,w="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function x(){return m||(w(S),m=b.now()+y)}function S(){m=0}function E(){this._call=this._time=this._next=null}function _(e,t,n){var r=new E;return r.restart(e,t,n),r}function k(){m=(g=b.now())+y,h=p=0;try{!function(){x(),++h;for(var e,t=s;t;)(e=m-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}()}finally{h=0,function(){for(var e,t,n=s,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:s=t);u=e,O(r)}(),m=0}}function C(){var e=b.now(),t=e-g;t>1e3&&(y-=t,g=e)}function O(e){!h&&(p&&(p=clearTimeout(p)),e-m>24?(e<1/0&&(p=setTimeout(k,e-b.now()-y)),v&&(v=clearInterval(v))):(v||(g=b.now(),v=setInterval(C,1e3)),h=1,w(k)))}function T(e,t,n){var r=new E;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}E.prototype=_.prototype={constructor:E,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?x():+n)+(null==t?0:+t),this._next||u===this||(u?u._next=this:s=this,u=this),this._call=e,this._time=n,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}};var P=(0,i.Z)("start","end","cancel","interrupt"),I=[];function R(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(u){var l,c,d,f;if(1!==n.state)return s();for(l in i)if((f=i[l]).name===n.name){if(3===f.state)return T(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[l])}if(T(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(l=0,n.state=3,r=Array(d=n.tween.length),c=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=_(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:P,tween:I,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function A(e,t){var n=j(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function M(e,t){var n=j(e,t);if(n.state>3)throw Error("too late; already running");return n}function j(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function N(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}a&&delete e.__transition}}function L(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var D=180/Math.PI,F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function U(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*D,skewX:Math.atan(u)*D,scaleX:a,scaleY:s}}function B(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,u,l,c,d=[],f=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:L(e,i)},{i:u-2,x:L(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),(s=o.rotate)!==(u=a.rotate)?(s-u>180?u+=360:u-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:L(s,u)})):u&&d.push(i(d)+"rotate("+u+r),(l=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:L(l,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:L(e,n)},{i:s-2,x:L(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++n<r;)d[(t=f[n]).i]=t.x(e);return d.join("")}}}var V=B(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?F:U(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),q=B(function(e){return null==e?F:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?U((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):F},", ",")",")"),z=n(9457);function W(e,t,n){var r=e._id;return e.each(function(){var e=M(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return j(e,r).value[t]}}function $(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function G(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function H(){}var Z="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,Y=RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`),Q=RegExp(`^rgb\\(${X},${X},${X}\\)$`),ee=RegExp(`^rgba\\(${Z},${Z},${Z},${K}\\)$`),et=RegExp(`^rgba\\(${X},${X},${X},${K}\\)$`),en=RegExp(`^hsl\\(${K},${X},${X}\\)$`),er=RegExp(`^hsla\\(${K},${X},${X},${K}\\)$`),ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function eo(){return this.rgb().formatHex()}function ea(){return this.rgb().formatRgb()}function es(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=J.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?eu(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?el(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?el(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Y.exec(e))?new ed(t[1],t[2],t[3],1):(t=Q.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?el(t[1],t[2],t[3],t[4]):(t=et.exec(e))?el(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?em(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?em(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?eu(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function eu(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function el(e,t,n,r){return r<=0&&(e=t=n=NaN),new ed(e,t,n,r)}function ec(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof H||(i=es(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,n,null==r?1:r)}function ed(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ef(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${ev(this.r)}, ${ev(this.g)}, ${ev(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ev(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eg(e){return((e=ev(e))<16?"0":"")+e.toString(16)}function em(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new eb(e,t,n,r)}function ey(e){if(e instanceof eb)return new eb(e.h,e.s,e.l,e.opacity);if(e instanceof H||(e=es(e)),!e)return new eb;if(e instanceof eb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new eb(a,s,u,e.opacity)}function eb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ew(e){return(e=(e||0)%360)<0?e+360:e}function ex(e){return Math.max(0,Math.min(1,e||0))}function eS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eE(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}$(H,es,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ey(this).formatHsl()},formatRgb:ea,toString:ea}),$(ed,ec,G(H,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(ev(this.r),ev(this.g),ev(this.b),ep(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ef,formatHex:ef,formatHex8:function(){return`#${eg(this.r)}${eg(this.g)}${eg(this.b)}${eg((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),$(eb,function(e,t,n,r){return 1==arguments.length?ey(e):new eb(e,t,n,null==r?1:r)},G(H,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new eb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new eb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ed(eS(e>=240?e-240:e+120,i,r),eS(e,i,r),eS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new eb(ew(this.h),ex(this.s),ex(this.l),ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ew(this.h)}, ${100*ex(this.s)}%, ${100*ex(this.l)}%${1===e?")":`, ${e})`}`}}));var e_=e=>()=>e;function ek(e,t){var n=t-e;return n?function(t){return e+t*n}:e_(isNaN(e)?t:e)}var eC=function e(t){var n,r=1==(n=+(n=t))?ek:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):e_(isNaN(e)?t:e)};function i(e,t){var n=r((e=ec(e)).r,(t=ec(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=ek(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eO(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}eO(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eE((n-r/t)*t,a,i,o,s)}}),eO(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return eE((n-r/t)*t,i,o,a,s)}});var eT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eP=RegExp(eT.source,"g");function eI(e,t){var n;return("number"==typeof t?L:t instanceof es?eC:(n=es(t))?(t=n,eC):function(e,t){var n,r,i,o,a,s=eT.lastIndex=eP.lastIndex=0,u=-1,l=[],c=[];for(e+="",t+="";(i=eT.exec(e))&&(o=eP.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,c.push({i:u,x:L(i,o)})),s=eP.lastIndex;return s<t.length&&(a=t.slice(s),l[u]?l[u]+=a:l[++u]=a),l.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)l[(n=c[r]).i]=n.x(e);return l.join("")})})(e,t)}var eR=n(47246),eA=n(77796),eM=n(46530),ej=f.ZP.prototype.constructor,eN=n(28586);function eL(e){return function(){this.style.removeProperty(e)}}var eD=0;function eF(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var eU=f.ZP.prototype;eF.prototype=(function(e){return(0,f.ZP)().transition(e)}).prototype={constructor:eF,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eA.Z)(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,d=o[a]=Array(c),f=0;f<c;++f)(s=l[f])&&(u=e.call(s,s.__data__,f,l))&&("__data__"in s&&(u.__data__=s.__data__),d[f]=u,R(d[f],t,n,f,d,j(s,n)));return new eF(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eM.Z)(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,d=0;d<c;++d)if(u=l[d]){for(var f,h=e.call(u,u.__data__,d,l),p=j(u,n),v=0,g=h.length;v<g;++v)(f=h[v])&&R(f,t,n,v,h,p);o.push(h),a.push(u)}return new eF(o,a,t,n)},selectChild:eU.selectChild,selectChildren:eU.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eR.Z)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new eF(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],d=l.length,f=a[s]=Array(d),h=0;h<d;++h)(u=l[h]||c[h])&&(f[h]=u);for(;s<r;++s)a[s]=t[s];return new eF(a,this._parents,this._name,this._id)},selection:function(){return new ej(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++eD,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=j(a,t);R(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eF(r,this._parents,e,n)},call:eU.call,nodes:eU.nodes,node:eU.node,size:eU.size,empty:eU.empty,each:eU.each,on:function(e,t){var n,r,i,o=this._id;return arguments.length<2?j(this.node(),o).on.on(e):this.each((i=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?A:M,function(){var a=i(this,o),s=a.on;s!==n&&(r=(n=s).copy()).on(e,t),a.on=r}))},attr:function(e,t){var n=(0,z.Z)(e),r="transform"===n?q:eI;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,u=n(this);return null==u?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u))}}:function(e,t,n){var r,i,o;return function(){var a,s,u=n(this);return null==u?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u))}})(n,r,W(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=(0,z.Z)(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,a,s,u,l,c,d,f,h,p,v,g,m,y,b,w,x,S,E,_="transform"==(e+="")?V:eI;return null==t?this.styleTween(e,(r=e,function(){var e=(0,eN.S)(this,r),t=(this.style.removeProperty(r),(0,eN.S)(this,r));return e===t?null:e===i&&t===o?a:a=_(i=e,o=t)})).on("end.style."+e,eL(e)):"function"==typeof t?this.styleTween(e,(s=e,u=W(this,"style."+e,t),function(){var e=(0,eN.S)(this,s),t=u(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=(0,eN.S)(this,s)),e===n?null:e===l&&n===c?d:(c=n,d=_(l=e,t))})).each((f=this._id,b="end."+(y="style."+(h=e)),function(){var e=M(this,f),t=e.on,n=null==e.value[y]?m||(m=eL(h)):void 0;(t!==p||g!==n)&&(v=(p=t).copy()).on(b,g=n),e.on=v})):this.styleTween(e,(w=e,E=t+"",function(){var e=(0,eN.S)(this,w);return e===E?null:e===x?S:S=_(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=W(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=j(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=M(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=M(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){A(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){A(this,e).delay=t}})(t,e)):j(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){M(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){M(this,e).duration=t}})(t,e)):j(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){M(this,e).ease=t}}(t,e)):j(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();M(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){0==--i&&o()}};n.each(function(){var n=M(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t}),0===i&&o()})},[Symbol.iterator]:eU[Symbol.iterator]};var eB={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.ZP.prototype.interrupt=function(e){return this.each(function(){N(this,e)})},f.ZP.prototype.transition=function(e){var t,n;e instanceof eF?(t=e._id,e=e._name):(t=++eD,(n=eB).time=x(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&R(a,e,t,l,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(a,t));return new eF(r,this._parents,e,t)};var eV=e=>()=>e;function eq(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ez(e,t,n){this.k=e,this.x=t,this.y=n}ez.prototype={constructor:ez,scale:function(e){return 1===e?this:new ez(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ez(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eW=new ez(1,0,0);function e$(e){e.stopImmediatePropagation()}function eG(e){e.preventDefault(),e.stopImmediatePropagation()}function eH(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eZ(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eK(){return this.__zoom||eW}function eX(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eY(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eQ(){var e,t,n,r=eH,a=eZ,s=eY,u=eX,f=eJ,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],v=250,g=l,m=(0,i.Z)("start","zoom","end"),y=0,b=10;function w(e){e.property("__zoom",eK).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",P).filter(f).on("touchstart.zoom",I).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new ez(t,e.x,e.y)}function S(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new ez(e.k,r,i)}function E(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function _(e,t,n,r){e.on("start.zoom",function(){k(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=k(this,e).event(r),o=a.apply(this,e),s=null==n?E(o):"function"==typeof n?n.apply(this,e):n,u=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=g(l.invert(s).concat(u/l.k),c.invert(s).concat(u/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=u/t[2];e=new ez(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function O(e,...t){if(r.apply(this,arguments)){var n=k(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,u.apply(this,arguments)))),a=(0,d.Z)(e);if(n.wheel)(n.mouse[0][0]!==a[0]||n.mouse[0][1]!==a[1])&&(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],N(this),n.start()}eG(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",s(S(x(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function T(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=k(this,t,!0).event(e),u=(0,c.Z)(e.view).on("mousemove.zoom",function(e){if(eG(e),!a.moved){var t=e.clientX-f,n=e.clientY-h;a.moved=t*t+n*n>y}a.event(e).zoom("mouse",s(S(a.that.__zoom,a.mouse[0]=(0,d.Z)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){u.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(e.view,a.moved),eG(e),a.event(e).end()},!0),l=(0,d.Z)(e,i),f=e.clientX,h=e.clientY;(0,o.Z)(e.view),e$(e),a.mouse=[l,this.__zoom.invert(l)],N(this),a.start()}}function P(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,d.Z)(e.changedTouches?e.changedTouches[0]:e,this),o=n.invert(i),u=n.k*(e.shiftKey?.5:2),l=s(S(x(n,u),i,o),a.apply(this,t),p);eG(e),v>0?(0,c.Z)(this).transition().duration(v).call(_,l,i,e):(0,c.Z)(this).call(w.transform,l,i,e)}}function I(n,...i){if(r.apply(this,arguments)){var o,a,s,u,l=n.touches,c=l.length,f=k(this,i,n.changedTouches.length===c).event(n);for(e$(n),a=0;a<c;++a)s=l[a],u=[u=(0,d.Z)(s,this),this.__zoom.invert(u),s.identifier],f.touch0?f.touch1||f.touch0[2]===u[2]||(f.touch1=u,f.taps=0):(f.touch0=u,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=u[0],e=setTimeout(function(){e=null},500)),N(this),f.start())}}function R(e,...t){if(this.__zooming){var n,r,i,o,a=k(this,t).event(e),u=e.changedTouches,l=u.length;for(eG(e),n=0;n<l;++n)r=u[n],i=(0,d.Z)(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],v=a.touch1[1],g=(g=h[0]-c[0])*g+(g=h[1]-c[1])*g,m=(m=v[0]-f[0])*m+(m=v[1]-f[1])*m;r=x(r,Math.sqrt(g/m)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+v[0])/2,(f[1]+v[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",s(S(r,i,o),a.extent,p))}}function A(e,...r){if(this.__zooming){var i,o,a=k(this,r).event(e),s=e.changedTouches,u=s.length;for(e$(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<u;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.Z)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<b)){var l=(0,c.Z)(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return w.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eK),e!==i?_(e,t,n,r):i.interrupt().each(function(){k(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},w.scaleBy=function(e,t,n,r){w.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},w.scaleTo=function(e,t,n,r){w.transform(e,function(){var e=a.apply(this,arguments),r=this.__zoom,i=null==n?E(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),u="function"==typeof t?t.apply(this,arguments):t;return s(S(x(r,u),i,o),e,p)},n,r)},w.translateBy=function(e,t,n,r){w.transform(e,function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),p)},null,r)},w.translateTo=function(e,t,n,r,i){w.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==r?E(e):"function"==typeof r?r.apply(this,arguments):r;return s(eW.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,p)},r,i)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.Z)(this.that).datum();m.call(e,this.that,new eq(e,{sourceEvent:this.sourceEvent,target:w,type:e,transform:this.that.__zoom,dispatch:m}),t)}},w.wheelDelta=function(e){return arguments.length?(u="function"==typeof e?e:eV(+e),w):u},w.filter=function(e){return arguments.length?(r="function"==typeof e?e:eV(!!e),w):r},w.touchable=function(e){return arguments.length?(f="function"==typeof e?e:eV(!!e),w):f},w.extent=function(e){return arguments.length?(a="function"==typeof e?e:eV([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),w):a},w.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],w):[h[0],h[1]]},w.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],w):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},w.constrain=function(e){return arguments.length?(s=e,w):s},w.duration=function(e){return arguments.length?(v=+e,w):v},w.interpolate=function(e){return arguments.length?(g=e,w):g},w.on=function(){var e=m.on.apply(m,arguments);return e===m?w:e},w.clickDistance=function(e){return arguments.length?(y=(e=+e)*e,w):Math.sqrt(y)},w.tapDistance=function(e){return arguments.length?(b=+e,w):b},w}ez.prototype},41466:function(e,t,n){"use strict";n.d(t,{M:function(){return g}});var r=n(97129),i=n(32069);function o(){let e=(0,r.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=n(54547),s=n(93256),u=n(46387);class l extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,r.useId)(),i=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:s}=o.current;if(t||!i.current||!e||!r)return;i.current.dataset.motionPopId=n;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${n}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${e}px !important;
|
|
5
|
-
height: ${r}px !important;
|
|
6
|
-
top: ${a}px !important;
|
|
7
|
-
left: ${s}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{document.head.removeChild(u)}},[t]),r.createElement(l,{isPresent:t,childRef:i,sizeRef:o},r.cloneElement(e,{ref:i}))}let d=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:l})=>{let d=(0,u.h)(f),h=(0,r.useId)(),p=(0,r.useMemo)(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[n]);return(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),r.useEffect(()=>{n||d.size||!i||i()},[n]),"popLayout"===l&&(e=r.createElement(c,{isPresent:n},e)),r.createElement(s.O.Provider,{value:p},e)};function f(){return new Map}var h=n(74847),p=n(96440);let v=e=>e.key||"",g=({children:e,custom:t,initial:n=!0,onExitComplete:s,exitBeforeEnter:u,presenceAffectsLayout:l=!0,mode:c="sync"})=>{var f;(0,p.k)(!u,"Replace exitBeforeEnter with mode='wait'");let g=(0,r.useContext)(h.p).forceRender||function(){let e=o(),[t,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>a.Wi.postRender(i),[i]),t]}()[0],m=o(),y=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=y,w=(0,r.useRef)(new Map).current,x=(0,r.useRef)(b),S=(0,r.useRef)(new Map).current,E=(0,r.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(e,t){e.forEach(e=>{let n=v(e);t.set(n,e)})}(y,S),x.current=b}),f=()=>{E.current=!0,S.clear(),w.clear()},(0,r.useEffect)(()=>()=>f(),[]),E.current)return r.createElement(r.Fragment,null,b.map(e=>r.createElement(d,{key:v(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:l,mode:c},e)));b=[...b];let _=x.current.map(v),k=y.map(v),C=_.length;for(let e=0;e<C;e++){let t=_[e];-1!==k.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(b=[]),w.forEach((e,n)=>{if(-1!==k.indexOf(n))return;let i=S.get(n);if(!i)return;let o=_.indexOf(n),a=e;a||(a=r.createElement(d,{key:v(i),isPresent:!1,onExitComplete:()=>{w.delete(n);let e=Array.from(S.keys()).filter(e=>!k.includes(e));if(e.forEach(e=>S.delete(e)),x.current=y.filter(t=>{let r=v(t);return r===n||e.includes(r)}),!w.size){if(!1===m.current)return;g(),s&&s()}},custom:t,presenceAffectsLayout:l,mode:c},i),w.set(n,a)),b.splice(o,0,a)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:r.createElement(d,{key:v(e),isPresent:!0,presenceAffectsLayout:l,mode:c},e)}),r.createElement(r.Fragment,null,w.size?b:b.map(e=>(0,r.cloneElement)(e)))}},68098:function(e,t,n){"use strict";n.d(t,{hO:function(){return a},oO:function(){return o}});var r=n(97129),i=n(93256);function o(){let e=(0,r.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:o}=e,a=(0,r.useId)();return(0,r.useEffect)(()=>o(a),[]),!t&&n?[!1,()=>n&&n(a)]:[!0]}function a(){var e;return null===(e=(0,r.useContext)(i.O))||e.isPresent}},74847:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r=(0,n(97129).createContext)({})},93256:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=(0,n(97129).createContext)(null)},54547:function(e,t,n){"use strict";n.d(t,{Pn:function(){return s},Wi:function(){return a},frameData:function(){return u},S6:function(){return l}});var r=n(51898);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:a,cancel:s,state:u,steps:l}=function(e,t){let n=!1,r=!0,a={delta:0,timestamp:0,isProcessing:!1},s=o.reduce((e,t)=>(e[t]=function(e){let t=new i,n=new i,r=0,o=!1,a=!1,s=new WeakSet,u={schedule:(e,i=!1,a=!1)=>{let u=a&&o,l=u?t:n;return i&&s.add(e),l.add(e)&&u&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:i=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;n<r;n++){let r=t.order[n];r(i),s.has(r)&&(u.schedule(r),e())}o=!1,a&&(a=!1,u.process(i))}};return u}(()=>n=!0),e),{}),u=e=>s[e].process(a),l=()=>{let i=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,o.forEach(u),a.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,a.isProcessing||e(l)};return{schedule:o.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||c(),r.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>s[t].cancel(e)),state:a,steps:s}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},74550:function(e,t,n){"use strict";let r;n.d(t,{E:function(){return iG}});var i,o,a=n(97129);let s=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),u=(0,a.createContext)({});var l=n(93256),c=n(32069);let d=(0,a.createContext)({strict:!1}),f=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h="data-"+f("framerAppearId");function p(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function v(e){return"string"==typeof e||Array.isArray(e)}function g(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let m=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...m];function b(e){return g(e.animate)||y.some(t=>v(e[t]))}function w(e){return!!(b(e)||e.variants)}function x(e){return Array.isArray(e)?e.join(" "):e}let S={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},E={};for(let e in S)E[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var _=n(67965),k=n(74847);let C=(0,a.createContext)({}),O=Symbol.for("motionComponentSymbol"),T=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function P(e){if("string"!=typeof e||e.includes("-"));else if(T.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let I={},R=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set(R);function M(e,{layout:t,layoutId:n}){return A.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!I[e]||"opacity"===e)}let j=e=>!!(e&&e.getVelocity),N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},L=R.length,D=e=>t=>"string"==typeof t&&t.startsWith(e),F=D("--"),U=D("var(--"),B=(e,t)=>t&&"number"==typeof e?t.transform(e):e,V=(e,t,n)=>Math.min(Math.max(n,e),t),q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},z={...q,transform:e=>V(0,1,e)},W={...q,default:1},$=e=>Math.round(1e5*e)/1e5,G=/(-)?([\d]*\.?[\d])+/g,H=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Z=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function K(e){return"string"==typeof e}let X=e=>({test:t=>K(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),J=X("deg"),Y=X("%"),Q=X("px"),ee=X("vh"),et=X("vw"),en={...Y,parse:e=>Y.parse(e)/100,transform:e=>Y.transform(100*e)},er={...q,transform:Math.round},ei={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:J,skewX:J,skewY:J,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:z,originX:en,originY:en,originZ:Q,zIndex:er,fillOpacity:z,strokeOpacity:z,numOctaves:er};function eo(e,t,n,r){let{style:i,vars:o,transform:a,transformOrigin:s}=e,u=!1,l=!1,c=!0;for(let e in t){let n=t[e];if(F(e)){o[e]=n;continue}let r=ei[e],d=B(n,r);if(A.has(e)){if(u=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(l=!0,s[e]=d):i[e]=d}if(!t.transform&&(u||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<L;t++){let n=R[t];if(void 0!==e[n]){let t=N[n]||n;o+=`${t}(${e[n]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):i.transform&&(i.transform="none")),l){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin=`${e} ${t} ${n}`}}let ea=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function es(e,t,n){for(let r in t)j(t[r])||M(r,n)||(e[r]=t[r])}let eu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function el(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eu.has(e)}let ec=e=>!el(e);try{(i=require("@emotion/is-prop-valid").default)&&(ec=e=>e.startsWith("on")?!el(e):i(e))}catch(e){}function ed(e,t,n){return"string"==typeof e?e:Q.transform(t+n*e)}let ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},eh={offset:"strokeDashoffset",array:"strokeDasharray"};function ep(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d,f){if(eo(e,l,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:p,dimensions:v}=e;h.transform&&(v&&(p.transform=h.transform),delete h.transform),v&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){let r=ed(t,e.x,e.width),i=ed(n,e.y,e.height);return`${r} ${i}`}(v,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ef:eh;e[o.offset]=Q.transform(-r);let a=Q.transform(t),s=Q.transform(n);e[o.array]=`${a} ${s}`}(h,a,s,u,!1)}let ev=()=>({...ea(),attrs:{}}),eg=e=>"string"==typeof e&&"svg"===e.toLowerCase();function em(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eb(e,t,n,r){for(let n in em(e,t,void 0,r),t.attrs)e.setAttribute(ey.has(n)?n:f(n),t.attrs[n])}function ew(e,t){let{style:n}=e,r={};for(let i in n)(j(n[i])||t.style&&j(t.style[i])||M(i,e))&&(r[i]=n[i]);return r}function ex(e,t){let n=ew(e,t);for(let r in e)(j(e[r])||j(t[r]))&&(n[-1!==R.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eS(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}var eE=n(46387);let e_=e=>Array.isArray(e),ek=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eC=e=>e_(e)?e[e.length-1]||0:e;function eO(e){let t=j(e)?e.get():e;return ek(t)?t.toValue():t}let eT=e=>(t,n)=>{let r=(0,a.useContext)(u),i=(0,a.useContext)(l.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=eO(o[e]);let{initial:a,animate:s}=e,u=b(e),l=w(e);t&&l&&!u&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!g(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eS(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():(0,eE.h)(o)};var eP=n(54547);let eI={useVisualState:eT({scrapeMotionValuesFromProps:ex,createRenderState:ev,onMount:(e,t,{renderState:n,latestValues:r})=>{eP.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),eP.Wi.render(()=>{ep(n,r,{enableHardwareAcceleration:!1},eg(t.tagName),e.transformTemplate),eb(t,n)})}})},eR={useVisualState:eT({scrapeMotionValuesFromProps:ew,createRenderState:ea})};function eA(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let eM=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ej(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let eN=e=>t=>eM(t)&&e(t,ej(t));function eL(e,t,n,r){return eA(e,t,eN(n),r)}let eD=(e,t)=>n=>t(e(n)),eF=(...e)=>e.reduce(eD);function eU(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eB=eU("dragHorizontal"),eV=eU("dragVertical");function eq(e){let t=!1;if("y"===e)t=eV();else if("x"===e)t=eB();else{let e=eB(),n=eV();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function ez(){let e=eq(!0);return!e||(e(),!1)}class eW{constructor(e){this.isMounted=!1,this.node=e}update(){}}function e$(e,t){let n="onHover"+(t?"Start":"End");return eL(e.current,"pointer"+(t?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||ez())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&eP.Wi.update(()=>o[n](r,i))},{passive:!e.getProps()[n]})}class eG extends eW{mount(){this.unmount=eF(e$(this.node,!0),e$(this.node,!1))}unmount(){}}class eH extends eW{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eF(eA(this.node.current,"focus",()=>this.onFocus()),eA(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eZ=(e,t)=>!!t&&(e===t||eZ(e,t.parentElement));var eK=n(51898);function eX(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,ej(n))}class eJ extends eW{constructor(){super(...arguments),this.removeStartListeners=eK.Z,this.removeEndListeners=eK.Z,this.removeAccessibleListeners=eK.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=eL(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();eP.Wi.update(()=>{i||eZ(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=eL(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eF(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eA(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eA(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eX("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&eP.Wi.update(()=>n(e,t))})}),eX("down",(e,t)=>{this.startPress(e,t)}))}),t=eA(this.node.current,"blur",()=>{this.isPressing&&eX("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eF(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&eP.Wi.update(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ez()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&eP.Wi.update(()=>n(e,t))}mount(){let e=this.node.getProps(),t=eL(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eA(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eF(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eY=new WeakMap,eQ=new WeakMap,e0=e=>{let t=eY.get(e.target);t&&t(e)},e1=e=>{e.forEach(e0)},e2={some:0,all:1};class e5 extends eW{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:e2[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;eQ.has(n)||eQ.set(n,{});let r=eQ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e1,{root:e,...t})),r[i]}(t);return eY.set(e,n),r.observe(e),()=>{eY.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}function e4(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function e3(e,t,n){let r=e.getProps();return eS(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}var e6=n(96440);let e8=e=>1e3*e,e7=e=>e/1e3,e9={current:!1},te=e=>Array.isArray(e)&&"number"==typeof e[0],tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])},tr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ti(e,t,n,r){if(e===t&&n===r)return eK.Z;let i=t=>(function(e,t,n,r,i){let o,a;let s=0;do(o=tr(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:tr(i(e),t,r)}let to=ti(.42,0,1,1),ta=ti(0,0,.58,1),ts=ti(.42,0,.58,1),tu=e=>Array.isArray(e)&&"number"!=typeof e[0],tl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tc=e=>t=>1-e(1-t),td=e=>1-Math.sin(Math.acos(e)),tf=tc(td),th=tl(td),tp=ti(.33,1.53,.69,.99),tv=tc(tp),tg=tl(tv),tm={linear:eK.Z,easeIn:to,easeInOut:ts,easeOut:ta,circIn:td,circInOut:th,circOut:tf,backIn:tv,backInOut:tg,backOut:tp,anticipate:e=>(e*=2)<1?.5*tv(e):.5*(2-Math.pow(2,-10*(e-1)))},ty=e=>{if(Array.isArray(e)){(0,e6.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return ti(t,n,r,i)}return"string"==typeof e?((0,e6.k)(void 0!==tm[e],`Invalid easing type '${e}'`),tm[e]):e},tb=(e,t)=>n=>!!(K(n)&&Z.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tw=(e,t,n)=>r=>{if(!K(r))return r;let[i,o,a,s]=r.match(G);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tx=e=>V(0,255,e),tS={...q,transform:e=>Math.round(tx(e))},tE={test:tb("rgb","red"),parse:tw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tS.transform(e)+", "+tS.transform(t)+", "+tS.transform(n)+", "+$(z.transform(r))+")"},t_={test:tb("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tE.transform},tk={test:tb("hsl","hue"),parse:tw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Y.transform($(t))+", "+Y.transform($(n))+", "+$(z.transform(r))+")"},tC={test:e=>tE.test(e)||t_.test(e)||tk.test(e),parse:e=>tE.test(e)?tE.parse(e):tk.test(e)?tk.parse(e):t_.parse(e),transform:e=>K(e)?e:e.hasOwnProperty("red")?tE.transform(e):tk.transform(e)},tO=(e,t,n)=>-n*e+n*t+e;function tT(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let tP=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},tI=[t_,tE,tk],tR=e=>tI.find(t=>t.test(e));function tA(e){let t=tR(e);(0,e6.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tk&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=tT(s,r,e+1/3),o=tT(s,r,e),a=tT(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let tM=(e,t)=>{let n=tA(e),r=tA(t),i={...n};return e=>(i.red=tP(n.red,r.red,e),i.green=tP(n.green,r.green,e),i.blue=tP(n.blue,r.blue,e),i.alpha=tO(n.alpha,r.alpha,e),tE.transform(i))},tj={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eK.Z},tN={regex:H,countKey:"Colors",token:"${c}",parse:tC.parse},tL={regex:G,countKey:"Numbers",token:"${n}",parse:q.parse};function tD(e,{regex:t,countKey:n,token:r,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function tF(e){let t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tD(n,tj),tD(n,tN),tD(n,tL),n}function tU(e){return tF(e).values}function tB(e){let{values:t,numColors:n,numVars:r,tokenised:i}=tF(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(tj.token,e[i]):i<r+n?t.replace(tN.token,tC.transform(e[i])):t.replace(tL.token,$(e[i]));return t}}let tV=e=>"number"==typeof e?0:e,tq={test:function(e){var t,n;return isNaN(e)&&K(e)&&((null===(t=e.match(G))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(H))||void 0===n?void 0:n.length)||0)>0},parse:tU,createTransformer:tB,getAnimatableNone:function(e){let t=tU(e);return tB(e)(t.map(tV))}},tz=(e,t)=>n=>`${n>0?t:e}`;function tW(e,t){return"number"==typeof e?n=>tO(e,t,n):tC.test(e)?tM(e,t):e.startsWith("var(")?tz(e,t):tH(e,t)}let t$=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>tW(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},tG=(e,t)=>{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},tH=(e,t)=>{let n=tq.createTransformer(t),r=tF(e),i=tF(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?eF(t$(r.values,i.values),n):((0,e6.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tz(e,t))},tZ=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},tK=(e,t)=>n=>tO(e,t,n);function tX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if((0,e6.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)return tC.test(e)?tM:tH;else if(Array.isArray(e))return t$;else if("object"==typeof e)return tG;return tK}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=eF(Array.isArray(t)?t[n]||eK.Z:t,o)),r.push(o)}return r}(t,r,i),s=a.length,u=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=tZ(e[n],e[n+1],t);return a[n](r)};return n?t=>u(V(e[0],e[o-1],t)):u}function tJ({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=tu(r)?r.map(ty):ty(r),o={done:!1,value:t[0]},a=tX((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tZ(0,t,r);e.push(tO(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ts).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function tY(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}function tQ(e,t){return e*Math.sqrt(1-t*t)}let t0=["duration","bounce"],t1=["stiffness","damping","mass"];function t2(e,t){return t.some(t=>void 0!==e[t])}function t5({keyframes:e,restDelta:t,restSpeed:n,...r}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t2(e,t1)&&t2(e,t0)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;(0,e6.K)(e<=e8(10),"Spring duration must be 10 seconds or less");let a=1-t;a=V(.05,1,a),e=V(.01,10,e7(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/tQ(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=tQ(Math.pow(t,2),a);return(r*n+n-o)*Math.exp(-r)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=e8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-e7(r.velocity||0)}),p=f||0,v=l/(2*Math.sqrt(u*c)),g=a-o,m=e7(Math.sqrt(u/c)),y=5>Math.abs(g);if(n||(n=y?.01:2),t||(t=y?.005:.5),v<1){let e=tQ(m,v);i=t=>a-Math.exp(-v*m*t)*((p+v*m*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)i=e=>a-Math.exp(-m*e)*(g+(p+m*g)*e);else{let e=m*Math.sqrt(v*v-1);i=t=>{let n=Math.exp(-v*m*t),r=Math.min(e*t,300);return a-n*((p+v*m*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}return{calculatedDuration:h&&d||null,next:e=>{let r=i(e);if(h)s.done=e>=d;else{let o=p;0!==e&&(o=v<1?tY(i,e,r):0);let u=Math.abs(o)<=n,l=Math.abs(a-r)<=t;s.done=u&&l}return s.value=s.done?a:r,s}}}function t4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){let d,f;let h=e[0],p={done:!1,value:h},v=e=>void 0!==s&&e<s||void 0!==u&&e>u,g=e=>void 0===s?u:void 0===u?s:Math.abs(s-e)<Math.abs(u-e)?s:u,m=n*t,y=h+m,b=void 0===a?y:a(y);b!==y&&(m=b-h);let w=e=>-m*Math.exp(-e/r),x=e=>b+w(e),S=e=>{let t=w(e),n=x(e);p.done=Math.abs(t)<=l,p.value=p.done?b:n},E=e=>{v(p.value)&&(d=e,f=t5({keyframes:[p.value,g(p.value)],velocity:tY(x,e,p.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,S(e),E(e)),void 0!==d&&e>d)?f.next(e-d):(t||S(e),p)}}}let t3=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eP.Wi.update(t,!0),stop:()=>(0,eP.Pn)(t),now:()=>eP.frameData.isProcessing?eP.frameData.timestamp:performance.now()}};function t6(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let t8={decay:t4,inertia:t4,tween:tJ,keyframes:tJ,spring:t5};function t7({autoplay:e=!0,delay:t=0,driver:n=t3,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:d,...f}){let h,p,v,g,m,y=1,b=!1,w=()=>{p=new Promise(e=>{h=e})};w();let x=t8[i]||tJ;x!==tJ&&"number"!=typeof r[0]&&(g=tX([0,100],r,{clamp:!1}),r=[0,100]);let S=x({...f,keyframes:r});"mirror"===s&&(m=x({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",_=null,k=null,C=null;null===S.calculatedDuration&&o&&(S.calculatedDuration=t6(S));let{calculatedDuration:O}=S,T=1/0,P=1/0;null!==O&&(P=(T=O+a)*(o+1)-a);let I=0,R=e=>{if(null===k)return;y>0&&(k=Math.min(k,e)),y<0&&(k=Math.min(e-P/y,k));let n=(I=null!==_?_:Math.round(e-k)*y)-t*(y>=0?1:-1),i=y>=0?n<0:n>P;I=Math.max(n,0),"finished"===E&&null===_&&(I=P);let u=I,l=S;if(o){let e=Math.min(I,P)/T,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,o+1))%2&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(l=m)),u=V(0,1,n)*T}let c=i?{done:!1,value:r[0]}:l.next(u);g&&(c.value=g(c.value));let{done:f}=c;i||null===O||(f=y>=0?I>=P:I<=0);let h=null===_&&("finished"===E||"running"===E&&f);return d&&d(c.value),h&&j(),c},A=()=>{v&&v.stop(),v=void 0},M=()=>{E="idle",A(),h(),w(),k=C=null},j=()=>{E="finished",c&&c(),A(),h()},N=()=>{if(b)return;v||(v=n(R));let e=v.now();u&&u(),null!==_?k=e-_:k&&"finished"!==E||(k=e),"finished"===E&&w(),C=k,_=null,E="running",v.start()};e&&N();let L={then:(e,t)=>p.then(e,t),get time(){return e7(I)},set time(newTime){I=newTime=e8(newTime),null===_&&v&&0!==y?k=v.now()-newTime/y:_=newTime},get duration(){return e7(null===S.calculatedDuration?t6(S):S.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!v)return;y=newSpeed,L.time=e7(I)},get state(){return E},play:N,pause:()=>{E="paused",_=I},stop:()=>{b=!0,"idle"!==E&&(E="idle",l&&l(),M())},cancel:()=>{null!==C&&R(C),M()},complete:()=>{E="finished"},sample:e=>(k=0,R(e))};return L}let t9=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),ne=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nt=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&tn[t]||te(t)||Array.isArray(t)&&t.every(e))}(t.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},na=(e,{keyframes:t})=>t.length>2?ni:A.has(e)?e.startsWith("scale")?nr(t[1]):nn:no,ns=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tq.test(t)||"0"===t)&&!t.startsWith("url(")),nu=new Set(["brightness","contrast","saturate","opacity"]);function nl(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(G)||[];if(!r)return e;let i=n.replace(r,""),o=nu.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let nc=/([a-z-]*)\(.*?\)/g,nd={...tq,getAnimatableNone:e=>{let t=e.match(nc);return t?t.map(nl).join(" "):e}},nf={...ei,color:tC,backgroundColor:tC,outlineColor:tC,fill:tC,stroke:tC,borderColor:tC,borderTopColor:tC,borderRightColor:tC,borderBottomColor:tC,borderLeftColor:tC,filter:nd,WebkitFilter:nd},nh=e=>nf[e];function np(e,t){let n=nh(e);return n!==nd&&(n=tq),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let nv=e=>/^0[^.\s]+$/.test(e);function ng(e,t){return e[t]||e.default||e}let nm={skipAnimations:!1},ny=(e,t,n,r={})=>i=>{let o=ng(r,e)||{},a=o.delay||r.delay||0,{elapsed:s=0}=r;s-=e8(a);let u=function(e,t,n,r){let i,o;let a=ns(t,n);i=Array.isArray(n)?[...n]:[null,n];let s=void 0!==r.from?r.from:e.get(),u=[];for(let e=0;e<i.length;e++){var l;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(l=i[e])?0===l:null!==l?"none"===l||"0"===l||nv(l):void 0)&&u.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}if(a&&u.length&&o)for(let e=0;e<u.length;e++)i[u[e]]=np(t,o);return i}(t,e,n,o),l=u[0],c=u[u.length-1],d=ns(e,l),f=ns(e,c);(0,e6.K)(d===f,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}(o)&&(h={...h,...na(e,h)}),h.duration&&(h.duration=e8(h.duration)),h.repeatDelay&&(h.repeatDelay=e8(h.repeatDelay)),!d||!f||e9.current||!1===o.type||nm.skipAnimations)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){let i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:eK.Z,pause:eK.Z,stop:eK.Z,then:e=>(e(),Promise.resolve()),cancel:eK.Z,complete:eK.Z});return t?t7({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(e9.current?{...h,delay:0}:h);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,{onUpdate:n,onComplete:r,...i}){let o,a;if(!(t9()&&ne.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let s=!1,u=!1,l=()=>{a=new Promise(e=>{o=e})};l();let{keyframes:c,duration:d=300,ease:f,times:h}=i;if(nt(t,i)){let e=t7({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},n=[],r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;h=void 0,c=n,d=r-10,f="linear"}let p=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){let l={[t]:n};u&&(l.offset=u);let c=function e(t){if(t)return te(t)?tt(t):Array.isArray(t)?t.map(e):tn[t]}(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:f,times:h}),v=()=>{u=!1,p.cancel()},g=()=>{u=!0,eP.Wi.update(v),o(),l()};return p.onfinish=()=>{u||(e.set(function(e,{repeat:t,repeatType:n="loop"}){let r=t&&"loop"!==n&&t%2==1?0:e.length-1;return e[r]}(c,i)),r&&r(),g())},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,eK.Z),get time(){return e7(p.currentTime||0)},set time(newTime){p.currentTime=e8(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return e7(d)},play:()=>{s||(p.play(),(0,eP.Pn)(v))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let n=t7({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>{u||p.finish()},cancel:g}}(t,e,h);if(n)return n}return t7(h)};function nb(e){return!!(j(e)&&e.add)}let nw=e=>/^\-?\d*\.?\d+$/.test(e);function nx(e,t){-1===e.indexOf(t)&&e.push(t)}function nS(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class nE{constructor(){this.subscriptions=[]}add(e){return nx(this.subscriptions,e),()=>nS(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let n_=e=>!isNaN(parseFloat(e)),nk={current:void 0};class nC{constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=eP.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,eP.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>eP.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=n_(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nE);let n=this.events[e].add(t);return"change"===e?()=>{n(),eP.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nk.current&&nk.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nO(e,t){return new nC(e,t)}let nT=e=>t=>t.test(e),nP=[q,Q,Y,J,et,ee,{test:e=>"auto"===e,parse:e=>e}],nI=e=>nP.find(nT(e)),nR=[...nP,tC,tq],nA=e=>nR.find(nT(e));function nM(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(o=r);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t),i=s[t];if(!r||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(c,t))continue;let a={delay:n,elapsed:0,...ng(o||{},t)};if(window.HandoffAppearAnimations){let n=e.getProps()[h];if(n){let e=window.HandoffAppearAnimations(n,t,r,eP.Wi);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let d=!a.isHandoff&&!function(e,t){let n=e.get();if(!Array.isArray(t))return n!==t;for(let e=0;e<t.length;e++)if(t[e]!==n)return!0}(r,i);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(ny(t,r,i,e.shouldReduceMotion&&A.has(t)?{type:!1}:a));let f=r.animation;nb(u)&&(u.add(t),f.then(()=>u.remove(t))),l.push(f)}return a&&Promise.all(l).then(()=>{a&&function(e,t){let n=e3(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=eC(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nO(n))}}(e,a)}),l}function nj(e,t,n={}){let r=e3(e,t,n.custom),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nM(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,u=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(nN).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(nj(e,t,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function nN(e,t){return e.sortNodePosition(t)}let nL=[...m].reverse(),nD=m.length;function nF(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nU extends eW{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>nj(e,t,n)));else if("string"==typeof t)r=nj(e,t,n);else{let i="function"==typeof t?e3(e,t,n.custom):t;r=Promise.all(nM(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={animate:nF(!0),whileInView:nF(),whileHover:nF(),whileTap:nF(),whileDrag:nF(),whileFocus:nF(),exit:nF()},r=!0,i=(t,n)=>{let r=e3(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){let s=e.getProps(),u=e.getVariantContext(!0)||{},l=[],c=new Set,d={},f=1/0;for(let t=0;t<nD;t++){var h;let p=nL[t],m=n[p],y=void 0!==s[p]?s[p]:u[p],b=v(y),w=p===a?m.isActive:null;!1===w&&(f=t);let x=y===u[p]&&y!==s[p]&&b;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...d},!m.isActive&&null===w||!y&&!m.prevProp||g(y)||"boolean"==typeof y)continue;let S=(h=m.prevProp,("string"==typeof y?y!==h:!!Array.isArray(y)&&!e4(y,h))||p===a&&m.isActive&&!x&&b||t>f&&b),E=!1,_=Array.isArray(y)?y:[y],k=_.reduce(i,{});!1===w&&(k={});let{prevResolvedValues:C={}}=m,O={...C,...k},T=e=>{S=!0,c.has(e)&&(E=!0,c.delete(e)),m.needsAnimating[e]=!0};for(let e in O){let t=k[e],n=C[e];if(!d.hasOwnProperty(e))(e_(t)&&e_(n)?e4(t,n):t===n)?void 0!==t&&c.has(e)?T(e):m.protectedKeys[e]=!0:void 0!==t?T(e):c.add(e)}m.prevProp=y,m.prevResolvedValues=k,m.isActive&&(d={...d,...k}),r&&e.blockInitialAnimation&&(S=!1),S&&(!x||E)&&l.push(..._.map(e=>({animation:e,options:{type:p,...o}})))}if(c.size){let t={};c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),l.push({animation:t})}let p=!!l.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),g(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let nB=0;class nV extends eW{constructor(){super(...arguments),this.id=nB++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let nq=(e,t)=>Math.abs(e-t);class nz{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nG(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(nq(e.x,t.x)**2+nq(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=eP.frameData;this.history.push({...o,timestamp:a});let{onStart:s,onMove:u}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nW(t,this.transformPagePoint),eP.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nG("pointercancel"===e.type?this.lastMoveEventInfo:nW(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!eM(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=nW(ej(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=eP.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:u}=t;u&&u(e,nG(o,this.history)),this.removeListeners=eF(eL(this.contextWindow,"pointermove",this.handlePointerMove),eL(this.contextWindow,"pointerup",this.handlePointerUp),eL(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eP.Pn)(this.updatePoint)}}function nW(e,t){return t?{point:t(e.point)}:e}function n$(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nG({point:e},t){return{point:e,delta:n$(e,nH(t)),offset:n$(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nH(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>e8(.1)));)n--;if(!r)return{x:0,y:0};let o=e7(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function nH(e){return e[e.length-1]}function nZ(e){return e.max-e.min}function nK(e,t=0,n=.01){return Math.abs(e-t)<=n}function nX(e,t,n,r=.5){e.origin=r,e.originPoint=tO(t.min,t.max,e.origin),e.scale=nZ(n)/nZ(t),(nK(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tO(n.min,n.max,e.origin)-e.originPoint,(nK(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nJ(e,t,n,r){nX(e.x,t.x,n.x,r?r.originX:void 0),nX(e.y,t.y,n.y,r?r.originY:void 0)}function nY(e,t,n){e.min=n.min+t.min,e.max=e.min+nZ(t)}function nQ(e,t,n){e.min=t.min-n.min,e.max=e.min+nZ(t)}function n0(e,t,n){nQ(e.x,t.x,n.x),nQ(e.y,t.y,n.y)}function n1(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function n2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function n5(e,t,n){return{min:n4(e,t),max:n4(e,n)}}function n4(e,t){return"number"==typeof e?e:e[t]||0}let n3=()=>({translate:0,scale:1,origin:0,originPoint:0}),n6=()=>({x:n3(),y:n3()}),n8=()=>({min:0,max:0}),n7=()=>({x:n8(),y:n8()});function n9(e){return[e("x"),e("y")]}function re({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rt(e){return void 0===e||1===e}function rn({scale:e,scaleX:t,scaleY:n}){return!rt(e)||!rt(t)||!rt(n)}function rr(e){return rn(e)||ri(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ri(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ro(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function ra(e,t=0,n=1,r,i){e.min=ro(e.min,t,n,r,i),e.max=ro(e.max,t,n,r,i)}function rs(e,{x:t,y:n}){ra(e.x,t.translate,t.scale,t.originPoint),ra(e.y,n.translate,n.scale,n.originPoint)}function ru(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function rl(e,t){e.min=e.min+t,e.max=e.max+t}function rc(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=tO(e.min,e.max,o);ra(e,t[n],t[r],a,t.scale)}let rd=["x","scaleX","originX"],rf=["y","scaleY","originY"];function rh(e,t){rc(e.x,t,rd),rc(e.y,t,rf)}function rp(e,t){return re(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let rv=({current:e})=>e?e.ownerDocument.defaultView:null,rg=new WeakMap;class rm{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n7(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nz(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ej(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eq(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n9(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Y.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=nZ(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&eP.Wi.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>n9(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rv(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&eP.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ry(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tO(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tO(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&p(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:n1(e.x,n,i),y:n1(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:n5(e,"left","right"),y:n5(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n9(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!p(t))return!1;let r=t.current;(0,e6.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=rp(e,n),{scroll:i}=t;return i&&(rl(r.x,i.offset.x),rl(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:n2((e=i.layout.layoutBox).x,o.x),y:n2(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=re(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(n9(a=>{if(!ry(a,t,this.currentDirection))return;let u=s&&s[a]||{};o&&(u={min:0,max:0});let l={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,l)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(ny(e,n,0,t))}stopAnimation(){n9(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){n9(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){n9(t=>{let{drag:n}=this.getProps();if(!ry(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-tO(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!p(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n9(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();r[e]=function(e,t){let n=.5,r=nZ(e),i=nZ(t);return i>r?n=tZ(t.min,t.max-r,e.min):r>i&&(n=tZ(e.min,e.max-i,t.min)),V(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n9(t=>{if(!ry(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tO(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;rg.set(this.visualElement,this);let e=eL(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();p(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();let i=eA(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n9(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ry(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rb extends eW{constructor(e){super(e),this.removeGroupControls=eK.Z,this.removeListeners=eK.Z,this.controls=new rm(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eK.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rw=e=>(t,n)=>{e&&eP.Wi.update(()=>e(t,n))};class rx extends eW{constructor(){super(...arguments),this.removePointerDownListener=eK.Z}onPointerDown(e){this.session=new nz(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rw(e),onStart:rw(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&eP.Wi.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=eL(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var rS=n(68098);let rE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let rk={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Q.test(e))return e;e=parseFloat(e)}let n=r_(e,t.target.x),r=r_(e,t.target.y);return`${n}% ${r}%`}};class rC extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(I,rT),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eP.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rO(e){let[t,n]=(0,rS.oO)(),r=(0,a.useContext)(k.p);return a.createElement(rC,{...e,layoutGroup:r,switchLayoutGroup:(0,a.useContext)(C),isPresent:t,safeToRemove:n})}let rT={borderRadius:{...rk,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rk,borderTopRightRadius:rk,borderBottomLeftRadius:rk,borderBottomRightRadius:rk,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=tq.parse(e);if(r.length>5)return e;let i=tq.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let u=tO(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),i(r)}}},rP=["TopLeft","TopRight","BottomLeft","BottomRight"],rI=rP.length,rR=e=>"string"==typeof e?parseFloat(e):e,rA=e=>"number"==typeof e||Q.test(e);function rM(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rj=rL(0,.5,tf),rN=rL(.5,.95,eK.Z);function rL(e,t,n){return r=>r<e?0:r>t?1:n(tZ(e,t,r))}function rD(e,t){e.min=t.min,e.max=t.max}function rF(e,t){rD(e.x,t.x),rD(e.y,t.y)}function rU(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rB(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(Y.test(t)&&(t=parseFloat(t),t=tO(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=tO(o.min,o.max,r);e===o&&(s-=t),e.min=rU(e.min,t,n,s,i),e.max=rU(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let rV=["x","scaleX","originX"],rq=["y","scaleY","originY"];function rz(e,t,n,r){rB(e.x,t,rV,n?n.x:void 0,r?r.x:void 0),rB(e.y,t,rq,n?n.y:void 0,r?r.y:void 0)}function rW(e){return 0===e.translate&&1===e.scale}function r$(e){return rW(e.x)&&rW(e.y)}function rG(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function rH(e){return nZ(e.x)/nZ(e.y)}class rZ{constructor(){this.members=[]}add(e){nx(this.members,e),e.scheduleRender()}remove(e){if(nS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rK(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(r+=`scale(${a}, ${s})`),r||"none"}let rX=(e,t)=>e.depth-t.depth;class rJ{constructor(){this.children=[],this.isDirty=!1}add(e){nx(this.children,e),this.isDirty=!0}remove(e){nS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rX),this.isDirty=!1,this.children.forEach(e)}}let rY=["","X","Y","Z"],rQ={visibility:"hidden"},r0=0,r1={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=r0++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r1.totalNodes=r1.resolvedTargetDeltas=r1.recalculatedProjection=0,this.nodes.forEach(r3),this.nodes.forEach(ir),this.nodes.forEach(ii),this.nodes.forEach(r6),window.MotionDebug&&window.MotionDebug.record(r1)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rJ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nE),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=performance.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,eP.Pn)(r),e(i-250))};return eP.Wi.read(r,!0),()=>(0,eP.Pn)(r)}(r,0),rE.hasAnimatedSinceResize&&(rE.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||ic,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),u=!this.targetLayout||!rG(this.targetLayout,r)||n,l=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...ng(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eP.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(io),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r7);return}this.isUpdating||this.nodes.forEach(r9),this.isUpdating=!1,this.nodes.forEach(ie),this.nodes.forEach(r5),this.nodes.forEach(r4),this.clearAllSnapshots();let e=performance.now();eP.frameData.delta=V(0,1e3/60,e-eP.frameData.timestamp),eP.frameData.timestamp=e,eP.frameData.isProcessing=!0,eP.S6.update.process(eP.frameData),eP.S6.preRender.process(eP.frameData),eP.S6.render.process(eP.frameData),eP.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r8),this.sharedNodes.forEach(ia)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eP.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eP.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=n7(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!r$(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||rr(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),ip((t=r).x),ip(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return n7();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(rl(t.x,n.offset.x),rl(t.y,n.offset.y)),t}removeElementScroll(e){let t=n7();rF(t,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){rF(t,e);let{scroll:n}=this.root;n&&(rl(t.x,-n.offset.x),rl(t.y,-n.offset.y))}rl(t.x,i.offset.x),rl(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let n=n7();rF(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rr(r.latestValues)&&rh(n,r.latestValues)}return rr(this.latestValues)&&rh(n,this.latestValues),n}removeTransform(e){let t=n7();rF(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!rr(n.latestValues))continue;rn(n.latestValues)&&n.updateSnapshot();let r=n7();rF(r,n.measurePageBox()),rz(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rr(this.latestValues)&&rz(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eP.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:u}=this.options;if(this.layout&&(s||u)){if(this.resolvedRelativeTargetAt=eP.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n7(),this.relativeTargetOrigin=n7(),n0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n7(),this.targetWithTransforms=n7()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nY(n.x,r.x,i.x),nY(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rF(this.target,this.layout.layoutBox),rs(this.target,this.targetDelta)):rF(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n7(),this.relativeTargetOrigin=n7(),n0(this.relativeTargetOrigin,this.target,e.target),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r1.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rn(this.parent.latestValues)||ri(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eP.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rF(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,rs(e,o)),r&&rr(i.latestValues)&&rh(e,i.latestValues))}t.x=ru(t.x),t.y=ru(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:u}=t;if(!u){this.projectionTransform&&(this.projectionDelta=n6(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n6(),this.projectionDeltaWithTransform=n6());let l=this.projectionTransform;nJ(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=rK(this.projectionDelta,this.treeScale),(this.projectionTransform!==l||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),r1.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=n6();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=n7(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(is(a.x,e.x,r),is(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,f,h,p;n0(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,iu(h.x,p.x,s.x,r),iu(h.y,p.y,s.y,r),n&&(l=this.relativeTarget,f=n,l.x.min===f.x.min&&l.x.max===f.x.max&&l.y.min===f.y.min&&l.y.max===f.y.max)&&(this.isProjectionDirty=!1),n||(n=n7()),rF(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=tO(0,void 0!==n.opacity?n.opacity:1,rj(r)),e.opacityExit=tO(void 0!==t.opacity?t.opacity:1,0,rN(r))):o&&(e.opacity=tO(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rI;i++){let o=`border${rP[i]}Radius`,a=rM(t,o),s=rM(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||rA(a)===rA(s)?(e[o]=Math.max(tO(rR(a),rR(s),r),0),(Y.test(s)||Y.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=tO(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eP.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eP.Wi.update(()=>{rE.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=j(0)?0:nO(0);return r.start(ny("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&iv(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n7();let t=nZ(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nZ(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rF(t,n),rh(t,i),nJ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rZ),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let r={};for(let t=0;t<rY.length;t++){let i="rotate"+rY[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}for(let t in e.render(),r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rQ;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=eO(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eO(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rK(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:s,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*s.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,I){if(void 0===a[e])continue;let{correct:t,applyTo:n}=I[e],i="none"===r.transform?a[e]:t(a[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?eO(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(r7),this.root.sharedNodes.clear()}}}function r5(e){e.updateLayout()}function r4(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?n9(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=nZ(r);r.min=t[e].min,r.max=r.min+i}):iv(i,n.layoutBox,t)&&n9(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],a=nZ(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=n6();nJ(a,t,n.layoutBox);let s=n6();o?nJ(s,e.applyTransform(r,!0),n.measuredBox):nJ(s,t,n.layoutBox);let u=!r$(a),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=n7();n0(a,n.layoutBox,i.layoutBox);let s=n7();n0(s,t,o.layoutBox),rG(a,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r3(e){r1.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r8(e){e.clearSnapshot()}function r7(e){e.clearMeasurements()}function r9(e){e.isLayoutDirty=!1}function ie(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function it(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ir(e){e.resolveTargetDelta()}function ii(e){e.calcProjection()}function io(e){e.resetRotation()}function ia(e){e.removeLeadSnapshot()}function is(e,t,n){e.translate=tO(t.translate,0,n),e.scale=tO(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iu(e,t,n,r){e.min=tO(t.min,n.min,r),e.max=tO(t.max,n.max,r)}function il(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ic={duration:.45,ease:[.4,0,.1,1]},id=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),ih=id("applewebkit/")&&!id("chrome/")?Math.round:eK.Z;function ip(e){e.min=ih(e.min),e.max=ih(e.max)}function iv(e,t,n){return"position"===e||"preserve-aspect"===e&&!nK(rH(t),rH(n),.2)}let ig=r2({attachResizeListener:(e,t)=>eA(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),im={current:void 0},iy=r2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!im.current){let e=new ig({});e.mount(window),e.setOptions({layoutScroll:!0}),im.current=e}return im.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),ib=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iw(e,t,n=1){(0,e6.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=ib.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);if(o){let e=o.trim();return nw(e)?parseFloat(e):e}return U(i)?iw(i,t,n+1):i}let ix=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iS=e=>ix.has(e),iE=e=>Object.keys(e).some(iS),i_=e=>e===q||e===Q,ik=(e,t)=>parseFloat(e.split(", ")[t]),iC=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return ik(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?ik(t[1],e):0}},iO=new Set(["x","y","z"]),iT=R.filter(e=>!iO.has(e)),iP={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iC(4,13),y:iC(5,14)};iP.translateX=iP.x,iP.translateY=iP.y;let iI=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=iP[e](r,i)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);r&&r.jump(a[n]),e[n]=iP[n](s,i)}),e},iR=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(iS),o=[],a=!1,s=[];if(i.forEach(i=>{let u;let l=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=nI(c),f=t[i];if(e_(f)){let e=f.length,t=null===f[0]?1:0;d=nI(c=f[t]);for(let n=t;n<e&&null!==f[n];n++)u?(0,e6.k)(nI(f[n])===u,"All keyframes must be of the same type"):(u=nI(f[n]),(0,e6.k)(u===d||i_(d)&&i_(u),"Keyframes must be of the same dimension as the current value"))}else u=nI(f);if(d!==u){if(i_(d)&&i_(u)){let e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&u===Q&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[i]=d.transform(f):(a||(o=function(e){let t=[];return iT.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],l.jump(f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=iI(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),_.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},iA=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!U(t))return;let n=iw(t,r);n&&e.set(n)}),t){let e=t[i];if(!U(e))continue;let o=iw(e,r);o&&(t[i]=o,n||(n={}),void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,iE(i)?iR(e,i,n,o):{target:i,transitionEnd:o}},iM={current:null},ij={current:!1},iN=new WeakMap,iL=Object.keys(E),iD=iL.length,iF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iU=y.length;class iB{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eP.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=b(t),this.isVariantNode=w(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...l}=this.scrapeMotionValuesFromProps(t,{});for(let e in l){let t=l[e];void 0!==a[e]&&j(t)&&(t.set(a[e],!1),nb(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,iN.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ij.current||function(){if(ij.current=!0,_.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iM.current=e.matches;e.addListener(t),t()}else iM.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in iN.delete(this.current),this.projection&&this.projection.unmount(),(0,eP.Pn)(this.notifyUpdate),(0,eP.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=A.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eP.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,a;for(let e=0;e<iD;e++){let n=iL[e],{isEnabled:r,Feature:i,ProjectionNode:s,MeasureLayout:u}=E[n];s&&(o=s),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),u&&(a=u))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:u}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||a&&p(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:u})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n7()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<iF.length;t++){let n=iF[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){let{willChange:r}=t;for(let i in t){let o=t[i],a=n[i];if(j(o))e.addValue(i,o),nb(r)&&r.add(i);else if(j(a))e.addValue(i,nO(o,{owner:e})),nb(r)&&r.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,nO(void 0!==t?t:o,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<iU;e++){let n=y[e],r=this.props[n];(v(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=nO(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=eS(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||j(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new nE),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class iV extends iB{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){let r={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)r[i]=e;else{let e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],u=t[a],l=null;Array.isArray(u)&&(l=u[0]),null===l&&(l=null!==(i=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==i?i:t[a]),null!=l&&("string"==typeof l&&(nw(l)||nv(l))?l=parseFloat(l):!nA(l)&&tq.test(u)&&(l=np(a,u)),e.addValue(a,nO(l,{owner:e})),void 0===n[a]&&(n[a]=l),null!==l&&e.setBaseTarget(a,l))}}(this,n,o);let e=iA(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class iq extends iV{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(A.has(t)){let e=nh(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(F(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rp(e,t)}build(e,t,n,r){eo(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ew(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){em(e,t,n,r)}}class iz extends iV{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(A.has(t)){let e=nh(t);return e&&e.default||0}return t=ey.has(t)?t:f(t),e.getAttribute(t)}measureInstanceViewportBox(){return n7()}scrapeMotionValuesFromProps(e,t){return ex(e,t)}build(e,t,n,r){ep(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){eb(e,t,n,r)}mount(e){this.isSVGTag=eg(e.tagName),super.mount(e)}}let iW=(e,t)=>P(e)?new iz(t,{enableHardwareAcceleration:!1}):new iq(t,{enableHardwareAcceleration:!0}),i$={animation:{Feature:nU},exit:{Feature:nV},inView:{Feature:e5},tap:{Feature:eJ},focus:{Feature:eH},hover:{Feature:eG},pan:{Feature:rx},drag:{Feature:rb,ProjectionNode:iy,MeasureLayout:rO},layout:{ProjectionNode:iy,MeasureLayout:rO}},iG=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&function(e){for(let t in e)E[t]={...E[t],...e[t]}}(e);let o=(0,a.forwardRef)(function(o,f){var g;let m;let y={...(0,a.useContext)(s),...o,layoutId:function({layoutId:e}){let t=(0,a.useContext)(k.p).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:w}=y,S=function(e){let{initial:t,animate:n}=function(e,t){if(b(e)){let{initial:t,animate:n}=e;return{initial:!1===t||v(t)?t:void 0,animate:v(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(u));return(0,a.useMemo)(()=>({initial:t,animate:n}),[x(t),x(n)])}(o),E=r(o,w);if(!w&&_.j){S.visualElement=function(e,t,n,r){let{visualElement:i}=(0,a.useContext)(u),o=(0,a.useContext)(d),f=(0,a.useContext)(l.O),p=(0,a.useContext)(s).reducedMotion,v=(0,a.useRef)();r=r||o.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:i,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:p}));let g=v.current;(0,a.useInsertionEffect)(()=>{g&&g.update(n,f)});let m=(0,a.useRef)(!!(n[h]&&!window.HandoffComplete));return(0,c.L)(()=>{g&&(g.render(),m.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(g.updateFeatures(),!m.current&&g.animationState&&g.animationState.animateChanges(),m.current&&(m.current=!1,window.HandoffComplete=!0))}),g}(i,E,y,t);let n=(0,a.useContext)(C),r=(0,a.useContext)(d).strict;S.visualElement&&(m=S.visualElement.loadFeatures(y,r,e,n))}return a.createElement(u.Provider,{value:S},m&&S.visualElement?a.createElement(m,{visualElement:S.visualElement,...y}):null,n(i,o,(g=S.visualElement,(0,a.useCallback)(e=>{e&&E.mount&&E.mount(e),g&&(e?g.mount(e):g.unmount()),f&&("function"==typeof f?f(e):p(f)&&(f.current=e))},[g])),E,w,S.visualElement))});return o[O]=i,o}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r){return{...P(e)?eI:eR,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let s=(P(t)?function(e,t,n,r){let i=(0,a.useMemo)(()=>{let n=ev();return ep(n,t,{enableHardwareAcceleration:!1},eg(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};es(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return es(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,a.useMemo)(()=>{let r=ea();return eo(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,o,t),u={...function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(ec(i)||!0===n&&el(i)||!t&&!el(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:r},{children:l}=n,c=(0,a.useMemo)(()=>j(l)?l.get():l,[l]);return(0,a.createElement)(t,{...u,children:c})}}(t),createVisualElement:r,Component:e}})(e,t,i$,iW))},96440:function(e,t,n){"use strict";n.d(t,{K:function(){return i},k:function(){return o}});var r=n(51898);let i=r.Z,o=r.Z},67965:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});let r="undefined"!=typeof document},51898:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=e=>e},46387:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(97129);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},32069:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(97129);let i=n(67965).j?r.useLayoutEffect:r.useEffect},84935:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},kL:function(){return l}});var r,i=n(97129),o=n(12602);let a="label";function s(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}let l=(0,i.forwardRef)(function(e,t){let{height:n=150,width:r=300,redraw:l=!1,datasetIdKey:c,type:d,data:f,options:h,plugins:p=[],fallbackContent:v,updateMode:g,...m}=e,y=(0,i.useRef)(null),b=(0,i.useRef)(null),w=()=>{y.current&&(b.current=new o.kL(y.current,{type:d,data:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,r={labels:[],datasets:[]};return t=e.labels,r.labels=t,u(r,e.datasets,n),r}(f,c),options:h&&{...h},plugins:p}),s(t,b.current))},x=()=>{s(t,null),b.current&&(b.current.destroy(),b.current=null)};return(0,i.useEffect)(()=>{!l&&b.current&&h&&function(e,t){let n=e.options;n&&t&&Object.assign(n,t)}(b.current,h)},[l,h]),(0,i.useEffect)(()=>{if(!l&&b.current){var e,t;e=b.current.config.data,t=f.labels,e.labels=t}},[l,f.labels]),(0,i.useEffect)(()=>{!l&&b.current&&f.datasets&&u(b.current.config.data,f.datasets,c)},[l,f.datasets]),(0,i.useEffect)(()=>{b.current&&(l?(x(),setTimeout(w)):b.current.update(g))},[l,h,f.labels,f.datasets,g]),(0,i.useEffect)(()=>{b.current&&(x(),setTimeout(w))},[d]),(0,i.useEffect)(()=>(w(),()=>x()),[]),i.createElement("canvas",{ref:y,role:"img",height:n,width:r,...m},v)}),c=(r=o.vn,o.kL.register(r),(0,i.forwardRef)((e,t)=>i.createElement(l,{...e,ref:t,type:"bar"})))},21645:function(e,t,n){"use strict";n.d(t,{ZP:function(){return es},Ug:function(){return el}});var r=n(97129),i=n(51853),o=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r},a=n(26415);function s(e,t,n){let r="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(r)&&r>1&&(!e.frozen||e.idx+r-1<=t))return r}function u(e){e.stopPropagation()}function l(e){e?.scrollIntoView({inline:"nearest",block:"nearest"})}function c(e){let t=!1,n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}let d=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function f(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function h(e,t){return null!=e.renderEditCell&&("function"==typeof e.editable?e.editable(t):e.editable)!==!1}let p="rdg-cell cj343x07-0-0-beta-40";function v(e,t){return void 0!==t?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function g(e,t,n){let r=t+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function m(e,t=1){let n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function y(e,...t){return o(p,...t,e.frozen&&"rdg-cell-frozen csofj7r7-0-0-beta-40",e.isLastFrozenColumn&&"rdg-cell-frozen-last ch2wcw87-0-0-beta-40")}let{min:b,max:w,round:x,floor:S,sign:E,abs:_}=Math;function k(e){if("function"!=typeof e)throw Error("Please specify the rowKeyGetter prop to use selection")}function C(e,{minWidth:t,maxWidth:n}){return(e=w(e,t),"number"==typeof n&&n>=t)?b(e,n):e}function O(e,t){return void 0===e.parent?t:e.level-e.parent.level}function T({onChange:e,...t}){return(0,a.jsxs)("label",{className:o("rdg-checkbox-label c1bn88vv7-0-0-beta-40",t.disabled&&"rdg-checkbox-label-disabled c1lwve4p7-0-0-beta-40"),children:[(0,a.jsx)("input",{type:"checkbox",...t,className:"rdg-checkbox-input c1qt073l7-0-0-beta-40",onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)}}),(0,a.jsx)("div",{className:"rdg-checkbox cf71kmq7-0-0-beta-40"})]})}function P(e){try{return e.row[e.column.key]}catch{return null}}let I=(0,r.createContext)(void 0),R=I.Provider;function A(){return(0,r.useContext)(I)}let M=(0,r.createContext)(void 0).Provider,j=(0,r.createContext)(void 0).Provider,N="select-row",L="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function D(e,t){let n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=e.current.querySelector(n);return r?.getBoundingClientRect().width}function F(e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e});let n=(0,r.useCallback)((...e)=>{t.current(...e)},[]);return e?n:e}function U(e){let[t,n]=(0,r.useState)(!1);return t&&!e&&n(!1),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&n(!0)}:void 0}}function B({gridRowStart:e,rows:t,column:n,columnWidth:r,selectedPosition:i,latestDraggedOverRowIdx:s,isCellEditable:u,onRowsChange:l,onFill:c,onClick:d,setDragging:f,setDraggedOverRowIdx:h}){let{idx:p,rowIdx:v}=i;function g(e,r){let i=t[v],o=[...t],a=[];for(let s=e;s<r;s++)if(u({rowIdx:s,idx:p})){let e=c({columnKey:n.key,sourceRow:i,targetRow:t[s]});e!==t[s]&&(o[s]=e,a.push(s))}a.length>0&&l?.(o,{indexes:a,column:n})}let y=n.colSpan?.({type:"ROW",row:t[v]})??1,b=m(n,y);return(0,a.jsx)("div",{style:{...b,gridRowStart:e,insetInlineStart:b.insetInlineStart&&"number"==typeof r?`calc(${b.insetInlineStart} + ${r}px - var(--rdg-drag-handle-size))`:void 0},className:o("rdg-cell-drag-handle c1w9bbhr7-0-0-beta-40",n.frozen&&"c1creorc7-0-0-beta-40"),onClick:d,onMouseDown:function(e){function t(e){1!==e.buttons&&n()}function n(){window.removeEventListener("mouseover",t),window.removeEventListener("mouseup",n),f(!1),function(){let e=s.current;void 0!==e&&(g(v<e?v+1:e,v<e?e+1:v),h(void 0))}()}e.preventDefault(),1===e.buttons&&(f(!0),window.addEventListener("mouseover",t),window.addEventListener("mouseup",n))},onDoubleClick:function(e){e.stopPropagation(),g(v+1,t.length)}})}function V({column:e,colSpan:t,row:n,rowIdx:i,onRowChange:o,closeEditor:s,onKeyDown:u,navigate:l}){let d=(0,r.useRef)(),f=e.editorOptions?.commitOnOutsideClick!==!1,h=F(()=>{v(!0,!1)});function p(){cancelAnimationFrame(d.current)}function v(e=!1,t=!0){e?o(n,!0,t):s(t)}function g(e,t=!1){o(e,t,t)}(0,r.useEffect)(()=>{if(f)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),p()};function e(){d.current=requestAnimationFrame(h)}},[f,h]);let{cellClass:b}=e,w=y(e,"rdg-editor-container","function"==typeof b?b(n):b,!e.editorOptions?.displayCellContent&&"cis5rrm7-0-0-beta-40");return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:w,style:m(e,t),onKeyDown:function(t){if(u){let r=c(t);if(u({mode:"EDIT",row:n,column:e,rowIdx:i,navigate(){l(t)},onClose:v},r),r.isGridDefaultPrevented())return}"Escape"===t.key?v():"Enter"===t.key?v(!0):function({key:e,target:t}){return!!("Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))&&t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1}(t)&&l(t)},onMouseDownCapture:p,children:null!=e.renderEditCell&&(0,a.jsxs)(a.Fragment,{children:[e.renderEditCell({column:e,row:n,onRowChange:g,onClose:v}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,isCellEditable:!0,tabIndex:-1,onRowChange:g})]})})}function q({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){let{tabIndex:i,onFocus:s}=U(n),{colSpan:u}=e,l=O(e,t),c=e.idx+1;return(0,a.jsx)("div",{role:"columnheader","aria-colindex":c,"aria-colspan":u,"aria-rowspan":l,"aria-selected":n,tabIndex:i,className:o(p,e.headerCellClass),style:{...g(e,t,l),gridColumnStart:c,gridColumnEnd:c+u},onFocus:s,onClick:function(){r({idx:e.idx,rowIdx:t})},children:e.name})}function z({column:e,sortDirection:t,priority:n}){return e.sortable?(0,a.jsx)(W,{sortDirection:t,priority:n,children:e.name}):e.name}function W({sortDirection:e,priority:t,children:n}){let r=A().renderSortStatus;return(0,a.jsxs)("span",{className:"h44jtk67-0-0-beta-40",children:[(0,a.jsx)("span",{className:"rdg-header-sort-name hcgkhxz7-0-0-beta-40",children:n}),(0,a.jsx)("span",{children:r({sortDirection:e,priority:t})})]})}function $({column:e,colSpan:t,rowIdx:n,isCellSelected:i,onColumnResize:o,onColumnsReorder:s,sortColumns:l,onSortColumnsChange:c,selectCell:d,shouldFocusGrid:f,direction:h,dragDropKey:p}){let v;let[b,w]=(0,r.useState)(!1),[x,S]=(0,r.useState)(!1),E="rtl"===h,_=O(e,n),{tabIndex:k,childTabIndex:T,onFocus:P}=U(i),I=l?.findIndex(t=>t.columnKey===e.key),R=void 0!==I&&I>-1?l[I]:void 0,A=R?.direction,M=void 0!==R&&l.length>1?I+1:void 0,j=A&&!M?"ASC"===A?"ascending":"descending":void 0,{sortable:N,resizable:L,draggable:D}=e,F=y(e,e.headerCellClass,N&&"c6l2wv17-0-0-beta-40",L&&"rdg-cell-resizable c1kqdw7y7-0-0-beta-40",D&&"rdg-cell-draggable",b&&"rdg-cell-dragging c1bezg5o7-0-0-beta-40",x&&"rdg-cell-drag-over c1vc96037-0-0-beta-40"),B=e.renderHeaderCell??z;function V(t){if(null==c)return;let{sortDescendingFirst:n}=e;if(void 0===R){let r={columnKey:e.key,direction:n?"DESC":"ASC"};c(l&&t?[...l,r]:[r])}else{let r;if((!0===n&&"DESC"===A||!0!==n&&"ASC"===A)&&(r={columnKey:e.key,direction:"ASC"===A?"DESC":"ASC"}),t){let e=[...l];r?e[I]=r:e.splice(I,1),c(e)}else c(r?[r]:[])}}return D&&(v={draggable:!0,onDragStart:function(t){t.dataTransfer.setData(p,e.key),t.dataTransfer.dropEffect="move",w(!0)},onDragEnd:function(){w(!1)},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){G(e)&&S(!0)},onDragLeave:function(e){G(e)&&S(!1)},onDrop:function(t){if(S(!1),t.dataTransfer.types.includes(p)){let n=t.dataTransfer.getData(p);n!==e.key&&(t.preventDefault(),s?.(n,e.key))}}}),(0,a.jsxs)("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":_,"aria-selected":i,"aria-sort":j,tabIndex:f?0:k,className:F,style:{...g(e,n,_),...m(e,t)},onFocus:function(e){P?.(e),f&&d({idx:0,rowIdx:n})},onClick:function(t){d({idx:e.idx,rowIdx:n}),N&&V(t.ctrlKey||t.metaKey)},onKeyDown:N?function(e){(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),V(e.ctrlKey||e.metaKey))}:void 0,...v,children:[B({column:e,sortDirection:A,priority:M,tabIndex:T}),L&&(0,a.jsx)("div",{className:"r1y6ywlx7-0-0-beta-40",onClick:u,onDoubleClick:function(){o(e,"max-content")},onPointerDown:function(t){if("mouse"===t.pointerType&&1!==t.buttons)return;let{currentTarget:n,pointerId:r}=t,i=n.parentElement,{right:a,left:s}=i.getBoundingClientRect(),u=E?t.clientX-s:a-t.clientX;function l(t){t.preventDefault();let{right:n,left:r}=i.getBoundingClientRect(),a=E?n+u-t.clientX:t.clientX+u-r;a>0&&o(e,C(a,e))}n.setPointerCapture(r),n.addEventListener("pointermove",l),n.addEventListener("lostpointercapture",function e(){n.removeEventListener("pointermove",l),n.removeEventListener("lostpointercapture",e)})}})]})}function G(e){let t=e.relatedTarget;return!e.currentTarget.contains(t)}let H="rdg-row r1upfr807-0-0-beta-40",Z="rdg-row-selected",K="rdg-header-row h10tskcx7-0-0-beta-40",X=(0,r.memo)(function({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:i,sortColumns:u,onSortColumnsChange:l,lastFrozenColumnIndex:c,selectedCellIdx:d,selectCell:f,shouldFocusGrid:h,direction:p}){let v=(0,r.useId)(),g=[];for(let r=0;r<t.length;r++){let o=t[r],m=s(o,c,{type:"HEADER"});void 0!==m&&(r+=m-1),g.push((0,a.jsx)($,{column:o,colSpan:m,rowIdx:e,isCellSelected:d===o.idx,onColumnResize:n,onColumnsReorder:i,onSortColumnsChange:l,sortColumns:u,selectCell:f,shouldFocusGrid:h&&0===r,direction:p,dragDropKey:v},o.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:o(K,-1===d&&Z),children:g})}),J=(0,r.memo)(function({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:i}){let o=[],s=new Set;for(let u of n){let{parent:n}=u;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!s.has(n)){s.add(n);let{idx:t}=n;o.push((0,a.jsx)(q,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:i},t))}}}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:K,children:o})}),Y=(0,r.memo)(function({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:s,onClick:u,onDoubleClick:l,onContextMenu:d,onRowChange:f,selectCell:p,...v}){let{tabIndex:g,childTabIndex:b,onFocus:w}=U(n),{cellClass:x}=e,S=y(e,"function"==typeof x?x(o):x,r&&"rdg-cell-copied c6ra8a37-0-0-beta-40",i&&"rdg-cell-dragged-over cq910m07-0-0-beta-40"),E=h(e,o);function _(t){p({rowIdx:s,idx:e.idx},t)}return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!E||void 0,tabIndex:g,className:S,style:m(e,t),onClick:function(t){if(u){let n=c(t);if(u({row:o,column:e,selectCell:_},n),n.isGridDefaultPrevented())return}_()},onDoubleClick:function(t){if(l){let n=c(t);if(l({row:o,column:e,selectCell:_},n),n.isGridDefaultPrevented())return}_(!0)},onContextMenu:function(t){if(d){let n=c(t);if(d({row:o,column:e,selectCell:_},n),n.isGridDefaultPrevented())return}_()},onFocus:w,...v,children:e.renderCell({column:e,row:o,isCellEditable:E,tabIndex:b,onRowChange:function(t){f(e,t)}})})}),Q=(0,r.memo)((0,r.forwardRef)(function({className:e,rowIdx:t,gridRowStart:n,height:r,selectedCellIdx:i,isRowSelected:u,copiedCellIdx:l,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:f,viewportColumns:h,selectedCellEditor:p,onCellClick:g,onCellDoubleClick:m,onCellContextMenu:y,rowClass:b,setDraggedOverRowIdx:w,onMouseEnter:x,onRowChange:S,selectCell:E,..._},k){let C=F((e,n)=>{S(e,t,n)});e=o(H,`rdg-row-${t%2==0?"even":"odd"}`,b?.(f,t),e,-1===i&&Z);let O=[];for(let e=0;e<h.length;e++){let n=h[e],{idx:r}=n,o=s(n,d,{type:"ROW",row:f});void 0!==o&&(e+=o-1);let u=i===r;u&&p?O.push(p):O.push((0,a.jsx)(Y,{column:n,colSpan:o,row:f,rowIdx:t,isCopied:l===r,isDraggedOver:c===r,isCellSelected:u,onClick:g,onDoubleClick:m,onContextMenu:y,onRowChange:C,selectCell:E},n.key))}return(0,a.jsx)(M,{value:u,children:(0,a.jsx)("div",{role:"row",ref:k,className:e,onMouseEnter:function(e){w?.(t),x?.(e)},style:v(n,r),..._,children:O})})}));function ee(e,t){return(0,a.jsx)(Q,{...t},e)}function et({scrollToPosition:{idx:e,rowIdx:t},gridElement:n,setScrollToCellPosition:i}){let o=(0,r.useRef)(null);return L(()=>{l(o.current)}),L(()=>{let e=new IntersectionObserver(function(){i(null)},{root:n,threshold:1});return e.observe(o.current),()=>{e.disconnect()}},[n,i]),(0,a.jsx)("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function en({sortDirection:e,priority:t}){return(0,a.jsxs)(a.Fragment,{children:[function({sortDirection:e}){return void 0===e?null:(0,a.jsx)("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a3ejtar7-0-0-beta-40","aria-hidden":!0,children:(0,a.jsx)("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}({sortDirection:e}),function({priority:e}){return e}({priority:t})]})}let er=(0,r.memo)(function({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){let{tabIndex:s,childTabIndex:u,onFocus:l}=U(i),{summaryCellClass:c}=e,d=y(e,"s8wc6fl7-0-0-beta-40","function"==typeof c?c(n):c);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":i,tabIndex:s,className:d,style:m(e,t),onClick:function(){o({rowIdx:r,idx:e.idx})},onFocus:l,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:u})})}),ei=(0,r.memo)(function({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:i,bottom:u,lastFrozenColumnIndex:l,selectedCellIdx:c,isTop:d,showBorder:f,selectCell:h,"aria-rowindex":p}){let g=[];for(let t=0;t<r.length;t++){let i=r[t],o=s(i,l,{type:"SUMMARY",row:n});void 0!==o&&(t+=o-1);let u=c===i.idx;g.push((0,a.jsx)(er,{column:i,colSpan:o,row:n,rowIdx:e,isCellSelected:u,selectCell:h},i.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":p,className:o(H,`rdg-row-${e%2==0?"even":"odd"}`,"rdg-summary-row skuhp557-0-0-beta-40",d?["rdg-top-summary-row tf8l5ub7-0-0-beta-40",f&&"tb9ughf7-0-0-beta-40"]:["rdg-bottom-summary-row",f&&"b1yssfnt7-0-0-beta-40"],-1===c&&Z),style:{...v(t),"--rdg-summary-row-top":void 0!==i?`${i}px`:void 0,"--rdg-summary-row-bottom":void 0!==u?`${u}px`:void 0},children:g})});function eo(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function ea(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}let es=(0,r.forwardRef)(function(e,t){let{columns:n,rows:u,topSummaryRows:p,bottomSummaryRows:v,rowKeyGetter:g,onRowsChange:m,rowHeight:y,headerRowHeight:x,summaryRowHeight:O,selectedRows:I,onSelectedRowsChange:U,sortColumns:q,onSortColumnsChange:z,defaultColumnOptions:W,onCellClick:$,onCellDoubleClick:G,onCellContextMenu:H,onCellKeyDown:Z,onSelectedCellChange:K,onScroll:Y,onColumnResize:Q,onColumnsReorder:er,onFill:es,onCopy:eu,onPaste:el,enableVirtualization:ec,renderers:ed,className:ef,style:eh,rowClass:ep,direction:ev,role:eg,"aria-label":em,"aria-labelledby":ey,"aria-describedby":eb,"aria-rowcount":ew,"data-testid":ex}=e,eS=A(),eE=eg??"grid",e_=y??35,ek=x??("number"==typeof e_?e_:35),eC=O??("number"==typeof e_?e_:35),eO=ed?.renderRow??eS?.renderRow??ee,eT=ed?.renderSortStatus??eS?.renderSortStatus??en,eP=ed?.renderCheckbox??eS?.renderCheckbox??T,eI=ed?.noRowsFallback??eS?.noRowsFallback,eR=ec??!0,eA=ev??"ltr",[eM,ej]=(0,r.useState)(0),[eN,eL]=(0,r.useState)(0),[eD,eF]=(0,r.useState)(()=>new Map),[eU,eB]=(0,r.useState)(()=>new Map),[eV,eq]=(0,r.useState)(null),[ez,eW]=(0,r.useState)(!1),[e$,eG]=(0,r.useState)(void 0),[eH,eZ]=(0,r.useState)(null),eK=(0,r.useCallback)(e=>eD.get(e.key)??eU.get(e.key)??e.width,[eU,eD]),[eX,eJ,eY]=function(){let e=(0,r.useRef)(null),[t,n]=(0,r.useState)(1),[o,a]=(0,r.useState)(1);return L(()=>{let{ResizeObserver:t}=window;if(null==t)return;let{clientWidth:r,clientHeight:o,offsetWidth:s,offsetHeight:u}=e.current,{width:l,height:c}=e.current.getBoundingClientRect();n(l-s+r),a(c-u+o);let d=new t(e=>{let t=e[0].contentBoxSize[0];(0,i.flushSync)(()=>{n(t.inlineSize),a(t.blockSize)})});return d.observe(e.current),()=>{d.disconnect()}},[]),[e,t,o]}(),{columns:eQ,colSpanColumns:e0,lastFrozenColumnIndex:e1,headerRowsCount:e2,colOverscanStartIdx:e5,colOverscanEndIdx:e4,templateColumns:e3,layoutCssVars:e6,totalFrozenColumnWidth:e8}=function({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:i,scrollLeft:o,enableVirtualization:a}){let s=t?.width??"auto",u=t?.minWidth??50,l=t?.maxWidth??void 0,c=t?.renderCell??P,d=t?.sortable??!1,f=t?.resizable??!1,h=t?.draggable??!1,{columns:p,colSpanColumns:v,lastFrozenColumnIndex:g,headerRowsCount:m}=(0,r.useMemo)(()=>{let t=-1,n=1,r=[];!function e(i,o,a){for(let p of i){if("children"in p){let t={name:p.name,parent:a,idx:-1,colSpan:0,level:0,headerCellClass:p.headerCellClass};e(p.children,o+1,t);continue}let i=p.frozen??!1,v={...p,parent:a,idx:0,level:0,frozen:i,isLastFrozenColumn:!1,width:p.width??s,minWidth:p.minWidth??u,maxWidth:p.maxWidth??l,sortable:p.sortable??d,resizable:p.resizable??f,draggable:p.draggable??h,renderCell:p.renderCell??c};r.push(v),i&&t++,o>n&&(n=o)}}(e,1),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===N?-1:n===N?1:t?r?0:-1:r?1:0);let i=[];return r.forEach((e,t)=>{e.idx=t,function e(t,n,r){if(r<t.level&&(t.level=r),void 0!==t.parent){let{parent:i}=t;-1===i.idx&&(i.idx=n),i.colSpan+=1,e(i,n,r-1)}}(e,t,0),null!=e.colSpan&&i.push(e)}),-1!==t&&(r[t].isLastFrozenColumn=!0),{columns:r,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:n}},[e,s,u,l,c,f,d,h]),{templateColumns:y,layoutCssVars:x,totalFrozenColumnWidth:S,columnMetrics:E}=(0,r.useMemo)(()=>{let e=new Map,t=0,r=0,i=[];for(let r of p){let o=n(r);o="number"==typeof o?C(o,r):r.minWidth,i.push(`${o}px`),e.set(r,{width:o,left:t}),t+=o}if(-1!==g){let t=e.get(p[g]);r=t.left+t.width}let o={};for(let t=0;t<=g;t++){let n=p[t];o[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:i,layoutCssVars:o,totalFrozenColumnWidth:r,columnMetrics:e}},[n,p,g]),[_,k]=(0,r.useMemo)(()=>{if(!a)return[0,p.length-1];let e=o+S,t=o+i,n=p.length-1,r=b(g+1,n);if(e>=t)return[r,r];let s=r;for(;s<n;){let{left:t,width:n}=E.get(p[s]);if(t+n>e)break;s++}let u=s;for(;u<n;){let{left:e,width:n}=E.get(p[u]);if(e+n>=t)break;u++}return[w(r,s-1),b(n,u+1)]},[E,p,g,o,S,i,a]);return{columns:p,colSpanColumns:v,colOverscanStartIdx:_,colOverscanEndIdx:k,templateColumns:y,layoutCssVars:x,headerRowsCount:m,lastFrozenColumnIndex:g,totalFrozenColumnWidth:S}}({rawColumns:n,defaultColumnOptions:W,getColumnWidth:eK,scrollLeft:eN,viewportWidth:eJ,enableVirtualization:eR}),e7=p?.length??0,e9=v?.length??0,te=e7+e9,tt=e2+e7,tn=e2-1,tr=-tt,ti=tr+tn,to=u.length+e9-1,[ta,ts]=(0,r.useState)(()=>({idx:-1,rowIdx:tr-1,mode:"SELECT"})),tu=(0,r.useRef)(ta),tl=(0,r.useRef)(e$),tc=(0,r.useRef)(-1),td=(0,r.useRef)(null),tf=(0,r.useRef)(!1),th="treegrid"===eE,tp=e2*ek,tv=eY-tp-te*eC,tg=null!=I&&null!=U,tm="rtl"===eA,ty=tm?"ArrowRight":"ArrowLeft",tb=tm?"ArrowLeft":"ArrowRight",tw=ew??e2+u.length+te,tx=(0,r.useMemo)(()=>({renderCheckbox:eP,renderSortStatus:eT}),[eP,eT]),tS=(0,r.useMemo)(()=>{let{length:e}=u;return 0!==e&&null!=I&&null!=g&&I.size>=e&&u.every(e=>I.has(g(e)))},[u,I,g]),{rowOverscanStartIdx:tE,rowOverscanEndIdx:t_,totalRowHeight:tk,gridTemplateRows:tC,getRowTop:tO,getRowHeight:tT,findRowIdx:tP}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:i,enableVirtualization:o}){let{totalRowHeight:a,gridTemplateRows:s,getRowTop:u,getRowHeight:l,findRowIdx:c}=(0,r.useMemo)(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>S(e/t)};let n=0,r=" ",i=e.map(e=>{let i=t(e),o={top:n,height:i};return r+=`${i}px `,n+=i,o}),o=t=>w(0,b(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:r,getRowTop:e=>i[o(e)].top,getRowHeight:e=>i[o(e)].height,findRowIdx(e){let t=0,n=i.length-1;for(;t<=n;){let r=t+S((n-t)/2),o=i[r].top;if(o===e)return r;if(o<e?t=r+1:o>e&&(n=r-1),t>n)return n}return 0}}},[t,e]),d=0,f=e.length-1;if(o){let t=c(i),r=c(i+n);d=w(0,t-4),f=b(e.length-1,r+4)}return{rowOverscanStartIdx:d,rowOverscanEndIdx:f,totalRowHeight:a,gridTemplateRows:s,getRowTop:u,getRowHeight:l,findRowIdx:c}}({rows:u,rowHeight:e_,clientHeight:tv,scrollTop:eM,enableVirtualization:eR}),tI=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:i,bottomSummaryRows:o,colOverscanStartIdx:a,colOverscanEndIdx:u,lastFrozenColumnIndex:l,rowOverscanStartIdx:c,rowOverscanEndIdx:d}){let f=(0,r.useMemo)(()=>{if(0===a)return 0;let e=a,r=(t,n)=>void 0!==n&&t+n>a&&(e=t,!0);for(let a of t){let t=a.idx;if(t>=e||r(t,s(a,l,{type:"HEADER"})))break;for(let e=c;e<=d&&!r(t,s(a,l,{type:"ROW",row:n[e]}));e++);if(null!=i){for(let e of i)if(r(t,s(a,l,{type:"SUMMARY",row:e})))break}if(null!=o){for(let e of o)if(r(t,s(a,l,{type:"SUMMARY",row:e})))break}}return e},[c,d,n,i,o,a,l,t]);return(0,r.useMemo)(()=>{let t=[];for(let n=0;n<=u;n++){let r=e[n];(!(n<f)||r.frozen)&&t.push(r)}return t},[f,u,e])}({columns:eQ,colSpanColumns:e0,colOverscanStartIdx:e5,colOverscanEndIdx:e4,lastFrozenColumnIndex:e1,rowOverscanStartIdx:tE,rowOverscanEndIdx:t_,rows:u,topSummaryRows:p,bottomSummaryRows:v}),{gridTemplateColumns:tR,handleColumnResize:tA}=function(e,t,n,o,a,s,u,l,c,d){let f=(0,r.useRef)(a),h=e.length===t.length,p=h&&a!==f.current,v=[...n],g=[];for(let{key:e,idx:n,width:r}of t)"string"!=typeof r||!p&&u.has(e)||s.has(e)||(v[n]=r,g.push(e));let m=v.join(" ");function y(e){0!==e.length&&c(t=>{let n=new Map(t),r=!1;for(let i of e){let e=D(o,i);r||=e!==t.get(i),void 0===e?n.delete(i):n.set(i,e)}return r?n:t})}return L(()=>{f.current=a,y(g)}),{gridTemplateColumns:m,handleColumnResize:function(e,r){let{key:a}=e,u=[...n],c=[];for(let{key:e,idx:n,width:i}of t)if(a===e){let e="number"==typeof r?`${r}px`:r;u[n]=e}else h&&"string"==typeof i&&!s.has(e)&&(u[n]=i,c.push(e));o.current.style.gridTemplateColumns=u.join(" ");let f="number"==typeof r?r:D(o,a);(0,i.flushSync)(()=>{l(e=>{let t=new Map(e);return t.set(a,f),t}),y(c)}),d?.(e.idx,f)}}}(eQ,tI,e3,eX,eJ,eD,eU,eF,eB,Q),tM=th?-1:0,tj=eQ.length-1,tN=tY(ta),tL=tQ(ta),tD=F(tA),tF=F(er),tU=F(z),tB=F($),tV=F(G),tq=F(H),tz=F(tZ),tW=F(tK),t$=F(t1),tG=F(({idx:e,rowIdx:t})=>{t1({rowIdx:tr+t-1,idx:e})});L(()=>{if(!tN||ea(ta,tu.current)){tu.current=ta;return}tu.current=ta,-1===ta.idx&&(td.current.focus({preventScroll:!0}),l(td.current))}),L(()=>{tf.current&&(tf.current=!1,t5())}),(0,r.useImperativeHandle)(t,()=>({element:eX.current,scrollToCell({idx:e,rowIdx:t}){let n=void 0!==e&&e>e1&&e<eQ.length?e:void 0,r=void 0!==t&&tJ(t)?t:void 0;(void 0!==n||void 0!==r)&&eZ({idx:n,rowIdx:r})},selectCell:t1}));let tH=(0,r.useCallback)(e=>{eG(e),tl.current=e},[]);function tZ(e){if(!U)return;if(k(g),"HEADER"===e.type){let t=new Set(I);for(let n of u){let r=g(n);e.checked?t.add(r):t.delete(r)}U(t);return}let{row:t,checked:n,isShiftClick:r}=e,i=new Set(I),o=g(t);if(n){i.add(o);let e=tc.current,n=u.indexOf(t);if(tc.current=n,r&&-1!==e&&e!==n){let t=E(n-e);for(let r=e+t;r!==n;r+=t){let e=u[r];i.add(g(e))}}}else i.delete(o),tc.current=-1;U(i)}function tK(e,t,n){if("function"!=typeof m||n===u[t])return;let r=[...u];r[t]=n,m(r,{indexes:[t],column:e})}function tX(){"EDIT"===ta.mode&&tK(eQ[ta.idx],ta.rowIdx,ta.row)}function tJ(e){return e>=0&&e<u.length}function tY({idx:e,rowIdx:t}){var n;return t>=tr&&t<=to&&(n=e)>=tM&&n<=tj}function tQ({idx:e,rowIdx:t}){var n;return tJ(t)&&(n=e)>=tM&&n<=tj}function t0(e){return tQ(e)&&function({selectedPosition:e,columns:t,rows:n}){return h(t[e.idx],n[e.rowIdx])}({columns:eQ,rows:u,selectedPosition:e})}function t1(e,t){if(!tY(e))return;tX();let n=u[e.rowIdx],r=ea(ta,e);t&&t0(e)?ts({...e,mode:"EDIT",row:n,originalRow:n}):r?l(eo(eX.current)):(tf.current=!0,ts({...e,mode:"SELECT"})),K&&!r&&K({rowIdx:e.rowIdx,row:n,column:eQ[e.idx]})}function t2(e){let{key:t,shiftKey:n}=e,r="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?0===i&&r===t:i===e&&r===n}({shiftKey:n,maxColIdx:tj,minRowIdx:tr,maxRowIdx:to,selectedPosition:ta})){tX();return}r="CHANGE_ROW"}e.preventDefault();let i=function(e,t,n){let{idx:r,rowIdx:i}=ta,o=tN&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case ty:return{idx:r-1,rowIdx:i};case tb:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":if(o)return{idx:r,rowIdx:tr};return{idx:0,rowIdx:t?tr:i};case"End":if(o)return{idx:r,rowIdx:to};return{idx:tj,rowIdx:t?to:i};case"PageUp":{if(ta.rowIdx===tr)return ta;let e=tO(i)+tT(i)-tv;return{idx:r,rowIdx:e>0?tP(e):0}}case"PageDown":{if(ta.rowIdx>=u.length)return ta;let e=tO(i)+tv;return{idx:r,rowIdx:e<tk?tP(e):u.length-1}}default:return ta}}(t,f(e),n);ea(ta,i)||t1(function({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:i,rows:o,topSummaryRows:a,bottomSummaryRows:u,minRowIdx:l,mainHeaderRowIdx:c,maxRowIdx:d,currentPosition:{idx:f,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:v,isCellWithinBounds:g}){let{idx:m,rowIdx:y}=p,b=r.length,w=e=>{for(let t of i){let n=t.idx;if(n>m)break;let r=function({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:a}){let u=t?.length??0;return r===i?s(a,o,{type:"HEADER"}):t&&r>i&&r<=u+i?s(a,o,{type:"SUMMARY",row:t[r+u]}):r>=0&&r<e.length?s(a,o,{type:"ROW",row:e[r]}):n?s(a,o,{type:"SUMMARY",row:n[r-e.length]}):void 0}({rows:o,topSummaryRows:a,bottomSummaryRows:u,rowIdx:y,mainHeaderRowIdx:c,lastFrozenColumnIndex:v,column:t});if(r&&m>n&&m<r+n){m=n+(e?r:0);break}}},x=e=>e.level+c;if(g(p)&&(w(t),y<c&&(()=>{if(t){let e=r[m].parent;for(;void 0!==e;){let t=x(e);if(y===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[m].parent,t=!1;for(;void 0!==e;){let n=x(e);if(y>=n){m=e.idx,y=n,t=!0;break}e=e.parent}t||(m=f,y=h)}})()),"CHANGE_ROW"===n){let e=m===b,t=-1===m;e?y!==d&&(m=0,y+=1):t&&(y!==l&&(y-=1,m=b-1),w(!1))}if(y<c){let e=r[m].parent,t=y;for(y=c;void 0!==e;){let n=x(e);n>=t&&(y=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:y}}({moveUp:"ArrowUp"===t,moveNext:t===tb||"Tab"===t&&!n,columns:eQ,colSpanColumns:e0,rows:u,topSummaryRows:p,bottomSummaryRows:v,minRowIdx:tr,mainHeaderRowIdx:ti,maxRowIdx:to,lastFrozenColumnIndex:e1,cellNavigationMode:r,currentPosition:ta,nextPosition:i,isCellWithinBounds:tY}))}function t5(){let e=eo(eX.current);null!==e&&(l(e),(e.querySelector('[tabindex="0"]')??e).focus({preventScroll:!0}))}function t4(e){let t=-1===ta.idx?void 0:eQ[ta.idx];return void 0===t||ta.rowIdx!==e||tI.includes(t)?tI:ta.idx>e4?[...tI,t]:[...tI.slice(0,e1+1),t,...tI.slice(e1+1)]}(ta.idx>tj||ta.rowIdx>to)&&(ts({idx:-1,rowIdx:tr-1,mode:"SELECT"}),tH(void 0));let t3=`repeat(${e2}, ${ek}px)`;e7>0&&(t3+=` repeat(${e7}, ${eC}px)`),u.length>0&&(t3+=tC),e9>0&&(t3+=` repeat(${e9}, ${eC}px)`);let t6=-1===ta.idx&&ta.rowIdx!==tr-1;return(0,a.jsxs)("div",{role:eE,"aria-label":em,"aria-labelledby":ey,"aria-describedby":eb,"aria-multiselectable":!!tg||void 0,"aria-colcount":eQ.length,"aria-rowcount":tw,className:o("rdg rnvodz57-0-0-beta-40",ef,ez&&"rdg-viewport-dragging vlqv91k7-0-0-beta-40"),style:{...eh,scrollPaddingInlineStart:ta.idx>e1||eH?.idx!==void 0?`${e8}px`:void 0,scrollPaddingBlock:tJ(ta.rowIdx)||eH?.rowIdx!==void 0?`${tp+e7*eC}px ${e9*eC}px`:void 0,gridTemplateColumns:tR,gridTemplateRows:t3,"--rdg-header-row-height":`${ek}px`,"--rdg-summary-row-height":`${eC}px`,"--rdg-sign":tm?-1:1,...e6},dir:eA,ref:eX,onScroll:function(e){let{scrollTop:t,scrollLeft:n}=e.currentTarget;(0,i.flushSync)(()=>{ej(t),eL(_(n))}),Y?.(e)},onKeyDown:function(e){let{idx:t,rowIdx:n,mode:r}=ta;if("EDIT"===r)return;if(Z&&tJ(n)){let r=u[n],i=c(e);if(Z({mode:"SELECT",row:r,column:eQ[t],rowIdx:n,selectCell:t1},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;let i=null!==e.target.closest(".rdg-cell"),o=th&&e.target===td.current;if(!i&&!o)return;let{keyCode:a}=e;if(tL&&(null!=el||null!=eu)&&f(e)){if(67===a){!function(){let{idx:e,rowIdx:t}=ta,n=u[t],r=eQ[e].key;eq({row:n,columnKey:r}),eu?.({sourceRow:n,sourceColumnKey:r})}();return}if(86===a){!function(){if(!el||!m||null===eV||!t0(ta))return;let{idx:e,rowIdx:t}=ta,n=eQ[e],r=u[t],i=el({sourceRow:eV.row,sourceColumnKey:eV.columnKey,targetRow:r,targetColumnKey:n.key});tK(n,t,i)}();return}}switch(e.key){case"Escape":eq(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":t2(e);break;default:!function(e){if(!tL)return;let t=u[ta.rowIdx],{key:n,shiftKey:r}=e;if(tg&&r&&" "===n){k(g);let n=g(t);tZ({type:"ROW",row:t,checked:!I.has(n),isShiftClick:!1}),e.preventDefault();return}t0(ta)&&!d.has(e.key)&&ts(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}(e)}},"data-testid":ex,children:[(0,a.jsx)(R,{value:tx,children:(0,a.jsxs)(j,{value:tz,children:[(0,a.jsxs)(M,{value:tS,children:[Array.from({length:tn},(e,t)=>(0,a.jsx)(J,{rowIdx:t+1,level:-tn+t,columns:t4(tr+t),selectedCellIdx:ta.rowIdx===tr+t?ta.idx:void 0,selectCell:tG},t)),(0,a.jsx)(X,{rowIdx:e2,columns:t4(ti),onColumnResize:tD,onColumnsReorder:tF,sortColumns:q,onSortColumnsChange:tU,lastFrozenColumnIndex:e1,selectedCellIdx:ta.rowIdx===ti?ta.idx:void 0,selectCell:tG,shouldFocusGrid:!tN,direction:eA})]}),0===u.length&&eI?eI:(0,a.jsxs)(a.Fragment,{children:[p?.map((e,t)=>{let n=e2+1+t,r=ti+1+t,i=ta.rowIdx===r;return a.jsx(ei,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:tp+eC*t,bottom:void 0,viewportColumns:t4(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ta.idx:void 0,isTop:!0,showBorder:t===e7-1,selectCell:t$},t)}),function(){let e=[],{idx:t,rowIdx:n}=ta,r=tL&&n<tE?tE-1:tE,o=tL&&n>t_?t_+1:t_;for(let l=r;l<=o;l++){let r=l===tE-1||l===t_+1,o=r?n:l,c=tI,d=-1===t?void 0:eQ[t];void 0!==d&&(c=r?[d]:t4(o));let f=u[o],h=tt+o+1,p=o,v=!1;"function"==typeof g&&(p=g(f),v=I?.has(p)??!1),e.push(eO(p,{"aria-rowindex":tt+o+1,"aria-selected":tg?v:void 0,rowIdx:o,row:f,viewportColumns:c,isRowSelected:v,onCellClick:tB,onCellDoubleClick:tV,onCellContextMenu:tq,rowClass:ep,gridRowStart:h,height:tT(o),copiedCellIdx:null!==eV&&eV.row===f?eQ.findIndex(e=>e.key===eV.columnKey):void 0,selectedCellIdx:n===o?t:void 0,draggedOverCellIdx:function(e){if(void 0===e$)return;let{rowIdx:t}=ta;return(t<e$?t<e&&e<=e$:t>e&&e>=e$)?ta.idx:void 0}(o),setDraggedOverRowIdx:ez?tH:void 0,lastFrozenColumnIndex:e1,onRowChange:tW,selectCell:t$,selectedCellEditor:function(e){if(ta.rowIdx!==e||"SELECT"===ta.mode)return;let{idx:t,row:n}=ta,r=eQ[t],o=s(r,e1,{type:"ROW",row:n}),l=e=>{tf.current=e,ts(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))};return u[ta.rowIdx]!==ta.originalRow&&l(!1),(0,a.jsx)(V,{column:r,colSpan:o,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?(0,i.flushSync)(()=>{tK(r,ta.rowIdx,e),l(n)}):ts(t=>({...t,row:e}))},closeEditor:l,onKeyDown:Z,navigate:t2},r.key)}(o)}))}return e}(),v?.map((e,t)=>{let n=tt+u.length+t+1,r=u.length+t,i=ta.rowIdx===r,o=tv>tk?eY-eC*(v.length-t):void 0,s=void 0===o?eC*(v.length-1-t):void 0;return a.jsx(ei,{"aria-rowindex":tw-e9+t+1,rowIdx:r,gridRowStart:n,row:e,top:o,bottom:s,viewportColumns:t4(r),lastFrozenColumnIndex:e1,selectedCellIdx:i?ta.idx:void 0,isTop:!1,showBorder:0===t,selectCell:t$},t)})]})]})}),function(){if(null==es||"EDIT"===ta.mode||!tQ(ta))return;let e=eQ[ta.idx];if(null==e.renderEditCell||!1===e.editable)return;let t=eK(e);return(0,a.jsx)(B,{gridRowStart:tt+ta.rowIdx+1,rows:u,column:e,columnWidth:t,selectedPosition:ta,isCellEditable:t0,latestDraggedOverRowIdx:tl,onRowsChange:m,onClick:t5,onFill:es,setDragging:eW,setDraggedOverRowIdx:tH})}(),tI.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>(0,a.jsx)("div",{className:"mlln6zg7-0-0-beta-40",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e)),th&&(0,a.jsx)("div",{ref:td,tabIndex:t6?0:-1,className:o("f1lsfrzw7-0-0-beta-40",t6&&["r190mhd37-0-0-beta-40",-1!==e1&&"r139qu9m7-0-0-beta-40"],!tJ(ta.rowIdx)&&"f1cte0lg7-0-0-beta-40"),style:{gridRowStart:ta.rowIdx+tt+1}}),null!==eH&&(0,a.jsx)(et,{scrollToPosition:eH,setScrollToCellPosition:eZ,gridElement:eX.current})]})});function eu(e){e?.focus(),e?.select()}function el({row:e,column:t,onRowChange:n,onClose:r}){return(0,a.jsx)("input",{className:"rdg-text-editor t7vyx3i7-0-0-beta-40",ref:eu,value:e[t.key],onChange:r=>n({...e,[t.key]:r.target.value}),onBlur:()=>r(!0,!1)})}},13752:function(e,t,n){"use strict";n.d(t,{CR:function(){return c},FC:function(){return h},Jh:function(){return u},KL:function(){return p},XA:function(){return l},ZT:function(){return i},_T:function(){return a},ev:function(){return d},mG:function(){return s},pi:function(){return o},qq:function(){return f}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function d(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function h(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=i[e](t)).value instanceof f?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function p(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=l(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError},93737:function(e,t,n){"use strict";n.d(t,{l_:function(){return w},AW:function(){return m},F0:function(){return v},rs:function(){return b},TH:function(){return f},yj:function(){return h}});var r=n(84647);let i=e=>e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),o=(e,t,n)=>{let r=e?"((?:[^\\/]+?)(?:\\/(?:[^\\/]+?))*)":"([^\\/]+?)";return t&&n&&(r="(?:\\/"+r+")"),r+(t?"?":"")},a=e=>{let t=/:([A-Za-z0-9_]+)([?+*]?)/g,n=null,r=0,a=[],s="";for(;null!==(n=t.exec(e));){let[u,l,c]=n,d="+"===c||"*"===c,f="?"===c||"*"===c,h=f&&"/"===e[n.index-1]?1:0,p=e.substring(r,n.index-h);a.push({name:l}),r=t.lastIndex,s+=i(p)+o(d,f,h)}return{keys:a,regexp:RegExp("^"+(s+=i(e.substring(r)))+"(?:\\/)?$","i")}};var s=n(31420);let u={hook:r.ZP,matcher:function(e=a){let t={},n=n=>t[n]||(t[n]=e(n));return(e,t)=>{let{regexp:r,keys:i}=n(e||""),o=r.exec(t);return o?[!0,i.reduce((e,t,n)=>(e[t.name]=o[n+1],e),{})]:[!1,null]}}(),base:""},l=(0,s.kr)(u),c=()=>(0,s.qp)(l),d=e=>e.hook(e),f=()=>d(c()),h=e=>{let t=c(),[n]=d(t);return t.matcher(e,n)},p=(0,s.kr)({params:{}}),v=({hook:e,matcher:t,ssrPath:n,base:r="",parent:i,children:o})=>{let a=(o,a=i||u)=>(o.hook=e||a.hook,o.matcher=t||a.matcher,o.ssrPath=n||a.ssrPath,o.ownBase=r,o.parent=i,o),[c]=(0,s.eJ)(()=>a({get base(){return(c.parent||u).base+c.ownBase}}));return(0,s.NU)(()=>{a(c)}),(0,s.az)(l.Provider,{value:c,children:o})},g=(e,t)=>(0,s.az)(p.Provider,{value:{params:e},children:t}),m=({path:e,match:t,component:n,children:r})=>{let i=h(e),[o,a]=t||i;return o?n?g(a,(0,s.az)(n,{params:a})):g(a,"function"==typeof r?r(a):r):null};(0,s.Gp)((e,t)=>{let n=c(),[,r]=d(n),{to:i,href:o=i,children:a,onClick:u}=e,l=(0,s.zX)(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(u&&u(t),t.defaultPrevented||(t.preventDefault(),r(i||o,e)))}),f={href:"~"===o[0]?o.slice(1):n.base+o,onClick:l,to:null,ref:t},h=(0,s.l$)(a)?a:(0,s.az)("a",e);return(0,s.Tm)(h,f)});let y=e=>Array.isArray(e)?[].concat(...e.map(e=>e&&e.type===s.HY?y(e.props.children):y(e))):[e],b=({children:e,location:t})=>{let n=c(),r=n.matcher,[i]=d(n);for(let n of y(e)){let e=0;if((0,s.l$)(n)&&(e=n.props.path?r(n.props.path,t||i):[!0,{}])[0])return(0,s.Tm)(n,{match:e})}return null},w=e=>{let{to:t,href:n=t}=e,[,r]=f(),i=(0,s.zX)(()=>r(t||n,e));return(0,s.LI)(()=>{i()},[]),null}},31420:function(e,t,n){"use strict";n.d(t,{HY:function(){return r.Fragment},Tm:function(){return r.cloneElement},kr:function(){return r.createContext},az:function(){return r.createElement},Gp:function(){return r.forwardRef},l$:function(){return r.isValidElement},qp:function(){return r.useContext},zX:function(){return f},NU:function(){return d},LI:function(){return c},eJ:function(){return r.useState},$N:function(){return o.useSyncExternalStore}});var r=n(97129),i=n.t(r,2),o=n(86124);let{useEffect:a,useLayoutEffect:s,useRef:u,useInsertionEffect:l}=i,c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s:a,d=l||c,f=e=>{let t=u([e,(...e)=>t[0](...e)]).current;return d(()=>{t[0]=e}),t[1]}},84647:function(e,t,n){"use strict";n.d(t,{ZP:function(){return p},c4:function(){return h},LD:function(){return c}});var r=n(31420);let i=(e="",t=location.pathname)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",o=(e,t="")=>"~"===e[0]?e.slice(1):t+e,a="pushState",s="replaceState",u=["popstate",a,s,"hashchange"],l=e=>{for(let t of u)addEventListener(t,e);return()=>{for(let t of u)removeEventListener(t,e)}},c=(e,t)=>(0,r.$N)(l,e,t),d=()=>location.pathname,f=({ssrPath:e}={})=>c(d,e?()=>e:d),h=(e,{replace:t=!1}={})=>history[t?s:a](null,"",e);var p=(e={})=>[i(e.base,f(e)),(0,r.zX)((t,n)=>h(o(t,e.base),n))];if("undefined"!=typeof history)for(let e of[a,s]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}},67723:function(e,t,n){"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{X:function(){return r}})},38800:function(e,t,n){"use strict";n.d(t,{F:function(){return f},s:function(){return c}});var r=n(97129),i=n(5618);let o=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},a=e=>e?o(e):o,{useDebugValue:s}=r,{useSyncExternalStoreWithSelector:u}=i,l=e=>e;function c(e,t=l,n){let r=u(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}let d=(e,t)=>{let n=a(e),r=(e,r=t)=>c(n,e,r);return Object.assign(r,n),r},f=(e,t)=>e?d(e,t):d}}]);
|