rails_omnibar 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d860d3dad8c472ba1b2ea46adc5b99c22eea4a846ad98ec025d78b36ecede83e
4
- data.tar.gz: fac209673acca1f5102c6162ff1eb597ff6b9d3588987535c991dd17cbd3c40a
3
+ metadata.gz: eb8dc9106768dd42363729701b4590ff5a8f8276d675e5b408e9475d06f1e756
4
+ data.tar.gz: fb4070d55e1ee60265dd7fba81506556b03d974edb6c95a2a9a6d22e4fcca40e
5
5
  SHA512:
6
- metadata.gz: 76cdf9f017b33261eecf4e84c4f00f6dcca277c84f21107073eca5f4e53c50370d33697a7f56db22cb9b8a51645d21c082d94cecb1f21c09b876f3b46a4a855d
7
- data.tar.gz: 6d8bb4548482b948ce79b1f4d38189453b37d5d95ddd8e7cac9c7b095b263c8ae369feb8b8d9a5a8cb57a844a0c9e1bbb34b562ba41f62acb72903e113b05e2c
6
+ metadata.gz: 6b3ca6606749745f045e671efa9119aebcc695dec2c55072bb2042877b402f734d44e6ac89fc30e5a96321a8e6d15188f7ce327d7eb821bba94839e5e48467a9
7
+ data.tar.gz: 365ab2b1d105d7639828ba5bb1cc65c1a339f2ce5450a9740fd00559d7c793fc1d3ee5156924e211fa4e1a34748309e6f602423ea444a51f66ff2ac5c08af3a6
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.8.0] - 2024-07-06
8
+
9
+ ### Added
10
+
11
+ - added support for turbo frames, thanks to @xijo
12
+ - added loading animation for long-running commands
13
+
7
14
  ## [1.7.0] - 2024-07-02
8
15
 
9
16
  ### Added
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see compiled.js.LICENSE.txt */
2
- (()=>{var e={320:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M13.2 2.24a.75.75 0 00.04 1.06l2.1 1.95H6.75a.75.75 0 000 1.5h8.59l-2.1 1.95a.75.75 0 101.02 1.1l3.5-3.25a.75.75 0 000-1.1l-3.5-3.25a.75.75 0 00-1.06.04zm-6.4 8a.75.75 0 00-1.06-.04l-3.5 3.25a.75.75 0 000 1.1l3.5 3.25a.75.75 0 101.02-1.1l-2.1-1.95h8.59a.75.75 0 000-1.5H4.66l2.1-1.95a.75.75 0 00.04-1.06z",clipRule:"evenodd"}))}));e.exports=o},483:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M1 12.5A4.5 4.5 0 005.5 17H15a4 4 0 001.866-7.539 3.504 3.504 0 00-4.504-4.272A4.5 4.5 0 004.06 8.235 4.502 4.502 0 001 12.5z"}))}));e.exports=o},439:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M7.84 1.804A1 1 0 018.82 1h2.36a1 1 0 01.98.804l.331 1.652a6.993 6.993 0 011.929 1.115l1.598-.54a1 1 0 011.186.447l1.18 2.044a1 1 0 01-.205 1.251l-1.267 1.113a7.047 7.047 0 010 2.228l1.267 1.113a1 1 0 01.206 1.25l-1.18 2.045a1 1 0 01-1.187.447l-1.598-.54a6.993 6.993 0 01-1.929 1.115l-.33 1.652a1 1 0 01-.98.804H8.82a1 1 0 01-.98-.804l-.331-1.652a6.993 6.993 0 01-1.929-1.115l-1.598.54a1 1 0 01-1.186-.447l-1.18-2.044a1 1 0 01.205-1.251l1.267-1.114a7.05 7.05 0 010-2.227L1.821 7.773a1 1 0 01-.206-1.25l1.18-2.045a1 1 0 011.187-.447l1.598.54A6.993 6.993 0 017.51 3.456l.33-1.652zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}));e.exports=o},269:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M3.25 3A2.25 2.25 0 001 5.25v9.5A2.25 2.25 0 003.25 17h13.5A2.25 2.25 0 0019 14.75v-9.5A2.25 2.25 0 0016.75 3H3.25zm.943 8.752a.75.75 0 01.055-1.06L6.128 9l-1.88-1.693a.75.75 0 111.004-1.114l2.5 2.25a.75.75 0 010 1.114l-2.5 2.25a.75.75 0 01-1.06-.055zM9.75 10.25a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5h-2.5z",clipRule:"evenodd"}))}));e.exports=o},109:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M3 3.5A1.5 1.5 0 014.5 2h6.879a1.5 1.5 0 011.06.44l4.122 4.12A1.5 1.5 0 0117 7.622V16.5a1.5 1.5 0 01-1.5 1.5h-11A1.5 1.5 0 013 16.5v-13z"}))}));e.exports=o},228:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.293 2.293a1 1 0 011.414 0l7 7A1 1 0 0117 11h-1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-3a1 1 0 00-1-1H9a1 1 0 00-1 1v3a1 1 0 01-1 1H5a1 1 0 01-1-1v-6H3a1 1 0 01-.707-1.707l7-7z",clipRule:"evenodd"}))}));e.exports=o},218:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"}))}));e.exports=o},331:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.94 6.94a.75.75 0 11-1.061-1.061 3 3 0 112.871 5.026v.345a.75.75 0 01-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 108.94 6.94zM10 15a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))}));e.exports=o},358:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M15.98 1.804a1 1 0 00-1.96 0l-.24 1.192a1 1 0 01-.784.785l-1.192.238a1 1 0 000 1.962l1.192.238a1 1 0 01.785.785l.238 1.192a1 1 0 001.962 0l.238-1.192a1 1 0 01.785-.785l1.192-.238a1 1 0 000-1.962l-1.192-.238a1 1 0 01-.785-.785l-.238-1.192zM6.949 5.684a1 1 0 00-1.898 0l-.683 2.051a1 1 0 01-.633.633l-2.051.683a1 1 0 000 1.898l2.051.684a1 1 0 01.633.632l.683 2.051a1 1 0 001.898 0l.683-2.051a1 1 0 01.633-.633l2.051-.683a1 1 0 000-1.898l-2.051-.683a1 1 0 01-.633-.633L6.95 5.684zM13.949 13.684a1 1 0 00-1.898 0l-.184.551a1 1 0 01-.632.633l-.551.183a1 1 0 000 1.898l.551.183a1 1 0 01.633.633l.183.551a1 1 0 001.898 0l.184-.551a1 1 0 01.632-.633l.551-.183a1 1 0 000-1.898l-.551-.184a1 1 0 01-.633-.632l-.183-.551z"}))}));e.exports=o},496:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M10 8a3 3 0 100-6 3 3 0 000 6zM3.465 14.493a1.23 1.23 0 00.41 1.412A9.957 9.957 0 0010 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 00-13.074.003z"}))}));e.exports=o},65:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M1 4.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 2H3.25A2.25 2.25 0 001 4.25zM1 7.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 5H3.25A2.25 2.25 0 001 7.25zM7 8a1 1 0 011 1 2 2 0 104 0 1 1 0 011-1h3.75A2.25 2.25 0 0119 10.25v5.5A2.25 2.25 0 0116.75 18H3.25A2.25 2.25 0 011 15.75v-5.5A2.25 2.25 0 013.25 8H7z"}))}));e.exports=o},505:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"}))}));e.exports=o},875:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},360:function(e,t){var n,r;void 0===(r="function"==typeof(n=e=>{"use strict";var t=(e,t)=>{if(e===x)return x;var n=e.target,r=n.length,o=e._indexes;o=o.slice(0,o.len).sort(((e,t)=>e-t));for(var l="",i=0,a=0,s=!1,u=(e=[],0);u<r;++u){var c=n[u];if(o[a]===u){if(++a,s||(s=!0,e.push(l),l=""),a===o.length){l+=c,e.push(t(l,i++)),l="",e.push(n.substr(u+1));break}}else s&&(s=!1,e.push(t(l,i++)),l="");l+=c}return e},n=e=>{"string"!=typeof e&&(e="");var t=u(e);return{target:e,_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_nextBeginningIndexes:x,_bitflags:t.bitflags,score:x,_indexes:[0],obj:x}},r=e=>{"string"!=typeof e&&(e=""),e=e.trim();var t=u(e),n=[];if(t.containsSpace){var r=e.split(/\s+/);r=[...new Set(r)];for(var o=0;o<r.length;o++)if(""!==r[o]){var l=u(r[o]);n.push({lowerCodes:l.lowerCodes,_lower:r[o].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,bitflags:t.bitflags,containsSpace:t.containsSpace,_lower:t._lower,spaceSearches:n}},o=e=>{if(e.length>999)return n(e);var t=f.get(e);return void 0!==t||(t=n(e),f.set(e,t)),t},l=e=>{if(e.length>999)return r(e);var t=d.get(e);return void 0!==t||(t=r(e),d.set(e,t)),t},i=(e,t,n)=>{var r=[];r.total=t.length;var l=n&&n.limit||m;if(n&&n.key)for(var i=0;i<t.length;i++){var a=t[i];if(f=v(a,n.key)){y(f)||(f=o(f)),f.score=b,f._indexes.len=0;var s=f;if(s={target:s.target,_targetLower:"",_targetLowerCodes:x,_nextBeginningIndexes:x,_bitflags:0,score:f.score,_indexes:x,obj:a},r.push(s),r.length>=l)return r}}else if(n&&n.keys)for(i=0;i<t.length;i++){a=t[i];for(var u=new Array(n.keys.length),c=n.keys.length-1;c>=0;--c)(f=v(a,n.keys[c]))?(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,u[c]=f):u[c]=x;if(u.obj=a,u.score=b,r.push(u),r.length>=l)return r}else for(i=0;i<t.length;i++){var f;if((f=t[i])&&(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,r.push(f),r.length>=l))return r}return r},a=(e,t,n=!1)=>{if(!1===n&&e.containsSpace)return s(e,t);for(var r=e._lower,o=e.lowerCodes,l=o[0],i=t._targetLowerCodes,a=o.length,u=i.length,f=0,d=0,h=0;;){if(l===i[d]){if(p[h++]=d,++f===a)break;l=o[f]}if(++d>=u)return x}f=0;var v=!1,y=0,m=t._nextBeginningIndexes;m===x&&(m=t._nextBeginningIndexes=c(t.target));var b=0;if((d=0===p[0]?0:m[p[0]-1])!==u)for(;;)if(d>=u){if(f<=0)break;if(++b>200)break;--f,d=m[_[--y]]}else if(o[f]===i[d]){if(_[y++]=d,++f===a){v=!0;break}++d}else d=m[d];var g=t._targetLower.indexOf(r,p[0]),w=~g;if(w&&!v)for(var O=0;O<h;++O)p[O]=g+O;var C=!1;if(w&&(C=t._nextBeginningIndexes[g-1]===g),v)var E=_,S=y;else E=p,S=h;var M=0,k=0;for(O=1;O<a;++O)E[O]-E[O-1]!=1&&(M-=E[O],++k);if(M-=(E[a-1]-E[0]-(a-1)+12)*k,0!==E[0]&&(M-=E[0]*E[0]*.2),v){var R=1;for(O=m[0];O<u;O=m[O])++R;R>24&&(M*=10*(R-24))}else M*=1e3;for(w&&(M/=1+a*a*1),C&&(M/=1+a*a*1),M-=u-a,t.score=M,O=0;O<S;++O)t._indexes[O]=E[O];return t._indexes.len=S,t},s=(e,t)=>{for(var n=new Set,r=0,o=x,l=0,i=e.spaceSearches,s=0;s<i.length;++s){var u=i[s];if((o=a(u,t))===x)return x;r+=o.score,o._indexes[0]<l&&(r-=l-o._indexes[0]),l=o._indexes[0];for(var c=0;c<o._indexes.len;++c)n.add(o._indexes[c])}var f=a(e,t,!0);if(f!==x&&f.score>r)return f;o.score=r,s=0;for(let e of n)o._indexes[s++]=e;return o._indexes.len=s,o},u=e=>{for(var t=e.length,n=e.toLowerCase(),r=[],o=0,l=!1,i=0;i<t;++i){var a=r[i]=n.charCodeAt(i);32!==a?o|=1<<(a>=97&&a<=122?a-97:a>=48&&a<=57?26:a<=127?30:31):l=!0}return{lowerCodes:r,bitflags:o,containsSpace:l,_lower:n}},c=e=>{for(var t=e.length,n=(e=>{for(var t=e.length,n=[],r=0,o=!1,l=!1,i=0;i<t;++i){var a=e.charCodeAt(i),s=a>=65&&a<=90,u=s||a>=97&&a<=122||a>=48&&a<=57,c=s&&!o||!l||!u;o=s,l=u,c&&(n[r++]=i)}return n})(e),r=[],o=n[0],l=0,i=0;i<t;++i)o>i?r[i]=o:(o=n[++l],r[i]=void 0===o?t:o);return r},f=new Map,d=new Map,p=[],_=[],h=e=>{for(var t=b,n=e.length,r=0;r<n;++r){var o=e[r];if(o!==x){var l=o.score;l>t&&(t=l)}}return t===b?x:t},v=(e,t)=>{var n=e[t];if(void 0!==n)return n;var r=t;Array.isArray(t)||(r=t.split("."));for(var o=r.length,l=-1;e&&++l<o;)e=e[r[l]];return e},y=e=>"object"==typeof e,m=1/0,b=-m,g=[];g.total=0;var w,O,C,E,x=null,S=(w=[],O=0,E=e=>{for(var t=0,n=w[t],r=1;r<O;){var o=r+1;t=r,o<O&&w[o].score<w[r].score&&(t=o),w[t-1>>1]=w[t],r=1+(t<<1)}for(var l=t-1>>1;t>0&&n.score<w[l].score;l=(t=l)-1>>1)w[t]=w[l];w[t]=n},(C={}).add=e=>{var t=O;w[O++]=e;for(var n=t-1>>1;t>0&&e.score<w[n].score;n=(t=n)-1>>1)w[t]=w[n];w[t]=e},C.poll=e=>{if(0!==O){var t=w[0];return w[0]=w[--O],E(),t}},C.peek=e=>{if(0!==O)return w[0]},C.replaceTop=e=>{w[0]=e,E()},C);return{single:(e,t)=>{if("farzher"==e)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!e||!t)return x;var n=l(e);y(t)||(t=o(t));var r=n.bitflags;return(r&t._bitflags)!==r?x:a(n,t)},go:(e,t,n)=>{if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:t?t[0]:x}];if(!e)return n&&n.all?i(e,t,n):g;var r=l(e),s=r.bitflags,u=(r.containsSpace,n&&n.threshold||b),c=n&&n.limit||m,f=0,d=0,p=t.length;if(n&&n.key)for(var _=n.key,w=0;w<p;++w){var O=t[w];(P=v(O,_))&&(y(P)||(P=o(P)),(s&P._bitflags)===s&&(j=a(r,P))!==x&&(j.score<u||(j={target:j.target,_targetLower:"",_targetLowerCodes:x,_nextBeginningIndexes:x,_bitflags:0,score:j.score,_indexes:j._indexes,obj:O},f<c?(S.add(j),++f):(++d,j.score>S.peek().score&&S.replaceTop(j)))))}else if(n&&n.keys){var C=n.scoreFn||h,E=n.keys,M=E.length;for(w=0;w<p;++w){O=t[w];for(var k=new Array(M),R=0;R<M;++R)_=E[R],(P=v(O,_))?(y(P)||(P=o(P)),(s&P._bitflags)!==s?k[R]=x:k[R]=a(r,P)):k[R]=x;k.obj=O;var A=C(k);A!==x&&(A<u||(k.score=A,f<c?(S.add(k),++f):(++d,A>S.peek().score&&S.replaceTop(k))))}}else for(w=0;w<p;++w){var P,j;(P=t[w])&&(y(P)||(P=o(P)),(s&P._bitflags)===s&&(j=a(r,P))!==x&&(j.score<u||(f<c?(S.add(j),++f):(++d,j.score>S.peek().score&&S.replaceTop(j)))))}if(0===f)return g;var T=new Array(f);for(w=f-1;w>=0;--w)T[w]=S.poll();return T.total=f+d,T},highlight:(e,n,r)=>{if("function"==typeof n)return t(e,n);if(e===x)return x;void 0===n&&(n="<b>"),void 0===r&&(r="</b>");var o="",l=0,i=!1,a=e.target,s=a.length,u=e._indexes;u=u.slice(0,u.len).sort(((e,t)=>e-t));for(var c=0;c<s;++c){var f=a[c];if(u[l]===c){if(i||(i=!0,o+=n),++l===u.length){o+=f+r+a.substr(c+1);break}}else i&&(i=!1,o+=r);o+=f}return o},prepare:n,indexes:e=>e._indexes.slice(0,e._indexes.len).sort(((e,t)=>e-t)),cleanup:()=>{f.clear(),d.clear(),p=[],_=[]}}})?n.apply(t,[]):n)||(e.exports=r)},736:(e,t,n)=>{"use strict";var r=n(655),o=n(661);const l={BLACK:"#000",BLUE:"#00f",DARKGRAY:"#ddd",GRAY:"#eee",GREEN:"#0f0",RED:"#f00",WHITE:"#fff"},i={all:"revert",borderColor:l.DARKGRAY,borderStyle:"solid",borderWidth:1,boxSizing:"border-box",fontSize:24,height:50,lineHeight:"24px",outline:0,paddingLeft:15,paddingRight:15,width:"100%"};class a extends o.PureComponent{render(){let e=this.props,{style:t}=e,n=r.__rest(e,["style"]);return o.createElement("input",Object.assign({type:"text",style:Object.assign({},i,t)},n))}}const s={all:"revert",borderBottomWidth:1,borderColor:l.DARKGRAY,borderLeftWidth:1,borderRightWidth:1,borderStyle:"solid",borderTopWidth:0,boxSizing:"border-box",color:l.BLACK,display:"block",fontSize:24,height:50,lineHeight:"50px",paddingLeft:15,paddingRight:15,textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};function u(e){const{item:t,isHighlighted:n,isSelected:l,style:i}=e,a=r.__rest(e,["item","isHighlighted","isSelected","style"]),s=c(e);return o.createElement("a",Object.assign({href:t.url,style:s},a),t.title)}function c(e){const{isSelected:t,isHighlighted:n,style:r}=e,o=Object.assign({},s,r);return t&&(o.backgroundColor=l.GRAY),n&&(o.backgroundColor=l.DARKGRAY),o}class f extends o.PureComponent{constructor(){super(...arguments),this.state={isHighlighted:!1},this.handleMouseEnter=e=>{this.setState({isHighlighted:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},this.handleMouseLeave=e=>{this.setState({isHighlighted:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)}}render(){const e=this.props.item;return(this.props.children?this.props.children:u)({style:this.props.style,item:e,isSelected:this.props.isSelected,isHighlighted:this.state.isHighlighted,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.props.onClickItem})}}f.defaultProps={isSelected:!1};const d={all:"revert",position:"absolute",width:"100%",zIndex:2,listStyleType:"none",margin:0,padding:0,backgroundColor:l.WHITE};function p(e){const t=Object.assign({},d,e.style);function n(e,t){return e.bind(this,t)}return e.maxHeight&&(t.maxHeight=e.maxHeight,t.borderBottomWidth=1,t.borderBottomColor=l.GRAY,t.borderBottomStyle="solid",t.overflow="auto"),o.createElement("ul",{style:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.items.map(((t,r)=>o.createElement(f,{key:r,children:e.children,item:t,isSelected:e.selectedIndex===r,onMouseEnter:e.onMouseEnterItem&&n(e.onMouseEnterItem,r),onMouseLeave:e.onMouseLeaveItem&&n(e.onMouseLeaveItem,r),onClickItem:e.onClickItem}))))}function _(e){e.url&&(window.location.href=e.url)}class h extends o.PureComponent{constructor(e){super(e),this.state={displayResults:!1,hoveredIndex:-1,results:[],selectedIndex:0},this.query=e=>{this.props.extensions.length>0&&function(e,t){const n=[];for(let r of t)"function"==typeof r&&n.push(r.call(null,e));return Promise.all(n).then((e=>e.reduce(((e,t)=>e.concat(t)),[])))}(e,this.props.extensions).then((e=>{this.setState({results:this.props.maxResults>0?e.slice(0,this.props.maxResults):e,displayResults:e.length>0,selectedIndex:e.length>0?Math.min(this.state.selectedIndex,e.length-1):0}),this.props.onQuery&&this.props.onQuery(e)}))},this.prev=()=>{this.setState((e=>{let t=e.selectedIndex-1;return t<0&&(t=e.results.length-1),{selectedIndex:t}}))},this.next=()=>{this.setState((e=>{let t=e.selectedIndex+1;return t>=e.results.length&&(t=0),{selectedIndex:t}}))},this.action=(e=!1)=>{const t=e&&this.state.hoveredIndex>-1?this.state.hoveredIndex:this.state.selectedIndex,n=this.state.results[t];(this.props.onAction||_).call(null,n)},this.handleChange=e=>{const t=e.target.value;t||this.props.showEmpty?this.query(t):this.reset()},this.handleKeyDown=e=>{switch(e.key){case"ArrowUp":this.prev(),e.preventDefault();break;case"ArrowDown":this.next(),e.preventDefault();break;case"Enter":this.action()}},this.handleMouseEnterItem=e=>{this.setState({hoveredIndex:e})},this.handleMouseLeave=()=>{this.setState({hoveredIndex:-1})},this.handleBlur=e=>{this.props.onBlur&&this.props.onBlur(e),setTimeout((()=>this.setState({displayResults:!1})),200)},this.handleFocus=e=>{0===this.state.results.length&&this.props.showEmpty&&this.query(""),this.props.onFocus&&this.props.onFocus(e),this.setState({displayResults:!0})},this.handleClickItem=e=>{e.preventDefault(),this.state.hoveredIndex>-1&&this.action(!0)},this.query=function(e,t){let n=null;return(...r)=>{const o=this;clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(o,r)}),t)}}(this.query,this.props.inputDelay)}reset(){this.setState({results:[],displayResults:!1})}render(){let e=this.props,{children:t,render:n,maxResults:l,maxViewableResults:i,extensions:s,inputDelay:u,rootStyle:c,resultStyle:f,onQuery:d,onAction:_,onFocus:h,onBlur:v,showEmpty:y}=e,m=r.__rest(e,["children","render","maxResults","maxViewableResults","extensions","inputDelay","rootStyle","resultStyle","onQuery","onAction","onFocus","onBlur","showEmpty"]),b=i?50*i:null;return n||(n=t),o.createElement("div",{style:c},o.createElement(a,Object.assign({},m,{onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown})),this.state.displayResults&&o.createElement(p,{children:n,items:this.state.results,maxHeight:b,onClickItem:this.handleClickItem,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeave:this.handleMouseLeave,selectedIndex:this.state.selectedIndex,style:f}))}}h.defaultProps={children:null,extensions:[],inputDelay:100,maxResults:null,maxViewableResults:null,render:null,resultStyle:{},rootStyle:{position:"relative"},showEmpty:!1},t.ZP=h,t.XS=c},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>_,Component:()=>r.wA,Fragment:()=>r.HY,PureComponent:()=>s,StrictMode:()=>J,Suspense:()=>b,SuspenseList:()=>O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Y,cloneElement:()=>q,createContext:()=>r.kr,createElement:()=>r.az,createFactory:()=>W,createPortal:()=>S,createRef:()=>r.Vf,default:()=>ne,findDOMNode:()=>K,flushSync:()=>$,forwardRef:()=>d,hydrate:()=>j,isValidElement:()=>z,lazy:()=>w,memo:()=>u,render:()=>P,startTransition:()=>Q,unmountComponentAtNode:()=>V,unstable_batchedUpdates:()=>G,useCallback:()=>o.I4,useContext:()=>o.qp,useDebugValue:()=>o.Qb,useDeferredValue:()=>Z,useEffect:()=>o.d4,useErrorBoundary:()=>o.cO,useId:()=>o.Me,useImperativeHandle:()=>o.aP,useInsertionEffect:()=>ee,useLayoutEffect:()=>o.bt,useMemo:()=>o.Ye,useReducer:()=>o._Y,useRef:()=>o.sO,useState:()=>o.eJ,useSyncExternalStore:()=>te,useTransition:()=>X,version:()=>B});var r=n(400),o=n(396);function l(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function s(e){this.props=e}function u(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.az)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(s.prototype=new r.wA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var c=r.YM.__b;r.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=l({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=f,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var p=function(e,t){return null==e?null:(0,r.bR)((0,r.bR)(e).map(t))},_={map:p,forEach:p,count:function(e){return e?(0,r.bR)(e).length:0},only:function(e){var t=(0,r.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.bR},h=r.YM.__e;r.YM.__e=function(e,t,n,r){if(e.then)for(var o,l=t;l=l.__;)if((o=l.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);h(e,t,n,r)};var v=r.YM.unmount;function y(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=l({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return y(e,t,n)}))),e}function m(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return m(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function b(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,o;function l(l){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.az)(n,l)}return l.displayName="Lazy",l.__f=!0,l}function O(){this.u=null,this.o=null}r.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),v&&v(e)},(b.prototype=new r.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(r.__v),l=!1,i=function(){l||(l=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=m(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=y(this.__b,n,o.__O=o.__P)}this.__b=null}var l=t.__a&&(0,r.az)(r.HY,null,e.fallback);return l&&(l.__h=null),[(0,r.az)(r.HY,null,t.__a?null:e.children),l]};var C=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function E(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,r.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.sY)((0,r.az)(E,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function S(e,t){var n=(0,r.az)(x,{__v:e,i:t});return n.containerInfo=t,n}(O.prototype=new r.wA).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,function(o){var l=function(){t.props.revealOrder?(r.push(o),C(t,e,r)):o()};n?n(l):l()}},O.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){C(e,n,t)}))};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,k=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,R="undefined"!=typeof document,A=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function P(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function j(e,t,n){return(0,r.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var T=r.YM.event;function N(){}function I(){return this.cancelBubble}function L(){return this.defaultPrevented}r.YM.event=function(e){return T&&(e=T(e)),e.persist=N,e.isPropagationStopped=I,e.isDefaultPrevented=L,e.nativeEvent=e};var D,H={configurable:!0,get:function(){return this.class}},U=r.YM.vnode;r.YM.vnode=function(e){var t=e.type,n=e.props,o=n;if("string"==typeof t){var l=-1===t.indexOf("-");for(var i in o={},n){var a=n[i];R&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!A(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():l&&k.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),o[i]&&(i="oninputCapture")),o[i]=a)}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),e.props=o,n.class!=n.className&&(H.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",H))}e.$$typeof=M,U&&U(e)};var F=r.YM.__r;r.YM.__r=function(e){F&&F(e),D=e.__c};var Y={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value}}}},B="17.0.2";function W(e){return r.az.bind(null,e)}function z(e){return!!e&&e.$$typeof===M}function q(e){return z(e)?r.Tm.apply(null,arguments):e}function V(e){return!!e.__k&&((0,r.sY)(null,e),!0)}function K(e){return e&&(e.base||1===e.nodeType&&e)||null}var G=function(e,t){return e(t)},$=function(e,t){return e(t)},J=r.HY;function Q(e){e()}function Z(e){return e}function X(){return[!1,Q]}var ee=o.bt;function te(e,t){var n=t(),r=(0,o.eJ)({h:{__:n,v:t}}),l=r[0].h,i=r[1];return(0,o.bt)((function(){l.__=n,l.v=t,a(l.__,t())||i({h:l})}),[e,n,t]),(0,o.d4)((function(){return a(l.__,l.v())||i({h:l}),e((function(){a(l.__,l.v())||i({h:l})}))}),[e]),n}var ne={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:ee,useTransition:X,useDeferredValue:Z,useSyncExternalStore:te,startTransition:Q,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:_,render:P,hydrate:j,unmountComponentAtNode:V,createPortal:S,createElement:r.az,createContext:r.kr,createFactory:W,cloneElement:q,createRef:r.Vf,Fragment:r.HY,isValidElement:z,findDOMNode:K,Component:r.wA,PureComponent:s,memo:u,forwardRef:d,flushSync:$,unstable_batchedUpdates:G,StrictMode:J,Suspense:b,SuspenseList:O,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Y}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>y,Tm:()=>U,Vf:()=>v,YM:()=>o,ZB:()=>H,az:()=>_,bR:()=>x,h:()=>_,kr:()=>F,sY:()=>D,wA:()=>m});var r,o,l,i,a,s,u={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var o,l,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return h(e,a,o,l,null)}function h(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++l:i};return null==i&&null!=o.vnode&&o.vnode(a),a}function v(){return{current:null}}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function g(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return g(e)}}function w(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!O.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(O)}function O(){for(var e;O.__r=i.length;)e=i.sort((function(e,t){return e.__v.__b-t.__v.__b})),i=[],e.some((function(e){var t,n,r,o,l,i;e.__d&&(l=(o=(t=e).__v).__e,(i=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,P(i,o,r,t.__n,void 0!==i.ownerSVGElement,null!=o.__h?[l]:null,n,null==l?b(o):l,o.__h),j(n,o),o.__e!=l&&g(o)))}))}function C(e,t,n,r,o,l,i,a,s,f){var d,p,_,v,m,g,w,O=r&&r.__k||c,C=O.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?h(null,v,null,null,v):Array.isArray(v)?h(y,{children:v},null,null,null):v.__b>0?h(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(_=O[d])||_&&v.key==_.key&&v.type===_.type)O[d]=void 0;else for(p=0;p<C;p++){if((_=O[p])&&v.key==_.key&&v.type===_.type){O[p]=void 0;break}_=null}P(e,v,_=_||u,o,l,i,a,s,f),m=v.__e,(p=v.ref)&&_.ref!=p&&(w||(w=[]),_.ref&&w.push(_.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==g&&(g=m),"function"==typeof v.type&&v.__k===_.__k?v.__d=s=E(v,s,e):s=S(e,v,_,O,m,s),"function"==typeof n.type&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=e&&(s=b(_))}for(n.__e=g,d=C;d--;)null!=O[d]&&I(O[d],O[d]);if(w)for(d=0;d<w.length;d++)N(w[d],w[++d],w[++d])}function E(e,t,n){for(var r,o=e.__k,l=0;o&&l<o.length;l++)(r=o[l])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):S(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function S(e,t,n,r,o,l){var i,a,s;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||o!=l||null==o.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(o),i=null;else{for(a=l,s=0;(a=a.nextSibling)&&s<r.length;s+=1)if(a==o)break e;e.insertBefore(o,l),i=l}return void 0!==i?i:o.nextSibling}function M(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function k(e,t,n,r,o){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?r||e.addEventListener(t,l?A:R,l):e.removeEventListener(t,l?A:R,l);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function R(e){this.l[e.type+!1](o.event?o.event(e):e)}function A(e){this.l[e.type+!0](o.event?o.event(e):e)}function P(e,t,n,r,l,i,a,s,u){var c,f,p,_,h,v,b,g,w,O,E,x,S,M,k,R=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(c=o.__b)&&c(t);try{e:if("function"==typeof R){if(g=t.props,w=(c=R.contextType)&&r[c.__c],O=c?w?w.props.value:c.__:r,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in R&&R.prototype.render?t.__c=f=new R(g,O):(t.__c=f=new m(g,O),f.constructor=R,f.render=L),w&&w.sub(f),f.props=g,f.state||(f.state={}),f.context=O,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=R.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,R.getDerivedStateFromProps(g,f.__s))),_=f.props,h=f.state,p)null==R.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==R.getDerivedStateFromProps&&g!==_&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,O)||t.__v===n.__v){for(f.props=g,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(_,h,v)}))}if(f.context=O,f.props=g,f.__v=t,f.__P=e,x=o.__r,S=0,"prototype"in R&&R.prototype.render){for(f.state=f.__s,f.__d=!1,x&&x(t),c=f.render(f.props,f.state,f.context),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[]}else do{f.__d=!1,x&&x(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++S<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(_,h)),k=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(k)?k:[k],t,n,r,l,i,a,s,u),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=T(n.__e,t,n,r,l,i,a,u);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=i)&&(t.__e=s,t.__h=!!u,i[i.indexOf(s)]=null),o.__e(e,t,n)}}function j(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function T(e,t,n,o,l,i,a,s){var c,f,d,_=n.props,h=t.props,v=t.type,y=0;if("svg"===v&&(l=!0),null!=i)for(;y<i.length;y++)if((c=i[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,i[y]=null;break}if(null==e){if(null===v)return document.createTextNode(h);e=l?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),i=null,s=!1}if(null===v)_===h||s&&e.data===h||(e.data=h);else{if(i=i&&r.call(e.childNodes),f=(_=n.props||u).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!s){if(null!=i)for(_={},y=0;y<e.attributes.length;y++)_[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var l;for(l in n)"children"===l||"key"===l||l in t||k(e,l,null,n[l],r);for(l in t)o&&"function"!=typeof t[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===t[l]||k(e,l,t[l],n[l],r)}(e,h,_,l,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,n,o,l&&"foreignObject"!==v,i,a,i?i[0]:n.__k&&b(n,0),s),null!=i)for(y=i.length;y--;)null!=i[y]&&p(i[y]);s||("value"in h&&void 0!==(y=h.value)&&(y!==e.value||"progress"===v&&!y||"option"===v&&y!==_.value)&&k(e,"value",y,_.value,!1),"checked"in h&&void 0!==(y=h.checked)&&y!==e.checked&&k(e,"checked",y,_.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,l;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||N(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(l=0;l<r.length;l++)r[l]&&I(r[l],t,n||"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n){var l,i,a;o.__&&o.__(e,t),i=(l="function"==typeof n)?null:n&&n.__k||t.__k,a=[],P(t,e=(!l&&n||t).__k=_(y,null,[e]),i||u,u,void 0!==t.ownerSVGElement,!l&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,a,!l&&n?n:i?i.__e:t.firstChild,l),j(a,e)}function H(e,t){D(e,t,H)}function U(e,t,n){var o,l,i,a=d({},e.props);for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),h(e.type,a,o||e.key,l||e.ref,null)}function F(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=c.slice,o={__e:function(e,t,n,r){for(var o,l,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((l=o.constructor)&&null!=l.getDerivedStateFromError&&(o.setState(l.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},l=0,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,i=[],O.__r=0,s=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Me:()=>k,Qb:()=>S,Ye:()=>C,_Y:()=>m,aP:()=>O,bt:()=>g,cO:()=>M,d4:()=>b,eJ:()=>y,qp:()=>x,sO:()=>w});var r,o,l,i,a=n(400),s=0,u=[],c=[],f=a.YM.__b,d=a.YM.__r,p=a.YM.diffed,_=a.YM.__c,h=a.YM.unmount;function v(e,t){a.YM.__h&&a.YM.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function y(e){return s=1,m(I,e)}function m(e,t,n){var l=v(r++,2);if(l.t=e,!l.__c&&(l.__=[n?n(t):I(void 0,t),function(e){var t=l.__N?l.__N[0]:l.__[0],n=l.t(t,e);t!==n&&(l.__N=[n,l.__[1]],l.__c.setState({}))}],l.__c=o,!o.u)){o.u=!0;var i=o.shouldComponentUpdate;o.shouldComponentUpdate=function(e,t,n){if(!l.__c.__H)return!0;var r=l.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&l.__c.props===e)&&(!i||i.call(this,e,t,n))}}return l.__N||l.__}function b(e,t){var n=v(r++,3);!a.YM.__s&&N(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function g(e,t){var n=v(r++,4);!a.YM.__s&&N(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return s=5,C((function(){return{current:e}}),[])}function O(e,t,n){s=6,g((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function C(e,t){var n=v(r++,7);return N(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function E(e,t){return s=8,C((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function S(e,t){a.YM.useDebugValue&&a.YM.useDebugValue(t?t(e):e)}function M(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function R(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],a.YM.__e(t,e.__v)}}a.YM.__b=function(e){o=null,f&&f(e)},a.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(l===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0}))):(t.__h.forEach(j),t.__h.forEach(T),t.__h=[])),l=o},a.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&i===a.YM.requestAnimationFrame||((i=a.YM.requestAnimationFrame)||P)(R)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),l=o=null},a.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.YM.__e(n,e.__v)}})),_&&_(e,t)},a.YM.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),n.__H=void 0,t&&a.YM.__e(t,n.__v))};var A="function"==typeof requestAnimationFrame;function P(e){var t,n=function(){clearTimeout(r),A&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);A&&(t=requestAnimationFrame(n))}function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function T(e){var t=o;e.__c=e.__(),o=t}function N(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function I(e,t){return"function"==typeof t?t(e):t}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},871:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0},983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(661),i=_(l),a=_(n(661)),s=_(n(697)),u=_(n(747)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(149)),f=n(112),d=_(f),p=n(871);function _(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",m=f.canUseDOM&&void 0!==a.default.createPortal,b=function(e){return document.createElement(e)},g=function(){return m?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var O=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,s=Array(l),c=0;c<l;c++)s[c]=arguments[c];return n=o=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.removePortal=function(){!m&&a.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=g()(o,i.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},h(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(m||(this.node=b("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!m&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,l=r.portalClassName;e.portalClassName!==l&&(this.node.className=l);var i=n.prevParent,a=n.nextParent;a!==i&&(i.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!m&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&m?(!this.node&&m&&(this.node=b("div")),g()(i.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(l.Component);O.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},O.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},O.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(O),t.default=O},747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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},l=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(661),a=v(n(697)),s=h(n(685)),u=v(n(338)),c=h(n(149)),f=h(n(409)),d=n(112),p=v(d),_=v(n(623));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(63);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},m=function(e){return"Tab"===e.code||9===e.keyCode},b=function(e){return"Escape"===e.code||27===e.keyCode},g=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,l=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;l&&f.remove(a.body,l),o&&f.remove(a.getElementsByTagName("html")[0],o),r&&g>0&&0==(g-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),_.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){m(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&b(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},l=r.base;return n.state.afterOpen&&(l=l+" "+r.afterOpen),n.state.beforeClose&&(l=l+" "+r.beforeClose),"string"==typeof t&&t?l+" "+t:l},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,l=e.parentSelector,i=l&&l().ownerDocument||document;o&&f.add(i.body,o),r&&f.add(i.getElementsByTagName("html")[0],r),n&&(g+=1,c.hide(t)),_.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,l=e.defaultStyles,i=e.children,a=n?{}:l.content,s=o?{}:l.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,i);return this.props.overlayElement(u,f)}}]),t}(i.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(p.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(p.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=w,e.exports=t.default},149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&l.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return i=t||i},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(473))&&r.__esModule?r:{default:r},l=n(112),i=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},63:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[l,i],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}l=i=null,a=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(a.length);for(var e=[l,i],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(623))&&r.__esModule?r:{default:r},l=void 0,i=void 0,a=[];function s(){0!==a.length&&a[a.length-1].focusContent()}o.default.subscribe((function(e,t){l||i||((l=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",s),(i=l.cloneNode()).addEventListener("focus",s)),(a=t).length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(l.parentElement&&l.parentElement.removeChild(l),i.parentElement&&i.parentElement.removeChild(i))}))},409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var l=document.body;for(var i in r)o(l,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(l,e),o.add(e)}));var o,l},t.remove=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(l,e),0===l[e]&&o.remove(e)}));var o,l}},685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=u,t.markForFocusLater=function(){l.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==l.length&&(t=l.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){l.length>0&&l.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",u))};var r,o=(r=n(845))&&r.__esModule?r:{default:r},l=[],i=null,a=!1;function s(){a=!0}function u(){if(a){if(a=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(875))&&r.__esModule?r:{default:r}).default,l=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=l},338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1],u=l();if(e===u){if(!i)return;r=s}if(s!==u||i||(r=a),a===u&&i&&(r=s),r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var f=n.indexOf(u);if(f>-1&&(f+=i?-1:1),void 0===(r=n[f]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(845))&&r.__esModule?r:{default:r};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?l(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function l(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),l=o.getPropertyValue("display");return t?l!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):l===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),l(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(983))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>l,__asyncDelegator:()=>x,__asyncGenerator:()=>E,__asyncValues:()=>S,__await:()=>C,__awaiter:()=>_,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>T,__classPrivateFieldSet:()=>j,__createBinding:()=>v,__decorate:()=>a,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>o,__generator:()=>h,__importDefault:()=>A,__importStar:()=>R,__makeTemplateObject:()=>M,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>b,__rest:()=>i,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>g,__spreadArray:()=>O,__spreadArrays:()=>w,__values:()=>m});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])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new 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 l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,l=arguments.length,i=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(l<3?o(i):l>3?o(t,n,i):o(t,n))||i);return l>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,o,l){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,s=r.kind,u="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var _={};for(var h in r)_[h]="access"===h?{}:r[h];for(var h in r.access)_.access[h]=r.access[h];_.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");l.push(i(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[u],_);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=i(v.get))&&(f.get=a),(a=i(v.set))&&(f.set=a),(a=i(v.init))&&o.push(a)}else(a=i(v))&&("field"===s?o.push(a):f[u]=a)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function _(e,t,n,r){return new(n||(n=Promise))((function(o,l){function i(e){try{s(r.next(e))}catch(e){l(e)}}function a(e){try{s(r.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function m(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var l=arguments[t],i=0,a=l.length;i<a;i++,o++)r[o]=l[i];return r}function O(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),l=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){l.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof C?Promise.resolve(n.value.v).then(s,u):c(l[0][2],n)}catch(e){c(l[0][3],e)}var n}function s(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),l.shift(),l.length&&a(l[0][0],l[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(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,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return k(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(400),t=0;function r(n,r,o,l,i){var a,s,u={};for(s in r)"ref"==s?a=r[s]:u[s]=r[s];var c={type:n,props:u,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--t,__source:i,__self:l};if("function"==typeof n&&(a=n.defaultProps))for(s in a)void 0===u[s]&&(u[s]=a[s]);return e.YM.vnode&&e.YM.vnode(c),c}var o=function(e){var t,n=e.selector,r=e.inline,o=e.clientSpecified,l=[],i=document.currentScript||(t=document.getElementsByTagName("script"))[t.length-1];if(!0===r){var a=i.parentNode;l.push(a)}return!0!==o||n||(n=function(e){var t=e.attributes,n=null;return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&"data-mount-in"===t[e].name&&(n=t[e].nodeValue)})),n}(i)),n&&[].forEach.call(document.querySelectorAll(n),(function(e){l.push(e)})),l};const l=function(t){var n=t;return{render:function(t){void 0===t&&(t={});var r=t.selector;void 0===r&&(r=null);var l=t.inline;void 0===l&&(l=!1);var i=t.clean;void 0===i&&(i=!1);var a=t.clientSpecified;void 0===a&&(a=!1);var s=t.defaultProps;void 0===s&&(s={});var u=o({selector:r,inline:l,clientSpecified:a}),c=function(){if(u.length>0){var t=o({selector:r,inline:l,clientSpecified:a});return function(t,n,r,o,l){n.forEach((function(n){var i=n;if(!i._habitat){i._habitat=!0;var a=function(e,t){void 0===t&&(t={});var n=e.attributes,r=Object.assign({},t);return Object.keys(n).forEach((function(e){if(n.hasOwnProperty(e)){var t=n[e].name;if(!t||"string"!=typeof t)return!1;var o=t.split(/(data-props?-)/).pop()||"";if(t!==(o=o.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()})))){var l=n[e].nodeValue;r[o]=l}}})),[].forEach.call(e.getElementsByTagName("script"),(function(e){var t={};if(e.hasAttribute("type")){if("text/props"!==e.getAttribute("type")&&"application/json"!==e.getAttribute("type"))return;try{t=JSON.parse(e.innerHTML)}catch(e){throw new Error(e)}Object.assign(r,t)}})),r}(n,l)||l;return o&&(i.innerHTML=""),(0,e.sY)((0,e.h)(t,a),i,r)}}))}(n,t,null,i,s)}};c(),document.addEventListener("DOMContentLoaded",c),document.addEventListener("load",c)}}};var i,a=n(736),s=n(396),u=function(e,t){var n=(0,s.I4)((function(n){var r=n.metaKey,o=n.ctrlKey,l=n.key;(r||o)&&l.toLowerCase()==e&&(n.preventDefault(),t())}),[t,e]);(0,s.d4)((function(){return document.addEventListener("keydown",n),function(){return document.removeEventListener("keydown",n)}}),[n])},c=n(253),f=n.n(c),d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)},p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i},_=function(t,n){void 0===n&&(n=20);var o=p((0,s.eJ)(!1),2),l=o[0],i=o[1],a=p((0,s.eJ)(r(e.HY,{})),2),u=a[0],c=a[1];return{modal:(0,s.Ye)((function(){return r(f(),d({ariaHideApp:!1,isOpen:l,onRequestClose:function(){return i(!1)},style:y},{children:[r("span",d({onClick:function(){return i(!1)},style:{cursor:"pointer",position:"absolute",top:7,right:9,zIndex:v.zIndex+1}},{children:"╳"})),r("div",d({style:{padding:n}},{children:t||u}))]}))}),[u,l,i,t]),setBody:c,toggle:(0,s.I4)((function(){return i(!l)}),[i,l])}},h={zIndex:1001},v=d(d({},h),{maxWidth:640,maxHeight:640,margin:"auto",padding:"2px 0 2px 0"}),y={overlay:h,content:v},m=n(360),b=n.n(m),g=(i=function(e,t){return i=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])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(n){var r=e.call(this,n)||this;return r.name="YaamError",Object.setPrototypeOf(r,t.prototype),r}return g(t,e),t}(Error),O=function(e){if(e=e.replace(/\s+/g,""),!k.test(e))throw new w("invalid input");var t=new C,n=new Array,r=t;if(e.match(M).forEach((function(e){if("("===e){n.push(r);var t=new C;r.children.push(t),r=t}else if(")"===e){if(!n.length)throw new w("unbalanced parentheses `)`");r=n.pop()}else r.children.push(e)})),n.length)throw new w("unbalanced parentheses `(`");return t},C=function(){function e(){this.children=new Array}return e.prototype.calculate=function(){var e=this,t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],this.children,!0);if(t.length%2==0)throw new w("invalid Node ".concat(t));if(E.forEach((function(n){for(var r=t.length-2;r>0;r--)if(t[r]===n){var o=e.toNumber(t[r-1]),l=e.toNumber(t[r+1]),i=void 0;switch(n){case"+":i=o+l;break;case"-":i=o-l;break;case"*":i=o*l;break;case"/":i=o/l;break;case"%":case"%":i=o%l;break;case"^":case"**":i=Math.pow(o,l);break;default:throw new w("unhandled operator ".concat(n))}t.splice(r-1,3,i)}})),1!==t.length)throw new w("invalid Node ".concat(t));return this.toNumber(t[0])},e.prototype.toNumber=function(t){if(t instanceof e)return t.calculate();if("number"==typeof t)return t;if(S.test(t)){var n=t.split("e"),r=n[0],o=n[1],l=Number(r);if(!isNaN(l))return void 0===o?l:l*Math.pow(10,Number(o))}throw new w("invalid token ".concat(t))},e}(),E=["**","^","%","/","*","+","-"],x=new RegExp("(?:"+E.map((function(e){return e.replace(/(?=.)/g,"\\")})).join("|")+")"),S=/(?:(?:\d+\.\d+|\d+)(?:e[+-]?\d+)?)/,M=new RegExp("(?:[()]|".concat(x.source,"|").concat(S.source,")"),"g"),k=new RegExp("\n ^\n ".concat(M.source,"*\n ").concat(S.source,"\n ").concat(M.source,"*\n ").concat(x.source,"\n ").concat(M.source,"*\n ").concat(S.source,"\n ").concat(M.source,"*\n $\n ").replace(/\s+/g,"")),R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)},A=function(e){return function(t){return t?[]:e.items.filter((function(e){return e.suggested}))}},P=function(e){var t=e.commandPattern,n=e.queryPath,r=(0,s.Ye)((function(){return t&&new RegExp(t.source,t.options)}),[t]);return function(e){return t=void 0,o=void 0,i=function(){return function(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(t){switch(t.label){case 0:return e&&n&&(null==r?void 0:r.test(e))?[4,fetch("".concat(n,"&q=").concat(e))]:[2,[]];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}}))},new((l=void 0)||(l=Promise))((function(e,n){function r(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof l?n:new l((function(e){e(n)}))).then(r,a)}s((i=i.apply(t,o||[])).next())}));var t,o,l,i}},j={textShadow:"-0.06ex 0 0 currentColor, 0.06ex 0 0 currentColor"},T=function(e){var t=e.calculator;return function(e){var n=t&&e?function(e,t){void 0===t&&(t={});try{return function(e){return O(e).calculate()}(e)}catch(e){return t.verbose&&console.log(e),null}}(e):null;return null!==n?[{title:String(n),type:"default"}]:new Array}},N="rails-omnibar",I=n(320),L=n(483),D=n(439),H=n(269),U=n(109),F=n(228),Y=n(331),B=n(218),W=n(358),z=n(496),q=n(65),V=n(505),K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};document.addEventListener("DOMContentLoaded",(function(){l(G).render({selector:"#mount-rails-omnibar"})}));var G=function(e){var t=_(),n=(0,s.I4)((function(){setTimeout((function(){var e=document.querySelector("[data-id=".concat(N,"]"));document.activeElement===e?null==e||e.blur():null==e||e.focus()}),100)}),[]);return u(e.hotkey,n),r(e.modal?J:$,K({},e,{itemModal:t}))},$=function(t){var n,o=function(t){return(0,s.Ye)((function(){return[A(t),P(t),(n=t,o=n.items,function(t){return t?b().go(t,o,{key:"title"}).map((function(t){return R(R({},t.obj),{title:r(e.HY,{children:b().highlight(t,(function(e){return r("span",R({style:j},{children:e}))}))})})})):[]}),T(t)];var n,o}),[t])}(t),l=(n=t.itemModal,(0,s.I4)((function(e){if(e)if(e.url)window.location.href=e.url;else if(e.modalHTML){var t=e.modalHTML;n.setBody(r("div",{dangerouslySetInnerHTML:{__html:t}})),n.toggle()}}),[n]));return r(e.HY,{children:[r(a.ZP,{"data-id":N,extensions:o,maxResults:t.maxResults,onAction:l,placeholder:t.placeholder,children:function(e){return Q(K(K({},e),{modal:t.modal}))},showEmpty:!0,style:t.modal?X:Z}),t.itemModal.modal]})},J=function(e){var t=_(r($,K({},e)),0),n=t.modal,o=t.toggle;return u(e.hotkey,o),n},Q=function(e){var t,n=e.item,o={onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},l=(0,a.XS)(e),i=(t=n.icon)?"arrows"===t?I:"cloud"===t?L:"cog"===t?D:"dev"===t?H:"document"===t?U:"home"===t?F:"question"===t?Y:"search"===t?B:"sparkle"===t?W:"user"===t?z:"wallet"===t?q:"x"===t?V:null:null;return r("div",K({},o,{style:K(K({},l),e.modal?X:Z)},{children:[i&&r(i,{name:n.icon,style:ee}),n.title]}))},Z={height:36,fontSize:18,lineHeight:"".concat(36,"px")},X=K(K({},Z),{border:0}),ee={all:"revert",height:18,width:18,paddingRight:4.5,verticalAlign:"text-top"}})()})();
2
+ (()=>{var e={320:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M13.2 2.24a.75.75 0 00.04 1.06l2.1 1.95H6.75a.75.75 0 000 1.5h8.59l-2.1 1.95a.75.75 0 101.02 1.1l3.5-3.25a.75.75 0 000-1.1l-3.5-3.25a.75.75 0 00-1.06.04zm-6.4 8a.75.75 0 00-1.06-.04l-3.5 3.25a.75.75 0 000 1.1l3.5 3.25a.75.75 0 101.02-1.1l-2.1-1.95h8.59a.75.75 0 000-1.5H4.66l2.1-1.95a.75.75 0 00.04-1.06z",clipRule:"evenodd"}))}));e.exports=o},483:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M1 12.5A4.5 4.5 0 005.5 17H15a4 4 0 001.866-7.539 3.504 3.504 0 00-4.504-4.272A4.5 4.5 0 004.06 8.235 4.502 4.502 0 001 12.5z"}))}));e.exports=o},439:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M7.84 1.804A1 1 0 018.82 1h2.36a1 1 0 01.98.804l.331 1.652a6.993 6.993 0 011.929 1.115l1.598-.54a1 1 0 011.186.447l1.18 2.044a1 1 0 01-.205 1.251l-1.267 1.113a7.047 7.047 0 010 2.228l1.267 1.113a1 1 0 01.206 1.25l-1.18 2.045a1 1 0 01-1.187.447l-1.598-.54a6.993 6.993 0 01-1.929 1.115l-.33 1.652a1 1 0 01-.98.804H8.82a1 1 0 01-.98-.804l-.331-1.652a6.993 6.993 0 01-1.929-1.115l-1.598.54a1 1 0 01-1.186-.447l-1.18-2.044a1 1 0 01.205-1.251l1.267-1.114a7.05 7.05 0 010-2.227L1.821 7.773a1 1 0 01-.206-1.25l1.18-2.045a1 1 0 011.187-.447l1.598.54A6.993 6.993 0 017.51 3.456l.33-1.652zM10 13a3 3 0 100-6 3 3 0 000 6z",clipRule:"evenodd"}))}));e.exports=o},269:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M3.25 3A2.25 2.25 0 001 5.25v9.5A2.25 2.25 0 003.25 17h13.5A2.25 2.25 0 0019 14.75v-9.5A2.25 2.25 0 0016.75 3H3.25zm.943 8.752a.75.75 0 01.055-1.06L6.128 9l-1.88-1.693a.75.75 0 111.004-1.114l2.5 2.25a.75.75 0 010 1.114l-2.5 2.25a.75.75 0 01-1.06-.055zM9.75 10.25a.75.75 0 000 1.5h2.5a.75.75 0 000-1.5h-2.5z",clipRule:"evenodd"}))}));e.exports=o},109:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M3 3.5A1.5 1.5 0 014.5 2h6.879a1.5 1.5 0 011.06.44l4.122 4.12A1.5 1.5 0 0117 7.622V16.5a1.5 1.5 0 01-1.5 1.5h-11A1.5 1.5 0 013 16.5v-13z"}))}));e.exports=o},228:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.293 2.293a1 1 0 011.414 0l7 7A1 1 0 0117 11h-1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-3a1 1 0 00-1-1H9a1 1 0 00-1 1v3a1 1 0 01-1 1H5a1 1 0 01-1-1v-6H3a1 1 0 01-.707-1.707l7-7z",clipRule:"evenodd"}))}));e.exports=o},218:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"}))}));e.exports=o},331:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.94 6.94a.75.75 0 11-1.061-1.061 3 3 0 112.871 5.026v.345a.75.75 0 01-1.5 0v-.5c0-.72.57-1.172 1.081-1.287A1.5 1.5 0 108.94 6.94zM10 15a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))}));e.exports=o},358:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M15.98 1.804a1 1 0 00-1.96 0l-.24 1.192a1 1 0 01-.784.785l-1.192.238a1 1 0 000 1.962l1.192.238a1 1 0 01.785.785l.238 1.192a1 1 0 001.962 0l.238-1.192a1 1 0 01.785-.785l1.192-.238a1 1 0 000-1.962l-1.192-.238a1 1 0 01-.785-.785l-.238-1.192zM6.949 5.684a1 1 0 00-1.898 0l-.683 2.051a1 1 0 01-.633.633l-2.051.683a1 1 0 000 1.898l2.051.684a1 1 0 01.633.632l.683 2.051a1 1 0 001.898 0l.683-2.051a1 1 0 01.633-.633l2.051-.683a1 1 0 000-1.898l-2.051-.683a1 1 0 01-.633-.633L6.95 5.684zM13.949 13.684a1 1 0 00-1.898 0l-.184.551a1 1 0 01-.632.633l-.551.183a1 1 0 000 1.898l.551.183a1 1 0 01.633.633l.183.551a1 1 0 001.898 0l.184-.551a1 1 0 01.632-.633l.551-.183a1 1 0 000-1.898l-.551-.184a1 1 0 01-.633-.632l-.183-.551z"}))}));e.exports=o},496:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M10 8a3 3 0 100-6 3 3 0 000 6zM3.465 14.493a1.23 1.23 0 00.41 1.412A9.957 9.957 0 0010 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 00-13.074.003z"}))}));e.exports=o},65:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M1 4.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 2H3.25A2.25 2.25 0 001 4.25zM1 7.25a3.733 3.733 0 012.25-.75h13.5c.844 0 1.623.279 2.25.75A2.25 2.25 0 0016.75 5H3.25A2.25 2.25 0 001 7.25zM7 8a1 1 0 011 1 2 2 0 104 0 1 1 0 011-1h3.75A2.25 2.25 0 0119 10.25v5.5A2.25 2.25 0 0116.75 18H3.25A2.25 2.25 0 011 15.75v-5.5A2.25 2.25 0 013.25 8H7z"}))}));e.exports=o},505:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"}))}));e.exports=o},875:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),l={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},360:function(e,t){var n,r;void 0===(r="function"==typeof(n=e=>{"use strict";var t=(e,t)=>{if(e===x)return x;var n=e.target,r=n.length,o=e._indexes;o=o.slice(0,o.len).sort(((e,t)=>e-t));for(var l="",i=0,a=0,s=!1,u=(e=[],0);u<r;++u){var c=n[u];if(o[a]===u){if(++a,s||(s=!0,e.push(l),l=""),a===o.length){l+=c,e.push(t(l,i++)),l="",e.push(n.substr(u+1));break}}else s&&(s=!1,e.push(t(l,i++)),l="");l+=c}return e},n=e=>{"string"!=typeof e&&(e="");var t=u(e);return{target:e,_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_nextBeginningIndexes:x,_bitflags:t.bitflags,score:x,_indexes:[0],obj:x}},r=e=>{"string"!=typeof e&&(e=""),e=e.trim();var t=u(e),n=[];if(t.containsSpace){var r=e.split(/\s+/);r=[...new Set(r)];for(var o=0;o<r.length;o++)if(""!==r[o]){var l=u(r[o]);n.push({lowerCodes:l.lowerCodes,_lower:r[o].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,bitflags:t.bitflags,containsSpace:t.containsSpace,_lower:t._lower,spaceSearches:n}},o=e=>{if(e.length>999)return n(e);var t=f.get(e);return void 0!==t||(t=n(e),f.set(e,t)),t},l=e=>{if(e.length>999)return r(e);var t=d.get(e);return void 0!==t||(t=r(e),d.set(e,t)),t},i=(e,t,n)=>{var r=[];r.total=t.length;var l=n&&n.limit||m;if(n&&n.key)for(var i=0;i<t.length;i++){var a=t[i];if(f=v(a,n.key)){y(f)||(f=o(f)),f.score=b,f._indexes.len=0;var s=f;if(s={target:s.target,_targetLower:"",_targetLowerCodes:x,_nextBeginningIndexes:x,_bitflags:0,score:f.score,_indexes:x,obj:a},r.push(s),r.length>=l)return r}}else if(n&&n.keys)for(i=0;i<t.length;i++){a=t[i];for(var u=new Array(n.keys.length),c=n.keys.length-1;c>=0;--c)(f=v(a,n.keys[c]))?(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,u[c]=f):u[c]=x;if(u.obj=a,u.score=b,r.push(u),r.length>=l)return r}else for(i=0;i<t.length;i++){var f;if((f=t[i])&&(y(f)||(f=o(f)),f.score=b,f._indexes.len=0,r.push(f),r.length>=l))return r}return r},a=(e,t,n=!1)=>{if(!1===n&&e.containsSpace)return s(e,t);for(var r=e._lower,o=e.lowerCodes,l=o[0],i=t._targetLowerCodes,a=o.length,u=i.length,f=0,d=0,h=0;;){if(l===i[d]){if(p[h++]=d,++f===a)break;l=o[f]}if(++d>=u)return x}f=0;var v=!1,y=0,m=t._nextBeginningIndexes;m===x&&(m=t._nextBeginningIndexes=c(t.target));var b=0;if((d=0===p[0]?0:m[p[0]-1])!==u)for(;;)if(d>=u){if(f<=0)break;if(++b>200)break;--f,d=m[_[--y]]}else if(o[f]===i[d]){if(_[y++]=d,++f===a){v=!0;break}++d}else d=m[d];var g=t._targetLower.indexOf(r,p[0]),w=~g;if(w&&!v)for(var O=0;O<h;++O)p[O]=g+O;var C=!1;if(w&&(C=t._nextBeginningIndexes[g-1]===g),v)var E=_,S=y;else E=p,S=h;var M=0,k=0;for(O=1;O<a;++O)E[O]-E[O-1]!=1&&(M-=E[O],++k);if(M-=(E[a-1]-E[0]-(a-1)+12)*k,0!==E[0]&&(M-=E[0]*E[0]*.2),v){var R=1;for(O=m[0];O<u;O=m[O])++R;R>24&&(M*=10*(R-24))}else M*=1e3;for(w&&(M/=1+a*a*1),C&&(M/=1+a*a*1),M-=u-a,t.score=M,O=0;O<S;++O)t._indexes[O]=E[O];return t._indexes.len=S,t},s=(e,t)=>{for(var n=new Set,r=0,o=x,l=0,i=e.spaceSearches,s=0;s<i.length;++s){var u=i[s];if((o=a(u,t))===x)return x;r+=o.score,o._indexes[0]<l&&(r-=l-o._indexes[0]),l=o._indexes[0];for(var c=0;c<o._indexes.len;++c)n.add(o._indexes[c])}var f=a(e,t,!0);if(f!==x&&f.score>r)return f;o.score=r,s=0;for(let e of n)o._indexes[s++]=e;return o._indexes.len=s,o},u=e=>{for(var t=e.length,n=e.toLowerCase(),r=[],o=0,l=!1,i=0;i<t;++i){var a=r[i]=n.charCodeAt(i);32!==a?o|=1<<(a>=97&&a<=122?a-97:a>=48&&a<=57?26:a<=127?30:31):l=!0}return{lowerCodes:r,bitflags:o,containsSpace:l,_lower:n}},c=e=>{for(var t=e.length,n=(e=>{for(var t=e.length,n=[],r=0,o=!1,l=!1,i=0;i<t;++i){var a=e.charCodeAt(i),s=a>=65&&a<=90,u=s||a>=97&&a<=122||a>=48&&a<=57,c=s&&!o||!l||!u;o=s,l=u,c&&(n[r++]=i)}return n})(e),r=[],o=n[0],l=0,i=0;i<t;++i)o>i?r[i]=o:(o=n[++l],r[i]=void 0===o?t:o);return r},f=new Map,d=new Map,p=[],_=[],h=e=>{for(var t=b,n=e.length,r=0;r<n;++r){var o=e[r];if(o!==x){var l=o.score;l>t&&(t=l)}}return t===b?x:t},v=(e,t)=>{var n=e[t];if(void 0!==n)return n;var r=t;Array.isArray(t)||(r=t.split("."));for(var o=r.length,l=-1;e&&++l<o;)e=e[r[l]];return e},y=e=>"object"==typeof e,m=1/0,b=-m,g=[];g.total=0;var w,O,C,E,x=null,S=(w=[],O=0,E=e=>{for(var t=0,n=w[t],r=1;r<O;){var o=r+1;t=r,o<O&&w[o].score<w[r].score&&(t=o),w[t-1>>1]=w[t],r=1+(t<<1)}for(var l=t-1>>1;t>0&&n.score<w[l].score;l=(t=l)-1>>1)w[t]=w[l];w[t]=n},(C={}).add=e=>{var t=O;w[O++]=e;for(var n=t-1>>1;t>0&&e.score<w[n].score;n=(t=n)-1>>1)w[t]=w[n];w[t]=e},C.poll=e=>{if(0!==O){var t=w[0];return w[0]=w[--O],E(),t}},C.peek=e=>{if(0!==O)return w[0]},C.replaceTop=e=>{w[0]=e,E()},C);return{single:(e,t)=>{if("farzher"==e)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!e||!t)return x;var n=l(e);y(t)||(t=o(t));var r=n.bitflags;return(r&t._bitflags)!==r?x:a(n,t)},go:(e,t,n)=>{if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:t?t[0]:x}];if(!e)return n&&n.all?i(e,t,n):g;var r=l(e),s=r.bitflags,u=(r.containsSpace,n&&n.threshold||b),c=n&&n.limit||m,f=0,d=0,p=t.length;if(n&&n.key)for(var _=n.key,w=0;w<p;++w){var O=t[w];(P=v(O,_))&&(y(P)||(P=o(P)),(s&P._bitflags)===s&&(T=a(r,P))!==x&&(T.score<u||(T={target:T.target,_targetLower:"",_targetLowerCodes:x,_nextBeginningIndexes:x,_bitflags:0,score:T.score,_indexes:T._indexes,obj:O},f<c?(S.add(T),++f):(++d,T.score>S.peek().score&&S.replaceTop(T)))))}else if(n&&n.keys){var C=n.scoreFn||h,E=n.keys,M=E.length;for(w=0;w<p;++w){O=t[w];for(var k=new Array(M),R=0;R<M;++R)_=E[R],(P=v(O,_))?(y(P)||(P=o(P)),(s&P._bitflags)!==s?k[R]=x:k[R]=a(r,P)):k[R]=x;k.obj=O;var A=C(k);A!==x&&(A<u||(k.score=A,f<c?(S.add(k),++f):(++d,A>S.peek().score&&S.replaceTop(k))))}}else for(w=0;w<p;++w){var P,T;(P=t[w])&&(y(P)||(P=o(P)),(s&P._bitflags)===s&&(T=a(r,P))!==x&&(T.score<u||(f<c?(S.add(T),++f):(++d,T.score>S.peek().score&&S.replaceTop(T)))))}if(0===f)return g;var j=new Array(f);for(w=f-1;w>=0;--w)j[w]=S.poll();return j.total=f+d,j},highlight:(e,n,r)=>{if("function"==typeof n)return t(e,n);if(e===x)return x;void 0===n&&(n="<b>"),void 0===r&&(r="</b>");var o="",l=0,i=!1,a=e.target,s=a.length,u=e._indexes;u=u.slice(0,u.len).sort(((e,t)=>e-t));for(var c=0;c<s;++c){var f=a[c];if(u[l]===c){if(i||(i=!0,o+=n),++l===u.length){o+=f+r+a.substr(c+1);break}}else i&&(i=!1,o+=r);o+=f}return o},prepare:n,indexes:e=>e._indexes.slice(0,e._indexes.len).sort(((e,t)=>e-t)),cleanup:()=>{f.clear(),d.clear(),p=[],_=[]}}})?n.apply(t,[]):n)||(e.exports=r)},736:(e,t,n)=>{"use strict";var r=n(655),o=n(661);const l={BLACK:"#000",BLUE:"#00f",DARKGRAY:"#ddd",GRAY:"#eee",GREEN:"#0f0",RED:"#f00",WHITE:"#fff"},i={all:"revert",borderColor:l.DARKGRAY,borderStyle:"solid",borderWidth:1,boxSizing:"border-box",fontSize:24,height:50,lineHeight:"24px",outline:0,paddingLeft:15,paddingRight:15,width:"100%"};class a extends o.PureComponent{render(){let e=this.props,{style:t}=e,n=r.__rest(e,["style"]);return o.createElement("input",Object.assign({type:"text",style:Object.assign({},i,t)},n))}}const s={all:"revert",borderBottomWidth:1,borderColor:l.DARKGRAY,borderLeftWidth:1,borderRightWidth:1,borderStyle:"solid",borderTopWidth:0,boxSizing:"border-box",color:l.BLACK,display:"block",fontSize:24,height:50,lineHeight:"50px",paddingLeft:15,paddingRight:15,textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"};function u(e){const{item:t,isHighlighted:n,isSelected:l,style:i}=e,a=r.__rest(e,["item","isHighlighted","isSelected","style"]),s=c(e);return o.createElement("a",Object.assign({href:t.url,style:s},a),t.title)}function c(e){const{isSelected:t,isHighlighted:n,style:r}=e,o=Object.assign({},s,r);return t&&(o.backgroundColor=l.GRAY),n&&(o.backgroundColor=l.DARKGRAY),o}class f extends o.PureComponent{constructor(){super(...arguments),this.state={isHighlighted:!1},this.handleMouseEnter=e=>{this.setState({isHighlighted:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},this.handleMouseLeave=e=>{this.setState({isHighlighted:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)}}render(){const e=this.props.item;return(this.props.children?this.props.children:u)({style:this.props.style,item:e,isSelected:this.props.isSelected,isHighlighted:this.state.isHighlighted,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.props.onClickItem})}}f.defaultProps={isSelected:!1};const d={all:"revert",position:"absolute",width:"100%",zIndex:2,listStyleType:"none",margin:0,padding:0,backgroundColor:l.WHITE};function p(e){const t=Object.assign({},d,e.style);function n(e,t){return e.bind(this,t)}return e.maxHeight&&(t.maxHeight=e.maxHeight,t.borderBottomWidth=1,t.borderBottomColor=l.GRAY,t.borderBottomStyle="solid",t.overflow="auto"),o.createElement("ul",{style:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.items.map(((t,r)=>o.createElement(f,{key:r,children:e.children,item:t,isSelected:e.selectedIndex===r,onMouseEnter:e.onMouseEnterItem&&n(e.onMouseEnterItem,r),onMouseLeave:e.onMouseLeaveItem&&n(e.onMouseLeaveItem,r),onClickItem:e.onClickItem}))))}function _(e){e.url&&(window.location.href=e.url)}class h extends o.PureComponent{constructor(e){super(e),this.state={displayResults:!1,hoveredIndex:-1,runningQuery:null,results:[],selectedIndex:0},this.query=e=>{this.props.extensions.length>0&&this.state.runningQuery!==e&&(this.props.onQueryStart&&this.props.onQueryStart(e),this.setState({runningQuery:e},(()=>r.__awaiter(this,void 0,void 0,(function*(){const t=yield function(e,t){const n=[];for(let r of t)"function"==typeof r&&n.push(r.call(null,e));return Promise.all(n).then((e=>e.reduce(((e,t)=>e.concat(t)),[])))}(e,this.props.extensions);this.state.runningQuery===e&&(this.setState({runningQuery:null,results:this.props.maxResults>0?t.slice(0,this.props.maxResults):t,displayResults:t.length>0,selectedIndex:t.length>0?Math.min(this.state.selectedIndex,t.length-1):0}),this.props.onQueryEnd&&this.props.onQueryEnd(e,t),this.props.onQuery&&this.props.onQuery(t))})))))},this.prev=()=>{this.setState((e=>{let t=e.selectedIndex-1;return t<0&&(t=e.results.length-1),{selectedIndex:t}}))},this.next=()=>{this.setState((e=>{let t=e.selectedIndex+1;return t>=e.results.length&&(t=0),{selectedIndex:t}}))},this.action=(e=!1)=>{const t=e&&this.state.hoveredIndex>-1?this.state.hoveredIndex:this.state.selectedIndex,n=this.state.results[t];(this.props.onAction||_).call(null,n)},this.handleChange=e=>{const t=e.target.value;t||this.props.showEmpty?this.query(t):this.reset()},this.handleKeyDown=e=>{switch(e.key){case"ArrowUp":this.prev(),e.preventDefault();break;case"ArrowDown":this.next(),e.preventDefault();break;case"Enter":this.action()}},this.handleMouseEnterItem=e=>{this.setState({hoveredIndex:e})},this.handleMouseLeave=()=>{this.setState({hoveredIndex:-1})},this.handleBlur=e=>{this.props.onBlur&&this.props.onBlur(e),setTimeout((()=>this.setState({displayResults:!1})),200)},this.handleFocus=e=>{0===this.state.results.length&&this.props.showEmpty&&this.query(""),this.props.onFocus&&this.props.onFocus(e),this.setState({displayResults:!0})},this.handleClickItem=e=>{e.preventDefault(),this.state.hoveredIndex>-1&&this.action(!0)},this.query=function(e,t){let n=null;return(...r)=>{const o=this;clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(o,r)}),t)}}(this.query,this.props.inputDelay)}reset(){this.setState({results:[],runningQuery:null,displayResults:!1})}render(){let e=this.props,{children:t,render:n,maxResults:l,maxViewableResults:i,extensions:s,inputDelay:u,rootStyle:c,resultStyle:f,onQuery:d,onQueryStart:_,onQueryEnd:h,onQueryCancel:v,onAction:y,onFocus:m,onBlur:b,showEmpty:g}=e,w=r.__rest(e,["children","render","maxResults","maxViewableResults","extensions","inputDelay","rootStyle","resultStyle","onQuery","onQueryStart","onQueryEnd","onQueryCancel","onAction","onFocus","onBlur","showEmpty"]),O=i?50*i:null;return n||(n=t),o.createElement("div",{style:c},o.createElement(a,Object.assign({},w,{onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown})),this.state.displayResults&&o.createElement(p,{children:n,items:this.state.results,maxHeight:O,onClickItem:this.handleClickItem,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeave:this.handleMouseLeave,selectedIndex:this.state.selectedIndex,style:f}))}}h.defaultProps={children:null,extensions:[],inputDelay:100,loadingStyle:{},maxResults:null,maxViewableResults:null,render:null,resultStyle:{},rootStyle:{position:"relative"},showEmpty:!1},t.ZP=h,t.XS=c},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>_,Component:()=>r.wA,Fragment:()=>r.HY,PureComponent:()=>s,StrictMode:()=>$,Suspense:()=>b,SuspenseList:()=>O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Y,cloneElement:()=>q,createContext:()=>r.kr,createElement:()=>r.az,createFactory:()=>W,createPortal:()=>S,createRef:()=>r.Vf,default:()=>ne,findDOMNode:()=>Q,flushSync:()=>G,forwardRef:()=>d,hydrate:()=>T,isValidElement:()=>z,lazy:()=>w,memo:()=>u,render:()=>P,startTransition:()=>J,unmountComponentAtNode:()=>V,unstable_batchedUpdates:()=>K,useCallback:()=>o.I4,useContext:()=>o.qp,useDebugValue:()=>o.Qb,useDeferredValue:()=>Z,useEffect:()=>o.d4,useErrorBoundary:()=>o.cO,useId:()=>o.Me,useImperativeHandle:()=>o.aP,useInsertionEffect:()=>ee,useLayoutEffect:()=>o.bt,useMemo:()=>o.Ye,useReducer:()=>o._Y,useRef:()=>o.sO,useState:()=>o.eJ,useSyncExternalStore:()=>te,useTransition:()=>X,version:()=>B});var r=n(400),o=n(396);function l(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function s(e){this.props=e}function u(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.az)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(s.prototype=new r.wA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var c=r.YM.__b;r.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=l({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=f,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var p=function(e,t){return null==e?null:(0,r.bR)((0,r.bR)(e).map(t))},_={map:p,forEach:p,count:function(e){return e?(0,r.bR)(e).length:0},only:function(e){var t=(0,r.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.bR},h=r.YM.__e;r.YM.__e=function(e,t,n,r){if(e.then)for(var o,l=t;l=l.__;)if((o=l.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);h(e,t,n,r)};var v=r.YM.unmount;function y(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=l({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return y(e,t,n)}))),e}function m(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return m(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function b(){this.__u=0,this.t=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,o;function l(l){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.az)(n,l)}return l.displayName="Lazy",l.__f=!0,l}function O(){this.u=null,this.o=null}r.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),v&&v(e)},(b.prototype=new r.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=g(r.__v),l=!1,i=function(){l||(l=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=m(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=y(this.__b,n,o.__O=o.__P)}this.__b=null}var l=t.__a&&(0,r.az)(r.HY,null,e.fallback);return l&&(l.__h=null),[(0,r.az)(r.HY,null,t.__a?null:e.children),l]};var C=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function E(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,r.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.sY)((0,r.az)(E,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function S(e,t){var n=(0,r.az)(x,{__v:e,i:t});return n.containerInfo=t,n}(O.prototype=new r.wA).__a=function(e){var t=this,n=g(t.__v),r=t.o.get(e);return r[0]++,function(o){var l=function(){t.props.revealOrder?(r.push(o),C(t,e,r)):o()};n?n(l):l()}},O.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){C(e,n,t)}))};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,k=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,R="undefined"!=typeof document,A=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function P(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function T(e,t,n){return(0,r.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var j=r.YM.event;function N(){}function I(){return this.cancelBubble}function L(){return this.defaultPrevented}r.YM.event=function(e){return j&&(e=j(e)),e.persist=N,e.isPropagationStopped=I,e.isDefaultPrevented=L,e.nativeEvent=e};var D,H={configurable:!0,get:function(){return this.class}},F=r.YM.vnode;r.YM.vnode=function(e){var t=e.type,n=e.props,o=n;if("string"==typeof t){var l=-1===t.indexOf("-");for(var i in o={},n){var a=n[i];R&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!A(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():l&&k.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),o[i]&&(i="oninputCapture")),o[i]=a)}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),e.props=o,n.class!=n.className&&(H.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",H))}e.$$typeof=M,F&&F(e)};var U=r.YM.__r;r.YM.__r=function(e){U&&U(e),D=e.__c};var Y={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value}}}},B="17.0.2";function W(e){return r.az.bind(null,e)}function z(e){return!!e&&e.$$typeof===M}function q(e){return z(e)?r.Tm.apply(null,arguments):e}function V(e){return!!e.__k&&((0,r.sY)(null,e),!0)}function Q(e){return e&&(e.base||1===e.nodeType&&e)||null}var K=function(e,t){return e(t)},G=function(e,t){return e(t)},$=r.HY;function J(e){e()}function Z(e){return e}function X(){return[!1,J]}var ee=o.bt;function te(e,t){var n=t(),r=(0,o.eJ)({h:{__:n,v:t}}),l=r[0].h,i=r[1];return(0,o.bt)((function(){l.__=n,l.v=t,a(l.__,t())||i({h:l})}),[e,n,t]),(0,o.d4)((function(){return a(l.__,l.v())||i({h:l}),e((function(){a(l.__,l.v())||i({h:l})}))}),[e]),n}var ne={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:ee,useTransition:X,useDeferredValue:Z,useSyncExternalStore:te,startTransition:J,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:_,render:P,hydrate:T,unmountComponentAtNode:V,createPortal:S,createElement:r.az,createContext:r.kr,createFactory:W,cloneElement:q,createRef:r.Vf,Fragment:r.HY,isValidElement:z,findDOMNode:Q,Component:r.wA,PureComponent:s,memo:u,forwardRef:d,flushSync:G,unstable_batchedUpdates:K,StrictMode:$,Suspense:b,SuspenseList:O,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Y}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>y,Tm:()=>F,Vf:()=>v,YM:()=>o,ZB:()=>H,az:()=>_,bR:()=>x,h:()=>_,kr:()=>U,sY:()=>D,wA:()=>m});var r,o,l,i,a,s,u={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var o,l,i,a={};for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return h(e,a,o,l,null)}function h(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++l:i};return null==i&&null!=o.vnode&&o.vnode(a),a}function v(){return{current:null}}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function g(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return g(e)}}function w(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!O.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(O)}function O(){for(var e;O.__r=i.length;)e=i.sort((function(e,t){return e.__v.__b-t.__v.__b})),i=[],e.some((function(e){var t,n,r,o,l,i;e.__d&&(l=(o=(t=e).__v).__e,(i=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,P(i,o,r,t.__n,void 0!==i.ownerSVGElement,null!=o.__h?[l]:null,n,null==l?b(o):l,o.__h),T(n,o),o.__e!=l&&g(o)))}))}function C(e,t,n,r,o,l,i,a,s,f){var d,p,_,v,m,g,w,O=r&&r.__k||c,C=O.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?h(null,v,null,null,v):Array.isArray(v)?h(y,{children:v},null,null,null):v.__b>0?h(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(_=O[d])||_&&v.key==_.key&&v.type===_.type)O[d]=void 0;else for(p=0;p<C;p++){if((_=O[p])&&v.key==_.key&&v.type===_.type){O[p]=void 0;break}_=null}P(e,v,_=_||u,o,l,i,a,s,f),m=v.__e,(p=v.ref)&&_.ref!=p&&(w||(w=[]),_.ref&&w.push(_.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==g&&(g=m),"function"==typeof v.type&&v.__k===_.__k?v.__d=s=E(v,s,e):s=S(e,v,_,O,m,s),"function"==typeof n.type&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=e&&(s=b(_))}for(n.__e=g,d=C;d--;)null!=O[d]&&I(O[d],O[d]);if(w)for(d=0;d<w.length;d++)N(w[d],w[++d],w[++d])}function E(e,t,n){for(var r,o=e.__k,l=0;o&&l<o.length;l++)(r=o[l])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):S(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function S(e,t,n,r,o,l){var i,a,s;if(void 0!==t.__d)i=t.__d,t.__d=void 0;else if(null==n||o!=l||null==o.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(o),i=null;else{for(a=l,s=0;(a=a.nextSibling)&&s<r.length;s+=1)if(a==o)break e;e.insertBefore(o,l),i=l}return void 0!==i?i:o.nextSibling}function M(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function k(e,t,n,r,o){var l;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])l=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?r||e.addEventListener(t,l?A:R,l):e.removeEventListener(t,l?A:R,l);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function R(e){this.l[e.type+!1](o.event?o.event(e):e)}function A(e){this.l[e.type+!0](o.event?o.event(e):e)}function P(e,t,n,r,l,i,a,s,u){var c,f,p,_,h,v,b,g,w,O,E,x,S,M,k,R=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(c=o.__b)&&c(t);try{e:if("function"==typeof R){if(g=t.props,w=(c=R.contextType)&&r[c.__c],O=c?w?w.props.value:c.__:r,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in R&&R.prototype.render?t.__c=f=new R(g,O):(t.__c=f=new m(g,O),f.constructor=R,f.render=L),w&&w.sub(f),f.props=g,f.state||(f.state={}),f.context=O,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=R.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,R.getDerivedStateFromProps(g,f.__s))),_=f.props,h=f.state,p)null==R.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==R.getDerivedStateFromProps&&g!==_&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,O)||t.__v===n.__v){for(f.props=g,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(_,h,v)}))}if(f.context=O,f.props=g,f.__v=t,f.__P=e,x=o.__r,S=0,"prototype"in R&&R.prototype.render){for(f.state=f.__s,f.__d=!1,x&&x(t),c=f.render(f.props,f.state,f.context),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[]}else do{f.__d=!1,x&&x(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++S<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(_,h)),k=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(k)?k:[k],t,n,r,l,i,a,s,u),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=j(n.__e,t,n,r,l,i,a,u);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=i)&&(t.__e=s,t.__h=!!u,i[i.indexOf(s)]=null),o.__e(e,t,n)}}function T(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function j(e,t,n,o,l,i,a,s){var c,f,d,_=n.props,h=t.props,v=t.type,y=0;if("svg"===v&&(l=!0),null!=i)for(;y<i.length;y++)if((c=i[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,i[y]=null;break}if(null==e){if(null===v)return document.createTextNode(h);e=l?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),i=null,s=!1}if(null===v)_===h||s&&e.data===h||(e.data=h);else{if(i=i&&r.call(e.childNodes),f=(_=n.props||u).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!s){if(null!=i)for(_={},y=0;y<e.attributes.length;y++)_[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var l;for(l in n)"children"===l||"key"===l||l in t||k(e,l,null,n[l],r);for(l in t)o&&"function"!=typeof t[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===t[l]||k(e,l,t[l],n[l],r)}(e,h,_,l,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,n,o,l&&"foreignObject"!==v,i,a,i?i[0]:n.__k&&b(n,0),s),null!=i)for(y=i.length;y--;)null!=i[y]&&p(i[y]);s||("value"in h&&void 0!==(y=h.value)&&(y!==e.value||"progress"===v&&!y||"option"===v&&y!==_.value)&&k(e,"value",y,_.value,!1),"checked"in h&&void 0!==(y=h.checked)&&y!==e.checked&&k(e,"checked",y,_.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,l;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||N(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(l=0;l<r.length;l++)r[l]&&I(r[l],t,n||"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function D(e,t,n){var l,i,a;o.__&&o.__(e,t),i=(l="function"==typeof n)?null:n&&n.__k||t.__k,a=[],P(t,e=(!l&&n||t).__k=_(y,null,[e]),i||u,u,void 0!==t.ownerSVGElement,!l&&n?[n]:i?null:t.firstChild?r.call(t.childNodes):null,a,!l&&n?n:i?i.__e:t.firstChild,l),T(a,e)}function H(e,t){D(e,t,H)}function F(e,t,n){var o,l,i,a=d({},e.props);for(i in t)"key"==i?o=t[i]:"ref"==i?l=t[i]:a[i]=t[i];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),h(e.type,a,o||e.key,l||e.ref,null)}function U(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=c.slice,o={__e:function(e,t,n,r){for(var o,l,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((l=o.constructor)&&null!=l.getDerivedStateFromError&&(o.setState(l.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},l=0,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,i=[],O.__r=0,s=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Me:()=>k,Qb:()=>S,Ye:()=>C,_Y:()=>m,aP:()=>O,bt:()=>g,cO:()=>M,d4:()=>b,eJ:()=>y,qp:()=>x,sO:()=>w});var r,o,l,i,a=n(400),s=0,u=[],c=[],f=a.YM.__b,d=a.YM.__r,p=a.YM.diffed,_=a.YM.__c,h=a.YM.unmount;function v(e,t){a.YM.__h&&a.YM.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:c}),n.__[e]}function y(e){return s=1,m(I,e)}function m(e,t,n){var l=v(r++,2);if(l.t=e,!l.__c&&(l.__=[n?n(t):I(void 0,t),function(e){var t=l.__N?l.__N[0]:l.__[0],n=l.t(t,e);t!==n&&(l.__N=[n,l.__[1]],l.__c.setState({}))}],l.__c=o,!o.u)){o.u=!0;var i=o.shouldComponentUpdate;o.shouldComponentUpdate=function(e,t,n){if(!l.__c.__H)return!0;var r=l.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&l.__c.props===e)&&(!i||i.call(this,e,t,n))}}return l.__N||l.__}function b(e,t){var n=v(r++,3);!a.YM.__s&&N(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function g(e,t){var n=v(r++,4);!a.YM.__s&&N(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return s=5,C((function(){return{current:e}}),[])}function O(e,t,n){s=6,g((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function C(e,t){var n=v(r++,7);return N(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function E(e,t){return s=8,C((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function S(e,t){a.YM.useDebugValue&&a.YM.useDebugValue(t?t(e):e)}function M(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function R(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(T),e.__H.__h.forEach(j),e.__H.__h=[]}catch(t){e.__H.__h=[],a.YM.__e(t,e.__v)}}a.YM.__b=function(e){o=null,f&&f(e)},a.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(l===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0}))):(t.__h.forEach(T),t.__h.forEach(j),t.__h=[])),l=o},a.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&i===a.YM.requestAnimationFrame||((i=a.YM.requestAnimationFrame)||P)(R)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c}))),l=o=null},a.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(T),e.__h=e.__h.filter((function(e){return!e.__||j(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.YM.__e(n,e.__v)}})),_&&_(e,t)},a.YM.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{T(e)}catch(e){t=e}})),n.__H=void 0,t&&a.YM.__e(t,n.__v))};var A="function"==typeof requestAnimationFrame;function P(e){var t,n=function(){clearTimeout(r),A&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);A&&(t=requestAnimationFrame(n))}function T(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function j(e){var t=o;e.__c=e.__(),o=t}function N(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function I(e,t){return"function"==typeof t?t(e):t}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function l(){}l.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,l,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},871:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0},983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(661),i=_(l),a=_(n(661)),s=_(n(697)),u=_(n(747)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(149)),f=n(112),d=_(f),p=n(871);function _(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",m=f.canUseDOM&&void 0!==a.default.createPortal,b=function(e){return document.createElement(e)},g=function(){return m?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var O=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,s=Array(l),c=0;c<l;c++)s[c]=arguments[c];return n=o=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),o.removePortal=function(){!m&&a.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=g()(o,i.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},h(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(m||(this.node=b("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!m&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,l=r.portalClassName;e.portalClassName!==l&&(this.node.className=l);var i=n.prevParent,a=n.nextParent;a!==i&&(i.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!m&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&m?(!this.node&&m&&(this.node=b("div")),g()(i.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(l.Component);O.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},O.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},O.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(O),t.default=O},747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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},l=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(661),a=v(n(697)),s=h(n(685)),u=v(n(338)),c=h(n(149)),f=h(n(409)),d=n(112),p=v(d),_=v(n(623));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(63);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},m=function(e){return"Tab"===e.code||9===e.keyCode},b=function(e){return"Escape"===e.code||27===e.keyCode},g=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,l=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;l&&f.remove(a.body,l),o&&f.remove(a.getElementsByTagName("html")[0],o),r&&g>0&&0==(g-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),_.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){m(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&b(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},l=r.base;return n.state.afterOpen&&(l=l+" "+r.afterOpen),n.state.beforeClose&&(l=l+" "+r.beforeClose),"string"==typeof t&&t?l+" "+t:l},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,l=e.parentSelector,i=l&&l().ownerDocument||document;o&&f.add(i.body,o),r&&f.add(i.getElementsByTagName("html")[0],r),n&&(g+=1,c.hide(t)),_.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,l=e.defaultStyles,i=e.children,a=n?{}:l.content,s=o?{}:l.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,i);return this.props.overlayElement(u,f)}}]),t}(i.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(p.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(p.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=w,e.exports=t.default},149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&l.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return i=t||i},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,l=s(e)[Symbol.iterator]();!(t=(o=l.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(473))&&r.__esModule?r:{default:r},l=n(112),i=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},63:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[l,i],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}l=i=null,a=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(a.length);for(var e=[l,i],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(623))&&r.__esModule?r:{default:r},l=void 0,i=void 0,a=[];function s(){0!==a.length&&a[a.length-1].focusContent()}o.default.subscribe((function(e,t){l||i||((l=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",s),(i=l.cloneNode()).addEventListener("focus",s)),(a=t).length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(l.parentElement&&l.parentElement.removeChild(l),i.parentElement&&i.parentElement.removeChild(i))}))},409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var l=document.body;for(var i in r)o(l,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(l,e),o.add(e)}));var o,l},t.remove=function(e,t){return o=e.classList,l="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(l,e),0===l[e]&&o.remove(e)}));var o,l}},685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=u,t.markForFocusLater=function(){l.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==l.length&&(t=l.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){l.length>0&&l.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",u))};var r,o=(r=n(845))&&r.__esModule?r:{default:r},l=[],i=null,a=!1;function s(){a=!0}function u(){if(a){if(a=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(875))&&r.__esModule?r:{default:r}).default,l=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=l},338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1],u=l();if(e===u){if(!i)return;r=s}if(s!==u||i||(r=a),a===u&&i&&(r=s),r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var f=n.indexOf(u);if(f>-1&&(f+=i?-1:1),void 0===(r=n[f]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(845))&&r.__esModule?r:{default:r};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?l(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function l(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),l=o.getPropertyValue("display");return t?l!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):l===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),l(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(983))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>l,__asyncDelegator:()=>x,__asyncGenerator:()=>E,__asyncValues:()=>S,__await:()=>C,__awaiter:()=>_,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>j,__classPrivateFieldSet:()=>T,__createBinding:()=>v,__decorate:()=>a,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>o,__generator:()=>h,__importDefault:()=>A,__importStar:()=>R,__makeTemplateObject:()=>M,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>b,__rest:()=>i,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>g,__spreadArray:()=>O,__spreadArrays:()=>w,__values:()=>m});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])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new 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 l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,l=arguments.length,i=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(l<3?o(i):l>3?o(t,n,i):o(t,n))||i);return l>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,o,l){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,s=r.kind,u="getter"===s?"get":"setter"===s?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var _={};for(var h in r)_[h]="access"===h?{}:r[h];for(var h in r.access)_.access[h]=r.access[h];_.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");l.push(i(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[u],_);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=i(v.get))&&(f.get=a),(a=i(v.set))&&(f.set=a),(a=i(v.init))&&o.push(a)}else(a=i(v))&&("field"===s?o.push(a):f[u]=a)}c&&Object.defineProperty(c,r.name,f),d=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function _(e,t,n,r){return new(n||(n=Promise))((function(o,l){function i(e){try{s(r.next(e))}catch(e){l(e)}}function a(e){try{s(r.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function m(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var l=arguments[t],i=0,a=l.length;i<a;i++,o++)r[o]=l[i];return r}function O(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),l=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){l.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof C?Promise.resolve(n.value.v).then(s,u):c(l[0][2],n)}catch(e){c(l[0][3],e)}var n}function s(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),l.shift(),l.length&&a(l[0][0],l[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(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,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return k(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function j(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(400),t=0;function r(n,r,o,l,i){var a,s,u={};for(s in r)"ref"==s?a=r[s]:u[s]=r[s];var c={type:n,props:u,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--t,__source:i,__self:l};if("function"==typeof n&&(a=n.defaultProps))for(s in a)void 0===u[s]&&(u[s]=a[s]);return e.YM.vnode&&e.YM.vnode(c),c}var o=function(e){var t,n=e.selector,r=e.inline,o=e.clientSpecified,l=[],i=document.currentScript||(t=document.getElementsByTagName("script"))[t.length-1];if(!0===r){var a=i.parentNode;l.push(a)}return!0!==o||n||(n=function(e){var t=e.attributes,n=null;return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&"data-mount-in"===t[e].name&&(n=t[e].nodeValue)})),n}(i)),n&&[].forEach.call(document.querySelectorAll(n),(function(e){l.push(e)})),l};const l=function(t){var n=t;return{render:function(t){void 0===t&&(t={});var r=t.selector;void 0===r&&(r=null);var l=t.inline;void 0===l&&(l=!1);var i=t.clean;void 0===i&&(i=!1);var a=t.clientSpecified;void 0===a&&(a=!1);var s=t.defaultProps;void 0===s&&(s={});var u=o({selector:r,inline:l,clientSpecified:a}),c=function(){if(u.length>0){var t=o({selector:r,inline:l,clientSpecified:a});return function(t,n,r,o,l){n.forEach((function(n){var i=n;if(!i._habitat){i._habitat=!0;var a=function(e,t){void 0===t&&(t={});var n=e.attributes,r=Object.assign({},t);return Object.keys(n).forEach((function(e){if(n.hasOwnProperty(e)){var t=n[e].name;if(!t||"string"!=typeof t)return!1;var o=t.split(/(data-props?-)/).pop()||"";if(t!==(o=o.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()})))){var l=n[e].nodeValue;r[o]=l}}})),[].forEach.call(e.getElementsByTagName("script"),(function(e){var t={};if(e.hasAttribute("type")){if("text/props"!==e.getAttribute("type")&&"application/json"!==e.getAttribute("type"))return;try{t=JSON.parse(e.innerHTML)}catch(e){throw new Error(e)}Object.assign(r,t)}})),r}(n,l)||l;return o&&(i.innerHTML=""),(0,e.sY)((0,e.h)(t,a),i,r)}}))}(n,t,null,i,s)}};c(),document.addEventListener("DOMContentLoaded",c),document.addEventListener("load",c)}}};var i,a=n(736),s=n(396),u=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i},c={background:"repeating-linear-gradient(90deg, #000F, #0004 50%, #000F)",backgroundClip:"text",backgroundPosition:"40000px",color:"#0001",transition:"background 100s ease-out, color 0.15s ease-in"},f=function(e,t){var n=(0,s.I4)((function(n){var r=n.metaKey,o=n.ctrlKey,l=n.key;(r||o)&&l.toLowerCase()==e&&(n.preventDefault(),t())}),[t,e]);(0,s.d4)((function(){return document.addEventListener("keydown",n),function(){return document.removeEventListener("keydown",n)}}),[n])},d=n(253),p=n.n(d),_=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_.apply(this,arguments)},h=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,l=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}return i},v=function(t,n){void 0===n&&(n=20);var o=h((0,s.eJ)(!1),2),l=o[0],i=o[1],a=h((0,s.eJ)(r(e.HY,{})),2),u=a[0],c=a[1];return{modal:(0,s.Ye)((function(){return r(p(),_({ariaHideApp:!1,isOpen:l,onRequestClose:function(){return i(!1)},style:b},{children:[r("span",_({onClick:function(){return i(!1)},style:{cursor:"pointer",position:"absolute",top:7,right:9,zIndex:m.zIndex+1}},{children:"╳"})),r("div",_({style:{padding:n}},{children:t||u}))]}))}),[u,l,i,t]),setBody:c,toggle:(0,s.I4)((function(){return i(!l)}),[i,l])}},y={zIndex:1001},m=_(_({},y),{maxWidth:640,maxHeight:640,margin:"auto",padding:"2px 0 2px 0"}),b={overlay:y,content:m},g=n(360),w=n.n(g),O=(i=function(e,t){return i=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])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e){function t(n){var r=e.call(this,n)||this;return r.name="YaamError",Object.setPrototypeOf(r,t.prototype),r}return O(t,e),t}(Error),E=function(e){if(e=e.replace(/\s+/g,""),!A.test(e))throw new C("invalid input");var t=new x,n=new Array,r=t;if(e.match(R).forEach((function(e){if("("===e){n.push(r);var t=new x;r.children.push(t),r=t}else if(")"===e){if(!n.length)throw new C("unbalanced parentheses `)`");r=n.pop()}else r.children.push(e)})),n.length)throw new C("unbalanced parentheses `(`");return t},x=function(){function e(){this.children=new Array}return e.prototype.calculate=function(){var e=this,t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],this.children,!0);if(t.length%2==0)throw new C("invalid Node ".concat(t));if(S.forEach((function(n){for(var r=t.length-2;r>0;r--)if(t[r]===n){var o=e.toNumber(t[r-1]),l=e.toNumber(t[r+1]),i=void 0;switch(n){case"+":i=o+l;break;case"-":i=o-l;break;case"*":i=o*l;break;case"/":i=o/l;break;case"%":case"%":i=o%l;break;case"^":case"**":i=Math.pow(o,l);break;default:throw new C("unhandled operator ".concat(n))}t.splice(r-1,3,i)}})),1!==t.length)throw new C("invalid Node ".concat(t));return this.toNumber(t[0])},e.prototype.toNumber=function(t){if(t instanceof e)return t.calculate();if("number"==typeof t)return t;if(k.test(t)){var n=t.split("e"),r=n[0],o=n[1],l=Number(r);if(!isNaN(l))return void 0===o?l:l*Math.pow(10,Number(o))}throw new C("invalid token ".concat(t))},e}(),S=["**","^","%","/","*","+","-"],M=new RegExp("(?:"+S.map((function(e){return e.replace(/(?=.)/g,"\\")})).join("|")+")"),k=/(?:(?:\d+\.\d+|\d+)(?:e[+-]?\d+)?)/,R=new RegExp("(?:[()]|".concat(M.source,"|").concat(k.source,")"),"g"),A=new RegExp("\n ^\n ".concat(R.source,"*\n ").concat(k.source,"\n ").concat(R.source,"*\n ").concat(M.source,"\n ").concat(R.source,"*\n ").concat(k.source,"\n ").concat(R.source,"*\n $\n ").replace(/\s+/g,"")),P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)},T=function(e){return function(t){return t?[]:e.items.filter((function(e){return e.suggested}))}},j=function(e){var t=e.commandPattern,n=e.queryPath,r=(0,s.Ye)((function(){return t&&new RegExp(t.source,t.options)}),[t]);return function(e){return t=void 0,o=void 0,i=function(){return function(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(t){switch(t.label){case 0:return e&&n&&(null==r?void 0:r.test(e))?[4,fetch("".concat(n,"&q=").concat(e))]:[2,[]];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}}))},new((l=void 0)||(l=Promise))((function(e,n){function r(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof l?n:new l((function(e){e(n)}))).then(r,a)}s((i=i.apply(t,o||[])).next())}));var t,o,l,i}},N=function(t){var n=t.items;return function(t){return t?w().go(t,n,{key:"title"}).map((function(t){return P(P({},t.obj),{title:r(e.HY,{children:w().highlight(t,(function(e){return r("span",P({style:I},{children:e}))}))})})})):[]}},I={textShadow:"-0.06ex 0 0 currentColor, 0.06ex 0 0 currentColor"},L=function(e){var t=e.calculator;return function(e){var n=t&&e?function(e,t){void 0===t&&(t={});try{return function(e){return E(e).calculate()}(e)}catch(e){return t.verbose&&console.log(e),null}}(e):null;return null!==n?[{title:String(n),type:"default"}]:new Array}},D="rails-omnibar",H=n(320),F=n(483),U=n(439),Y=n(269),B=n(109),W=n(228),z=n(331),q=n(218),V=n(358),Q=n(496),K=n(65),G=n(505),$=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$.apply(this,arguments)};document.addEventListener("DOMContentLoaded",(function(){l(J).render({selector:"#mount-rails-omnibar"})})),document.addEventListener("turbo:load",(function(){l(J).render({selector:"#mount-rails-omnibar"})}));var J=function(e){var t=v(),n=(0,s.I4)((function(){setTimeout((function(){var e=document.querySelector("[data-id=".concat(D,"]"));document.activeElement===e?null==e||e.blur():null==e||e.focus()}),100)}),[]);return f(e.hotkey,n),r(e.modal?X:Z,$({},e,{itemModal:t}))},Z=function(t){var n,o,l,i,f,d,p,_=function(e){return(0,s.Ye)((function(){return[T(e),j(e),N(e),L(e)]}),[e])}(t),h=(n=t.itemModal,(0,s.I4)((function(e){if(e)if(e.url)window.location.href=e.url;else if(e.modalHTML){var t=e.modalHTML;n.setBody(r("div",{dangerouslySetInnerHTML:{__html:t}})),n.toggle()}}),[n])),v=(l=(o=u((0,s.eJ)(!1),2))[0],i=o[1],f=u((0,s.eJ)(null),2),d=f[0],p=f[1],{style:l?c:{},startTimer:function(){d&&clearTimeout(d),p(setTimeout((function(){return i(!0)}),100))},stop:function(){d&&clearTimeout(d),i(!1)}});return r(e.HY,{children:[r(a.ZP,{"data-id":D,extensions:_,maxResults:t.maxResults,onAction:h,onQueryStart:function(){return v.startTimer()},onQueryEnd:function(){return v.stop()},placeholder:t.placeholder,children:function(e){return ee($($({},e),{modal:t.modal}))},showEmpty:!0,style:$($({},t.modal?ne:te),v.style)}),t.itemModal.modal]})},X=function(e){var t=v(r(Z,$({},e)),0),n=t.modal,o=t.toggle;return f(e.hotkey,o),n},ee=function(e){var t,n=e.item,o={onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},l=(0,a.XS)(e),i=(t=n.icon)?"arrows"===t?H:"cloud"===t?F:"cog"===t?U:"dev"===t?Y:"document"===t?B:"home"===t?W:"question"===t?z:"search"===t?q:"sparkle"===t?V:"user"===t?Q:"wallet"===t?K:"x"===t?G:null:null;return r("div",$({},o,{style:$($({},l),e.modal?ne:te)},{children:[i&&r(i,{name:n.icon,style:re}),n.title]}))},te={height:36,fontSize:18,lineHeight:"".concat(36,"px")},ne=$($({},te),{border:0}),re={all:"revert",height:18,width:18,paddingRight:4.5,verticalAlign:"text-top"}})()})();
@@ -2,7 +2,7 @@ import React, {FunctionComponent, render} from "preact"
2
2
  import habitat from "preact-habitat"
3
3
  import Omnibar, {buildItemStyle} from "omnibar2"
4
4
  import {Globals} from "csstype"
5
- import {useItemAction, useOmnibarExtensions} from "./hooks"
5
+ import {useDelayedLoadingStyle, useItemAction, useOmnibarExtensions} from "./hooks"
6
6
  import {useHotkey, useModal, useToggleFocus} from "./hooks"
7
7
  import {AppArgs, INPUT_DATA_ID, Item, ModalArg} from "./types"
8
8
  import {iconClass} from "./icon"
@@ -11,6 +11,10 @@ document.addEventListener("DOMContentLoaded", () => {
11
11
  habitat(App).render({selector: "#mount-rails-omnibar"})
12
12
  })
13
13
 
14
+ document.addEventListener("turbo:load", () => {
15
+ habitat(App).render({selector: "#mount-rails-omnibar"})
16
+ })
17
+
14
18
  const App: FunctionComponent<AppArgs> = (args) => {
15
19
  const itemModal = useModal()
16
20
  const toggleFocus = useToggleFocus()
@@ -23,6 +27,7 @@ const App: FunctionComponent<AppArgs> = (args) => {
23
27
  const RailsOmnibar: FunctionComponent<AppArgs & ModalArg> = (args) => {
24
28
  const extensions = useOmnibarExtensions(args)
25
29
  const itemAction = useItemAction(args.itemModal)
30
+ const loadingStyle = useDelayedLoadingStyle();
26
31
 
27
32
  return (
28
33
  <>
@@ -31,10 +36,12 @@ const RailsOmnibar: FunctionComponent<AppArgs & ModalArg> = (args) => {
31
36
  extensions={extensions}
32
37
  maxResults={args.maxResults}
33
38
  onAction={itemAction}
39
+ onQueryStart={() => loadingStyle.startTimer()}
40
+ onQueryEnd={() => loadingStyle.stop()}
34
41
  placeholder={args.placeholder}
35
42
  children={(props) => renderItem({...props, modal: args.modal})}
36
43
  showEmpty
37
- style={args.modal ? MODAL_ROW_STYLE : ROW_STYLE}
44
+ style={{...(args.modal ? MODAL_ROW_STYLE : ROW_STYLE), ...loadingStyle.style}}
38
45
  />
39
46
  {args.itemModal.modal}
40
47
  </>
@@ -1,3 +1,4 @@
1
+ export * from "./use_delayed_loading_style"
1
2
  export * from "./use_hotkey"
2
3
  export * from "./use_item_action"
3
4
  export * from "./use_modal"
@@ -0,0 +1,26 @@
1
+ import {useState} from "preact/hooks"
2
+
3
+ export const useDelayedLoadingStyle = () => {
4
+ const [enabled, setEnabled] = useState(false)
5
+ const [timer, setTimer] = useState<ReturnType<typeof setTimeout> | null>(null)
6
+
7
+ const startTimer = () => {
8
+ if (timer) clearTimeout(timer)
9
+ setTimer(setTimeout(() => setEnabled(true), 100))
10
+ }
11
+
12
+ const stop = () => {
13
+ if (timer) clearTimeout(timer)
14
+ setEnabled(false)
15
+ }
16
+
17
+ return { style : enabled ? LOADING_STYLE : {}, startTimer, stop }
18
+ }
19
+
20
+ const LOADING_STYLE = {
21
+ background: "repeating-linear-gradient(90deg, #000F, #0004 50%, #000F)",
22
+ backgroundClip: "text",
23
+ backgroundPosition: "40000px",
24
+ color: "#0001",
25
+ transition: "background 100s ease-out, color 0.15s ease-in",
26
+ }
@@ -1,3 +1,3 @@
1
1
  class RailsOmnibar
2
- VERSION = '1.7.0'
2
+ VERSION = '1.8.0'
3
3
  end
data/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "dependencies": {
7
7
  "@heroicons/react": "^2.0.14",
8
8
  "fuzzysort": "^2.0.4",
9
- "omnibar2": "^2.4.5",
9
+ "omnibar2": "^2.5.0",
10
10
  "preact": "^10.11.3",
11
11
  "preact-habitat": "^3.3.0",
12
12
  "react-modal": "^3.16.1",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_omnibar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janosch Müller
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-07-02 00:00:00.000000000 Z
10
+ date: 2024-07-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: js_regex
@@ -65,6 +65,7 @@ files:
65
65
  - javascript/compiled.js
66
66
  - javascript/src/app.tsx
67
67
  - javascript/src/hooks/index.ts
68
+ - javascript/src/hooks/use_delayed_loading_style.tsx
68
69
  - javascript/src/hooks/use_hotkey.ts
69
70
  - javascript/src/hooks/use_item_action.tsx
70
71
  - javascript/src/hooks/use_modal.tsx