Plugin Directory

Changeset 2999670


Ignore:
Timestamp:
11/21/2023 04:54:42 PM (2 years ago)
Author:
heymehedi
Message:

Update to version 1.3.1 from GitHub

Location:
login-me-now
Files:
4 added
42 edited
1 copied

Legend:

Unmodified
Added
Removed
  • login-me-now/tags/1.3.1/App/Admin/Assets/build/dashboard-app.asset.php

    r2993672 r2999670  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => '5705de0449e7afe60a01');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => 'acfe39b157ab7da52682');
  • login-me-now/tags/1.3.1/App/Admin/Assets/build/dashboard-app.css

    r2993672 r2999670  
    745745}.mb-1 {
    746746  margin-bottom: 0.25rem;
    747 }.mb-16 {
    748   margin-bottom: 4rem;
     747}.mb-10 {
     748  margin-bottom: 2.5rem;
    749749}.mb-2 {
    750750  margin-bottom: 0.5rem;
     
    791791}.mr-2 {
    792792  margin-right: 0.5rem;
     793}.mr-20 {
     794  margin-right: 5rem;
    793795}.mr-4 {
    794796  margin-right: 1rem;
     
    803805}.mt-10 {
    804806  margin-top: 2.5rem;
     807}.mt-12 {
     808  margin-top: 3rem;
    805809}.mt-2 {
    806810  margin-top: 0.5rem;
    807811}.mt-3 {
    808812  margin-top: 0.75rem;
     813}.mt-4 {
     814  margin-top: 1rem;
    809815}.mt-5 {
    810816  margin-top: 1.25rem;
     
    813819}.mt-8 {
    814820  margin-top: 2rem;
     821}.mt-\[-4px\] {
     822  margin-top: -4px;
    815823}.mt-\[20px\] {
    816824  margin-top: 20px;
     
    855863}.h-\[16px\] {
    856864  height: 16px;
     865}.h-\[1px\] {
     866  height: 1px;
    857867}.h-\[2\.6rem\] {
    858868  height: 2.6rem;
     
    861871}.h-\[42px\] {
    862872  height: 42px;
     873}.h-\[44px\] {
     874  height: 44px;
    863875}.h-\[47vh\] {
    864876  height: 47vh;
     
    893905}.w-9\/12 {
    894906  width: 75%;
     907}.w-\[100px\] {
     908  width: 100px;
    895909}.w-\[132px\] {
    896910  width: 132px;
    897911}.w-\[142px\] {
    898912  width: 142px;
     913}.w-\[16\%\] {
     914  width: 16%;
    899915}.w-\[16px\] {
    900916  width: 16px;
     917}.w-\[20\%\] {
     918  width: 20%;
    901919}.w-\[30\%\] {
    902920  width: 30%;
     
    907925}.w-\[400px\] {
    908926  width: 400px;
     927}.w-\[42\%\] {
     928  width: 42%;
    909929}.w-\[49\%\] {
    910930  width: 49%;
     931}.w-\[50px\] {
     932  width: 50px;
    911933}.w-\[60\%\] {
    912934  width: 60%;
     
    10821104}.rounded-\[0\.1875rem\] {
    10831105  border-radius: 0.1875rem;
     1106}.rounded-\[12px\] {
     1107  border-radius: 12px;
    10841108}.rounded-\[3px\] {
    10851109  border-radius: 3px;
    10861110}.rounded-\[4px\] {
    10871111  border-radius: 4px;
     1112}.rounded-\[6px\] {
     1113  border-radius: 6px;
    10881114}.rounded-\[8px\] {
    10891115  border-radius: 8px;
     
    11441170  --tw-border-opacity: 1;
    11451171  border-color: rgb(16 172 132 / var(--tw-border-opacity));
     1172}.border-\[\#1755aa\] {
     1173  --tw-border-opacity: 1;
     1174  border-color: rgb(23 85 170 / var(--tw-border-opacity));
    11461175}.border-\[\#9F9F9F\] {
    11471176  --tw-border-opacity: 1;
    11481177  border-color: rgb(159 159 159 / var(--tw-border-opacity));
     1178}.border-\[\#CCCCBE\] {
     1179  --tw-border-opacity: 1;
     1180  border-color: rgb(204 204 190 / var(--tw-border-opacity));
    11491181}.border-\[\#DFDFDF\] {
    11501182  --tw-border-opacity: 1;
     
    12051237  --tw-border-opacity: 1;
    12061238  border-top-color: rgb(226 232 240 / var(--tw-border-opacity));
     1239}.\!bg-\[\#F8FAFC\] {
     1240  --tw-bg-opacity: 1 !important;
     1241  background-color: rgb(248 250 252 / var(--tw-bg-opacity)) !important;
     1242}.bg-\[\#007CBA\] {
     1243  --tw-bg-opacity: 1;
     1244  background-color: rgb(0 124 186 / var(--tw-bg-opacity));
    12071245}.bg-\[\#00F27F\] {
    12081246  --tw-bg-opacity: 1;
     
    12191257}.bg-\[\#0da071b0\] {
    12201258  background-color: #0da071b0;
     1259}.bg-\[\#1755aa\] {
     1260  --tw-bg-opacity: 1;
     1261  background-color: rgb(23 85 170 / var(--tw-bg-opacity));
     1262}.bg-\[\#1877F2\] {
     1263  --tw-bg-opacity: 1;
     1264  background-color: rgb(24 119 242 / var(--tw-bg-opacity));
    12211265}.bg-\[\#28a745\] {
    12221266  --tw-bg-opacity: 1;
    12231267  background-color: rgb(40 167 69 / var(--tw-bg-opacity));
     1268}.bg-\[\#6CB336\] {
     1269  --tw-bg-opacity: 1;
     1270  background-color: rgb(108 179 54 / var(--tw-bg-opacity));
     1271}.bg-\[\#9F9F9F\] {
     1272  --tw-bg-opacity: 1;
     1273  background-color: rgb(159 159 159 / var(--tw-bg-opacity));
     1274}.bg-\[\#CEB64B\] {
     1275  --tw-bg-opacity: 1;
     1276  background-color: rgb(206 182 75 / var(--tw-bg-opacity));
    12241277}.bg-\[\#D9F5EC\] {
    12251278  --tw-bg-opacity: 1;
    12261279  background-color: rgb(217 245 236 / var(--tw-bg-opacity));
     1280}.bg-\[\#DF5840\] {
     1281  --tw-bg-opacity: 1;
     1282  background-color: rgb(223 88 64 / var(--tw-bg-opacity));
    12271283}.bg-\[\#EDEDED\] {
    12281284  --tw-bg-opacity: 1;
     
    12341290  --tw-bg-opacity: 1;
    12351291  background-color: rgb(241 250 248 / var(--tw-bg-opacity));
    1236 }.bg-\[\#F6756B\] {
    1237   --tw-bg-opacity: 1;
    1238   background-color: rgb(246 117 107 / var(--tw-bg-opacity));
    12391292}.bg-\[\#F8FAFC\] {
    12401293  --tw-bg-opacity: 1;
     
    12581311  --tw-bg-opacity: 1;
    12591312  background-color: rgb(246 246 246 / var(--tw-bg-opacity));
     1313}.bg-\[\#f8fafc\] {
     1314  --tw-bg-opacity: 1;
     1315  background-color: rgb(248 250 252 / var(--tw-bg-opacity));
     1316}.bg-\[\#ffffff\] {
     1317  --tw-bg-opacity: 1;
     1318  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
    12601319}.bg-black {
    12611320  --tw-bg-opacity: 1;
     
    13231382  padding-left: 3.5rem;
    13241383  padding-right: 3.5rem;
     1384}.px-16 {
     1385  padding-left: 4rem;
     1386  padding-right: 4rem;
    13251387}.px-2 {
    13261388  padding-left: 0.5rem;
     
    13711433  padding-top: 0.625rem;
    13721434  padding-bottom: 0.625rem;
     1435}.py-20 {
     1436  padding-top: 5rem;
     1437  padding-bottom: 5rem;
    13731438}.py-3 {
    13741439  padding-top: 0.75rem;
     
    14171482}.pb-3 {
    14181483  padding-bottom: 0.75rem;
     1484}.pb-4 {
     1485  padding-bottom: 1rem;
    14191486}.pb-5 {
    14201487  padding-bottom: 1.25rem;
     
    14431510}.pr-3 {
    14441511  padding-right: 0.75rem;
     1512}.pr-8 {
     1513  padding-right: 2rem;
    14451514}.pr-\[10\%\] {
    14461515  padding-right: 10%;
     
    14551524}.pt-3 {
    14561525  padding-top: 0.75rem;
     1526}.pt-4 {
     1527  padding-top: 1rem;
    14571528}.pt-6 {
    14581529  padding-top: 1.5rem;
     
    15291600}.leading-\[1\.375rem\] {
    15301601  line-height: 1.375rem;
     1602}.leading-\[1\.625rem\] {
     1603  line-height: 1.625rem;
    15311604}.leading-\[1\.7\] {
    15321605  line-height: 1.7;
     
    15371610}.leading-\[32px\] {
    15381611  line-height: 32px;
    1539 }.leading-\[34px\] {
    1540   line-height: 34px;
    15411612}.leading-loose {
    15421613  line-height: 2;
     
    15901661  --tw-text-opacity: 1;
    15911662  color: rgb(80 215 30 / var(--tw-text-opacity));
     1663}.text-\[\#5cabd3\] {
     1664  --tw-text-opacity: 1;
     1665  color: rgb(92 171 211 / var(--tw-text-opacity));
     1666}.text-\[\#646464\] {
     1667  --tw-text-opacity: 1;
     1668  color: rgb(100 100 100 / var(--tw-text-opacity));
    15921669}.text-\[\#6B6D71\] {
    15931670  --tw-text-opacity: 1;
     
    16441721  -webkit-text-decoration-line: underline;
    16451722          text-decoration-line: underline;
     1723}.placeholder-\[\#9be99b\]::-moz-placeholder {
     1724  --tw-placeholder-opacity: 1;
     1725  color: rgb(155 233 155 / var(--tw-placeholder-opacity));
     1726}.placeholder-\[\#9be99b\]::placeholder {
     1727  --tw-placeholder-opacity: 1;
     1728  color: rgb(155 233 155 / var(--tw-placeholder-opacity));
    16461729}.opacity-0 {
    16471730  opacity: 0;
     
    16501733}.opacity-40 {
    16511734  opacity: 0.4;
     1735}.opacity-60 {
     1736  opacity: 0.6;
    16521737}.shadow {
    16531738  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
     
    16611746  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    16621747  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
     1748  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1749}.shadow-md {
     1750  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
     1751  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    16631752  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    16641753}.shadow-overlay-light {
     
    17571846  --tw-border-opacity: 1;
    17581847  border-left-color: rgb(226 232 240 / var(--tw-border-opacity));
     1848}.hover\:bg-\[\#1754aae3\]:hover {
     1849  background-color: #1754aae3;
    17591850}.hover\:bg-\[\#218838\]:hover {
    17601851  --tw-bg-opacity: 1;
    17611852  background-color: rgb(33 136 56 / var(--tw-bg-opacity));
    1762 }.hover\:bg-\[\#FF7C6E\]:hover {
    1763   --tw-bg-opacity: 1;
    1764   background-color: rgb(255 124 110 / var(--tw-bg-opacity));
    17651853}.hover\:bg-\[\#ac0412\]:hover {
    17661854  --tw-bg-opacity: 1;
     
    18431931  --tw-border-opacity: 1;
    18441932  border-color: rgb(203 213 225 / var(--tw-border-opacity));
     1933}.focus-visible\:bg-\[\#1754aae3\]:focus-visible {
     1934  background-color: #1754aae3;
    18451935}.focus-visible\:bg-lmn-hover:focus-visible {
    18461936  --tw-bg-opacity: 1;
     
    23272417    grid-template-columns: repeat(2, minmax(0, 1fr));
    23282418  }
     2419 
    23292420}
    23302421
     
    23862477input#site_wide,
    23872478input#login_screen,
    2388 input#selected_pages {
     2479input#selected_pages,
     2480input#bellow,
     2481input#bellow_with_separator,
     2482input#above,
     2483input#above_with_separator,
     2484input#login_text,
     2485input#login_icon{
    23892486  height: 20px !important;
    23902487  width: 20px !important;
  • login-me-now/tags/1.3.1/App/Admin/Assets/build/dashboard-app.js

    r2993672 r2999670  
    1 !function(){var e,t,n={660:function(){window.astWpMenuClassChange=function(e){const t=lmn_admin.home_slug;let n="admin.php?page="+t;"custom-layouts"===e&&(n="admin.php?page="+t+"&path=custom-layouts");const r=`.wp-submenu-wrap li > a[href$="${n}"]`,o=document.querySelectorAll(r);Array.from(document.getElementsByClassName("current")).forEach((function(e){e.parentElement.classList.contains("wp-submenu")&&e.classList.remove("current")})),Array.from(o).forEach((function(e){e.parentElement.classList.add("current")}))}},184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},640:function(e,t,n){"use strict";var r=n(742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},71:function(e,t,n){"use strict";n.r(t),n.d(t,{createBrowserHistory:function(){return S},createHashHistory:function(){return P},createLocation:function(){return g},createMemoryHistory:function(){return T},createPath:function(){return h},locationsAreEqual:function(){return v},parsePath:function(){return m}});var r=n(462);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],l=e&&o(e),s=t&&o(t),c=l||s;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=i.length;f>=0;f--){var p=i[f];"."===p?a(i,f):".."===p?(a(i,f),d++):d&&(a(i,f),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var s=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(e,t,n,o){var a;"string"==typeof e?(a=m(e)).state=t:(void 0===(a=(0,r.Z)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function b(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(e,t){t(window.confirm(e))}var w="popstate",E="hashchange";function C(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,l=i.forceRefresh,s=void 0!==l&&l,d=i.getUserConfirmation,m=void 0===d?x:d,v=i.keyLength,S=void 0===v?6:v,_=e.basename?p(u(e.basename)):"";function O(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return _&&(a=f(a,_)),g(a,r,n)}function N(){return Math.random().toString(36).substr(2,S)}var k=b();function A(e){(0,r.Z)(B,e),B.length=n.length,k.notifyListeners(B.location,B.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||L(O(e.state))}function F(){L(O(C()))}var T=!1;function L(e){T?(T=!1,A()):k.confirmTransitionTo(e,"POP",m,(function(t){t?A({action:"POP",location:e}):function(e){var t=B.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(T=!0,R(o))}(e)}))}var I=O(C()),M=[I.key];function D(e){return _+h(e)}function R(e){n.go(e)}var j=0;function $(e){1===(j+=e)&&1===e?(window.addEventListener(w,P),a&&window.addEventListener(E,F)):0===j&&(window.removeEventListener(w,P),a&&window.removeEventListener(E,F))}var V=!1,B={length:n.length,action:"POP",location:I,createHref:D,push:function(e,t){var r="PUSH",a=g(e,t,N(),B.location);k.confirmTransitionTo(a,r,m,(function(e){if(e){var t=D(a),i=a.key,l=a.state;if(o)if(n.pushState({key:i,state:l},null,t),s)window.location.href=t;else{var c=M.indexOf(B.location.key),u=M.slice(0,c+1);u.push(a.key),M=u,A({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=g(e,t,N(),B.location);k.confirmTransitionTo(a,r,m,(function(e){if(e){var t=D(a),i=a.key,l=a.state;if(o)if(n.replaceState({key:i,state:l},null,t),s)window.location.replace(t);else{var c=M.indexOf(B.location.key);-1!==c&&(M[c]=a.key),A({action:r,location:a})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return V||($(1),V=!0),function(){return V&&(V=!1,$(-1)),t()}},listen:function(e){var t=k.appendListener(e);return $(1),function(){$(-1),t()}}};return B}var _="hashchange",O={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function N(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function A(e){window.location.replace(N(window.location.href)+"#"+e)}function P(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?x:o,i=n.hashType,l=void 0===i?"slash":i,s=e.basename?p(u(e.basename)):"",d=O[l],m=d.encodePath,v=d.decodePath;function w(){var e=v(k());return s&&(e=f(e,s)),g(e)}var E=b();function C(e){(0,r.Z)(V,e),V.length=t.length,E.notifyListeners(V.location,V.action)}var S=!1,P=null;function F(){var e,t,n=k(),r=m(n);if(n!==r)A(r);else{var o=w(),i=V.location;if(!S&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===h(o))return;P=null,function(e){if(S)S=!1,C();else{E.confirmTransitionTo(e,"POP",a,(function(t){t?C({action:"POP",location:e}):function(e){var t=V.location,n=M.lastIndexOf(h(t));-1===n&&(n=0);var r=M.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(S=!0,D(o))}(e)}))}}(o)}}var T=k(),L=m(T);T!==L&&A(L);var I=w(),M=[h(I)];function D(e){t.go(e)}var R=0;function j(e){1===(R+=e)&&1===e?window.addEventListener(_,F):0===R&&window.removeEventListener(_,F)}var $=!1,V={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=N(window.location.href)),n+"#"+m(s+h(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,V.location);E.confirmTransitionTo(r,n,a,(function(e){if(e){var t=h(r),o=m(s+t);if(k()!==o){P=t,function(e){window.location.hash=e}(o);var a=M.lastIndexOf(h(V.location)),i=M.slice(0,a+1);i.push(t),M=i,C({action:n,location:r})}else C()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,V.location);E.confirmTransitionTo(r,n,a,(function(e){if(e){var t=h(r),o=m(s+t);k()!==o&&(P=t,A(o));var a=M.indexOf(h(V.location));-1!==a&&(M[a]=t),C({action:n,location:r})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return $||(j(1),$=!0),function(){return $&&($=!1,j(-1)),t()}},listen:function(e){var t=E.appendListener(e);return j(1),function(){j(-1),t()}}};return V}function F(e,t,n){return Math.min(Math.max(e,t),n)}function T(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,l=void 0===i?0:i,s=t.keyLength,c=void 0===s?6:s,u=b();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=F(l,0,a.length-1),m=a.map((function(e){return g(e,void 0,"string"==typeof e?f():e.key||f())})),v=h;function y(e){var t=F(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:v,push:function(e,t){var r="PUSH",o=g(e,t,f(),x.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=g(e,t,f(),x.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(x.entries[x.index]=o,d({action:r,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},679:function(e,t,n){"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),h=s(n),g=0;g<i.length;++g){var v=i[g];if(!(a[v]||r&&r[v]||h&&h[v]||l&&l[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},103:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case s:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},296:function(e,t,n){"use strict";e.exports=n(103)},826:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},878:function(e,t,n){"use strict";n(128)},128:function(e,t,n){"use strict";var r,o=n(196),a=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.multiSelectContainer,.multiSelectContainer *,.multiSelectContainer :after,.multiSelectContainer :before{box-sizing:border-box}.multiSelectContainer{position:relative;text-align:left;width:100%}.disable_ms{opacity:.5;pointer-events:none}.display-none{display:none}.searchWrapper{border:1px solid #ccc;border-radius:4px;min-height:22px;padding:5px;position:relative}.multiSelectContainer input{background:transparent;border:none;margin-top:3px}.multiSelectContainer input:focus{outline:none}.chip{align-items:center;background:#0096fb;border-radius:11px;color:#fff;display:inline-flex;font-size:13px;line-height:19px;margin-bottom:5px;margin-right:5px;padding:4px 10px}.chip,.singleChip{white-space:nowrap}.singleChip{background:none;border-radius:none;color:inherit}.singleChip i{display:none}.closeIcon{cursor:pointer;float:right;height:13px;margin-left:5px;width:13px}.optionListContainer{background:#fff;border-radius:4px;margin-top:1px;position:absolute;width:100%;z-index:2}.multiSelectContainer ul{border:1px solid #ccc;border-radius:4px;display:block;margin:0;max-height:250px;overflow-y:auto;padding:0}.multiSelectContainer li{padding:10px}.multiSelectContainer li:hover{background:#0096fb;color:#fff;cursor:pointer}.checkbox{margin-right:10px}.disableSelection{opacity:.5;pointer-events:none}.highlightOption{background:#0096fb;color:#fff}.displayBlock{display:block}.displayNone{display:none}.notFound{display:block;padding:10px}.singleSelect{padding-right:20px}li.groupHeading{color:#908e8e;padding:5px 15px;pointer-events:none}li.groupChildEle{padding-left:30px}.icon_down_dir{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:14px}.icon_down_dir:before{content:"\\e803"}.custom-close{display:flex}');var s={circle:"data:image/svg+xml,%3Csvg%20height%3D%22512px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512px%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M256%2C33C132.3%2C33%2C32%2C133.3%2C32%2C257c0%2C123.7%2C100.3%2C224%2C224%2C224c123.7%2C0%2C224-100.3%2C224-224C480%2C133.3%2C379.7%2C33%2C256%2C33z%20%20%20%20M364.3%2C332.5c1.5%2C1.5%2C2.3%2C3.5%2C2.3%2C5.6c0%2C2.1-0.8%2C4.2-2.3%2C5.6l-21.6%2C21.7c-1.6%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3L256%2C289.8%20%20%20l-75.4%2C75.7c-1.5%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3l-21.6-21.7c-1.5-1.5-2.3-3.5-2.3-5.6c0-2.1%2C0.8-4.2%2C2.3-5.6l75.7-76%20%20%20l-75.9-75c-3.1-3.1-3.1-8.2%2C0-11.3l21.6-21.7c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l75.7%2C74.7l75.7-74.7%20%20%20c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l21.6%2C21.7c3.1%2C3.1%2C3.1%2C8.2%2C0%2C11.3l-75.9%2C75L364.3%2C332.5z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",circle2:"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2096%2096%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M48%2C0A48%2C48%2C0%2C1%2C0%2C96%2C48%2C48.0512%2C48.0512%2C0%2C0%2C0%2C48%2C0Zm0%2C84A36%2C36%2C0%2C1%2C1%2C84%2C48%2C36.0393%2C36.0393%2C0%2C0%2C1%2C48%2C84Z%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M64.2422%2C31.7578a5.9979%2C5.9979%2C0%2C0%2C0-8.4844%2C0L48%2C39.5156l-7.7578-7.7578a5.9994%2C5.9994%2C0%2C0%2C0-8.4844%2C8.4844L39.5156%2C48l-7.7578%2C7.7578a5.9994%2C5.9994%2C0%2C1%2C0%2C8.4844%2C8.4844L48%2C56.4844l7.7578%2C7.7578a5.9994%2C5.9994%2C0%2C0%2C0%2C8.4844-8.4844L56.4844%2C48l7.7578-7.7578A5.9979%2C5.9979%2C0%2C0%2C0%2C64.2422%2C31.7578Z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",close:"data:image/svg+xml,%3Csvg%20height%3D%22135.467mm%22%20style%3D%22shape-rendering%3AgeometricPrecision%3B%20text-rendering%3AgeometricPrecision%3B%20image-rendering%3AoptimizeQuality%3B%20fill-rule%3Aevenodd%3B%20clip-rule%3Aevenodd%22%20viewBox%3D%220%200%2013547%2013547%22%20width%3D%22135.467mm%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20%20%20%20%20.fil0%20%7Bfill%3Anone%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil1%20%7Bfill%3A%23fff%7D%20%20%20%20%20%20%20%20%3C%2Fstyle%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22Ebene_x0020_1%22%3E%20%20%20%20%20%20%20%20%3Cpolygon%20class%3D%22fil0%22%20points%3D%220%2C0%2013547%2C0%2013547%2C13547%200%2C13547%20%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil1%22%20d%3D%22M714%2012832l12118%200%200%20-12117%20-12118%200%200%2012117zm4188%20-2990l1871%20-1871%201871%201871%201197%20-1197%20-1871%20-1871%201871%20-1871%20-1197%20-1197%20-1871%201871%20-1871%20-1871%20-1197%201197%201871%201871%20-1871%201871%201197%201197z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",cancel:"data:image/svg+xml,%3Csvg%20height%3D%22512px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512px%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M443.6%2C387.1L312.4%2C255.4l131.5-130c5.4-5.4%2C5.4-14.2%2C0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7%2C0-7.2%2C1.5-9.8%2C4%20%20L256%2C197.8L124.9%2C68.3c-2.6-2.6-6.1-4-9.8-4c-3.7%2C0-7.2%2C1.5-9.8%2C4L68%2C105.9c-5.4%2C5.4-5.4%2C14.2%2C0%2C19.6l131.5%2C130L68.4%2C387.1%20%20c-2.6%2C2.6-4.1%2C6.1-4.1%2C9.8c0%2C3.7%2C1.4%2C7.2%2C4.1%2C9.8l37.4%2C37.6c2.7%2C2.7%2C6.2%2C4.1%2C9.8%2C4.1c3.5%2C0%2C7.1-1.3%2C9.8-4.1L256%2C313.1l130.7%2C131.1%20%20c2.7%2C2.7%2C6.2%2C4.1%2C9.8%2C4.1c3.5%2C0%2C7.1-1.3%2C9.8-4.1l37.4-37.6c2.6-2.6%2C4.1-6.1%2C4.1-9.8C447.7%2C393.2%2C446.2%2C389.7%2C443.6%2C387.1z%22%2F%3E%3C%2Fsvg%3E"};function c(e){var t,n,r=o.useRef(null);return n=e.outsideClick,o.useEffect((function(){function e(e){t.current&&!t.current.contains(e.target)&&n()}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t=r]),a.createElement("div",{ref:r},e.children)}var u=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={inputValue:"",options:t.options,filteredOptions:t.options,unfilteredOptions:t.options,selectedValues:Object.assign([],t.selectedValues),preSelectedValues:Object.assign([],t.selectedValues),toggleOptionsList:!1,highlightOption:t.avoidHighlightFirstOption?-1:0,showCheckbox:t.showCheckbox,keepSearchTerm:t.keepSearchTerm,groupedObject:[],closeIconType:s[t.closeIcon]||s.circle},n.optionTimeout=null,n.searchWrapper=a.createRef(),n.searchBox=a.createRef(),n.onChange=n.onChange.bind(l(n)),n.onKeyPress=n.onKeyPress.bind(l(n)),n.onFocus=n.onFocus.bind(l(n)),n.onBlur=n.onBlur.bind(l(n)),n.renderMultiselectContainer=n.renderMultiselectContainer.bind(l(n)),n.renderSelectedList=n.renderSelectedList.bind(l(n)),n.onRemoveSelectedItem=n.onRemoveSelectedItem.bind(l(n)),n.toggelOptionList=n.toggelOptionList.bind(l(n)),n.onArrowKeyNavigation=n.onArrowKeyNavigation.bind(l(n)),n.onSelectItem=n.onSelectItem.bind(l(n)),n.filterOptionsByInput=n.filterOptionsByInput.bind(l(n)),n.removeSelectedValuesFromOptions=n.removeSelectedValuesFromOptions.bind(l(n)),n.isSelectedValue=n.isSelectedValue.bind(l(n)),n.fadeOutSelection=n.fadeOutSelection.bind(l(n)),n.isDisablePreSelectedValues=n.isDisablePreSelectedValues.bind(l(n)),n.renderGroupByOptions=n.renderGroupByOptions.bind(l(n)),n.renderNormalOption=n.renderNormalOption.bind(l(n)),n.listenerCallback=n.listenerCallback.bind(l(n)),n.resetSelectedValues=n.resetSelectedValues.bind(l(n)),n.getSelectedItems=n.getSelectedItems.bind(l(n)),n.getSelectedItemsCount=n.getSelectedItemsCount.bind(l(n)),n.hideOnClickOutside=n.hideOnClickOutside.bind(l(n)),n.onCloseOptionList=n.onCloseOptionList.bind(l(n)),n.isVisible=n.isVisible.bind(l(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var o=r.prototype;return o.initialSetValue=function(){var e=this.props,t=e.groupBy,n=this.state.options;e.showCheckbox||e.singleSelect||this.removeSelectedValuesFromOptions(!1),t&&this.groupByOptions(n)},o.resetSelectedValues=function(){var e=this,t=this.state.unfilteredOptions;return new Promise((function(n){e.setState({selectedValues:[],preSelectedValues:[],options:t,filteredOptions:t},(function(){n(),e.initialSetValue()}))}))},o.getSelectedItems=function(){return this.state.selectedValues},o.getSelectedItemsCount=function(){return this.state.selectedValues.length},o.componentDidMount=function(){this.initialSetValue(),this.searchWrapper.current.addEventListener("click",this.listenerCallback)},o.componentDidUpdate=function(e){var t=this.props,n=t.options,r=t.selectedValues,o=e.selectedValues;JSON.stringify(e.options)!==JSON.stringify(n)&&this.setState({options:n,filteredOptions:n,unfilteredOptions:n},this.initialSetValue),JSON.stringify(o)!==JSON.stringify(r)&&this.setState({selectedValues:Object.assign([],r),preSelectedValues:Object.assign([],r)},this.initialSetValue)},o.listenerCallback=function(){this.searchBox.current.focus()},o.componentWillUnmount=function(){this.optionTimeout&&clearTimeout(this.optionTimeout),this.searchWrapper.current.removeEventListener("click",this.listenerCallback)},o.removeSelectedValuesFromOptions=function(e){var t=this.props,n=t.isObject,r=t.displayValue,o=t.groupBy,a=this.state,i=a.selectedValues,l=void 0===i?[]:i,s=a.unfilteredOptions;if(!e&&o&&this.groupByOptions(a.options),l.length||e){if(n){var c=s.filter((function(e){return-1===l.findIndex((function(t){return t[r]===e[r]}))}));return o&&this.groupByOptions(c),void this.setState({options:c,filteredOptions:c},this.filterOptionsByInput)}var u=s.filter((function(e){return-1===l.indexOf(e)}));this.setState({options:u,filteredOptions:u},this.filterOptionsByInput)}},o.groupByOptions=function(e){var t=this.props.groupBy,n=e.reduce((function(e,n){var r=n[t]||"Others";return e[r]=e[r]||[],e[r].push(n),e}),Object.create({}));this.setState({groupedObject:n})},o.onChange=function(e){var t=this.props.onSearch;this.setState({inputValue:e.target.value},this.filterOptionsByInput),t&&t(e.target.value)},o.onKeyPress=function(e){var t=this.props.onKeyPressFn;t&&t(e,e.target.value)},o.filterOptionsByInput=function(){var e,t=this,n=this.state,r=n.inputValue,o=this.props,a=o.displayValue;e=n.filteredOptions.filter(o.isObject?function(e){return t.matchValues(e[a],r)}:function(e){return t.matchValues(e,r)}),this.groupByOptions(e),this.setState({options:e})},o.matchValues=function(e,t){return this.props.caseSensitiveSearch?e.indexOf(t)>-1:e.toLowerCase?e.toLowerCase().indexOf(t.toLowerCase())>-1:e.toString().indexOf(t)>-1},o.onArrowKeyNavigation=function(e){var t=this.state,n=t.options,r=t.highlightOption,o=t.toggleOptionsList,a=t.selectedValues;if(8!==e.keyCode||t.inputValue||this.props.disablePreSelectedValues||!a.length||this.onRemoveSelectedItem(a.length-1),n.length)if(38===e.keyCode)this.setState(r>0?function(e){return{highlightOption:e.highlightOption-1}}:{highlightOption:n.length-1});else if(40===e.keyCode)this.setState(r<n.length-1?function(e){return{highlightOption:e.highlightOption+1}}:{highlightOption:0});else if("Enter"===e.key&&n.length&&o){if(-1===r)return;this.onSelectItem(n[r])}},o.onRemoveSelectedItem=function(e){var t,n=this,r=this.state.selectedValues,o=this.props,a=o.onRemove,i=o.showCheckbox,l=o.displayValue;t=o.isObject?r.findIndex((function(t){return t[l]===e[l]})):r.indexOf(e),r.splice(t,1),a(r,e),this.setState({selectedValues:r},(function(){i||n.removeSelectedValuesFromOptions(!0)})),this.props.closeOnSelect||this.searchBox.current.focus()},o.onSelectItem=function(e){var t=this,n=this.state.selectedValues,r=this.props,o=r.selectionLimit,a=r.onSelect,i=r.singleSelect,l=r.showCheckbox;if(this.state.keepSearchTerm||this.setState({inputValue:""}),i)return this.onSingleSelect(e),void a([e],e);this.isSelectedValue(e)?this.onRemoveSelectedItem(e):o!=n.length&&(n.push(e),a(n,e),this.setState({selectedValues:n},(function(){l?t.filterOptionsByInput():t.removeSelectedValuesFromOptions(!0)})),this.props.closeOnSelect||this.searchBox.current.focus())},o.onSingleSelect=function(e){this.setState({selectedValues:[e],toggleOptionsList:!1})},o.isSelectedValue=function(e){var t=this.props,n=t.displayValue,r=this.state.selectedValues;return t.isObject?r.filter((function(t){return t[n]===e[n]})).length>0:r.filter((function(t){return t===e})).length>0},o.renderOptionList=function(){var e=this.props,t=e.groupBy,n=e.style,r=e.emptyRecordMsg,o=e.loadingMessage,i=void 0===o?"loading...":o,l=this.state.options;return e.loading?a.createElement("ul",{className:"optionContainer",style:n.optionContainer},"string"==typeof i&&a.createElement("span",{style:n.loadingMessage,className:"notFound"},i),"string"!=typeof i&&i):a.createElement("ul",{className:"optionContainer",style:n.optionContainer},0===l.length&&a.createElement("span",{style:n.notFound,className:"notFound"},r),t?this.renderGroupByOptions():this.renderNormalOption())},o.renderGroupByOptions=function(){var e=this,t=this.props,n=t.isObject,r=void 0!==n&&n,o=t.displayValue,i=t.showCheckbox,l=t.style,s=t.singleSelect,c=this.state.groupedObject;return Object.keys(c).map((function(t){return a.createElement(a.Fragment,{key:t},a.createElement("li",{className:"groupHeading",style:l.groupHeading},t),c[t].map((function(t,n){var c=e.isSelectedValue(t);return a.createElement("li",{key:"option"+n,style:l.option,className:"groupChildEle option "+(c?"selected":"")+" "+(e.fadeOutSelection(t)?"disableSelection":"")+" "+(e.isDisablePreSelectedValues(t)?"disableSelection":""),onClick:function(){return e.onSelectItem(t)}},i&&!s&&a.createElement("input",{type:"checkbox",className:"checkbox",readOnly:!0,checked:c}),e.props.optionValueDecorator(r?t[o]:(t||"").toString(),t))})))}))},o.renderNormalOption=function(){var e=this,t=this.props,n=t.isObject,r=void 0!==n&&n,o=t.displayValue,i=t.showCheckbox,l=t.style,s=t.singleSelect,c=this.state.highlightOption;return this.state.options.map((function(t,n){var u=e.isSelectedValue(t);return a.createElement("li",{key:"option"+n,style:l.option,className:"option "+(u?"selected":"")+" "+(c===n?"highlightOption highlight":"")+" "+(e.fadeOutSelection(t)?"disableSelection":"")+" "+(e.isDisablePreSelectedValues(t)?"disableSelection":""),onClick:function(){return e.onSelectItem(t)}},i&&!s&&a.createElement("input",{type:"checkbox",readOnly:!0,className:"checkbox",checked:u}),e.props.optionValueDecorator(r?t[o]:(t||"").toString(),t))}))},o.renderSelectedList=function(){var e=this,t=this.props,n=t.isObject,r=void 0!==n&&n,o=t.displayValue,i=t.style,l=t.singleSelect,s=t.customCloseIcon,c=this.state,u=c.closeIconType;return c.selectedValues.map((function(t,n){return a.createElement("span",{className:"chip  "+(l&&"singleChip")+" "+(e.isDisablePreSelectedValues(t)&&"disableSelection"),key:n,style:i.chips},e.props.selectedValueDecorator(r?t[o]:(t||"").toString(),t),!e.isDisablePreSelectedValues(t)&&(s?a.createElement("i",{className:"custom-close",onClick:function(){return e.onRemoveSelectedItem(t)}},s):a.createElement("img",{className:"icon_cancel closeIcon",src:u,onClick:function(){return e.onRemoveSelectedItem(t)}})))}))},o.isDisablePreSelectedValues=function(e){var t=this.props,n=t.displayValue,r=this.state.preSelectedValues;return!(!t.disablePreSelectedValues||!r.length)&&(t.isObject?r.filter((function(t){return t[n]===e[n]})).length>0:r.filter((function(t){return t===e})).length>0)},o.fadeOutSelection=function(e){var t=this.props,n=t.selectionLimit;if(!t.singleSelect){var r=this.state.selectedValues;return-1!=n&&n==r.length&&(n==r.length?!t.showCheckbox||!this.isSelectedValue(e):void 0)}},o.toggelOptionList=function(){this.setState({toggleOptionsList:!this.state.toggleOptionsList,highlightOption:this.props.avoidHighlightFirstOption?-1:0})},o.onCloseOptionList=function(){this.setState({toggleOptionsList:!1,highlightOption:this.props.avoidHighlightFirstOption?-1:0,inputValue:""})},o.onFocus=function(){this.state.toggleOptionsList?clearTimeout(this.optionTimeout):this.toggelOptionList()},o.onBlur=function(){this.setState({inputValue:""},this.filterOptionsByInput),this.optionTimeout=setTimeout(this.onCloseOptionList,250)},o.isVisible=function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},o.hideOnClickOutside=function(){var e=this,t=document.getElementsByClassName("multiselect-container")[0];document.addEventListener("click",(function(n){t&&!t.contains(n.target)&&e.isVisible(t)&&e.toggelOptionList()}))},o.renderMultiselectContainer=function(){var e=this.state,t=e.inputValue,n=e.toggleOptionsList,r=e.selectedValues,o=this.props,i=o.placeholder,l=o.style,s=o.singleSelect,c=o.id,u=o.name,d=o.hidePlaceholder,f=o.disable,p=o.showArrow,m=o.customArrow;return a.createElement("div",{className:"multiselect-container multiSelectContainer "+(f?"disable_ms":"")+" "+(o.className||""),id:c||"multiselectContainerReact",style:l.multiselectContainer},a.createElement("div",{className:"search-wrapper searchWrapper "+(s?"singleSelect":""),ref:this.searchWrapper,style:l.searchBox,onClick:s?this.toggelOptionList:function(){}},!o.hideSelectedList&&this.renderSelectedList(),a.createElement("input",{type:"text",ref:this.searchBox,className:"searchBox "+(s&&r.length?"display-none":""),id:(c||"search")+"_input",name:(u||"search_name")+"_input",onChange:this.onChange,onKeyPress:this.onKeyPress,value:t,onFocus:this.onFocus,onBlur:this.onBlur,placeholder:s&&r.length||d&&r.length?"":i,onKeyDown:this.onArrowKeyNavigation,style:l.inputField,autoComplete:"off",disabled:s||f}),(s||p)&&a.createElement(a.Fragment,null,m?a.createElement("span",{className:"icon_down_dir"},m):a.createElement("img",{src:"data:image/svg+xml,%3Csvg%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20width%3D%2232%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cg%20id%3D%22background%22%3E%20%20%20%20%20%20%20%20%3Crect%20fill%3D%22none%22%20height%3D%2232%22%20width%3D%2232%22%2F%3E%20%20%20%20%3C%2Fg%3E%20%20%20%20%3Cg%20id%3D%22arrow_x5F_down%22%3E%20%20%20%20%20%20%20%20%3Cpolygon%20points%3D%222.002%2C10%2016.001%2C24%2030.002%2C10%20%20%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",className:"icon_cancel icon_down_dir"}))),a.createElement("div",{className:"optionListContainer "+(n?"displayBlock":"displayNone"),onMouseDown:function(e){e.preventDefault()}},this.renderOptionList()))},o.render=function(){return a.createElement(c,{outsideClick:this.onCloseOptionList},this.renderMultiselectContainer())},r}(a.Component);u.defaultProps={options:[],disablePreSelectedValues:!1,selectedValues:[],isObject:!0,displayValue:"model",showCheckbox:!1,selectionLimit:-1,placeholder:"Select",groupBy:"",style:{},emptyRecordMsg:"No Options Available",onSelect:function(){},onRemove:function(){},onKeyPressFn:function(){},closeIcon:"circle2",singleSelect:!1,caseSensitiveSearch:!1,id:"",name:"",closeOnSelect:!0,avoidHighlightFirstOption:!1,hidePlaceholder:!1,showArrow:!1,keepSearchTerm:!1,customCloseIcon:"",className:"",customArrow:void 0,selectedValueDecorator:function(e){return e},optionValueDecorator:function(e){return e}}},779:function(e,t,n){var r=n(826);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],a=0;a<t.length;a++)o.push(e(t[a],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",d(r)),n)}(t,n,o):function(e,t,n){return f(a(e,n),t,n)}(t,n,o)},e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,l="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(i,p),i=p+d.length,f)l+=f[1];else{var m=e[i],h=n[2],g=n[3],v=n[4],b=n[5],y=n[6],x=n[7];l&&(r.push(l),l="");var w=null!=h&&null!=m&&m!==h,E="+"===y||"*"===y,C="?"===y||"*"===y,S=n[2]||u,_=v||b;r.push({name:g||a++,prefix:h||"",delimiter:S,optional:C,repeat:E,partial:w,asterisk:!!x,pattern:_?c(_):x?".*":"[^"+s(S)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var a="",l=t||{},s=(o||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,f=l[u.name];if(null==f){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=s(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,i="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)i+=s(c);else{var f=s(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+f+p+")*"),i+=p=c.optional?c.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var m=s(n.delimiter||"/"),h=i.slice(-m.length)===m;return o||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":o&&h?"":"(?="+m+"|$)",u(new RegExp("^"+i,d(n)),t)}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}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:a,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},162:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}Symbol.for("react.module.reference"),t.isFragment=function(e){return h(e)===o},t.isMemo=function(e){return h(e)===p}},805:function(e,t,n){"use strict";e.exports=n(162)},300:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=l(n(196)),a=l(n(640)),i=["text","onCopy","options","children"];function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(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)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(g,e);var t,n,l,s,h=(l=g,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(l);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(f(e=h.call.apply(h,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,l=n.children,s=n.options,c=o.default.Children.only(l),u=(0,a.default)(r,s);i&&i(r,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=g,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.default.PureComponent);t.CopyToClipboard=h,m(h,"defaultProps",{onCopy:void 0,options:void 0})},855:function(e,t,n){"use strict";var r=n(300).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},921:function(e,t){"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},864:function(e,t,n){"use strict";n(921)},656:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(550),a=r(n(196)),i=n(71);n(697),n(298);var l=r(n(18));function s(){return(s=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}).apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),u(e.prototype.constructor=e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=i.createBrowserHistory(t.props),t}c(t,e),t.prototype.render=function(){return a.createElement(o.Router,{history:this.history,children:this.props.children})}})(a.Component),function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=i.createHashHistory(t.props),t}c(t,e),t.prototype.render=function(){return a.createElement(o.Router,{history:this.history,children:this.props.children})}}(a.Component);var f=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?i.createLocation(e,null,null,t):e},m=function(e){return e},h=a.forwardRef;void 0===h&&(h=m);var g=h((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=d(e,["innerRef","navigate","onClick"]),l=i.target,c=s({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=m!==h&&t||n,a.createElement("a",c)})),v=h((function(e,t){var n=e.component,r=void 0===n?g:n,c=e.replace,u=e.to,v=e.innerRef,b=d(e,["component","replace","to","innerRef"]);return a.createElement(o.__RouterContext.Consumer,null,(function(e){e||l(!1);var n=e.history,o=p(f(u,e.location),e.location),d=o?n.createHref(o):"",g=s({},b,{href:d,navigate:function(){var t=f(u,e.location),r=i.createPath(e.location)===i.createPath(p(t));(c||r?n.replace:n.push)(t)}});return m!==h?g.ref=t||v:g.innerRef=v,a.createElement(r,g)}))})),b=function(e){return e},y=a.forwardRef;void 0===y&&(y=b);y((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,u=e.activeStyle,m=e.className,h=e.exact,g=e.isActive,x=e.location,w=e.sensitive,E=e.strict,C=e.style,S=e.to,_=e.innerRef,O=d(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(o.__RouterContext.Consumer,null,(function(e){e||l(!1);var n=x||e.location,i=p(f(S,n),n),d=i.pathname,N=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=N?o.matchPath(n.pathname,{path:N,exact:h,sensitive:w,strict:E}):null,A=!!(g?g(k,n):k),P="function"==typeof m?m(A):m,F="function"==typeof C?C(A):C;A&&(P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(P,c),F=s({},F,u));var T=s({"aria-current":A&&r||null,className:P,style:F,to:i},O);return b!==y?T.ref=t||_:T.innerRef=_,a.createElement(v,T)}))}));t.rU=v},550:function(e,t,n){"use strict";n.r(t),n.d(t,{MemoryRouter:function(){return C},Prompt:function(){return _},Redirect:function(){return P},Route:function(){return M},Router:function(){return E},StaticRouter:function(){return B},Switch:function(){return H},__HistoryContext:function(){return x},__RouterContext:function(){return w},generatePath:function(){return A},matchPath:function(){return I},useHistory:function(){return G},useLocation:function(){return W},useParams:function(){return Z},useRouteMatch:function(){return K},withRouter:function(){return z}});var r=n(578),o=n(196),a=n.n(o),i=n(697),l=n.n(i),s=n(71),c=n(776),u=n(462),d=n(779),f=n.n(d),p=(n(663),n(366)),m=n(679),h=n.n(m),g=1073741823,v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},b=a().createContext||function(e,t){var n,o,i,s="__create-react-context-"+((v[i="__global_unique_id__"]=(v[i]||0)+1)+"__"),c=function(e){function n(){for(var t,n,r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):g,0!=(n|=0)&&this.emitter.set(e.value,n))}var a,i},o.render=function(){return this.props.children},n}(a().Component);c.childContextTypes=((n={})[s]=l().object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?g:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?g:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a().Component);return u.contextTypes=((o={})[s]=l().object,o),{Provider:c,Consumer:u}},y=function(e){var t=b();return t.displayName=e,t},x=y("Router-History"),w=y("Router"),E=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a().createElement(w.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(x.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a().Component),C=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,s.createMemoryHistory)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return a().createElement(E,{history:this.history,children:this.props.children})},t}(a().Component),S=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a().Component);function _(e){var t=e.message,n=e.when,r=void 0===n||n;return a().createElement(w.Consumer,null,(function(e){if(e||(0,c.Z)(!1),!r||e.staticContext)return null;var n=e.history.block;return a().createElement(S,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var O={},N=1e4,k=0;function A(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(O[e])return O[e];var t=f().compile(e);return k<N&&(O[e]=t,k++),t}(e)(t,{pretty:!0})}function P(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a().createElement(w.Consumer,null,(function(e){e||(0,c.Z)(!1);var r=e.history,i=e.staticContext,l=o?r.push:r.replace,d=(0,s.createLocation)(t?"string"==typeof n?A(n,t.params):(0,u.Z)({},n,{pathname:A(n.pathname,t.params)}):n);return i?(l(d),null):a().createElement(S,{onMount:function(){l(d)},onUpdate:function(e,t){var n=(0,s.createLocation)(t.to);(0,s.locationsAreEqual)(n,(0,u.Z)({},d,{key:n.key}))||l(d)},to:n})}))}var F={},T=1e4,L=0;function I(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,l=void 0!==i&&i,s=n.sensitive,c=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=F[n]||(F[n]={});if(r[e])return r[e];var o=[],a={regexp:f()(e,o,t),keys:o};return L<T&&(r[e]=a,L++),a}(n,{end:a,strict:l,sensitive:c}),o=r.regexp,i=r.keys,s=o.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),p=e===u;return a&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:i.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a().createElement(w.Consumer,null,(function(t){t||(0,c.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?I(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),i=e.props,l=i.children,s=i.component,d=i.render;return Array.isArray(l)&&function(e){return 0===a().Children.count(e)}(l)&&(l=null),a().createElement(w.Provider,{value:o},o.match?l?"function"==typeof l?l(o):l:s?a().createElement(s,o):d?d(o):null:"function"==typeof l?l(o):null)}))},t}(a().Component);function D(e){return"/"===e.charAt(0)?e:"/"+e}function R(e,t){if(!e)return t;var n=D(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function j(e){return"string"==typeof e?e:(0,s.createPath)(e)}function $(e){return function(){(0,c.Z)(!1)}}function V(){}var B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return V},t.handleBlock=function(){return V},t}(0,r.Z)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,o=void 0===r?"":r,a=n.context,i=void 0===a?{}:a;i.action=t,i.location=function(e,t){return e?(0,u.Z)({},t,{pathname:D(e)+t.pathname}):t}(o,(0,s.createLocation)(e)),i.url=j(i.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,o=void 0===r?{}:r,i=e.location,l=void 0===i?"/":i,c=(0,p.Z)(e,["basename","context","location"]),d={createHref:function(e){return D(n+j(e))},action:"POP",location:R(n,(0,s.createLocation)(l)),push:this.handlePush,replace:this.handleReplace,go:$(),goBack:$(),goForward:$(),listen:this.handleListen,block:this.handleBlock};return a().createElement(E,(0,u.Z)({},c,{history:d,staticContext:o}))},t}(a().Component),H=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a().createElement(w.Consumer,null,(function(t){t||(0,c.Z)(!1);var n,r,o=e.props.location||t.location;return a().Children.forEach(e.props.children,(function(e){if(null==r&&a().isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?I(o.pathname,(0,u.Z)({},e.props,{path:i})):t.match}})),r?a().cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a().Component);function z(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,p.Z)(t,["wrappedComponentRef"]);return a().createElement(w.Consumer,null,(function(t){return t||(0,c.Z)(!1),a().createElement(e,(0,u.Z)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var U=a().useContext;function G(){return U(x)}function W(){return U(w).location}function Z(){var e=U(w).match;return e?e.params:{}}function K(e){var t=W(),n=U(w).match;return e?I(t.pathname,e):n}},86:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;n&&Symbol.for("react.element"),n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope")},663:function(e,t,n){"use strict";n(86)},18:function(e){"use strict";e.exports=function(e,t){if(!e)throw new Error("Invariant failed")}},298:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){}},742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},196:function(e){"use strict";e.exports=window.React},462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},776:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,a=n?"".concat(o,": ").concat(n):o;throw new Error(a)}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},o.d(a,i),a},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e}(),function(){"use strict";var e=window.wp.element,t=o(196),n=o.t(t,2),r=o.n(t),a=window.ReactDOM,i=o.n(a);function l(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,l),r}function s(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}o(660);var c,u=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(u||{}),d=((c=d||{})[c.Unmount=0]="Unmount",c[c.Hidden=1]="Hidden",c);function f({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i}){let s=m(t,e);if(a)return p(s,n,r,i);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return p(t,n,r,i)}if(1&c){let{unmount:e=!0,...t}=s;return l(e?0:1,{0(){return null},1(){return p({...t,hidden:!0,style:{display:"none"}},n,r,i)}})}return p(s,n,r,i)}function p(e,n={},r,o){let{as:a=r,children:i,refName:l="ref",...c}=v(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof i?i(n):i;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(n));let f={};if(n){let e=!1,t=[];for(let[r,o]of Object.entries(n))"boolean"==typeof o&&(e=!0),!0===o&&t.push(r);e&&(f["data-headlessui-state"]=t.join(" "))}if(a===t.Fragment&&Object.keys(g(c)).length>0){if(!(0,t.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));let e=d.props,n="function"==typeof(null==e?void 0:e.className)?(...t)=>s(null==e?void 0:e.className(...t),c.className):s(null==e?void 0:e.className,c.className),r=n?{className:n}:{};return(0,t.cloneElement)(d,Object.assign({},m(d.props,g(v(c,["ref"]))),f,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(d.ref,u.ref),r))}return(0,t.createElement)(a,Object.assign({},v(c,["ref"]),a!==t.Fragment&&u,a!==t.Fragment&&f),d)}function m(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function h(e){var n;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(n=e.displayName)?n:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var b=Object.defineProperty,y=(e,t,n)=>(((e,t,n)=>{t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let x=new class{constructor(){y(this,"current",this.detect()),y(this,"handoffState","pending"),y(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},w=(e,n)=>{x.isServer?(0,t.useEffect)(e,n):(0,t.useLayoutEffect)(e,n)};function E(e){let n=(0,t.useRef)(e);return w((()=>{n.current=e}),[e]),n}let C=function(e){let n=E(e);return t.useCallback(((...e)=>n.current(...e)),[n])},S=Symbol();function _(e,t=!0){return Object.assign(e,{[S]:t})}function O(...e){let n=(0,t.useRef)(e);(0,t.useEffect)((()=>{n.current=e}),[e]);let r=C((e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[S])))?void 0:r}function N(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in n&&n.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[r,o]=t.useState(x.isHandoffComplete);return r&&!1===x.isHandoffComplete&&o(!1),t.useEffect((()=>{!0!==r&&o(!0)}),[r]),t.useEffect((()=>x.handoff()),[]),!e&&r}var k;let A=null!=(k=t.useId)?k:function(){let e=N(),[n,r]=t.useState(e?()=>x.nextId():null);return w((()=>{null===n&&r(x.nextId())}),[n]),null!=n?""+n:void 0};var P=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(P||{});function F(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let T=(0,t.createContext)(null);T.displayName="OpenClosedContext";var L,I=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(I||{});function M(){return(0,t.useContext)(T)}function D({value:e,children:n}){return t.createElement(T.Provider,{value:e},n)}function R(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function j(e,n){let[r,o]=(0,t.useState)((()=>R(e)));return w((()=>{o(R(e))}),[e.type,e.as]),w((()=>{r||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&o("button")}),[r,n]),r}function $(e){return x.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let V=null!=(L=t.startTransition)?L:function(e){e()};var B,H=((B=H||{})[B.Open=0]="Open",B[B.Closed=1]="Closed",B),z=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(z||{});let U={0:e=>({...e,disclosureState:l(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4(e){return!0===e.linkedPanel?e:{...e,linkedPanel:!0}},5(e){return!1===e.linkedPanel?e:{...e,linkedPanel:!1}},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},G=(0,t.createContext)(null);function W(e){let n=(0,t.useContext)(G);if(null===n){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return n}G.displayName="DisclosureContext";let Z=(0,t.createContext)(null);function K(e){let n=(0,t.useContext)(Z);if(null===n){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return n}Z.displayName="DisclosureAPIContext";let X=(0,t.createContext)(null);function q(e,t){return l(t.type,U,e,t)}X.displayName="DisclosurePanelContext";let Y=t.Fragment,Q=u.RenderStrategy|u.Static,J=h((function(e,n){let{defaultOpen:r=!1,...o}=e,a=(0,t.useRef)(null),i=O(n,_((e=>{a.current=e}),void 0===e.as||e.as===t.Fragment)),s=(0,t.useRef)(null),c=(0,t.useRef)(null),u=(0,t.useReducer)(q,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:c,panelRef:s,buttonId:null,panelId:null}),[{disclosureState:d,buttonId:p},m]=u,h=C((e=>{m({type:1});let t=$(a);if(!t||!p)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(p):t.getElementById(p);null==n||n.focus()})),g=(0,t.useMemo)((()=>({close:h})),[h]),v=(0,t.useMemo)((()=>({open:0===d,close:h})),[d,h]),b={ref:i};return t.createElement(G.Provider,{value:u},t.createElement(Z.Provider,{value:g},t.createElement(D,{value:l(d,{0:I.Open,1:I.Closed})},f({ourProps:b,theirProps:o,slot:v,defaultTag:Y,name:"Disclosure"}))))})),ee=h((function(e,n){let r=A(),{id:o=`headlessui-disclosure-button-${r}`,...a}=e,[i,l]=W("Disclosure.Button"),s=(0,t.useContext)(X),c=null!==s&&s===i.panelId,u=(0,t.useRef)(null),d=O(u,n,c?null:i.buttonRef);(0,t.useEffect)((()=>{if(!c)return l({type:2,buttonId:o}),()=>{l({type:2,buttonId:null})}}),[o,l,c]);let p=C((e=>{var t;if(c){if(1===i.disclosureState)return;switch(e.key){case P.Space:case P.Enter:e.preventDefault(),e.stopPropagation(),l({type:0}),null==(t=i.buttonRef.current)||t.focus()}}else switch(e.key){case P.Space:case P.Enter:e.preventDefault(),e.stopPropagation(),l({type:0})}})),m=C((e=>{e.key===P.Space&&e.preventDefault()})),h=C((t=>{var n;F(t.currentTarget)||e.disabled||(c?(l({type:0}),null==(n=i.buttonRef.current)||n.focus()):l({type:0}))})),g=(0,t.useMemo)((()=>({open:0===i.disclosureState})),[i]),v=j(e,u);return f({ourProps:c?{ref:d,type:v,onKeyDown:p,onClick:h}:{ref:d,id:o,type:v,"aria-expanded":0===i.disclosureState,"aria-controls":i.linkedPanel?i.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:h},theirProps:a,slot:g,defaultTag:"button",name:"Disclosure.Button"})})),te=h((function(e,n){let r=A(),{id:o=`headlessui-disclosure-panel-${r}`,...a}=e,[i,l]=W("Disclosure.Panel"),{close:s}=K("Disclosure.Panel"),c=O(n,i.panelRef,(e=>{V((()=>l({type:e?4:5})))}));(0,t.useEffect)((()=>(l({type:3,panelId:o}),()=>{l({type:3,panelId:null})})),[o,l]);let u=M(),d=null!==u?(u&I.Open)===I.Open:0===i.disclosureState,p=(0,t.useMemo)((()=>({open:0===i.disclosureState,close:s})),[i,s]),m={ref:c,id:o};return t.createElement(X.Provider,{value:i.panelId},f({ourProps:m,theirProps:a,slot:p,defaultTag:"div",features:Q,visible:d,name:"Disclosure.Panel"}))})),ne=Object.assign(J,{Button:ee,Panel:te});var re=o(550),oe=o(578),ae=o(71),ie=o(462),le=o(366),se=o(776),ce=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,ae.createBrowserHistory)(t.props),t}return(0,oe.Z)(t,e),t.prototype.render=function(){return r().createElement(re.Router,{history:this.history,children:this.props.children})},t}(r().Component);r().Component;var ue=function(e,t){return"function"==typeof e?e(t):e},de=function(e,t){return"string"==typeof e?(0,ae.createLocation)(e,null,null,t):e},fe=function(e){return e},pe=r().forwardRef;void 0===pe&&(pe=fe);var me=pe((function(e,t){var n=e.innerRef,o=e.navigate,a=e.onClick,i=(0,le.Z)(e,["innerRef","navigate","onClick"]),l=i.target,s=(0,ie.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return s.ref=fe!==pe&&t||n,r().createElement("a",s)})),he=pe((function(e,t){var n=e.component,o=void 0===n?me:n,a=e.replace,i=e.to,l=e.innerRef,s=(0,le.Z)(e,["component","replace","to","innerRef"]);return r().createElement(re.__RouterContext.Consumer,null,(function(e){e||(0,se.Z)(!1);var n=e.history,c=de(ue(i,e.location),e.location),u=c?n.createHref(c):"",d=(0,ie.Z)({},s,{href:u,navigate:function(){var t=ue(i,e.location),r=(0,ae.createPath)(e.location)===(0,ae.createPath)(de(t));(a||r?n.replace:n.push)(t)}});return fe!==pe?d.ref=t||l:d.innerRef=l,r().createElement(o,d)}))})),ge=function(e){return e},ve=r().forwardRef;void 0===ve&&(ve=ge),ve((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,i=void 0===a?"active":a,l=e.activeStyle,s=e.className,c=e.exact,u=e.isActive,d=e.location,f=e.sensitive,p=e.strict,m=e.style,h=e.to,g=e.innerRef,v=(0,le.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r().createElement(re.__RouterContext.Consumer,null,(function(e){e||(0,se.Z)(!1);var n=d||e.location,a=de(ue(h,n),n),b=a.pathname,y=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=y?(0,re.matchPath)(n.pathname,{path:y,exact:c,sensitive:f,strict:p}):null,w=!!(u?u(x,n):x),E="function"==typeof s?s(w):s,C="function"==typeof m?m(w):m;w&&(E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(E,i),C=(0,ie.Z)({},C,l));var S=(0,ie.Z)({"aria-current":w&&o||null,className:E,style:C,to:a},v);return ge!==ve?S.ref=t||g:S.innerRef=g,r().createElement(he,S)}))}));var be=window.wp.i18n,ye=r().createContext(null),xe=function(e){e()},we=function(){return xe},Ee={notify:function(){},get:function(){return[]}};function Ce(e,t){var n,r=Ee;function o(){i.onStateChange&&i.onStateChange()}function a(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=we(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var i={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Ee)},getListeners:function(){return r}};return i}var Se="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function _e(){return(0,t.useContext)(ye)}function Oe(e){void 0===e&&(e=ye);var n=e===ye?_e:function(){return(0,t.useContext)(e)};return function(){return n().store}}o(679),o(864);var Ne=Oe();function ke(e){void 0===e&&(e=ye);var t=e===ye?Ne:Oe(e);return function(){return t().dispatch}}var Ae=ke(),Pe=function(e,t){return e===t};function Fe(e){void 0===e&&(e=ye);var n=e===ye?_e:function(){return(0,t.useContext)(e)};return function(e,r){void 0===r&&(r=Pe);var o=n(),a=function(e,n,r,o){var a,i=(0,t.useReducer)((function(e){return e+1}),0),l=i[1],s=(0,t.useMemo)((function(){return Ce(r,o)}),[r,o]),c=(0,t.useRef)(),u=(0,t.useRef)(),d=(0,t.useRef)(),f=(0,t.useRef)(),p=r.getState();try{if(e!==u.current||p!==d.current||c.current){var m=e(p);a=void 0!==f.current&&n(m,f.current)?f.current:m}else a=f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return Se((function(){u.current=e,d.current=p,f.current=a,c.current=void 0})),Se((function(){function e(){try{var e=r.getState();if(e===d.current)return;var t=u.current(e);if(n(t,f.current))return;f.current=t,d.current=e}catch(e){c.current=e}l()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),a}(e,r,o.store,o.subscription);return(0,t.useDebugValue)(a),a}}var Te,Le=Fe();function Ie(){const[n,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{const e=()=>{window.scrollY>0?r(!0):r(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]);let o=[];const a=Le((e=>e)),i=a.dmTemporaryLogin,l=a.dmBrowserExtension,s=a.dmSocialLogin;o=[{name:(0,be.__)("Modules","login-me-now"),slug:lmn_admin.home_slug,path:""},i&&{name:(0,be.__)("Temporary login","login-me-now"),slug:lmn_admin.home_slug,path:"temporary-login"},l&&{name:(0,be.__)("Browser extension","login-me-now"),slug:lmn_admin.home_slug,path:"browser-extensions"},s&&{name:(0,be.__)("Social login","login-me-now"),slug:lmn_admin.home_slug,path:"social-login"}].filter(Boolean);const c=wp.hooks.applyFilters("login_me_now_dashboard.main_navigation",o),u=new URLSearchParams((0,re.useLocation)()?.search),d=u.get("page")?u.get("page"):lmn_admin.home_slug,f=u.get("path")?u.get("path"):"";return(0,e.createElement)(ne,{as:"nav",className:"bg-white border-b border-slate-200 sticky-header "+(n?"header-sticky":"")},(0,e.createElement)("div",{className:"max-w-3xl mx-auto px-3 sm:px-6 lg:max-w-full"},(0,e.createElement)("div",{className:"relative flex flex-col lg:flex-row justify-between h-28 lg:h-16 py-3 lg:py-0"},(0,e.createElement)("div",{className:"lg:flex-1 flex items-start justify-center sm:items-stretch sm:justify-start"},(0,e.createElement)("a",{href:lmn_admin.login_me_now_base_url,className:"flex-shrink-0 flex items-center"},(0,e.createElement)("img",{className:"lg:block h-[2.6rem] w-auto",src:lmn_admin.logo_url,alt:"Workflow"})),(0,e.createElement)("div",{className:"ml-4 sm:ml-8 sm:flex gap-y-4 gap-x-8"},c.map(((n,r)=>(0,e.createElement)(t.Fragment,{key:`?page=${n.slug}&path=${n.path}`},(0,e.createElement)(he,{index:r,to:{pathname:"admin.php",search:`?page=${n.slug}${""!==n.path?"&path="+n.path:""}`},className:d===n.slug&&f===n.path?"mb-4 sm:mb-0 border-lmn text-lmn active:text-lmn focus:text-lmn focus-visible:text-lmn-hover hover:text-lmn-hover inline-flex items-center px-1 border-b-2 text-[16px] leading-[0.875rem] font-medium":"mb-4 sm:mb-0 border-transparent text-slate-600 active:text-lmn focus-visible:border-slate-300 focus-visible:text-slate-800 hover:border-slate-300 hover:text-slate-800 inline-flex items-center px-1 border-b-2 text-[16px] leading-[0.875rem] font-medium"},n.name)))))),lmn_admin.show_self_branding&&(0,e.createElement)("div",{className:"absolute bottom-2 lg:inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto ml-auto lg:ml-6 sm:pr-0"},(0,e.createElement)("div",{className:"flex items-center text-[0.625rem] sm:text-[16px] font-medium leading-[1.375rem] text-slate-400 mr-1 sm:mr-3 divide-x divide-slate-200 gap-3 pl-1 sm:pl-3"},(0,e.createElement)("div",{className:"flex items-center pl-3"},(0,e.createElement)("span",null,lmn_admin.version),(0,e.createElement)("span",{className:"ml-1 sm:ml-2 text-[0.625rem] leading-[1rem] font-medium border border-slate-400 rounded-[0.1875rem] relative inline-flex flex-shrink-0 py-[0rem] px-1.5"}," ",(0,be.__)("CORE","login-me-now")," ")),lmn_admin.pro_available?(0,e.createElement)("div",{className:"flex items-center pl-3"},(0,e.createElement)("span",null,lmn_admin.plugin_ver),(0,e.createElement)("span",{className:"ml-1 sm:ml-2 text-[0.625rem] leading-[1rem] font-medium text-white border border-slate-800 bg-slate-800 rounded-[0.1875rem] relative inline-flex flex-shrink-0 py-[0rem] px-1.5"}," ",(0,be.__)("PRO","login-me-now")," ")):(0,e.createElement)("button",{type:"button",className:"sm:inline-flex items-center px-4 py-2 border border-lmn-hover text-[16px] font-medium rounded-md shadow-sm text-white hover:text-white focus-visible:bg-lmn-hover hover:bg-[#FF7C6E] focus:outline-none mr-4 mb-2 sm:mb-0 bg-[#F6756B]",onClick:()=>{window.open(lmn_admin.upgrade_url,"_blank")}},(0,be.__)("UPGRADE TO PRO","login-me-now")),wp.hooks.applyFilters("login_me_now_dashboard.after_navigation_version",(0,e.createElement)("span",null)))))))}Te=a.unstable_batchedUpdates,xe=Te;var Me=window.wp.apiFetch,De=o.n(Me);function Re(){let e=(0,t.useRef)(!1);return w((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function je(){let e=[],t={addEventListener(e,n,r,o){return e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame(...e){return t.requestAnimationFrame((()=>t.requestAnimationFrame(...e)))},setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=je();return e(t),this.add((()=>t.dispose()))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function $e(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ve(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Be(){let[e]=(0,t.useState)(je);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}function He({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:a}){let i=Re(),s=Be(),c=E(n);w((()=>{e&&(c.current="enter")}),[e]),w((()=>{let e=je();s.add(e.dispose);let n=t.current;if(n&&"idle"!==c.current&&i.current)return e.dispose(),o.current(c.current),e.add(function(e,t,n,r){let o=n?"enter":"leave",a=je(),i=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=l(o,{enter:()=>t.enter,leave:()=>t.leave}),c=l(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=l(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ve(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$e(e,...t.base,...s,...u),a.nextFrame((()=>{Ve(e,...t.base,...s,...u),$e(e,...t.base,...s,...c),function(e,t){let n=je();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),l=a+i;if(0!==l){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),l),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(Ve(e,...t.base,...s),$e(e,...t.base,...t.entered),i())))})),a.dispose}(n,r.current,"enter"===c.current,(()=>{e.dispose(),a.current(c.current)}))),e.dispose}),[n])}function ze(e=0){let[n,r]=(0,t.useState)(e),o=Re(),a=(0,t.useCallback)((e=>{o.current&&r((t=>t|e))}),[n,o]),i=(0,t.useCallback)((e=>Boolean(n&e)),[n]),l=(0,t.useCallback)((e=>{o.current&&r((t=>t&~e))}),[r,o]),s=(0,t.useCallback)((e=>{o.current&&r((t=>t^e))}),[r]);return{flags:n,addFlag:a,hasFlag:i,removeFlag:l,toggleFlag:s}}function Ue(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ge=(0,t.createContext)(null);Ge.displayName="TransitionContext";var We=(e=>(e.Visible="visible",e.Hidden="hidden",e))(We||{});let Ze=(0,t.createContext)(null);function Ke(e){return"children"in e?Ke(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Xe(e,n){let r=E(e),o=(0,t.useRef)([]),a=Re(),i=Be(),s=C(((e,t=d.Hidden)=>{let n=o.current.findIndex((({el:t})=>t===e));-1!==n&&(l(t,{[d.Unmount](){o.current.splice(n,1)},[d.Hidden](){o.current[n].state="hidden"}}),i.microTask((()=>{var e;!Ke(o)&&a.current&&(null==(e=r.current)||e.call(r))})))})),c=C((e=>{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>s(e,d.Unmount)})),u=(0,t.useRef)([]),f=(0,t.useRef)(Promise.resolve()),p=(0,t.useRef)({enter:[],leave:[],idle:[]}),m=C(((e,t,r)=>{u.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter((([t])=>t!==e))),null==n||n.chains.current[t].push([e,new Promise((e=>{u.current.push(e)}))]),null==n||n.chains.current[t].push([e,new Promise((e=>{Promise.all(p.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?f.current=f.current.then((()=>null==n?void 0:n.wait.current)).then((()=>r(t))):r(t)})),h=C(((e,t,n)=>{Promise.all(p.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=u.current.shift())||e()})).then((()=>n(t)))}));return(0,t.useMemo)((()=>({children:o,register:c,unregister:s,onStart:m,onStop:h,wait:f,chains:p})),[c,s,o,m,h,p,f])}function qe(){}Ze.displayName="NestingContext";let Ye=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Qe(e){var t;let n={};for(let r of Ye)n[r]=null!=(t=e[r])?t:qe;return n}let Je=u.RenderStrategy,et=h((function(e,n){let{show:r,appear:o=!1,unmount:a=!0,...i}=e,l=(0,t.useRef)(null),s=O(l,n);N();let c=M();if(void 0===r&&null!==c&&(r=(c&I.Open)===I.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,t.useState)(r?"visible":"hidden"),p=Xe((()=>{d("hidden")})),[m,h]=(0,t.useState)(!0),g=(0,t.useRef)([r]);w((()=>{!1!==m&&g.current[g.current.length-1]!==r&&(g.current.push(r),h(!1))}),[g,r]);let v=(0,t.useMemo)((()=>({show:r,appear:o,initial:m})),[r,o,m]);(0,t.useEffect)((()=>{if(r)d("visible");else if(Ke(p)){let e=l.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[r,p]);let b={unmount:a},y=C((()=>{var t;m&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),x=C((()=>{var t;m&&h(!1),null==(t=e.beforeLeave)||t.call(e)}));return t.createElement(Ze.Provider,{value:p},t.createElement(Ge.Provider,{value:v},f({ourProps:{...b,as:t.Fragment,children:t.createElement(tt,{ref:s,...b,...i,beforeEnter:y,beforeLeave:x})},theirProps:{},defaultTag:t.Fragment,features:Je,visible:"visible"===u,name:"Transition"})))})),tt=h((function(e,n){var r,o;let{beforeEnter:a,afterEnter:i,beforeLeave:c,afterLeave:u,enter:p,enterFrom:m,enterTo:h,entered:g,leave:v,leaveFrom:b,leaveTo:y,...x}=e,w=(0,t.useRef)(null),S=O(w,n),_=null==(r=x.unmount)||r?d.Unmount:d.Hidden,{show:k,appear:A,initial:P}=function(){let e=(0,t.useContext)(Ge);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[F,T]=(0,t.useState)(k?"visible":"hidden"),L=function(){let e=(0,t.useContext)(Ze);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:M,unregister:R}=L;(0,t.useEffect)((()=>M(w)),[M,w]),(0,t.useEffect)((()=>{if(_===d.Hidden&&w.current)return k&&"visible"!==F?void T("visible"):l(F,{hidden:()=>R(w),visible:()=>M(w)})}),[F,w,M,R,k,_]);let j=E({base:Ue(x.className),enter:Ue(p),enterFrom:Ue(m),enterTo:Ue(h),entered:Ue(g),leave:Ue(v),leaveFrom:Ue(b),leaveTo:Ue(y)}),$=function(e){let n=(0,t.useRef)(Qe(e));return(0,t.useEffect)((()=>{n.current=Qe(e)}),[e]),n}({beforeEnter:a,afterEnter:i,beforeLeave:c,afterLeave:u}),V=N();(0,t.useEffect)((()=>{if(V&&"visible"===F&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[w,F,V]);let B=A&&k&&P,H=!V||P&&!A?"idle":k?"enter":"leave",z=ze(0),U=C((e=>l(e,{enter:()=>{z.addFlag(I.Opening),$.current.beforeEnter()},leave:()=>{z.addFlag(I.Closing),$.current.beforeLeave()},idle:()=>{}}))),G=C((e=>l(e,{enter:()=>{z.removeFlag(I.Opening),$.current.afterEnter()},leave:()=>{z.removeFlag(I.Closing),$.current.afterLeave()},idle:()=>{}}))),W=Xe((()=>{T("hidden"),R(w)}),L);He({immediate:B,container:w,classes:j,direction:H,onStart:E((e=>{W.onStart(w,e,U)})),onStop:E((e=>{W.onStop(w,e,G),"leave"===e&&!Ke(W)&&(T("hidden"),R(w))}))});let Z=x,K={ref:S};return B?Z={...Z,className:s(x.className,...j.current.enter,...j.current.enterFrom)}:(Z.className=s(x.className,null==(o=w.current)?void 0:o.className),""===Z.className&&delete Z.className),t.createElement(Ze.Provider,{value:W},t.createElement(D,{value:l(F,{visible:I.Open,hidden:I.Closed})|z.flags},f({ourProps:K,theirProps:Z,defaultTag:"div",features:Je,visible:"visible"===F,name:"Transition.Child"})))})),nt=h((function(e,n){let r=null!==(0,t.useContext)(Ge),o=null!==M();return t.createElement(t.Fragment,null,!r&&o?t.createElement(et,{ref:n,...e}):t.createElement(tt,{ref:n,...e}))})),rt=Object.assign(et,{Child:nt,Root:et});var ot=t.forwardRef((function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))})),at=t.forwardRef((function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}))})),it=t.forwardRef((function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"}))})),lt=t.forwardRef((function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),st=o(855);function ct(){const n=Ae(),r=Le((e=>e.magicLinkPopup)),o=r.link,[a,i]=React.useState(!1),l=React.useCallback((()=>{i(!0),setTimeout((()=>{i(!1)}),2e3)}),[]);return(0,t.useEffect)((()=>{""!==r&&setTimeout((()=>{n({type:"GENERATE_MAGIC_LINK_POPUP",payload:""})}),12e4)}),[r]),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{"aria-live":"assertive",className:"fixed inset-10 z-10 flex px-4 py-6 pointer-events-none sm:p-6 sm:items-start"},(0,e.createElement)("div",{className:"w-full h-full flex flex-col items-center space-y-4 justify-center"},(0,e.createElement)(rt,{show:""!==r,as:t.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"w-full h-full z-1 before:absolute before:left-0 before:top-0 before:content-[''] before:w-full before:h-full"},(0,e.createElement)("div",{className:"p-4 max-w-sm w-full bg-white rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden z-[2] absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] shadow-[0_0_100px_200px_rgba(0,0,0,0.20)]"},(0,e.createElement)("div",{className:"flex items-start"},(0,e.createElement)("div",{className:"flex-shrink-0"},(0,e.createElement)(ot,{className:"h-6 w-6 text-green-400","aria-hidden":"true"})),(0,e.createElement)("div",{className:"ml-3 w-0 flex-1 pt-0.5"},(0,e.createElement)("p",{className:"text-[16px] font-medium text-gray-900"},r.message),(0,e.createElement)("div",{className:"mt-5 relative"},(0,e.createElement)(st.CopyToClipboard,{onCopy:l,text:o},(0,e.createElement)("code",{className:"text-[16px] font-medium break-all"},r.link)),(0,e.createElement)("div",{className:"absolute top-0 right-[-13%]"},a?(0,e.createElement)(at,{className:"h-5 w-5 text-[#50d71e]","aria-hidden":"true"}):(0,e.createElement)(st.CopyToClipboard,{onCopy:l,text:o},(0,e.createElement)(it,{className:"h-5 w-5","aria-hidden":"true"}))))),(0,e.createElement)("div",{className:"ml-4 flex-shrink-0 flex"},(0,e.createElement)("button",{className:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:()=>{n({type:"GENERATE_MAGIC_LINK_POPUP",payload:""})}},(0,e.createElement)("span",{className:"sr-only"}," ",(0,be.__)("Close ","login-me-now")," "),(0,e.createElement)(lt,{className:"h-5 w-5","aria-hidden":"true"})))),(0,e.createElement)("p",{className:"text-center text-[14px] mt-[20px]"},"You can directly login to admin panel using this link")))))))}var ut=function(t){let{size:n}=t;return(0,e.createElement)("svg",{width:`${n}px`,height:`${n}px`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("path",{d:"M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M18 6V16.2C18 17.8802 18 18.7202 17.673 19.362C17.3854 19.9265 16.9265 20.3854 16.362 20.673C15.7202 21 14.8802 21 13.2 21H10.8C9.11984 21 8.27976 21 7.63803 20.673C7.07354 20.3854 6.6146 19.9265 6.32698 19.362C6 18.7202 6 17.8802 6 16.2V6M14 10V17M10 10V17",stroke:"#d11a2a","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))},dt=function(t){let{size:n}=t;return(0,e.createElement)("svg",{width:`${n}px`,height:`${n}px`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("path",{d:"M23 12C23 12.3545 22.9832 12.7051 22.9504 13.051C22.3838 12.4841 21.7204 12.014 20.9871 11.6675C20.8122 6.85477 16.8555 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12C3.00683 16.8555 6.85477 20.8122 11.6675 20.9871C12.014 21.7204 12.4841 22.3838 13.051 22.9504C12.7051 22.9832 12.3545 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z",fill:"#4bb543"})," ",(0,e.createElement)("path",{d:"M13 11.8812L13.8426 12.3677C13.2847 12.7802 12.7902 13.2737 12.3766 13.8307L11.5174 13.3346C11.3437 13.2343 11.2115 13.0898 11.1267 12.9235C11 12.7274 11 12.4667 11 12.4667V6C11 5.44771 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V11.8812Z",fill:"#4bb543"})," ",(0,e.createElement)("path",{d:"M18 15C17.4477 15 17 15.4477 17 16V17H16C15.4477 17 15 17.4477 15 18C15 18.5523 15.4477 19 16 19H17V20C17 20.5523 17.4477 21 18 21C18.5523 21 19 20.5523 19 20V19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H19V16C19 15.4477 18.5523 15 18 15Z",fill:"#4bb543"})," ",(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 24C21.3137 24 24 21.3137 24 18C24 14.6863 21.3137 12 18 12C14.6863 12 12 14.6863 12 18C12 21.3137 14.6863 24 18 24ZM18 22.0181C15.7809 22.0181 13.9819 20.2191 13.9819 18C13.9819 15.7809 15.7809 13.9819 18 13.9819C20.2191 13.9819 22.0181 15.7809 22.0181 18C22.0181 20.2191 20.2191 22.0181 18 22.0181Z",fill:"#4bb543"})," "))},ft=function(t){let{size:n,color:r}=t;return(0,e.createElement)("svg",{width:`${n}px`,height:`${n}px`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 5C10 3.34315 8.65686 2 7 2H5C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H7C8.65686 22 10 20.6569 10 19V5ZM8 5C8 4.44772 7.55229 4 7 4H5C4.44772 4 4 4.44772 4 5V19C4 19.5523 4.44772 20 5 20H7C7.55229 20 8 19.5523 8 19V5Z",fill:r})," ",(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 5C22 3.34315 20.6569 2 19 2H17C15.3431 2 14 3.34315 14 5V19C14 20.6569 15.3431 22 17 22H19C20.6569 22 22 20.6569 22 19V5ZM20 5C20 4.44772 19.5523 4 19 4H17C16.4477 4 16 4.44772 16 5V19C16 19.5523 16.4477 20 17 20H19C19.5523 20 20 19.5523 20 19V5Z",fill:r})," "))},pt=function(t){let{size:n}=t;return(0,e.createElement)("svg",{width:`${n}px`,height:`${n}px`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("path",{d:"M16.6582 9.28638C18.098 10.1862 18.8178 10.6361 19.0647 11.2122C19.2803 11.7152 19.2803 12.2847 19.0647 12.7878C18.8178 13.3638 18.098 13.8137 16.6582 14.7136L9.896 18.94C8.29805 19.9387 7.49907 20.4381 6.83973 20.385C6.26501 20.3388 5.73818 20.0469 5.3944 19.584C5 19.053 5 18.1108 5 16.2264V7.77357C5 5.88919 5 4.94701 5.3944 4.41598C5.73818 3.9531 6.26501 3.66111 6.83973 3.6149C7.49907 3.5619 8.29805 4.06126 9.896 5.05998L16.6582 9.28638Z",stroke:"#2192c0","stroke-width":"2","stroke-linejoin":"round"})," "))},mt=function(t){let{size:n}=t;return(0,e.createElement)("svg",{width:`${n}px`,height:`${n}px`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M20.7457 3.32851C20.3552 2.93798 19.722 2.93798 19.3315 3.32851L12.0371 10.6229L4.74275 3.32851C4.35223 2.93798 3.71906 2.93798 3.32854 3.32851C2.93801 3.71903 2.93801 4.3522 3.32854 4.74272L10.6229 12.0371L3.32856 19.3314C2.93803 19.722 2.93803 20.3551 3.32856 20.7457C3.71908 21.1362 4.35225 21.1362 4.74277 20.7457L12.0371 13.4513L19.3315 20.7457C19.722 21.1362 20.3552 21.1362 20.7457 20.7457C21.1362 20.3551 21.1362 19.722 20.7457 19.3315L13.4513 12.0371L20.7457 4.74272C21.1362 4.3522 21.1362 3.71903 20.7457 3.32851Z",fill:"#0F0F0F"}))},ht=o.p+"images/trash.0e8bc898.png",gt=o(184),vt=o.n(gt);function bt(e){var n=e.children,r=e.prefixCls,o=e.id,a=e.overlayInnerStyle,i=e.className,l=e.style;return t.createElement("div",{className:vt()("".concat(r,"-content"),i),style:l},t.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:a},"function"==typeof n?n():n))}function yt(e){return yt="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},yt(e)}function xt(e){var t=function(e,t){if("object"!==yt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yt(t)?t:String(t)}function wt(e,t,n){return(t=xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t){if(null==e)return{};var n,r,o=(0,le.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _t(e){if(Array.isArray(e))return e}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nt(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}function kt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function At(e,t){return _t(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Nt(e,t)||kt()}function Pt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Ft={},Tt=[];function Lt(e,t){}function It(e,t){}function Mt(e,t,n){t||Ft[n]||(e(!1,n),Ft[n]=!0)}function Dt(e,t){Mt(Lt,e,t)}Dt.preMessage=function(e){Tt.push(e)},Dt.resetWarned=function(){Ft={}},Dt.noteOnce=function(e,t){Mt(It,e,t)};var Rt=Dt,jt=o(805);function $t(e,n,r){var o=t.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=e(),o.current.condition=n),o.current.value}function Vt(e,t){"function"==typeof e?e(t):"object"===yt(e)&&e&&"current"in e&&(e.current=t)}function Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){Vt(t,e)}))}}function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $t((function(){return Bt.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function zt(e){var t,n,r=(0,jt.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}var Ut=t.createContext(null);function Gt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wt(e){return function(e){if(Array.isArray(e))return Ot(e)}(e)||Gt(e)||Nt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zt,Kt=Pt()?t.useLayoutEffect:t.useEffect,Xt=function(e,n){var r=t.useRef(!0);Kt((function(){return e(r.current)}),n),Kt((function(){return r.current=!1,function(){r.current=!0}}),[])},qt=function(e,t){Xt((function(t){if(!t)return e()}),t)},Yt=Xt,Qt=[],Jt="data-rc-order",en="data-rc-priority",tn="rc-util-key",nn=new Map;function rn(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):tn}function on(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function an(e){return Array.from((nn.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Pt())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===i,s=document.createElement("style");s.setAttribute(Jt,i),l&&a&&s.setAttribute(en,"".concat(a)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=on(t),u=c.firstChild;if(r){if(l){var d=an(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Jt)))return!1;var t=Number(e.getAttribute(en)||0);return a>=t}));if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return an(on(t)).find((function(n){return n.getAttribute(rn(t))===e}))}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=sn(e,t);n&&on(t).removeChild(n)}function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=nn.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=ln("",t),o=r.parentNode;nn.set(e,o),e.removeChild(r)}}(on(n),n);var r,o,a,i=sn(t,n);if(i)return null!==(r=n.csp)&&void 0!==r&&r.nonce&&i.nonce!==(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&(i.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;var l=ln(e,n);return l.setAttribute(rn(n),t),l}function dn(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(void 0===Zt){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),Zt=o-a}return Zt}():n}var fn="rc-util-locker-".concat(Date.now()),pn=0;var mn=!1,hn=function(e){return!1!==e&&(Pt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},gn=t.forwardRef((function(e,n){var r=e.open,o=e.autoLock,i=e.getContainer,l=(e.debug,e.autoDestroy),s=void 0===l||l,c=e.children,u=At(t.useState(r),2),d=u[0],f=u[1],p=d||r;t.useEffect((function(){(s||r)&&f(r)}),[r,s]);var m=At(t.useState((function(){return hn(i)})),2),h=m[0],g=m[1];t.useEffect((function(){var e=hn(i);g(null!=e?e:null)}));var v,b,y,x=function(e,n){var r=At(t.useState((function(){return Pt()?document.createElement("div"):null})),1)[0],o=t.useRef(!1),a=t.useContext(Ut),i=At(t.useState(Qt),2),l=i[0],s=i[1],c=a||(o.current?void 0:function(e){s((function(t){return[e].concat(Wt(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function d(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return Yt((function(){return e?a?a(u):u():d(),d}),[e]),Yt((function(){l.length&&(l.forEach((function(e){return e()})),s(Qt))}),[l]),[r,c]}(p&&!h),w=At(x,2),E=w[0],C=w[1],S=null!=h?h:E;v=o&&r&&Pt()&&(S===E||S===document.body),b=!!v,y=At(t.useState((function(){return pn+=1,"".concat(fn,"_").concat(pn)})),1)[0],Yt((function(){if(b){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:dn(n),height:dn(r)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;un("\nhtml body {\n  overflow-y: hidden;\n  ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else cn(y);return function(){cn(y)}}),[b,y]);var _=null;c&&zt(c)&&n&&(_=c.ref);var O=Ht(_,n);if(!p||!Pt()||void 0===h)return null;var N=!1===S||mn,k=c;return n&&(k=t.cloneElement(c,{ref:O})),t.createElement(Ut.Provider,{value:C},N?k:(0,a.createPortal)(k,S))})),vn=gn;function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(bn(e)):(0,jt.isFragment)(e)&&e.props?n=n.concat(bn(e.props.children,t)):n.push(e))})),n}function yn(e){return e instanceof HTMLElement||e instanceof SVGElement}function xn(e){return yn(e)?e:e instanceof r().Component?i().findDOMNode(e):null}var wn=t.createContext(null),En=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Cn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Sn=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),On="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Sn):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Nn=["top","right","bottom","left","width","height","size","weight"],kn="undefined"!=typeof MutationObserver,An=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){On(a)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Cn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Cn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Nn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Fn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Sn},Tn=Rn(0,0,0,0);function Ln(e){return parseFloat(e)||0}function In(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ln(e["border-"+n+"-width"])}),0)}var Mn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Fn(e).SVGGraphicsElement}:function(e){return e instanceof Fn(e).SVGElement&&"function"==typeof e.getBBox};function Dn(e){return Cn?Mn(e)?function(e){var t=e.getBBox();return Rn(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Tn;var r=Fn(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=Ln(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,l=Ln(r.width),s=Ln(r.height);if("border-box"===r.boxSizing&&(Math.round(l+a)!==t&&(l-=In(r,"left","right")+a),Math.round(s+i)!==n&&(s-=In(r,"top","bottom")+i)),!function(e){return e===Fn(e).document.documentElement}(e)){var c=Math.round(l+a)-t,u=Math.round(s+i)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return Rn(o.left,o.top,l,s)}(e):Tn}function Rn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var jn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Rn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Dn(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$n=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,i=Object.create(a.prototype);return Pn(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}(t);Pn(this,{target:e,contentRect:n})},Vn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new En,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Fn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new jn(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Fn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new $n(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Bn="undefined"!=typeof WeakMap?new WeakMap:new En,Hn=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=An.getInstance(),r=new Vn(t,n,this);Bn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Hn.prototype[e]=function(){var t;return(t=Bn.get(this))[e].apply(t,arguments)}}));var zn=void 0!==Sn.ResizeObserver?Sn.ResizeObserver:Hn,Un=new Map,Gn=new zn((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Un.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zn(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,xt(r.key),r)}}function Kn(e,t,n){return t&&Zn(e.prototype,t),n&&Zn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Xn=o(611);function qn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Xn.Z)(e,t)}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yn(e);if(t){var o=Yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qn(e)}(this,n)}}var er=function(e){qn(n,e);var t=Jn(n);function n(){return Wn(this,n),t.apply(this,arguments)}return Kn(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component);function tr(e,n){var r=e.children,o=e.disabled,a=t.useRef(null),i=t.useRef(null),l=t.useContext(wn),s="function"==typeof r,c=s?r(a):r,u=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&t.isValidElement(c)&&zt(c),f=Ht(d?c.ref:null,a),p=function(){var e;return xn(a.current)||(a.current&&"object"===yt(a.current)?xn(null===(e=a.current)||void 0===e?void 0:e.nativeElement):null)||xn(i.current)};t.useImperativeHandle(n,(function(){return p()}));var m=t.useRef(e);m.current=e;var h=t.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,i=o.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(a),f=Math.floor(i);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:s,offsetHeight:c};u.current=p;var h=s===Math.round(a)?a:s,g=c===Math.round(i)?i:c,v=Ct(Ct({},p),{},{offsetWidth:h,offsetHeight:g});null==l||l(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return t.useEffect((function(){var e,t,n=p();return n&&!o&&(e=n,t=h,Un.has(e)||(Un.set(e,new Set),Gn.observe(e)),Un.get(e).add(t)),function(){return function(e,t){Un.has(e)&&(Un.get(e).delete(t),Un.get(e).size||(Gn.unobserve(e),Un.delete(e)))}(n,h)}}),[a.current,o]),t.createElement(er,{ref:i},d?t.cloneElement(c,{ref:f}):c)}var nr=t.forwardRef(tr);function rr(e,n){var r=e.children;return("function"==typeof r?[r]:bn(r)).map((function(r,o){var a=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return t.createElement(nr,(0,ie.Z)({},e,{key:a,ref:0===o?n:void 0}),r)}))}var or=t.forwardRef(rr);or.Collection=function(e){var n=e.children,r=e.onBatchResize,o=t.useRef(0),a=t.useRef([]),i=t.useContext(wn),l=t.useCallback((function(e,t,n){o.current+=1;var l=o.current;a.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(a.current),a.current=[])})),null==i||i(e,t,n)}),[r,i]);return t.createElement(wn.Provider,{value:l},n)};var ar=or;function ir(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function lr(e){return function(e){return ir(e)instanceof ShadowRoot}(e)?ir(e):null}function sr(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}var cr=0,ur=Ct({},t).useId,dr=ur?function(e){var t=ur();return e||t}:function(e){var n=At(t.useState("ssr-id"),2),r=n[0],o=n[1];return t.useEffect((function(){var e=cr;cr+=1,o("rc_unique_".concat(e))}),[]),e||r},fr=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},pr=["children"],mr=t.createContext({});function hr(e){var n=e.children,r=St(e,pr);return t.createElement(mr.Provider,{value:r},n)}var gr=function(e){qn(n,e);var t=Jn(n);function n(){return Wn(this,n),t.apply(this,arguments)}return Kn(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),vr=gr;function br(e){var n=t.useRef(!1),r=At(t.useState(e),2),o=r[0],a=r[1];return t.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||a(e)}]}var yr="none",xr="appear",wr="enter",Er="leave",Cr="none",Sr="prepare",_r="start",Or="active",Nr="end",kr="prepared";function Ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Pr,Fr,Tr,Lr=(Pr=Pt(),Fr="undefined"!=typeof window?window:{},Tr={animationend:Ar("Animation","AnimationEnd"),transitionend:Ar("Transition","TransitionEnd")},Pr&&("AnimationEvent"in Fr||delete Tr.animationend.animation,"TransitionEvent"in Fr||delete Tr.transitionend.transition),Tr),Ir={};if(Pt()){var Mr=document.createElement("div");Ir=Mr.style}var Dr={};function Rr(e){if(Dr[e])return Dr[e];var t=Lr[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Ir)return Dr[e]=t[a],Dr[e]}return""}var jr=Rr("animationend"),$r=Rr("transitionend"),Vr=!(!jr||!$r),Br=jr||"animationend",Hr=$r||"transitionend";function zr(e,t){return e?"object"===yt(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Ur=Pt()?t.useLayoutEffect:t.useEffect,Gr=function(e){return+setTimeout(e,16)},Wr=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Gr=function(e){return window.requestAnimationFrame(e)},Wr=function(e){return window.cancelAnimationFrame(e)});var Zr=0,Kr=new Map;function Xr(e){Kr.delete(e)}var qr=function(e){var t=Zr+=1;return function n(r){if(0===r)Xr(t),e();else{var o=Gr((function(){n(r-1)}));Kr.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};qr.cancel=function(e){var t=Kr.get(e);return Xr(t),Wr(t)};var Yr=qr,Qr=[Sr,_r,Or,Nr],Jr=[Sr,kr];function eo(e){return e===Or||e===Nr}var to=function(e){var n=e;"object"===yt(e)&&(n=e.transitionSupport);var r=t.forwardRef((function(e,r){var o=e.visible,a=void 0===o||o,i=e.removeOnLeave,l=void 0===i||i,s=e.forceRender,c=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(e,t.useContext(mr).motion),m=(0,t.useRef)(),h=(0,t.useRef)(),g=function(e,n,r,o){var a=o.motionEnter,i=void 0===a||a,l=o.motionAppear,s=void 0===l||l,c=o.motionLeave,u=void 0===c||c,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,m=o.onEnterPrepare,h=o.onLeavePrepare,g=o.onAppearStart,v=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,E=o.onAppearEnd,C=o.onEnterEnd,S=o.onLeaveEnd,_=o.onVisibleChanged,O=At(br(),2),N=O[0],k=O[1],A=At(br(yr),2),P=A[0],F=A[1],T=At(br(null),2),L=T[0],I=T[1],M=(0,t.useRef)(!1),D=(0,t.useRef)(null);function R(){return r()}var j=(0,t.useRef)(!1);function $(){F(yr,!0),I(null,!0)}function V(e){var t=R();if(!e||e.deadline||e.target===t){var n,r=j.current;P===xr&&r?n=null==E?void 0:E(t,e):P===wr&&r?n=null==C?void 0:C(t,e):P===Er&&r&&(n=null==S?void 0:S(t,e)),P!==yr&&r&&!1!==n&&$()}}var B=At(function(e){var n=(0,t.useRef)(),r=(0,t.useRef)(e);r.current=e;var o=t.useCallback((function(e){r.current(e)}),[]);function a(e){e&&(e.removeEventListener(Hr,o),e.removeEventListener(Br,o))}return t.useEffect((function(){return function(){a(n.current)}}),[]),[function(e){n.current&&n.current!==e&&a(n.current),e&&e!==n.current&&(e.addEventListener(Hr,o),e.addEventListener(Br,o),n.current=e)},a]}(V),1)[0],H=function(e){var t,n,r;switch(e){case xr:return wt(t={},Sr,p),wt(t,_r,g),wt(t,Or,y),t;case wr:return wt(n={},Sr,m),wt(n,_r,v),wt(n,Or,x),n;case Er:return wt(r={},Sr,h),wt(r,_r,b),wt(r,Or,w),r;default:return{}}},z=t.useMemo((function(){return H(P)}),[P]),U=At(function(e,n,r){var o=At(br(Cr),2),a=o[0],i=o[1],l=function(){var e=t.useRef(null);function n(){Yr.cancel(e.current)}return t.useEffect((function(){return function(){n()}}),[]),[function t(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var a=Yr((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):t(r,o-1)}));e.current=a},n]}(),s=At(l,2),c=s[0],u=s[1],d=n?Jr:Qr;return Ur((function(){if(a!==Cr&&a!==Nr){var e=d.indexOf(a),t=d[e+1],n=r(a);!1===n?i(t,!0):t&&c((function(e){function r(){e.isCanceled()||i(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[e,a]),t.useEffect((function(){return function(){u()}}),[]),[function(){i(Sr,!0)},a]}(P,!e,(function(e){if(e===Sr){var t=z[Sr];return!!t&&t(R())}var n;return W in z&&I((null===(n=z[W])||void 0===n?void 0:n.call(z,R(),null))||null),W===Or&&(B(R()),d>0&&(clearTimeout(D.current),D.current=setTimeout((function(){V({deadline:!0})}),d))),W===kr&&$(),true})),2),G=U[0],W=U[1],Z=eo(W);j.current=Z,Ur((function(){k(n);var t,r=M.current;M.current=!0,!r&&n&&s&&(t=xr),r&&n&&i&&(t=wr),(r&&!n&&u||!r&&f&&!n&&u)&&(t=Er);var o=H(t);t&&(e||o[Sr])?(F(t),G()):F(yr)}),[n]),(0,t.useEffect)((function(){(P===xr&&!s||P===wr&&!i||P===Er&&!u)&&F(yr)}),[s,i,u]),(0,t.useEffect)((function(){return function(){M.current=!1,clearTimeout(D.current)}}),[]);var K=t.useRef(!1);(0,t.useEffect)((function(){N&&(K.current=!0),void 0!==N&&P===yr&&((K.current||N)&&(null==_||_(N)),K.current=!0)}),[N,P]);var X=L;return z[Sr]&&W===_r&&(X=Ct({transition:"none"},X)),[P,W,X,null!=N?N:n]}(p,a,(function(){try{return m.current instanceof HTMLElement?m.current:xn(h.current)}catch(e){return null}}),e),v=At(g,4),b=v[0],y=v[1],x=v[2],w=v[3],E=t.useRef(w);w&&(E.current=!0);var C,S=t.useCallback((function(e){m.current=e,Vt(r,e)}),[r]),_=Ct(Ct({},f),{},{visible:a});if(c)if(b===yr)C=w?c(Ct({},_),S):!l&&E.current&&d?c(Ct(Ct({},_),{},{className:d}),S):s||!l&&!d?c(Ct(Ct({},_),{},{style:{display:"none"}}),S):null;else{var O,N;y===Sr?N="prepare":eo(y)?N="active":y===_r&&(N="start");var k=zr(u,"".concat(b,"-").concat(N));C=c(Ct(Ct({},_),{},{className:vt()(zr(u,b),(O={},wt(O,k,k&&N),wt(O,u,"string"==typeof u),O)),style:x}),S)}else C=null;return t.isValidElement(C)&&zt(C)&&(C.ref||(C=t.cloneElement(C,{ref:S}))),t.createElement(vr,{ref:h},C)}));return r.displayName="CSSMotion",r}(Vr),no="add",ro="keep",oo="remove",ao="removed";function io(e){var t;return Ct(Ct({},t=e&&"object"===yt(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function lo(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(io)}var so=["component","children","onVisibleChanged","onAllRemoved"],co=["status"],uo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:to,r=function(e){qn(o,e);var r=Jn(o);function o(){var e;Wn(this,o);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return wt(Qn(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),wt(Qn(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Ct(Ct({},e),{},{status:ao})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ao})).length})),e}return Kn(o,[{key:"render",value:function(){var e=this,r=this.state.keyEntities,o=this.props,a=o.component,i=o.children,l=o.onVisibleChanged,s=o.onAllRemoved,c=St(o,so),u=a||t.Fragment,d={};return uo.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,t.createElement(u,c,r.map((function(r,o){var a=r.status,c=St(r,co),u=a===no||a===ro;return t.createElement(n,(0,ie.Z)({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(t){null==l||l(t,{key:c.key}),t||0===e.removeKey(c.key)&&s&&s()}}),(function(e,t){return i(Ct(Ct({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=lo(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=lo(e),i=lo(t);a.forEach((function(e){for(var t=!1,a=r;a<o;a+=1){var l=i[a];if(l.key===e.key){r<a&&(n=n.concat(i.slice(r,a).map((function(e){return Ct(Ct({},e),{},{status:no})}))),r=a),n.push(Ct(Ct({},l),{},{status:ro})),r+=1,t=!0;break}}t||n.push(Ct(Ct({},e),{},{status:oo}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return Ct(Ct({},e),{},{status:no})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==oo}))).forEach((function(t){t.key===e&&(t.status=ro)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ao||e.status!==oo}))}}}]),o}(t.Component);wt(r,"defaultProps",{component:"div"})}(Vr);var fo=to;function po(e){var n=e.prefixCls,r=e.align,o=e.arrow,a=e.arrowPos,i=o||{},l=i.className,s=i.content,c=a.x,u=void 0===c?0:c,d=a.y,f=void 0===d?0:d,p=t.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var h=r.points[0],g=r.points[1],v=h[0],b=h[1],y=g[0],x=g[1];v!==y&&["t","b"].includes(v)?"t"===v?m.top=0:m.bottom=0:m.top=f,b!==x&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return t.createElement("div",{ref:p,className:vt()("".concat(n,"-arrow"),l),style:m},s)}function mo(e){var n=e.prefixCls,r=e.open,o=e.zIndex,a=e.mask,i=e.motion;return a?t.createElement(fo,(0,ie.Z)({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(e){var r=e.className;return t.createElement("div",{style:{zIndex:o},className:vt()("".concat(n,"-mask"),r)})})):null}var ho=t.memo((function(e){return e.children}),(function(e,t){return t.cache})),go=ho,vo=t.forwardRef((function(e,n){var r=e.popup,o=e.className,a=e.prefixCls,i=e.style,l=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,E=e.portal,C=e.zIndex,S=e.onMouseEnter,_=e.onMouseLeave,O=e.onPointerEnter,N=e.ready,k=e.offsetX,A=e.offsetY,P=e.offsetR,F=e.offsetB,T=e.onAlign,L=e.onPrepare,I=e.stretch,M=e.targetWidth,D=e.targetHeight,R="function"==typeof r?r():r,j=c||u,$=(null==x?void 0:x.length)>0,V=At(t.useState(!x||!$),2),B=V[0],H=V[1];if(Yt((function(){!B&&$&&l&&H(!0)}),[B,$,l]),!B)return null;var z="auto",U={left:"-1000vw",top:"-1000vh",right:z,bottom:z};if(N||!c){var G,W=g.points,Z=g.dynamicInset||(null===(G=g._experimental)||void 0===G?void 0:G.dynamicInset),K=Z&&"r"===W[0][1],X=Z&&"b"===W[0][0];K?(U.right=P,U.left=z):(U.left=k,U.right=z),X?(U.bottom=F,U.top=z):(U.top=A,U.bottom=z)}var q={};return I&&(I.includes("height")&&D?q.height=D:I.includes("minHeight")&&D&&(q.minHeight=D),I.includes("width")&&M?q.width=M:I.includes("minWidth")&&M&&(q.minWidth=M)),c||(q.pointerEvents="none"),t.createElement(E,{open:y||j,getContainer:x&&function(){return x(l)},autoDestroy:w},t.createElement(mo,{prefixCls:a,open:c,zIndex:C,mask:p,motion:b}),t.createElement(ar,{onResize:T,disabled:!c},(function(e){return t.createElement(fo,(0,ie.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(a,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),(function(r,l){var s=r.className,u=r.style,p=vt()(a,s,o);return t.createElement("div",{ref:Bt(e,n,l),className:p,style:Ct(Ct(Ct(Ct({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),q),u),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:S,onMouseLeave:_,onPointerEnter:O,onClick:f},m&&t.createElement(po,{prefixCls:a,arrow:m,arrowPos:h,align:g}),t.createElement(go,{cache:!c&&!d},R))}))})))})),bo=vo,yo=t.forwardRef((function(e,n){var r=e.children,o=e.getTriggerDOMNode,a=zt(r),i=t.useCallback((function(e){Vt(n,o?o(e):e)}),[o]),l=Ht(i,r.ref);return a?t.cloneElement(r,{ref:l}):r})),xo=yo,wo=t.createContext(null);function Eo(e){return e?Array.isArray(e)?e:[e]:[]}function Co(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function So(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _o(e){return e.ownerDocument.defaultView}function Oo(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=_o(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function No(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ko(e){return No(parseFloat(e),0)}function Ao(e,t){var n=Ct({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=_o(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ko(a),h=ko(i),g=ko(l),v=ko(s),b=No(Math.round(c.width/f*1e3)/1e3),y=No(Math.round(c.height/u*1e3)/1e3),x=(f-p-g-v)*b,w=(u-d-m-h)*y,E=m*y,C=h*y,S=g*b,_=v*b,O=0,N=0;if("clip"===r){var k=ko(o);O=k*b,N=k*y}var A=c.x+S-O,P=c.y+E-N,F=A+c.width+2*O-S-_-x,T=P+c.height+2*N-E-C-w;n.left=Math.max(n.left,A),n.top=Math.max(n.top,P),n.right=Math.min(n.right,F),n.bottom=Math.min(n.bottom,T)}})),n}function Po(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Fo(e,t){var n=At(t||[],2),r=n[0],o=n[1];return[Po(e.width,r),Po(e.height,o)]}function To(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Lo(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Io(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Mo=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],Do=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vn,n=t.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,l=n.children,s=n.action,c=void 0===s?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,b=void 0===v?.1:v,y=n.focusDelay,x=n.blurDelay,w=n.mask,E=n.maskClosable,C=void 0===E||E,S=n.getPopupContainer,_=n.forceRender,O=n.autoDestroy,N=n.destroyPopupOnHide,k=n.popup,A=n.popupClassName,P=n.popupStyle,F=n.popupPlacement,T=n.builtinPlacements,L=void 0===T?{}:T,I=n.popupAlign,M=n.zIndex,D=n.stretch,R=n.getPopupClassNameFromAlign,j=n.fresh,$=n.alignPoint,V=n.onPopupClick,B=n.onPopupAlign,H=n.arrow,z=n.popupMotion,U=n.maskMotion,G=n.popupTransitionName,W=n.popupAnimation,Z=n.maskTransitionName,K=n.maskAnimation,X=n.className,q=n.getTriggerDOMNode,Y=St(n,Mo),Q=O||N||!1,J=At(t.useState(!1),2),ee=J[0],te=J[1];Yt((function(){te(fr())}),[]);var ne=t.useRef({}),re=t.useContext(wo),oe=t.useMemo((function(){return{registerSubPopup:function(e,t){ne.current[e]=t,null==re||re.registerSubPopup(e,t)}}}),[re]),ae=dr(),ie=At(t.useState(null),2),le=ie[0],se=ie[1],ce=sr((function(e){yn(e)&&le!==e&&se(e),null==re||re.registerSubPopup(ae,e)})),ue=At(t.useState(null),2),de=ue[0],fe=ue[1],pe=t.useRef(null),me=sr((function(e){yn(e)&&de!==e&&(fe(e),pe.current=e)})),he=t.Children.only(l),ge=(null==he?void 0:he.props)||{},ve={},be=sr((function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=lr(r))||void 0===t?void 0:t.host)===e||e===r||(null==le?void 0:le.contains(e))||(null===(n=lr(le))||void 0===n?void 0:n.host)===e||e===le||Object.values(ne.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ye=So(i,z,W,G),xe=So(i,U,K,Z),we=At(t.useState(p||!1),2),Ee=we[0],Ce=we[1],Se=null!=f?f:Ee,_e=sr((function(e){void 0===f&&Ce(e)}));Yt((function(){Ce(f||!1)}),[f]);var Oe=t.useRef(Se);Oe.current=Se;var Ne=sr((function(e){(0,a.flushSync)((function(){Se!==e&&(_e(e),null==m||m(e))}))})),ke=t.useRef(),Ae=function(){clearTimeout(ke.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ae(),0===t?Ne(e):ke.current=setTimeout((function(){Ne(e)}),1e3*t)};t.useEffect((function(){return Ae}),[]);var Fe=At(t.useState(!1),2),Te=Fe[0],Le=Fe[1];Yt((function(e){e&&!Se||Le(!0)}),[Se]);var Ie=At(t.useState(null),2),Me=Ie[0],De=Ie[1],Re=At(t.useState([0,0]),2),je=Re[0],$e=Re[1],Ve=function(e){$e([e.clientX,e.clientY])},Be=function(e,n,r,o,a,i,l){var s=At(t.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),2),c=s[0],u=s[1],d=t.useRef(0),f=t.useMemo((function(){return n?Oo(n):[]}),[n]),p=t.useRef({});e||(p.current={});var m=sr((function(){if(n&&r&&e){var t,s,c,d=n,m=d.ownerDocument,h=_o(d).getComputedStyle(d),g=h.width,v=h.height,b=h.position,y=d.style.left,x=d.style.top,w=d.style.right,E=d.style.bottom,C=Ct(Ct({},a[o]),i),S=m.createElement("div");if(null===(t=d.parentElement)||void 0===t||t.appendChild(S),S.style.left="".concat(d.offsetLeft,"px"),S.style.top="".concat(d.offsetTop,"px"),S.style.position=b,S.style.height="".concat(d.offsetHeight,"px"),S.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",Array.isArray(r))c={x:r[0],y:r[1],width:0,height:0};else{var _=r.getBoundingClientRect();c={x:_.x,y:_.y,width:_.width,height:_.height}}var O=d.getBoundingClientRect(),N=m.documentElement,k=N.clientWidth,A=N.clientHeight,P=N.scrollWidth,F=N.scrollHeight,T=N.scrollTop,L=N.scrollLeft,I=O.height,M=O.width,D=c.height,R=c.width,j={left:0,top:0,right:k,bottom:A},$={left:-L,top:-T,right:P-L,bottom:F-T},V=C.htmlRegion,B="visible",H="visibleFirst";"scroll"!==V&&V!==H&&(V=B);var z=V===H,U=Ao($,f),G=Ao(j,f),W=V===B?G:U,Z=z?G:W;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var K=d.getBoundingClientRect();d.style.left=y,d.style.top=x,d.style.right=w,d.style.bottom=E,null===(s=d.parentElement)||void 0===s||s.removeChild(S);var X=No(Math.round(M/parseFloat(g)*1e3)/1e3),q=No(Math.round(I/parseFloat(v)*1e3)/1e3);if(0===X||0===q||yn(r)&&!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}(r))return;var Y=C.offset,Q=C.targetOffset,J=At(Fo(O,Y),2),ee=J[0],te=J[1],ne=At(Fo(c,Q),2),re=ne[0],oe=ne[1];c.x-=re,c.y-=oe;var ae=At(C.points||[],2),ie=ae[0],le=To(ae[1]),se=To(ie),ce=Lo(c,le),ue=Lo(O,se),de=Ct({},C),fe=ce.x-ue.x+ee,pe=ce.y-ue.y+te;function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W,r=O.x+e,o=O.y+t,a=r+M,i=o+I,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(a,n.right),u=Math.min(i,n.bottom);return Math.max(0,(c-l)*(u-s))}var me,he,ge,ve,be=it(fe,pe),ye=it(fe,pe,G),xe=Lo(c,["t","l"]),we=Lo(O,["t","l"]),Ee=Lo(c,["b","r"]),Ce=Lo(O,["b","r"]),Se=C.overflow||{},_e=Se.adjustX,Oe=Se.adjustY,Ne=Se.shiftX,ke=Se.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function lt(){me=O.y+pe,he=me+I,ge=O.x+fe,ve=ge+M}lt();var Pe=Ae(Oe),Fe=se[0]===le[0];if(Pe&&"t"===se[0]&&(he>Z.bottom||p.current.bt)){var Te=pe;Fe?Te-=I-D:Te=xe.y-Ce.y-te;var Le=it(fe,Te),Ie=it(fe,Te,G);Le>be||Le===be&&(!z||Ie>=ye)?(p.current.bt=!0,pe=Te,te=-te,de.points=[Io(se,0),Io(le,0)]):p.current.bt=!1}if(Pe&&"b"===se[0]&&(me<Z.top||p.current.tb)){var Me=pe;Fe?Me+=I-D:Me=Ee.y-we.y-te;var De=it(fe,Me),Re=it(fe,Me,G);De>be||De===be&&(!z||Re>=ye)?(p.current.tb=!0,pe=Me,te=-te,de.points=[Io(se,0),Io(le,0)]):p.current.tb=!1}var je=Ae(_e),$e=se[1]===le[1];if(je&&"l"===se[1]&&(ve>Z.right||p.current.rl)){var Ve=fe;$e?Ve-=M-R:Ve=xe.x-Ce.x-ee;var Be=it(Ve,pe),He=it(Ve,pe,G);Be>be||Be===be&&(!z||He>=ye)?(p.current.rl=!0,fe=Ve,ee=-ee,de.points=[Io(se,1),Io(le,1)]):p.current.rl=!1}if(je&&"r"===se[1]&&(ge<Z.left||p.current.lr)){var ze=fe;$e?ze+=M-R:ze=Ee.x-we.x-ee;var Ue=it(ze,pe),Ge=it(ze,pe,G);Ue>be||Ue===be&&(!z||Ge>=ye)?(p.current.lr=!0,fe=ze,ee=-ee,de.points=[Io(se,1),Io(le,1)]):p.current.lr=!1}lt();var We=!0===Ne?0:Ne;"number"==typeof We&&(ge<G.left&&(fe-=ge-G.left-ee,c.x+R<G.left+We&&(fe+=c.x-G.left+R-We)),ve>G.right&&(fe-=ve-G.right-ee,c.x>G.right-We&&(fe+=c.x-G.right+We)));var Ze=!0===ke?0:ke;"number"==typeof Ze&&(me<G.top&&(pe-=me-G.top-te,c.y+D<G.top+Ze&&(pe+=c.y-G.top+D-Ze)),he>G.bottom&&(pe-=he-G.bottom-te,c.y>G.bottom-Ze&&(pe+=c.y-G.bottom+Ze)));var Ke=O.x+fe,Xe=Ke+M,qe=O.y+pe,Ye=qe+I,Qe=c.x,Je=Qe+R,et=c.y,tt=et+D,nt=(Math.max(Ke,Qe)+Math.min(Xe,Je))/2-Ke,rt=(Math.max(qe,et)+Math.min(Ye,tt))/2-qe;null==l||l(n,de);var ot=K.right-O.x-(fe+O.width),at=K.bottom-O.y-(pe+O.height);u({ready:!0,offsetX:fe/X,offsetY:pe/q,offsetR:ot/X,offsetB:at/q,arrowX:nt/X,arrowY:rt/q,scaleX:X,scaleY:q,align:de})}})),h=function(){u((function(e){return Ct(Ct({},e),{},{ready:!1})}))};return Yt(h,[o]),Yt((function(){e||h()}),[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Se,le,$?je:de,F,L,I,B),He=At(Be,11),ze=He[0],Ue=He[1],Ge=He[2],We=He[3],Ze=He[4],Ke=He[5],Xe=He[6],qe=He[7],Ye=He[8],Qe=He[9],Je=He[10],et=function(e,n,r,o){return t.useMemo((function(){var t=Eo(null!=r?r:n),a=Eo(null!=o?o:n),i=new Set(t),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]}),[e,n,r,o])}(ee,c,u,d),tt=At(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),at=rt.has("click")||rt.has("contextMenu"),it=sr((function(){Te||Je()}));!function(e,t,n,r,o){Yt((function(){if(e&&t&&n){var o=n,a=Oo(t),i=Oo(o),l=_o(o),s=new Set([l].concat(Wt(a),Wt(i)));function c(){r(),Oe.current&&$&&at&&Pe(!1)}return s.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[e,t,n])}(Se,de,le,it),Yt((function(){it()}),[je,F]),Yt((function(){!Se||null!=L&&L[F]||it()}),[JSON.stringify(I)]);var lt=t.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(Co(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(L,i,Qe,$);return vt()(e,null==R?void 0:R(Qe))}),[Qe,R,L,i,$]);t.useImperativeHandle(r,(function(){return{nativeElement:pe.current,forceAlign:it}}));var st=At(t.useState(0),2),ct=st[0],ut=st[1],dt=At(t.useState(0),2),ft=dt[0],pt=dt[1],mt=function(){if(D&&de){var e=de.getBoundingClientRect();ut(e.width),pt(e.height)}};function ht(e,t,n,r){ve[e]=function(o){var a;null==r||r(o),Pe(t,n);for(var i=arguments.length,l=new Array(i>1?i-1:0),s=1;s<i;s++)l[s-1]=arguments[s];null===(a=ge[e])||void 0===a||a.call.apply(a,[ge,o].concat(l))}}Yt((function(){Me&&(Je(),Me(),De(null))}),[Me]),(ot||at)&&(ve.onClick=function(e){var t;Oe.current&&at?Pe(!1):!Oe.current&&ot&&(Ve(e),Pe(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),function(e,n,r,o,a,i,l,s){var c=t.useRef(e),u=t.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),t.useEffect((function(){var e=Yr((function(){u.current=!1}));return function(){Yr.cancel(e)}}),[e]),t.useEffect((function(){if(n&&o&&(!a||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=l(n)},function(t){var n=t.target;u.current||!c.current||e||l(n)||s(!1)}]},t=At(e(),2),d=t[0],f=t[1],p=At(e(),2),m=p[0],h=p[1],g=_o(o);g.addEventListener("mousedown",d,!0),g.addEventListener("click",f,!0),g.addEventListener("contextmenu",f,!0);var v=lr(r);return v&&(v.addEventListener("mousedown",m,!0),v.addEventListener("click",h,!0),v.addEventListener("contextmenu",h,!0)),function(){g.removeEventListener("mousedown",d,!0),g.removeEventListener("click",f,!0),g.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",m,!0),v.removeEventListener("click",h,!0),v.removeEventListener("contextmenu",h,!0))}}}),[n,r,o,a,i])}(Se,at,de,le,w,C,be,Pe);var gt,bt,yt=nt.has("hover"),xt=rt.has("hover");yt&&(ht("onMouseEnter",!0,g,(function(e){Ve(e)})),ht("onPointerEnter",!0,g,(function(e){Ve(e)})),gt=function(){(Se||Te)&&Pe(!0,g)},$&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),xt&&(ht("onMouseLeave",!1,b),ht("onPointerLeave",!1,b),bt=function(){Pe(!1,b)}),nt.has("focus")&&ht("onFocus",!0,y),rt.has("focus")&&ht("onBlur",!1,x),nt.has("contextMenu")&&(ve.onContextMenu=function(e){var t;Oe.current&&rt.has("contextMenu")?Pe(!1):(Ve(e),Pe(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),X&&(ve.className=vt()(ge.className,X));var wt=Ct(Ct({},ge),ve),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(Et[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),Y[e].apply(Y,r)})}));var _t=t.cloneElement(he,Ct(Ct({},wt),Et)),Ot={x:Ke,y:Xe},Nt=H?Ct({},!0!==H?H:{}):null;return t.createElement(t.Fragment,null,t.createElement(ar,{disabled:!Se,ref:me,onResize:function(){mt(),it()}},t.createElement(xo,{getTriggerDOMNode:q},_t)),t.createElement(wo.Provider,{value:oe},t.createElement(bo,{portal:e,ref:ce,prefixCls:i,popup:k,className:vt()(A,lt),style:P,target:de,onMouseEnter:gt,onMouseLeave:bt,onPointerEnter:gt,zIndex:M,open:Se,keepDom:Te,fresh:j,onClick:V,mask:w,motion:ye,maskMotion:xe,onVisibleChanged:function(e){Le(!1),Je(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){mt(),De((function(){return e}))}))},forceRender:_,autoDestroy:Q,getPopupContainer:S,align:Qe,arrow:Nt,arrowPos:Ot,ready:ze,offsetX:Ue,offsetY:Ge,offsetR:We,offsetB:Ze,onAlign:it,stretch:D,targetWidth:ct/qe,targetHeight:ft/Ye})))}));return n}(vn),Ro={shiftX:64,adjustY:1},jo={adjustX:1,shiftY:!0},$o=[0,0],Vo={left:{points:["cr","cl"],overflow:jo,offset:[-4,0],targetOffset:$o},right:{points:["cl","cr"],overflow:jo,offset:[4,0],targetOffset:$o},top:{points:["bc","tc"],overflow:Ro,offset:[0,-4],targetOffset:$o},bottom:{points:["tc","bc"],overflow:Ro,offset:[0,4],targetOffset:$o},topLeft:{points:["bl","tl"],overflow:Ro,offset:[0,-4],targetOffset:$o},leftTop:{points:["tr","tl"],overflow:jo,offset:[-4,0],targetOffset:$o},topRight:{points:["br","tr"],overflow:Ro,offset:[0,-4],targetOffset:$o},rightTop:{points:["tl","tr"],overflow:jo,offset:[4,0],targetOffset:$o},bottomRight:{points:["tr","br"],overflow:Ro,offset:[0,4],targetOffset:$o},rightBottom:{points:["bl","br"],overflow:jo,offset:[4,0],targetOffset:$o},bottomLeft:{points:["tl","bl"],overflow:Ro,offset:[0,4],targetOffset:$o},leftBottom:{points:["br","bl"],overflow:jo,offset:[-4,0],targetOffset:$o}},Bo=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Ho=function(e,n){var r=e.overlayClassName,o=e.trigger,a=void 0===o?["hover"]:o,i=e.mouseEnterDelay,l=void 0===i?0:i,s=e.mouseLeaveDelay,c=void 0===s?.1:s,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,m=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,v=e.animation,b=e.motion,y=e.placement,x=void 0===y?"right":y,w=e.align,E=void 0===w?{}:w,C=e.destroyTooltipOnHide,S=void 0!==C&&C,_=e.defaultVisible,O=e.getTooltipContainer,N=e.overlayInnerStyle,k=(e.arrowContent,e.overlay),A=e.id,P=e.showArrow,F=void 0===P||P,T=St(e,Bo),L=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(function(){return L.current}));var I=Ct({},T);return"visible"in e&&(I.popupVisible=e.visible),t.createElement(Do,(0,ie.Z)({popupClassName:r,prefixCls:f,popup:function(){return t.createElement(bt,{key:"content",prefixCls:f,id:A,overlayInnerStyle:N},k)},action:a,builtinPlacements:Vo,popupPlacement:x,ref:L,popupAlign:E,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:v,popupMotion:b,defaultPopupVisible:_,autoDestroy:S,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:F},I),p)},zo=(0,t.forwardRef)(Ho);function Uo(e){return void 0!==e}function Go(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=At(br((function(){return Uo(o)?o:Uo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=i?i(u):u,f=sr(a),p=At(br([u]),2),m=p[0],h=p[1];return qt((function(){var e=m[0];s!==e&&f(s,e)}),[m]),qt((function(){Uo(o)||c(o)}),[o]),[d,sr((function(e,t){c(e,t),h([u],t)}))]}const Wo=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Zo=(e,t,n,r,o)=>{const a=e/2,i=a,l=1*n/Math.sqrt(2),s=a-n*(1-1/Math.sqrt(2)),c=a-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*a-c,f=u,p=2*a-l,m=s,h=2*a-0,g=i,v=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${l} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${f} L ${p} ${m} A ${n} ${n} 0 0 0 ${h} ${g} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Ko=8;function Xo(e){const t=Ko,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function qo(e,t){return e?t:{}}function Yo(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=Xo({contentRadius:s,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Zo(r,o,a,l,i)),{"&:before":{background:l}})]},qo(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),qo(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),qo(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),qo(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}const Qo={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Jo={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ea=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);const{isValidElement:ta}=t;function na(){}const ra=t.createContext({}),oa="anticon",aa=t.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:oa}),{Consumer:ia}=aa,la=t.createContext(void 0),sa=e=>{let{children:n,size:r}=e;const o=t.useContext(la);return t.createElement(la.Provider,{value:r||o},n)};var ca=la,ua=e=>{const t=r().useContext(ca);return r().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},da=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},fa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(Rt(!i,"Warning: There may be circular references"),i)return!1;if(t===o)return!0;if(n&&a>1)return!1;r.add(t);var l=a+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===yt(t)&&"object"===yt(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)},pa=function(){function e(t){Wn(this,e),wt(this,"instanceId",void 0),wt(this,"cache",new Map),this.instanceId=t}return Kn(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),ma=pa,ha="data-token-hash",ga="data-css-hash",va="__cssinjs_instance__";var ba=t.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ga,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[va]=t[va]||e,t[va]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(ga,"]"))).forEach((function(t){var n,o=t.getAttribute(ga);r[o]?t[va]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new ma(e)}(),defaultCache:!0}),ya=ba,xa=function(){function e(){Wn(this,e),wt(this,"cache",void 0),wt(this,"keys",void 0),wt(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Kn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t,n;o=o?null===(t=o)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=At(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),a=At(o,1)[0];this.delete(a)}this.keys.push(t)}var i=this.cache;t.forEach((function(e,o){if(o===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var a=i.get(e);a?a.map||(a.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();wt(xa,"MAX_CACHE_SIZE",20),wt(xa,"MAX_CACHE_OFFSET",5);var wa=0,Ea=function(){function e(t){Wn(this,e),wt(this,"derivatives",void 0),wt(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=wa,0===t.length&&t.length,wa+=1}return Kn(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Ca=new xa;function Sa(e){var t=Array.isArray(e)?e:[e];return Ca.has(t)||Ca.set(t,new Ea(t)),Ca.get(t)}var _a=new WeakMap,Oa={},Na=new WeakMap;function ka(e){var t=Na.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Ea?t+=r.id:r&&"object"===yt(r)?t+=ka(r):t+=r})),Na.set(e,t)),t}var Aa="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Pa="_bAmBoO_";var Fa=void 0,Ta=Ct({},t).useInsertionEffect,La=Ta?function(e,t,n){return Ta((function(){return e(),t()}),n)}:function(e,n,r){t.useMemo(e,r),Yt((function(){return n(!0)}),r)},Ia=void 0!==Ct({},t).useInsertionEffect?function(e){var n=[],r=!1;return t.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),e),function(e){r||n.push(e)}}:function(){return function(e){e()}},Ma=function(){return!1};function Da(e,n,r,o,a){var i=t.useContext(ya).cache,l=[e].concat(Wt(n)),s=l.join("_"),c=Ia([s]),u=(Ma(),function(e){i.update(l,(function(t){var n=At(t||[],2),o=n[0],a=[void 0===o?0:o,n[1]||r()];return e?e(a):a}))});t.useMemo((function(){u()}),[s]);var d=i.get(l)[1];return La((function(){null==a||a(d)}),(function(e){return u((function(t){var n=At(t,2),r=n[0],o=n[1];return e&&0===r&&(null==a||a(d)),[r+1,o]})),function(){i.update(l,(function(e){var t=At(e||[],2),n=t[0],r=void 0===n?0:n,a=t[1];return 0==r-1?(c((function(){return null==o?void 0:o(a,!1)})),null):[r-1,a]}))}}),[s]),d}var Ra={},ja="css",$a=new Map,Va=0;var Ba=function(e,t,n,r){var o=Ct(Ct({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function Ha(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,t.useContext)(ya).cache.instanceId,a=r.salt,i=void 0===a?"":a,l=r.override,s=void 0===l?Ra:l,c=r.formatToken,u=r.getComputedToken,d=function(e,t){for(var r=_a,o=0;o<t.length;o+=1){var a=t[o];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(Oa)||r.set(Oa,Object.assign.apply(Object,[{}].concat(Wt(n)))),r.get(Oa)}(0,n),f=ka(d),p=ka(s),m=Da("token",[i,e.id,f,p],(function(){var t=u?u(d,s,e):Ba(d,s,e,c),n=function(e,t){return da("".concat(t,"_").concat(ka(e)))}(t,i);t._tokenKey=n,function(e){$a.set(e,($a.get(e)||0)+1)}(n);var r="".concat(ja,"-").concat(da(n));return t._hashId=r,[t,r]}),(function(e){!function(e,t){$a.set(e,($a.get(e)||0)-1);var n=Array.from($a.keys()),r=n.filter((function(e){return($a.get(e)||0)<=0}));n.length-r.length>Va&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(ha,'="').concat(e,'"]')).forEach((function(e){var n;e[va]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),$a.delete(e)}))}(e[0]._tokenKey,o)}));return m}var za={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ua="comm",Ga="rule",Wa="decl",Za="@import",Ka="@keyframes",Xa="@layer",qa=Math.abs,Ya=String.fromCharCode;function Qa(e){return e.trim()}function Ja(e,t,n){return e.replace(t,n)}function ei(e,t){return e.indexOf(t)}function ti(e,t){return 0|e.charCodeAt(t)}function ni(e,t,n){return e.slice(t,n)}function ri(e){return e.length}function oi(e,t){return t.push(e),e}function ai(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ii(e,t,n,r){switch(e.type){case Xa:if(e.children.length)break;case Za:case Wa:return e.return=e.return||e.value;case Ua:return"";case Ka:return e.return=e.value+"{"+ai(e.children,r)+"}";case Ga:if(!ri(e.value=e.props.join(",")))return""}return ri(n=ai(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var li=1,si=1,ci=0,ui=0,di=0,fi="";function pi(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:li,column:si,length:i,return:"",siblings:l}}function mi(){return di=ui>0?ti(fi,--ui):0,si--,10===di&&(si=1,li--),di}function hi(){return di=ui<ci?ti(fi,ui++):0,si++,10===di&&(si=1,li++),di}function gi(){return ti(fi,ui)}function vi(){return ui}function bi(e,t){return ni(fi,e,t)}function yi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xi(e){return Qa(bi(ui-1,Ci(91===e?e+2:40===e?e+1:e)))}function wi(e){for(;(di=gi())&&di<33;)hi();return yi(e)>2||yi(di)>3?"":" "}function Ei(e,t){for(;--t&&hi()&&!(di<48||di>102||di>57&&di<65||di>70&&di<97););return bi(e,vi()+(t<6&&32==gi()&&32==hi()))}function Ci(e){for(;hi();)switch(di){case e:return ui;case 34:case 39:34!==e&&39!==e&&Ci(di);break;case 40:41===e&&Ci(e);break;case 92:hi()}return ui}function Si(e,t){for(;hi()&&e+di!==57&&(e+di!==84||47!==gi()););return"/*"+bi(t,ui-1)+"*"+Ya(47===e?e:hi())}function _i(e){for(;!yi(gi());)hi();return bi(e,ui)}function Oi(e){return function(e){return fi="",e}(Ni("",null,null,null,[""],e=function(e){return li=si=1,ci=ri(fi=e),ui=0,[]}(e),0,[0],e))}function Ni(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,w=a,E=r,C=y;g;)switch(m=b,b=hi()){case 40:if(108!=m&&58==ti(C,d-1)){-1!=ei(C+=Ja(xi(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=xi(b);break;case 9:case 10:case 13:case 32:C+=wi(m);break;case 92:C+=Ei(vi()-1,7);continue;case 47:switch(gi()){case 42:case 47:oi(Ai(Si(hi(),vi()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[c++]=ri(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=Ja(C,/\f/g,"")),p>0&&ri(C)-d&&oi(p>32?Pi(C+";",r,n,d-1,s):Pi(Ja(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(oi(E=ki(C,t,n,c,u,o,l,y,x=[],w=[],d,a),a),123===b)if(0===u)Ni(C,t,E,E,x,a,d,l,w);else switch(99===f&&110===ti(C,3)?100:f){case 100:case 108:case 109:case 115:Ni(e,E,E,r&&oi(ki(e,E,E,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:Ni(C,E,E,E,[""],w,0,l,w)}}c=u=p=0,h=v=1,y=C="",d=i;break;case 58:d=1+ri(C),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==mi())continue;switch(C+=Ya(b),b*h){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(ri(C)-1)*v,v=1;break;case 64:45===gi()&&(C+=xi(hi())),f=gi(),u=d=ri(y=C+=_i(vi())),b++;break;case 45:45===m&&2==ri(C)&&(h=0)}}return a}function ki(e,t,n,r,o,a,i,l,s,c,u,d){for(var f=o-1,p=0===o?a:[""],m=function(e){return e.length}(p),h=0,g=0,v=0;h<r;++h)for(var b=0,y=ni(e,f+1,f=qa(g=i[h])),x=e;b<m;++b)(x=Qa(g>0?p[b]+" "+y:Ja(y,/&\f/g,p[b])))&&(s[v++]=x);return pi(e,t,n,0===o?Ga:l,s,c,u,d)}function Ai(e,t,n,r){return pi(e,t,n,Ua,Ya(di),ni(e,2,-2),0,r)}function Pi(e,t,n,r,o){return pi(e,t,n,Wa,ni(e,0,r),ni(e,r+1,-1),r,o)}var Fi,Ti="data-ant-cssinjs-cache-path",Li="_FILE_STYLE__",Ii=!0;var Mi=Pt(),Di="_multi_value_";function Ri(e){return ai(Oi(e),ii).replace(/\{%%%\:[^;];}/g,";")}var ji=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=At(e(t.style,n,{root:!1,parentSelectors:i}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(h.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==yt(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===yt(e)&&e&&("_skip_check_"in e||Di in e)}(r)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;za[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===yt(r)&&null!=r&&r[Di]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var h=!1,g=t.trim(),v=!1;(o||a)&&l?g.startsWith("@")?h=!0:g=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,a=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat(Wt(n.slice(1))).join(" ")}));return a.join(",")}(t,l,c):!o||l||"&"!==g&&""!==g||(g="",v=!0);var b=At(e(r,n,{root:v,injectHash:h,parentSelectors:[].concat(Wt(i),[g])}),2),y=b[0],x=b[1];p=Ct(Ct({},p),x),f+="".concat(g).concat(y)}}))}})),o){if(s&&(void 0===Fa&&(Fa=function(e,t,n){if(Pt()){var r,o;un(e,Aa);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(Pa);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),cn(Aa),i}return!1}("@layer ".concat(Aa," { .").concat(Aa,' { content: "').concat(Pa,'"!important; } }'),(function(e){e.className=Aa}))),Fa)){var g=s.split(","),v=g[g.length-1].trim();f="@layer ".concat(v," {").concat(f,"}"),g.length>1&&(f="@layer ".concat(s,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function $i(){return null}function Vi(e,n){var r=e.token,o=e.path,a=e.hashId,i=e.layer,l=e.nonce,s=e.clientOnly,c=e.order,u=void 0===c?0:c,d=t.useContext(ya),f=d.autoClear,p=(d.mock,d.defaultCache),m=d.hashPriority,h=d.container,g=d.ssrInline,v=d.transformers,b=d.linters,y=d.cache,x=r._tokenKey,w=[x].concat(Wt(o)),E=Mi,C=Da("style",w,(function(){var e=w.join("|");if(function(e){return function(){if(!Fi&&(Fi={},Pt())){var e=document.createElement("div");e.className=Ti,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=At(e.split(":"),2),n=t[0],r=t[1];Fi[n]=r}));var n,r=document.querySelector("style[".concat(Ti,"]"));r&&(Ii=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Fi[e]}(e)){var t=function(e){var t=Fi[e],n=null;if(t&&Pt())if(Ii)n=Li;else{var r=document.querySelector("style[".concat(ga,'="').concat(Fi[e],'"]'));r?n=r.innerHTML:delete Fi[e]}return[n,t]}(e),r=At(t,2),l=r[0],c=r[1];if(l)return[l,x,c,{},s,u]}var d=n(),f=At(ji(d,{hashId:a,hashPriority:m,layer:i,path:o.join("-"),transformers:v,linters:b}),2),p=f[0],h=f[1],g=Ri(p),y=function(e,t){return da("".concat(e.join("%")).concat(t))}(w,g);return[g,x,y,h,s,u]}),(function(e,t){var n=At(e,3)[2];(t||f)&&Mi&&cn(n,{mark:ga})}),(function(e){var t=At(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==Li){var a={mark:ga,prepend:"queue",attachTo:h,priority:u},i="function"==typeof l?l():l;i&&(a.csp={nonce:i});var s=un(n,r,a);s[va]=y.instanceId,s.setAttribute(ha,x),Object.keys(o).forEach((function(e){un(Ri(o[e]),"_effect-".concat(e),a)}))}})),S=At(C,3),_=S[0],O=S[1],N=S[2];return function(e){var n,r;return n=g&&!E&&p?t.createElement("style",(0,ie.Z)({},(wt(r={},ha,O),wt(r,ga,N),r),{dangerouslySetInnerHTML:{__html:_}})):t.createElement($i,null),t.createElement(t.Fragment,null,n,e)}}var Bi=function(){function e(t,n){Wn(this,e),wt(this,"name",void 0),wt(this,"style",void 0),wt(this,"_keyframe",!0),this.name=t,this.style=n}return Kn(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),Hi=Bi;function zi(e){return e.notSplit=!0,e}function Ui(e){return _t(e)||Gt(e)||Nt(e)||kt()}function Gi(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Wi(e,t,n,r){if(!t.length)return n;var o,a=Ui(t),i=a[0],l=a.slice(1);return o=e||"number"!=typeof i?Array.isArray(e)?Wt(e):Ct({},e):[],r&&void 0===n&&1===l.length?delete o[i][l[0]]:o[i]=Wi(o[i],l,n,r),o}function Zi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Gi(e,t.slice(0,-1))?e:Wi(e,t,n,r)}function Ki(e){return Array.isArray(e)?[]:{}}zi(["borderTop","borderBottom"]),zi(["borderTop"]),zi(["borderBottom"]),zi(["borderLeft","borderRight"]),zi(["borderLeft"]),zi(["borderRight"]);var Xi="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function qi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ki(t[0]);return t.forEach((function(e){!function t(n,o){var a,i=new Set(o),l=Gi(e,n),s=Array.isArray(l);if(s||"object"===yt(a=l)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype){if(!i.has(l)){i.add(l);var c=Gi(r,n);s?r=Zi(r,n,[]):c&&"object"===yt(c)||(r=Zi(r,n,Ki(l))),Xi(l).forEach((function(e){t([].concat(Wt(n),[e]),i)}))}}else r=Zi(r,n,l)}([])})),r}const Yi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ji=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),el=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}};var tl="5.10.2";function nl(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function rl(e){return Math.min(1,Math.max(0,e))}function ol(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function al(e){return e<=1?"".concat(100*Number(e),"%"):e}function il(e){return 1===e.length?"0"+e:String(e)}function ll(e,t,n){e=nl(e,255),t=nl(t,255),n=nl(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:i,l:l}}function sl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cl(e,t,n){e=nl(e,255),t=nl(t,255),n=nl(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=0===r?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:s,v:i}}function ul(e,t,n,r){var o=[il(Math.round(e).toString(16)),il(Math.round(t).toString(16)),il(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function dl(e){return fl(e)/255}function fl(e){return parseInt(e,16)}var pl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ml(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(pl[e])e=pl[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=bl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=bl.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=bl.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=bl.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=bl.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=bl.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=bl.hex8.exec(e))?{r:fl(n[1]),g:fl(n[2]),b:fl(n[3]),a:dl(n[4]),format:t?"name":"hex8"}:(n=bl.hex6.exec(e))?{r:fl(n[1]),g:fl(n[2]),b:fl(n[3]),format:t?"name":"hex"}:(n=bl.hex4.exec(e))?{r:fl(n[1]+n[1]),g:fl(n[2]+n[2]),b:fl(n[3]+n[3]),a:dl(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=bl.hex3.exec(e))&&{r:fl(n[1]+n[1]),g:fl(n[2]+n[2]),b:fl(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(yl(e.r)&&yl(e.g)&&yl(e.b)?(t=function(e,t,n){return{r:255*nl(e,255),g:255*nl(t,255),b:255*nl(n,255)}}(e.r,e.g,e.b),i=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):yl(e.h)&&yl(e.s)&&yl(e.v)?(r=al(e.s),o=al(e.v),t=function(e,t,n){e=6*nl(e,360),t=nl(t,100),n=nl(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,i,a,a,l,n][s],g:255*[l,n,n,i,a,a][s],b:255*[a,a,l,n,n,i][s]}}(e.h,r,o),i=!0,l="hsv"):yl(e.h)&&yl(e.s)&&yl(e.l)&&(r=al(e.s),a=al(e.l),t=function(e,t,n){var r,o,a;if(e=nl(e,360),t=nl(t,100),n=nl(n,100),0===t)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=sl(l,i,e+1/3),o=sl(l,i,e),a=sl(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ol(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var hl="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),gl="[\\s|\\(]+(".concat(hl,")[,|\\s]+(").concat(hl,")[,|\\s]+(").concat(hl,")\\s*\\)?"),vl="[\\s|\\(]+(".concat(hl,")[,|\\s]+(").concat(hl,")[,|\\s]+(").concat(hl,")[,|\\s]+(").concat(hl,")\\s*\\)?"),bl={CSS_UNIT:new RegExp(hl),rgb:new RegExp("rgb"+gl),rgba:new RegExp("rgba"+vl),hsl:new RegExp("hsl"+gl),hsla:new RegExp("hsla"+vl),hsv:new RegExp("hsv"+gl),hsva:new RegExp("hsva"+vl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function yl(e){return Boolean(bl.CSS_UNIT.exec(String(e)))}var xl=2,wl=.16,El=.05,Cl=.05,Sl=.15,_l=5,Ol=4,Nl=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function kl(e){var t=cl(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Al(e){var t=e.r,n=e.g,r=e.b;return"#".concat(ul(t,n,r,!1))}function Pl(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-xl*t:Math.round(e.h)+xl*t:n?Math.round(e.h)+xl*t:Math.round(e.h)-xl*t)<0?r+=360:r>=360&&(r-=360),r}function Fl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-wl*t:t===Ol?e.s+wl:e.s+El*t)>1&&(r=1),n&&t===_l&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Tl(e,t,n){var r;return(r=n?e.v+Cl*t:e.v-Sl*t)>1&&(r=1),Number(r.toFixed(2))}function Ll(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ml(e),o=_l;o>0;o-=1){var a=kl(r),i=Al(ml({h:Pl(a,o,!0),s:Fl(a,o,!0),v:Tl(a,o,!0)}));n.push(i)}n.push(Al(r));for(var l=1;l<=Ol;l+=1){var s=kl(r),c=Al(ml({h:Pl(s,l),s:Fl(s,l),v:Tl(s,l)}));n.push(c)}return"dark"===t.theme?Nl.map((function(e){var r,o,a,i=e.index,l=e.opacity;return Al((r=ml(t.backgroundColor||"#141414"),a=100*l/100,{r:((o=ml(n[i])).r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b}))})):n}var Il={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ml={},Dl={};Object.keys(Il).forEach((function(e){Ml[e]=Ll(Il[e]),Ml[e].primary=Ml[e][5],Dl[e]=Ll(Il[e],{theme:"dark",backgroundColor:"#141414"}),Dl[e].primary=Dl[e][5]})),Ml.red,Ml.volcano,Ml.gold,Ml.orange,Ml.yellow,Ml.lime,Ml.green,Ml.cyan;var Rl=Ml.blue;Ml.geekblue,Ml.purple,Ml.magenta,Ml.grey,Ml.grey;const jl={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var $l=Object.assign(Object.assign({},jl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Vl=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=ml(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ol(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=cl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=cl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=ll(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=ll(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ul(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var a,i=[il(Math.round(e).toString(16)),il(Math.round(t).toString(16)),il(Math.round(n).toString(16)),il((a=r,Math.round(255*parseFloat(a)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*nl(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*nl(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ul(this.r,this.g,this.b,!1),t=0,n=Object.entries(pl);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=rl(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=rl(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=rl(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=rl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const Bl=(e,t)=>new Vl(e).setAlpha(t).toRgbString(),Hl=(e,t)=>new Vl(e).darken(t).toHexString(),zl=e=>{const t=Ll(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Ul=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Bl(r,.88),colorTextSecondary:Bl(r,.65),colorTextTertiary:Bl(r,.45),colorTextQuaternary:Bl(r,.25),colorFill:Bl(r,.15),colorFillSecondary:Bl(r,.06),colorFillTertiary:Bl(r,.04),colorFillQuaternary:Bl(r,.02),colorBgLayout:Hl(n,4),colorBgContainer:Hl(n,0),colorBgElevated:Hl(n,0),colorBgSpotlight:Bl(r,.85),colorBgBlur:"transparent",colorBorder:Hl(n,15),colorBorderSecondary:Hl(n,6)}};const Gl=Sa((function(e){const t=Object.keys(jl).map((t=>{const n=Ll(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),p=n(a),m=n(i),h=n(l),g=r(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Vl("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zl,generateNeutralColorPalettes:Ul})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),a=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))})),Wl={token:$l,override:{override:$l},hashed:!0},Zl=r().createContext(Wl);function Kl(e){return e>=0&&e<=255}var Xl=function(e,t){const{r:n,g:r,b:o,a:a}=new Vl(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new Vl(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-i*(1-e))/e),a=Math.round((r-l*(1-e))/e),c=Math.round((o-s*(1-e))/e);if(Kl(t)&&Kl(a)&&Kl(c))return new Vl({r:t,g:a,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Vl({r:n,g:r,b:o,a:1}).toRgbString()},ql=function(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 Yl(e){const{override:t}=e,n=ql(e,["override"]),r=Object.assign({},t);Object.keys($l).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Xl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Xl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Xl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Vl("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Vl("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Vl("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ql=function(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};const Jl=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Ql(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Yl(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ql(n,["theme"]);let a=o;r&&(a=Jl(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function es(){const{token:e,hashed:t,theme:n,override:o}=r().useContext(Zl),a=`${tl}-${t||""}`,i=n||Gl,[l,s]=Ha(i,[$l,e],{salt:a,override:o,getComputedToken:Jl,formatToken:Yl});return[i,l,t?s:""]}const ts="undefined"!=typeof CSSINJS_STATISTIC;let ns=!0;function rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ts)return Object.assign.apply(Object,[{}].concat(t));ns=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ns=!0,r}const os={};function as(){}var is=(e,t)=>{const[n,r]=es();return Vi({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))};function ls(e,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=Array.isArray(e)?e:[e,e],[i]=a,l=a.join("-");return e=>{const[a,s,c]=es(),{getPrefixCls:u,iconPrefixCls:d,csp:f}=(0,t.useContext)(aa),p=u(),m={theme:a,token:s,hashId:c,nonce:()=>null==f?void 0:f.nonce,clientOnly:o.clientOnly,order:o.order||-999};return Vi(Object.assign(Object.assign({},m),{clientOnly:!1,path:["Shared",p]}),(()=>[{"&":Ji(s)}])),is(d,f),[Vi(Object.assign(Object.assign({},m),{path:[l,e,d]}),(()=>{const{token:t,flush:a}=function(e){let t,n=e,r=as;return ts&&(t=new Set,n=new Proxy(e,{get(e,n){return ns&&t.add(n),e[n]}}),r=(e,n)=>{var r;os[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=os[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(s),l=Object.assign({},s[i]);if(o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var r;((null==l?void 0:l[t])||(null==l?void 0:l[n]))&&(null!==(r=l[n])&&void 0!==r||(l[n]=null==l?void 0:l[t]))}))}const u="function"==typeof r?r(rs(t,null!=l?l:{})):r,f=Object.assign(Object.assign({},u),l),m=rs(t,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${d}`,antCls:`.${p}`},f),h=n(m,{hashId:c,prefixCls:e,rootPrefixCls:p,iconPrefixCls:d,overrideComponentToken:l});return a(i,f),[!1===o.resetStyle?null:el(s,e),h]})),c]}}var ss=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const cs=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},us=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var ds=ls("Space",(e=>{const t=rs(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[cs(t),us(t),ss(t)]}),(()=>({})),{resetStyle:!1}),fs=function(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};const ps=t.createContext(null),ms=e=>{let{children:n}=e;return t.createElement(ps.Provider,{value:null},n)},hs=e=>{var{children:n}=e,r=fs(e,["children"]);return t.createElement(ps.Provider,{value:r},n)};const gs=e=>({animationDuration:e,animationFillMode:"both"}),vs=e=>({animationDuration:e,animationFillMode:"both"}),bs=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${o}${e}-enter,\n      ${o}${e}-appear\n    `]:Object.assign(Object.assign({},gs(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},vs(r)),{animationPlayState:"paused"}),[`\n      ${o}${e}-enter${e}-enter-active,\n      ${o}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ys=new Hi("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xs=new Hi("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ws=new Hi("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Es=new Hi("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Cs=new Hi("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ss=new Hi("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_s={zoom:{inKeyframes:ys,outKeyframes:xs},"zoom-big":{inKeyframes:ws,outKeyframes:Es},"zoom-big-fast":{inKeyframes:ws,outKeyframes:Es},"zoom-left":{inKeyframes:new Hi("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Hi("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Hi("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Hi("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Cs,outKeyframes:Ss},"zoom-down":{inKeyframes:new Hi("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Hi("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Os=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=_s[t];return[bs(r,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ns=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ks(e,t){return Ns.reduce(((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))}),{})}const As=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qi(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,Ko)}},[`${t}-content`]:{position:"relative"}}),ks(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Yo(rs(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var Ps=(e,t)=>{const n=ls("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=rs(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[As(i),Os(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1});return n(e)};const Fs=Ns.map((e=>`${e}-inverse`));function Ts(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Ns.includes(e):[].concat(Wt(Fs),Wt(Ns)).includes(e)}(t),r=vt()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const Ls=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:a,openClassName:i,getTooltipContainer:l,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:h=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,w=!!h,[,E]=es(),{getPopupContainer:C,getPrefixCls:S,direction:_}=t.useContext(aa),O=(()=>{const e=()=>{};return e.deprecated=na,e})(),N=t.useRef(null),k=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};t.useImperativeHandle(n,(()=>({forceAlign:k,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),k()}})));const[A,P]=Go(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),F=!g&&!v&&0!==g,T=t.useMemo((()=>{var e,t;let n=y;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:y),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,s={};return Object.keys(Qo).forEach((e=>{const c=r&&Jo[e]||Qo[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,ea.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Xo({contentRadius:a,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.dropdownArrowOffset+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.dropdownArrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,d,t,n),i&&(u.htmlRegion="visibleFirst")})),s}({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[y,h,b,E]),L=t.useMemo((()=>0===g?g:v||g||""),[v,g]),I=t.createElement(ms,null,"function"==typeof L?L():L),{getPopupContainer:M,placement:D="top",mouseEnterDelay:R=.1,mouseLeaveDelay:j=.1,overlayStyle:$,rootClassName:V}=e,B=function(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}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=S("tooltip",a),z=S(),U=e["data-popover-inject"];let G=A;"open"in e||"visible"in e||!F||(G=!1);const W=ta(d)&&!function(e){return e&&ta(e)&&e.type===t.Fragment}(d)?d:t.createElement("span",null,d),Z=W.props,K=Z.className&&"string"!=typeof Z.className?Z.className:vt()(Z.className,i||`${H}-open`),[X,q]=Ps(H,!U),Y=Ts(H,c),Q=Y.arrowStyle,J=Object.assign(Object.assign({},u),Y.overlayStyle),ee=vt()(s,{[`${H}-rtl`]:"rtl"===_},Y.className,V,q);return X(t.createElement(zo,Object.assign({},B,{showArrow:w,placement:D,mouseEnterDelay:R,mouseLeaveDelay:j,prefixCls:H,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},Q),$),getTooltipContainer:M||l||C,ref:N,builtinPlacements:T,overlay:I,visible:G,onVisibleChange:t=>{var n,r;P(!F&&t),F||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:J,arrowContent:t.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:Wo(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),G?function(e,n){return function(e,n,r){return ta(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n}(e,e,n)}(W,{className:K}):W))}));Ls._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:n,className:r,placement:o="top",title:a,color:i,overlayInnerStyle:l}=e,{getPrefixCls:s}=t.useContext(aa),c=s("tooltip",n),[u,d]=Ps(c,!0),f=Ts(c,i),p=f.arrowStyle,m=Object.assign(Object.assign({},l),f.overlayStyle),h=vt()(d,c,`${c}-pure`,`${c}-placement-${o}`,r,f.className);return u(t.createElement("div",{className:h,style:p},t.createElement("div",{className:`${c}-arrow`}),t.createElement(bt,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),a)))};var Is=Ls,Ms=function(n){let{umeta_id:r}=n;const[o,a]=(0,t.useState)(!1),[i,l]=(0,t.useState)("Nothing to copy");(0,t.useEffect)((()=>{s(r)}),[r]);const s=e=>{const t=new window.FormData;t.append("action","login_me_now_login_link_get_link"),t.append("security",lmn_admin.generate_token_nonce),t.append("umeta_id",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((e=>{e.success&&l(e.data)})).catch((e=>{console.log(e)}))};return(0,e.createElement)(st.CopyToClipboard,{text:i,onCopy:()=>{a(!0),setTimeout((()=>{a(!1)}),2e3)}},(0,e.createElement)("button",null,o?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true",className:"h-5 w-5 text-[#50d71e]"},(0,e.createElement)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})):(0,e.createElement)(Is,{title:"Copy"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true",className:"h-5 w-5"},(0,e.createElement)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})))))},Ds=function(){const[n,r]=(0,t.useState)(""),[o,a]=(0,t.useState)(!1),[i,l]=(0,t.useState)([]),[s,c]=(0,t.useState)(0),[u,d]=(0,t.useState)(!1),[f,p]=(0,t.useState)(null),[m,h]=(0,t.useState)(null),[g,v]=(0,t.useState)(!1),[b,y]=(0,t.useState)(0),[x,w]=(0,t.useState)(),[E,C]=(0,t.useState)("enabled"),[S,_]=(0,t.useState)("loading"),[O,N]=(0,t.useState)(null),k=(0,t.useRef)({}),A=(0,t.useRef)({}),P=()=>{const e=new window.FormData;e.append("action","login_me_now_login_link_tokens"),e.append("security",lmn_admin.generate_token_nonce),e.append("offset",s),e.append("limit",21),De()({url:lmn_admin.ajax_url,method:"POST",body:e}).then((e=>{_("loadingOver"),e.success?(N(e.data.length),l(i.concat(e.data)),c(s+10)):C("disabled")})).catch((e=>{console.log(e)}))};(0,t.useEffect)((()=>{P()}),[]);const F=e=>{p(e),d(!u)};(0,t.useEffect)((()=>{u?document.body.classList.add("active-modal"):document.body.classList.remove("active-modal")}),[u]),(0,t.useEffect)((()=>{g?document.body.classList.add("active-modal"):document.body.classList.remove("active-modal")}),[u]);const T=(e,t)=>{h(e),v(!g),w(t);const n=function(e){const t=new Date(e);return"YYYY-MM-DDThh:mm".replace("YYYY",t.getFullYear()).replace("MM",String(t.getMonth()+1).padStart(2,"0")).replace("DD",String(t.getDate()).padStart(2,"0")).replace("hh",String(t.getHours()).padStart(2,"0")).replace("mm",String(t.getMinutes()).padStart(2,"0"))}(new Date(1e3*t).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}));w(n)};function L(){const e=Date.now();y(e)}(0,t.useEffect)((()=>{L();const e=setInterval((()=>{L()}),6e4);return()=>clearInterval(e)}),[]);const I=Number(b.toString().slice(0,-3));let M=x||"1970-01-01T00:00";return(0,e.createElement)("section",{"aria-labelledby":"section-1-title h-full"},(0,e.createElement)("h2",{className:"sr-only",id:"section-1-title "},"Login Links"),(0,e.createElement)("div",{className:"p-[2rem] rounded-md bg-white overflow-hidden shadow-sm flex flex-col justify-center h-full"},(0,e.createElement)("div",{className:"relative w-full flex flex-col sm:flex-row sm:items-center sm:justify-between"},(0,e.createElement)("span",{className:"font-semibold text-xl leading-6 text-slate-800 mb-4 sm:mb-0"},(0,be.__)("Login Links","login-me-now"))),(0,e.createElement)("div",{className:"overflow-y-auto rounded-md mt-5 h-[47vh] relative table-scrollbar"},(0,e.createElement)("table",{class:"table-auto w-full"},(0,e.createElement)("thead",{className:"sticky top-[-1px] bg-[#f1f1f1]"},(0,e.createElement)("tr",null,(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"User"," ",(0,e.createElement)(Is,{title:"Which user has generated this link"},(0,e.createElement)("svg",{className:"inline-block",fill:"#9A9A9A",width:"14px",height:"14px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12,1A11,11,0,1,0,23,12,11.013,11.013,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9.011,9.011,0,0,1,12,21ZM13,8H11V6h2Zm0,10H11V10h2Z"})))),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Link"),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Created At"),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Expire On"),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Action"))),"loading"===S?(0,e.createElement)("tbody",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full"},(0,e.createElement)("div",{className:"bg-[#dce5f3] mb-[5px] mx-[8px] rounded-[4px]"},(0,e.createElement)("div",{class:"stage"},(0,e.createElement)("div",{class:"dot-pulse"})))):(0,e.createElement)("tbody",null,i.length<1?(0,e.createElement)("div",{className:"absolute w-full left-1/2 bottom-1/2 transform translate-x-[-50%] translate-y-[50%]"},(0,e.createElement)("h1",{className:"text-[20px] font-bold text-[#023a2e] text-center"},"No temporary link has been created yet!")):i&&i.map((t=>(0,e.createElement)("tr",{key:t.umeta_id,ref:e=>k.current[t.umeta_id]=e,className:"border-b-[1px] border-[#e2e8f0] "+("pause"===t.meta_value.status?"bg-[#a7e0f8]":"")},(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},t.display_name,(0,e.createElement)("span",{className:"block text-[#919196]"},t.user_login)),(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},(0,e.createElement)(Ms,{umeta_id:t.umeta_id})),(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},new Date(1e3*t.meta_value.created_at).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})),(0,e.createElement)("td",{ref:e=>A.current[t.umeta_id]=e,className:(I>=t.meta_value.expire?"text-red-600":"")+" text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},new Date(1e3*t.meta_value.expire).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})),(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},(0,e.createElement)("span",{className:"flex justify-around"},(0,e.createElement)(Is,{title:"Extend Time"},(0,e.createElement)("span",{className:"cursor-pointer",onClick:()=>T(t,t.meta_value.expire)},(0,e.createElement)(dt,{size:18}))),(0,e.createElement)(Is,{title:"Delete"},(0,e.createElement)("span",{className:"cursor-pointer",onClick:()=>F(t)},(0,e.createElement)(ut,{size:18}))),(0,e.createElement)("span",{onClick:()=>((e,t)=>{const n="pause"===t?"active":"pause",r=new window.FormData;r.append("action","login_me_now_login_link_update_status"),r.append("security",lmn_admin.generate_token_nonce),r.append("umeta_id",e),r.append("status",n),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((t=>{if(t.success){a(!o);const t=i.map((t=>t.umeta_id===e?{...t,meta_value:{...t.meta_value,status:n}}:t));l(t)}})).catch((e=>{console.log(e)}))})(t.umeta_id,t.meta_value.status),className:I>=t.meta_value.expire?"cursor-not-allowed pointer-events-none":""},"pause"===t.meta_value.status||I>=t.meta_value.expire?(0,e.createElement)(Is,{title:"Inactive"},(0,e.createElement)("span",{className:"cursor-pointer"},(0,e.createElement)(ft,{size:18,color:I>=t.meta_value.expire?"#d11a2a":"#2192c0"}))):(0,e.createElement)(Is,{title:"Active"},(0,e.createElement)("span",{className:"cursor-pointer disable"},(0,e.createElement)(pt,{size:18})))))))))))),O<20?null:(0,e.createElement)("button",{className:"mt-2 sm:inline-flex items-center justify-center px-4 py-2 border border-lmn-hover text-[16px] font-medium rounded-md shadow-sm text-black hover:text-white bg-white focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mb-2 sm:mb-0",onClick:P},"Load More"),u&&f&&(0,e.createElement)("div",{className:"modal"},(0,e.createElement)("div",{onClick:F,className:"overlay"}),(0,e.createElement)("div",{className:"modal-content"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"flex justify-center"},(0,e.createElement)("img",{src:ht,alt:""})),(0,e.createElement)("h1",{className:"text-center text-[#000000] my-4 text-[20px] leading-[32px] mb-[34px]"},"Are you sure you want to delete",(0,e.createElement)("br",null)," the temporary login link?"),(0,e.createElement)("div",{className:"flex justify-between"},(0,e.createElement)("button",{className:"bg-[#d11a2a] hover:bg-[#ac0412] text-white font-bold py-2 px-4 rounded h-[42px] w-[142px]",onClick:()=>(e=>{const t=new window.FormData;t.append("action","login_me_now_login_link_drop"),t.append("security",lmn_admin.generate_token_nonce),t.append("umeta_id",e),i.find((t=>t.umeta_id===e))&&De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((t=>{if(t.success){d(!u);const t=k.current[e];t&&(t.classList.add("transition-opacity","duration-1000","ease-linear","opacity-0","h-0","deleted-bg"),setTimeout((()=>{d(!u),l(i.filter((t=>t.umeta_id!==e)))}),1e3))}})).catch((e=>{console.log(e)}))})(f.umeta_id)},"Yes, Delete"),(0,e.createElement)("button",{className:"bg-[#28a745] hover:bg-[#218838] text-white font-bold py-2 px-4 rounded h-[42px] w-[132px]",onClick:F},"No, keep"))))),g&&m&&(0,e.createElement)("div",{className:"modal"},(0,e.createElement)("div",{onClick:T,className:"overlay"}),(0,e.createElement)("div",{className:"extend-modal-content !p-[28px]"},(0,e.createElement)("form",{onSubmit:e=>((e,t)=>{t.preventDefault();const r=new Date(n),o=new window.FormData;o.append("action","login_me_now_login_link_extend_time"),o.append("security",lmn_admin.generate_token_nonce),o.append("umeta_id",e),o.append("expiration",r),De()({url:lmn_admin.ajax_url,method:"POST",body:o}).then((t=>{if(t.success){v(!g);const t=A.current[e];t&&t.classList.add("transform","scale-110","font-bold","transition","duration-900","ease-in-out","delay-100"),setTimeout((()=>{t.classList.remove("transform","scale-110","font-bold","delay-100")}),1e3);const n=i.map((t=>t.umeta_id===e?{...t,meta_value:{...t.meta_value,expire:r.getTime()/1e3}}:t));l(n)}})).catch((e=>{console.log(e)}))})(m.umeta_id,e)},(0,e.createElement)("span",null,(0,e.createElement)("div",{className:"mb-3"},(0,e.createElement)("label",{htmlFor:"expiration",className:"text-[14px] text-[#1E293B] font-bold"},"Edit expiration time"),(0,e.createElement)("input",{className:"mt-2 input-padding w-full",type:"datetime-local",name:"expiration",id:"expiration",defaultValue:M,min:(()=>{const e=new Date;return`${e.getFullYear()}-${`${e.getMonth()+1}`.padStart(2,"0")}-${`${e.getDate()}`.padStart(2,"0")}T${`${e.getHours()}`.padStart(2,"0")}:${`${e.getMinutes()}`.padStart(2,"0")}`})(),required:!0,onChange:e=>{e.preventDefault(),r(e.target.value)}}))),(0,e.createElement)("span",{className:"text-center"},(0,e.createElement)("div",null,(0,e.createElement)("button",{type:"submit",className:"justify-center w-full sm:inline-flex items-center p-[13px] border border-transparent text-[16px] font-medium rounded-md shadow-sm text-white bg-lmn focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mr-4 mb-2 sm:mb-0"},(0,be.__)("Update","login-me-now"))))),(0,e.createElement)("span",{className:"close-modal cursor-pointer",onClick:T},(0,e.createElement)(mt,{size:20}))))))},Rs=function(t){let{title:n,subtitle:r,link:o,classNames:a,buttonText:i,icon:l}=t;return(0,e.createElement)("section",{"aria-labelledby":"section-2-title"},(0,e.createElement)("h2",{className:"sr-only",id:"section-2-title"},"Need Support"),(0,e.createElement)("div",{className:`relative box-border ${a} border border-[#9F9F9F] bg-[#f6f6f6] rounded-[8px] shadow-sm overflow-hidden transition hover:shadow-hover`},(0,e.createElement)("div",{className:"p-6"},(0,e.createElement)("h3",{className:"relative flex items-center text-slate-800 text-base font-semibold pb-2"},(0,e.createElement)("span",{className:"flex-1 text-black text-[16px]"},(0,be.__)(`${n}`,"login-me-now"))),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[15px] font-medium leading-7 pb-5 "},(0,be.__)(`${r}`,"login-me-now")),(0,e.createElement)("a",{className:"text-[#007cba] text-decoration-color-[#007cba] text-base font-medium underline flex items-center",href:`${o}`,target:"_blank",rel:"noreferrer"},(0,be.__)(`${i}`,"login-me-now"),l))))},js=function(t){let{text:n}=t;return(0,e.createElement)("div",{className:"flex"},(0,e.createElement)("h2",{className:"text-slate-800 text-[22px] leading-10 pb-3 font-semibold text-left"},(0,be.__)(`${n}`,"login-me-now")))},$s=function(t){let{text:n,size:r}=t;return(0,e.createElement)("p",{className:`text-[18px] leading-[34px] text-slate-600 pb-7 text-justify ${r}`},(0,be.__)(`${n}`,"login-me-now"))};o.p;const Vs=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")};var Bs=()=>{const n=Ae(),[r,o]=(0,t.useState)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ct,null),(0,e.createElement)("main",{className:"py-[2.43rem]"},(0,e.createElement)("div",{className:"max-w-3xl mx-auto px-6 lg:max-w-screen-2xl"},(0,e.createElement)("h1",{className:"sr-only"}," Login Me Now "),(0,e.createElement)("div",{className:"grid grid-cols-2 gap-4 items-start lg:grid-cols-12 lg:gap-0 xl:gap-0 rounded-md bg-white overflow-hidden shadow-sm p-12"},(0,e.createElement)("div",{className:"grid grid-cols-1 lg:col-span-7 gap-4 h-full"},(0,e.createElement)("section",{"aria-labelledby":"section-1-title h-full"},(0,e.createElement)("h2",{className:"sr-only",id:"section-1-title"},"Welcome Banner"),(0,e.createElement)("div",{className:"flex flex-col justify-center h-full"},(0,e.createElement)("div",{className:""},(0,e.createElement)(js,{text:"Share dashboard access securly"}),(0,e.createElement)($s,{text:"Create self-expiring login link to grant temporary access to an individual (developer, support stuff or any outsider). No password is needed, just generate the login link & share it with the concerned person!"}),(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation();const t=new Date(r),o=new window.FormData;o.append("action","login_me_now_login_link_generate"),o.append("security",lmn_admin.generate_token_nonce),o.append("expiration",t),De()({url:lmn_admin.ajax_url,method:"POST",body:o}).then((e=>{e.success&&n({type:"GENERATE_MAGIC_LINK_POPUP",payload:{...e.data}})})).catch((e=>{console.log(e)}))},className:"inline-flex flex-nowrap items-end"},(0,e.createElement)("span",{className:"relative z-0 inline-flex flex-col sm:flex-row justify-start w-full"},(0,e.createElement)("div",null,(0,e.createElement)("label",{htmlFor:"expiration",className:"text-[16px] text-[#1E293B] font-bold"},"Set expiration time"," ",(0,e.createElement)(Is,{title:"When will this link expire & no loner be accessible"},(0,e.createElement)("span",null,(0,e.createElement)("svg",{className:"inline-block",fill:"#9A9A9A",width:"14px",height:"14px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12,1A11,11,0,1,0,23,12,11.013,11.013,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9.011,9.011,0,0,1,12,21ZM13,8H11V6h2Zm0,10H11V10h2Z"}))))),(0,e.createElement)("input",{className:"mt-2 input-padding w-full",type:"datetime-local",name:"expiration",id:"expiration",min:(()=>{const e=new Date;return`${e.getFullYear()}-${`${e.getMonth()+1}`.padStart(2,"0")}-${`${e.getDate()}`.padStart(2,"0")}T${`${e.getHours()}`.padStart(2,"0")}:${`${e.getMinutes()}`.padStart(2,"0")}`})(),onChange:e=>{e.preventDefault(),o(e.target.value)},required:!0}))),(0,e.createElement)("span",{className:"ml-2 relative z-0 inline-flex flex-col sm:flex-row justify-start w-full"},(0,e.createElement)("div",null,(0,e.createElement)("button",{type:"submit",className:"sm:inline-flex items-center p-[13px] border border-transparent text-[16px] font-medium rounded-md shadow-sm text-white bg-lmn focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mr-4 mb-2 sm:mb-0"},(0,be.__)("Generate login link","login-me-now"))))))))),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:col-span-5 gap-4 h-full justify-self-end"})),(0,e.createElement)("div",{className:"grid grid-cols-1 gap-[32px] items-start lg:grid-cols-3 lg:gap-[32px] xl:gap-[32px] mt-[32px]"},(0,e.createElement)("div",{className:Vs(lmn_admin.show_self_branding?"lg:col-span-2":"lg:col-span-3","grid grid-cols-1 gap-[32px]")},(0,e.createElement)(Ds,null)),(0,e.createElement)("div",{className:"grid grid-cols-1 gap-[32px]"},(0,e.createElement)(Rs,{classNames:"rounded-md border border-[#9F9F9F]",title:"Share Your Feedback",buttonText:"Submit a review ",icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M19.5 4.5H12.5V6H16.94L10.97 11.97L12.03 13.03L18 7.06V11.5H19.5V4.5ZM6.5 5.5C5.96957 5.5 5.46086 5.71071 5.08579 6.08579C4.71071 6.46086 4.5 6.96957 4.5 7.5V17.5C4.5 18.0304 4.71071 18.5391 5.08579 18.9142C5.46086 19.2893 5.96957 19.5 6.5 19.5H16.5C17.0304 19.5 17.5391 19.2893 17.9142 18.9142C18.2893 18.5391 18.5 18.0304 18.5 17.5V14.5H17V17.5C17 17.6326 16.9473 17.7598 16.8536 17.8536C16.7598 17.9473 16.6326 18 16.5 18H6.5C6.36739 18 6.24021 17.9473 6.14645 17.8536C6.05268 17.7598 6 17.6326 6 17.5V7.5C6 7.36739 6.05268 7.24021 6.14645 7.14645C6.24021 7.05268 6.36739 7 6.5 7H9.5V5.5H6.5Z",fill:"#007CBA"})),subtitle:"If you find this plugin helpful, kindly consider leaving a review on WordPress.org. Your valuable feedback is highly appreciated and helps others discover the plugin.",link:"https://wordpress.org/support/plugin/login-me-now/reviews/?rate=5#new-post"}),(0,e.createElement)(Rs,{classNames:"",title:"Need Support?",subtitle:"Whether you need help or have a new feature request, please create a topic in the support forum on WordPress.org.",buttonText:"Support forum ",link:"https://wordpress.org/support/plugin/login-me-now/"}))))))},Hs=function(t){let{type:n,placeholder:r,classNames:o,value:a,onChange:i,disabled:l,ref:s,defaultValue:c,required:u}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("input",{className:`${o}`,type:n,placeholder:r,value:a,onChange:i,disabled:l,required:u,ref:s,defaultValue:c}))},zs=function(t){let{LoginTimes:n,handleLoginTimes:r,classNames:o}=t;return(0,e.createElement)("select",{value:n,onChange:r,className:`${o}`},(0,e.createElement)("option",{value:5},"5 Times"),(0,e.createElement)("option",{value:10},"10 Times"),(0,e.createElement)("option",{value:20},"20 Times"),(0,e.createElement)("option",{value:50},"50 Times"),(0,e.createElement)("option",{value:100},"100 Times"))},Us=function(t){let{userRole:n,handleUserRole:r,classNames:o}=t;const a=Le((e=>e.getUserRoles)),i="object"==typeof a?a:null;return(0,e.createElement)("select",{className:o,value:n,onChange:r},i&&Object.keys(i).map((t=>(0,e.createElement)("option",{key:t,value:t,SelectedValute:!0},i[t]))))},Gs=function(t){let{type:n,buttonText:r,className:o,handleClick:a}=t;return(0,e.createElement)("button",{type:n,className:o,onClick:a},r)};const Ws=(0,t.createContext)(),Zs=n=>{let{children:r}=n;const[o,a]=(0,t.useState)({});return(0,e.createElement)(Ws.Provider,{value:{formData:o,updateFormData:e=>{a(e)}}},r)};var Ks=Ws,Xs=function(t){let{placeholder:n,cols:r,rows:o,classNames:a,handleNote:i,note:l}=t;return(0,e.createElement)("textarea",{name:"",id:"",cols:r,rows:o,placeholder:n,className:a,onChange:i,value:l})},qs=function(n){let{isSuccess:r,setIsSuccess:o,isError:a,setIsError:i,isLoading:l,setIsLoading:s,classNames:c}=n;const[u,d]=(0,t.useState)(""),[f,p]=(0,t.useState)(""),[m,h]=(0,t.useState)(""),{updateFormData:g}=(0,t.useContext)(Ks),[v,b]=(0,t.useState)(""),[y,x]=(0,t.useState)(""),[w,E]=(0,t.useState)(""),[C,S]=(0,t.useState)(""),[_,O]=(0,t.useState)(""),N=y?y.substring(5,7):"",k=y?y.substring(8,10):"",A=y?y.substring(0,4):"";let P="";"01"===N?P="Jan":"02"===N?P="Feb":"03"===N?P="March":"04"===N?P="Apr":"05"===N?P="May":"06"===N?P="June":"07"===N?P="July":"08"===N?P="Aug":"09"===N?P="Sept":"10"===N?P="Oct":"11"===N?P="Nov":"12"===N&&(P="Dec"),(0,t.useEffect)((()=>{g({name:u,email:f,disAllow:m,loginTimes:v,expiration:y,userRole:w,note:C,formattedMonth:P,date:k,year:A,dataResult:_})}),[u,f,m,v,y,w,C,P,k,A,_]);const F=new Date;F.setDate(F.getDate()+7);const T=F.toISOString().substring(0,10);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),s(!0);const t=new window.FormData;t.append("action","login_me_now_advanced_sharing"),t.append("security",lmn_admin.generate_token_nonce),t.append("name",u),t.append("email",f),t.append("times",null==v||""===v?5:v),t.append("expiration",y),t.append("role",null==w||""===w?"administrator":w),t.append("note",C),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((e=>{O(e),s(!1),o(!0)})).catch((e=>{s(!1),i(!0),console.error(e)}))},className:`${c} p-8`},(0,e.createElement)(Hs,{classNames:"formBorder border-4 border-[#e5e7eb] shadow appearance-none rounded w-[49%] input-padding text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline mr-[1%]",type:"text",name:"name",placeholder:"Recipient Name",value:u,onChange:e=>{d(e.target.value)}}),(0,e.createElement)(Hs,{classNames:"formBorder shadow appearance-none border border-red-500 rounded w-[49%] input-padding text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline ml-[1%]",type:"email",name:"email",placeholder:"Recipient Email*",value:f,onChange:e=>{p(e.target.value)},required:"required"}),(0,e.createElement)("div",{className:"flex justify-between items-start"},(0,e.createElement)(zs,{loginTimes:v,handleLoginTimes:e=>{b(e.target.value)},classNames:"shadow appearance-none border border-red-500 rounded w-[49%] selector-padding text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline mr-[1%]"}),(0,e.createElement)(Hs,{classNames:"formBorder shadow appearance-none border border-red-500 rounded w-[49%] timer-padding text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline ml-[1%]",type:"date",expiration:y,onChange:e=>{x(e.target.value)},defaultValue:T})),(0,e.createElement)("div",null,(0,e.createElement)(Us,{className:"block",userRole:w,handleUserRole:e=>{E(e.target.value)},classNames:"shadow appearance-none border border-red-500 rounded flex w-full max-full-width selector-padding text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"})),(0,e.createElement)(Hs,{classNames:"formBorder shadow appearance-none border border-red-500 rounded w-full input-padding text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline",type:"text",name:"disAllow",placeholder:"Disallow Capabilities (Upcoming)",value:m,onChange:e=>{h(e.target.value)},disabled:"disabled"}),(0,e.createElement)(Xs,{placeholder:"Take a Note",cols:"30",rows:"7",classNames:"formBorder mb-2 rounded w-full py-2 px-3 text-gray-700",note:C,handleNote:e=>{S(e.target.value)}}),(0,e.createElement)(Gs,{disabled:l,buttonText:l?"Loading...":"Generate Access",className:"sm:inline-flex items-center px-4 py-2 border border-transparent text-[16px] font-medium rounded-md shadow-sm text-white bg-lmn focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mr-4 mb-2 sm:mb-0"}),(0,e.createElement)(Gs,{value:"sendEmail",disabled:l,buttonText:l?"Loading...":"Generate Access & Send Email (PRO)",className:"sm:inline-flex items-center px-4 py-2 border border-transparent text-[16px] font-medium rounded-md shadow-sm text-white bg-lmn-hover focus-visible:bg-lmn-hover hover:bg-lmn focus:outline-none mr-4 mb-2 sm:mb-0"})))},Ys=function(){const n=Le((e=>e.getUserRoles)),{formData:r}=(0,t.useContext)(Ks),[o,a]=(0,t.useState)(!1),[i,l]=(0,t.useState)(!1),[s,c]=(0,t.useState)(!1),u=new Date;u.setDate(u.getDate()+7);const d=u.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return(0,e.createElement)("div",{className:"px-6 w-full"},(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"mx-auto mt-10 mb-8 font-semibold text-2xl lg:max-w-[80rem] text-[#3C434A]"},"Advanced Sharing"),(0,e.createElement)("main",{className:"mx-auto my-[2.43rem] bg-white rounded-md shadow overflow-hidden min-h-[36rem] lg:max-w-[80rem]"},(0,e.createElement)("div",{className:"lg:flex min-h-[36rem] h-full"},(0,e.createElement)("div",{className:"lg:col-span-5 w-[40%] p-8 border-r"},s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"w-16 h-16 border-4 border-dashed rounded-full animate-spin dark:border-[#005e54]"})):r.dataResult?.success&&o?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"mb-3 inline-flex w-full items-center rounded-lg bg-[#00F27F] px-6 py-5 text-base text-[#2A2F38]",role:"alert"},(0,e.createElement)("span",{className:"mr-2 text-white"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))),(0,e.createElement)("span",{className:"font-medium"},"Access Generated Successfully!"))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h1",{className:"text-xl leading-loose text-black"},(0,e.createElement)("span",{className:"font-bold"},r.name||"Someone")," ","will get"," ",(0,e.createElement)("span",{className:"font-bold"},r.userRole?n[r.userRole]:"Administrator")," ","role, can use until"," ",(0,e.createElement)("span",{className:"font-bold"},r.formattedMonth||r.date||r.year?(0,e.createElement)(e.Fragment,null,r.formattedMonth+" "+r.date+",  "+r.year):d)," ","& can access for"," ",(0,e.createElement)("span",{className:"font-bold"},r.loginTimes?r.loginTimes:"5"," times"),", and will get all the information in this email"," ",(0,e.createElement)("span",{className:"font-bold"},r.email?r.email:"Recipient Email")),(0,e.createElement)("h1",{className:"text-xl text-black mt-3"},r.note?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"font-bold"},"Your Note:")):""," ",r.note))),(0,e.createElement)("div",{className:"lg:col-span-7 bg-white w-[60%]"},r.dataResult?.success&&o?(0,e.createElement)("div",{className:"flex justify-center items-center h-full"},(0,e.createElement)(Gs,{className:"sm:inline-flex items-center px-4 py-2 border border-transparent text-[16px] font-medium rounded-md shadow-sm text-white bg-lmn focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mr-4 mb-2 sm:mb-0",buttonText:"Create Access Again",handleClick:()=>{a(!1),l(!1),c(!1)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(qs,{isSuccess:o,setIsSuccess:a,isError:i,setIsError:l,isLoading:s,setIsLoading:c})))))))};function Qs(){const n=Ae(),r=Le((e=>e.magicLinkPopup)),o=r.link,[a,i]=React.useState(!1),l=React.useCallback((()=>{i(!0),setTimeout((()=>{i(!1)}),2e3)}),[]);return(0,t.useEffect)((()=>{""!==r&&setTimeout((()=>{n({type:"GENERATE_MAGIC_LINK_POPUP",payload:""})}),12e4)}),[r]),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{"aria-live":"assertive",className:"fixed inset-10 z-10 flex px-4 py-6 pointer-events-none sm:p-6 sm:items-start"},(0,e.createElement)("div",{className:"w-full h-full flex flex-col items-center space-y-4 justify-center"},(0,e.createElement)(rt,{show:""!==r,as:t.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"w-full h-full z-1 before:absolute before:left-0 before:top-0 before:content-[''] before:w-full before:h-full"},(0,e.createElement)("div",{className:"p-4 max-w-sm w-full bg-white rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden z-[2] absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] shadow-[0_0_100px_200px_rgba(0,0,0,0.20)]"},(0,e.createElement)("div",{className:"flex items-start"},(0,e.createElement)("div",{className:"flex-shrink-0"},(0,e.createElement)(ot,{className:"h-6 w-6 text-green-400","aria-hidden":"true"})),(0,e.createElement)("div",{className:"ml-3 w-0 flex-1 pt-0.5"},(0,e.createElement)("p",{className:"text-[16px] font-medium text-gray-900"},r.message),(0,e.createElement)("div",{className:"mt-5 relative"},(0,e.createElement)(st.CopyToClipboard,{onCopy:l,text:o},(0,e.createElement)("code",{className:"text-[16px] font-medium break-all"},r.link)),(0,e.createElement)("div",{className:"absolute top-0 right-[-13%]"},a?(0,e.createElement)(at,{className:"h-5 w-5 text-[#50d71e]","aria-hidden":"true"}):(0,e.createElement)(st.CopyToClipboard,{onCopy:l,text:o},(0,e.createElement)(it,{className:"h-5 w-5","aria-hidden":"true"}))))),(0,e.createElement)("div",{className:"ml-4 flex-shrink-0 flex"},(0,e.createElement)("button",{className:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:()=>{n({type:"GENERATE_MAGIC_LINK_POPUP",payload:""})}},(0,e.createElement)("span",{className:"sr-only"}," ",(0,be.__)("Close ","login-me-now")," "),(0,e.createElement)(lt,{className:"h-5 w-5","aria-hidden":"true"}))))))))))}var Js=function(){const[n,r]=(0,t.useState)(""),[o,a]=(0,t.useState)(!1),[i,l]=(0,t.useState)([]),[s,c]=(0,t.useState)(0),[u,d]=(0,t.useState)(!1),[f,p]=(0,t.useState)(null),[m,h]=(0,t.useState)(null),[g,v]=(0,t.useState)(!1),[b,y]=(0,t.useState)(0),[x,w]=(0,t.useState)("enabled"),[E,C]=(0,t.useState)("loading"),[S,_]=(0,t.useState)(null),O=(0,t.useRef)({}),N=(0,t.useRef)({}),k=()=>{c(s+20);const e=new window.FormData;e.append("action","login_me_now_browser_tokens"),e.append("security",lmn_admin.generate_token_nonce),e.append("offset",s),e.append("limit",21),De()({url:lmn_admin.ajax_url,method:"POST",body:e}).then((e=>{C("loadingOver"),e.success?(_(e.data.length),l(i.concat(e.data))):w("disabled")})).catch((e=>{console.log(e)}))};(0,t.useEffect)((()=>{k()}),[]);const A=e=>{p(e),d(!u)};function P(){const e=Date.now();y(e)}(0,t.useEffect)((()=>{u?document.body.classList.add("active-modal"):document.body.classList.remove("active-modal")}),[u]),(0,t.useEffect)((()=>{P();const e=setInterval((()=>{P()}),6e4);return()=>clearInterval(e)}),[]);const F=Number(b.toString().slice(0,-3));return(0,e.createElement)("section",{"aria-labelledby":"section-1-title h-full"},(0,e.createElement)("h2",{className:"sr-only",id:"section-1-title "},"What’s coming next?"),(0,e.createElement)("div",{className:"p-[2rem] rounded-md bg-white overflow-hidden shadow-sm flex flex-col justify-center h-full"},(0,e.createElement)("div",{className:"relative w-full flex flex-col sm:flex-row sm:items-center sm:justify-between"},(0,e.createElement)("span",{className:"font-semibold text-xl leading-6 text-slate-800 mb-4 sm:mb-0"},(0,be.__)("Token","login-me-now"))),(0,e.createElement)("div",{className:"overflow-y-auto mt-5 h-[47vh] relative table-scrollbar"},(0,e.createElement)("table",{class:"table-auto w-full"},(0,e.createElement)("thead",{className:"sticky top-[-1px] bg-[#f1f1f1]"},(0,e.createElement)("tr",null,(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"User"," ",(0,e.createElement)(Is,{title:"Which user has generated this token for browser extension"},(0,e.createElement)("svg",{className:"inline-block",fill:"#9A9A9A",width:"14px",height:"14px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12,1A11,11,0,1,0,23,12,11.013,11.013,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9.011,9.011,0,0,1,12,21ZM13,8H11V6h2Zm0,10H11V10h2Z"})))),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"ID"," ",(0,e.createElement)(Is,{title:"Browser extension token ID for activity log reference"},(0,e.createElement)("svg",{className:"inline-block",fill:"#9A9A9A",width:"14px",height:"14px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12,1A11,11,0,1,0,23,12,11.013,11.013,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9.011,9.011,0,0,1,12,21ZM13,8H11V6h2Zm0,10H11V10h2Z"})))),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Created At"),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Expire On"),(0,e.createElement)("th",{className:"border-x-[1px] border-b-[1px] border-[#e2e8f0] py-[10px] px-[5px] text-[14px]"},"Action"))),"loading"===E?(0,e.createElement)("tbody",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full"},(0,e.createElement)("div",{className:"bg-[#dce5f3] mb-[5px] mx-[8px] rounded-[4px]"},(0,e.createElement)("div",{class:"stage"},(0,e.createElement)("div",{class:"dot-pulse"})))):(0,e.createElement)("tbody",null,i<1?(0,e.createElement)("div",{className:"absolute w-full left-1/2 bottom-1/2 transform translate-x-[-50%] translate-y-[50%]"},(0,e.createElement)("h1",{className:"text-[20px] font-bold text-[#023a2e] text-center"},"No extension token has been created yet!")):i&&i.map((t=>(0,e.createElement)("tr",{key:t.token_id,ref:e=>O.current[t.token_id]=e,className:"border-b-[1px] border-[#e2e8f0] "+("pause"===t.status?"bg-[#a7e0f8]":"")},(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},t.display_name,(0,e.createElement)("span",{className:"block text-[#919196]"},t.user_login)),(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},t.token_id),(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},new Date(1e3*t.created_at).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})),(0,e.createElement)("td",{ref:e=>N.current[t.token_id]=e,className:(F>=t.expire?"text-red-600":"")+" text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},new Date(1e3*t.expire).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})),(0,e.createElement)("td",{className:"text-center text-[13px] font-[500] border-x-[1px] border-[#e2e8f0] py-[10px] px-[5px]"},(0,e.createElement)("span",{className:"flex justify-around"},(0,e.createElement)(Is,{title:"Delete"},(0,e.createElement)("span",{className:"cursor-pointer",onClick:()=>A(t)},(0,e.createElement)(ut,{size:18}))),(0,e.createElement)("span",{onClick:()=>((e,t)=>{const n="pause"===t?"active":"pause",r=new window.FormData;r.append("action","login_me_now_browser_token_update_status"),r.append("security",lmn_admin.generate_token_nonce),r.append("token_id",e),r.append("status",n),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((t=>{a(!o);const r=i.map((t=>t.token_id===e?{...t,status:n}:t));l(r)})).catch((e=>{console.log(e)}))})(t.token_id,t.status),className:F>=t.expire?"cursor-not-allowed pointer-events-none":""},"pause"===t.status||F>=t.expire?(0,e.createElement)(Is,{title:"Inactive"},(0,e.createElement)("span",{className:"cursor-pointer"},(0,e.createElement)(ft,{size:18,color:F>=t.expire?"#D11A2A":"#2192c0"}))):(0,e.createElement)(Is,{title:"Active"},(0,e.createElement)("span",{className:"cursor-pointer disable"},(0,e.createElement)(pt,{size:18})))))))))))),S<20?null:(0,e.createElement)("button",{className:"mt-2 sm:inline-flex items-center justify-center px-4 py-2 border border-lmn-hover text-[16px] font-medium rounded-md shadow-sm text-black hover:text-white bg-white focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mb-2 sm:mb-0",onClick:k},"Load More"),u&&f&&(0,e.createElement)("div",{className:"modal"},(0,e.createElement)("div",{onClick:A,className:"overlay"}),(0,e.createElement)("div",{className:"modal-content"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"flex justify-center"},(0,e.createElement)("img",{src:ht,alt:""})),(0,e.createElement)("h1",{className:"text-center text-[#000000] my-4 text-[20px] leading-[32px] mb-[34px]"},"Are you sure you want to delete",(0,e.createElement)("br",null)," your token?"),(0,e.createElement)("div",{className:"flex justify-between"},(0,e.createElement)("button",{className:"bg-[#d11a2a] hover:bg-[#ac0412] text-white font-bold py-2 px-4 rounded h-[42px] w-[142px]",onClick:()=>(e=>{const t=new window.FormData;t.append("action","login_me_now_browser_token_drop"),t.append("security",lmn_admin.generate_token_nonce),t.append("token_id",e),i.find((t=>t.token_id===e))&&De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((t=>{if(t.success){const t=O.current[e];t&&(t.classList.add("transition-opacity","duration-1000","ease-linear","opacity-0","h-0","deleted-bg"),setTimeout((()=>{l(i.filter((t=>t.token_id!==e)))}),1e3),d(!u))}})).catch((e=>{console.log(e)}))})(f.token_id)},"Yes, Delete"),(0,e.createElement)("button",{className:"bg-[#28a745] hover:bg-[#218838] text-white font-bold py-2 px-4 rounded h-[42px] w-[132px]",onClick:A},"No, keep")))))))},ec=o.p+"images/chrome.3dc29dae.png",tc=o.p+"images/firefox.265c1f58.png",nc=o.p+"images/microsoft.0921c0c9.png",rc=o.p+"images/opera.405bf90e.png",oc=o.p+"images/brave.20bbe7ad.png",ac=function(){return(0,e.createElement)("section",{"aria-labelledby":"section-2-title"},(0,e.createElement)("h2",{className:"sr-only",id:"section-2-title"},"Install extension"),(0,e.createElement)("div",{className:"box-border rounded-md border border-[#9F9F9F] bg-[#f6f6f6] shadow-sm overflow-hidden transition hover:shadow-hover"},(0,e.createElement)("div",{className:"p-6"},(0,e.createElement)("h3",{className:"text-slate-800 text-base font-semibold pb-2"},(0,be.__)("Install extension","login-me-now")),(0,e.createElement)($s,{size:"!text-[15px]",text:"Easily access the dashboard panel with just one click"}),(0,e.createElement)("div",{className:"flex justify-between"},(0,e.createElement)("a",{href:"https://chrome.google.com/webstore/detail/login-me-now-wordpress-lo/kkkofomlfhbepmpiplggmfpomdnkljoh",target:"_blank",className:"mx-2 hover:scale-125 transition-transform duration-300"},(0,e.createElement)("div",{class:"mb-2 sm:mb-0 flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)("img",{src:ec,alt:"",className:"max-h-[50px] w-auto"})))),(0,e.createElement)("a",{href:"https://addons.mozilla.org/en-US/firefox/addon/login-me-now/",target:"_blank",className:"mx-2 hover:scale-125 transition-transform duration-300"},(0,e.createElement)("div",{class:"mb-2 sm:mb-0 flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)("img",{src:tc,alt:"",className:"max-h-[50px] w-auto"})))),(0,e.createElement)("a",{href:"https://chrome.google.com/webstore/detail/login-me-now-wordpress-lo/kkkofomlfhbepmpiplggmfpomdnkljoh",target:"_blank",className:"mx-2 hover:scale-125 transition-transform duration-300"},(0,e.createElement)("div",{class:"mb-2 sm:mb-0 flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)("img",{src:nc,alt:"",className:"max-h-[50px] w-auto"})))),(0,e.createElement)("a",{href:"https://chrome.google.com/webstore/detail/login-me-now-wordpress-lo/kkkofomlfhbepmpiplggmfpomdnkljoh",target:"_blank",className:"mx-2 hover:scale-125 transition-transform duration-300"},(0,e.createElement)("div",{class:"mb-2 sm:mb-0 flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)("img",{src:rc,alt:"",className:"max-h-[50px] w-auto"})))),(0,e.createElement)("a",{href:"https://chrome.google.com/webstore/detail/login-me-now-wordpress-lo/kkkofomlfhbepmpiplggmfpomdnkljoh",target:"_blank",className:"mx-2 hover:scale-125 transition-transform duration-300"},(0,e.createElement)("div",{class:"mb-2 sm:mb-0 flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)("img",{src:oc,alt:"",className:"max-h-[50px] w-auto"}))))))))},ic=o.p+"images/lock.27175ed9.png";o.p;const lc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")};var sc=()=>{const n=Ae(),[r,o]=(0,t.useState)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Qs,null),(0,e.createElement)("main",{className:"py-[2.43rem]"},(0,e.createElement)("div",{className:"max-w-3xl mx-auto px-6 lg:max-w-screen-2xl"},(0,e.createElement)("h1",{className:"sr-only"}," Login Me Now "),(0,e.createElement)("div",{className:"grid grid-cols-1 gap-4 items-start lg:grid-cols-12 rounded-md bg-white overflow-hidden shadow-sm p-12"},(0,e.createElement)("div",{className:"grid grid-cols-1 lg:col-span-7 gap-4 h-full"},(0,e.createElement)("section",{"aria-labelledby":"section-1-title h-full"},(0,e.createElement)("h2",{className:"sr-only",id:"section-1-title"},"Browser Extensions Banner"),(0,e.createElement)("div",{className:"flex flex-col justify-center h-full"},(0,e.createElement)("div",{className:""},(0,e.createElement)(js,{text:"Experience instant dashboard access with just 1 click"}),(0,e.createElement)($s,{text:"Generate a token to save this dashboard access in the browser extension, allowing you to effortlessly log in directly from extension. No need to navigate to the dashboard login panel and enter login credentials."}),(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation();const t=new Date(r),o=new window.FormData;o.append("action","login_me_now_browser_token_generate"),o.append("security",lmn_admin.generate_token_nonce),o.append("expiration",t),De()({url:lmn_admin.ajax_url,method:"POST",body:o}).then((e=>{e.success&&n({type:"GENERATE_MAGIC_LINK_POPUP",payload:{...e.data}})})).catch((e=>{console.log(e)}))},className:"inline-flex flex-nowrap items-end"},(0,e.createElement)("span",{className:"relative z-0 inline-flex flex-col sm:flex-row justify-start w-full"},(0,e.createElement)("div",null,(0,e.createElement)("label",{htmlFor:"expiration",className:"text-[16px] text-[#1E293B] font-bold"},"Set expiration time"," ",(0,e.createElement)(Is,{title:"When will this token expire & no loner be accessible"},(0,e.createElement)("span",null,(0,e.createElement)("svg",{className:"inline-block",fill:"#9A9A9A",width:"14px",height:"14px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12,1A11,11,0,1,0,23,12,11.013,11.013,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9.011,9.011,0,0,1,12,21ZM13,8H11V6h2Zm0,10H11V10h2Z"}))))),(0,e.createElement)("input",{className:"mt-2 input-padding w-full",type:"datetime-local",name:"expiration",id:"expiration",min:(()=>{const e=new Date;return`${e.getFullYear()}-${`${e.getMonth()+1}`.padStart(2,"0")}-${`${e.getDate()}`.padStart(2,"0")}T${`${e.getHours()}`.padStart(2,"0")}:${`${e.getMinutes()}`.padStart(2,"0")}`})(),onChange:e=>{e.preventDefault(),o(e.target.value)},required:!0}))),(0,e.createElement)("span",{className:"ml-2 relative z-0 inline-flex flex-col sm:flex-row justify-start w-full"},(0,e.createElement)("button",{type:"submit",className:"sm:inline-flex items-center p-[13px] border border-transparent text-[16px] font-medium rounded-md shadow-sm text-white bg-lmn focus-visible:bg-lmn-hover hover:bg-lmn-hover focus:outline-none mr-4 mb-2 sm:mb-0"},(0,be.__)("Generate token","login-me-now")))))))),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:col-span-5 gap-4 h-full justify-self-end"})),(0,e.createElement)("div",{className:"grid grid-cols-1 gap-[32px] items-start lg:grid-cols-3 lg:gap-[32px] xl:gap-[32px] mt-[32px]"},(0,e.createElement)("div",{className:lc(lmn_admin.show_self_branding?"lg:col-span-2":"lg:col-span-3","grid grid-cols-1 gap-[32px]")},(0,e.createElement)(Js,null)),(0,e.createElement)("div",{className:"grid grid-cols-1 gap-[32px]"},(0,e.createElement)(Rs,{classNames:"rounded-md border border-[#9F9F9F]",title:"Share Your Feedback",buttonText:"Submit a review ",icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M19.5 4.5H12.5V6H16.94L10.97 11.97L12.03 13.03L18 7.06V11.5H19.5V4.5ZM6.5 5.5C5.96957 5.5 5.46086 5.71071 5.08579 6.08579C4.71071 6.46086 4.5 6.96957 4.5 7.5V17.5C4.5 18.0304 4.71071 18.5391 5.08579 18.9142C5.46086 19.2893 5.96957 19.5 6.5 19.5H16.5C17.0304 19.5 17.5391 19.2893 17.9142 18.9142C18.2893 18.5391 18.5 18.0304 18.5 17.5V14.5H17V17.5C17 17.6326 16.9473 17.7598 16.8536 17.8536C16.7598 17.9473 16.6326 18 16.5 18H6.5C6.36739 18 6.24021 17.9473 6.14645 17.8536C6.05268 17.7598 6 17.6326 6 17.5V7.5C6 7.36739 6.05268 7.24021 6.14645 7.14645C6.24021 7.05268 6.36739 7 6.5 7H9.5V5.5H6.5Z",fill:"#007CBA"})),subtitle:"If you find this plugin helpful, kindly consider leaving a review on WordPress.org. Your valuable feedback is highly appreciated and helps others discover the plugin.",link:"https://wordpress.org/support/plugin/login-me-now/reviews/?rate=5#new-post"}),(0,e.createElement)(ac,null))),(0,e.createElement)("div",{className:"border-[#9F9F9F] border-[1px] p-10 rounded-[8px] bg-white mt-[60px]"},(0,e.createElement)("h1",{className:"text-[20px] text-slate-800 leading-10 pb-3 font-semibold text-left"},"Why use browser extension?"),(0,e.createElement)("p",{className:"text-[#494949] text-[16px] leading-8"},"This save you time, especially if you frequently log in to multiple website dashboards throughout the day. With the browser extension, secure dashboard login is just one click away. Say goodbye to the hassle of navigating to the login panel and entering your username/email and password. The login process is secure, fast, and smooth!")),(0,e.createElement)("div",{className:"flex justify-between items-center border-[#10AC84] border-[1px] p-10 rounded-[8px] bg-[#F1FAF8] mt-[30px]"},(0,e.createElement)("img",{src:ic,alt:"",className:"h-[60px] w-[60px] mr-5"}),(0,e.createElement)("p",{className:"text-[16px] leading-8"},"The browser extension never tracks or saves any of your website data or login credentials. When it come to dashboard login access, it is securely stored in an encrypted format within the browser extension using industry-standard JWT token. The generated token cannot be compressed to encrypt login credentials.")))))},cc=function(){return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 25 25",fill:"none"},(0,e.createElement)("g",{"clip-path":"url(#clip0_1081_340)"},(0,e.createElement)("path",{d:"M25 12.5C25 5.59644 19.4036 0 12.5 0C5.59644 0 0 5.59644 0 12.5C0 19.4036 5.59644 25 12.5 25C19.4036 25 25 19.4036 25 12.5Z",fill:"#D9F5EC"}),(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8084 7.69798L10.3501 14.8959L8.37093 12.7813C8.00634 12.4375 7.43343 12.4167 7.01676 12.7084C6.61051 13.0105 6.49593 13.5417 6.74593 13.9688L9.0897 17.7813C9.31881 18.1355 9.7147 18.3542 10.1626 18.3542C10.5897 18.3542 10.9959 18.1355 11.2251 17.7813C11.6001 17.2917 18.7563 8.76048 18.7563 8.76048C19.6938 7.80215 18.5584 6.9584 17.8084 7.68756V7.69798Z",fill:"#023A2E"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_1081_340"},(0,e.createElement)("rect",{width:"25",height:"25",fill:"white"}))))};let uc=(0,t.createContext)(null);function dc(){let e=(0,t.useContext)(uc);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,dc),e}return e}let fc=h((function(e,t){let n=A(),{id:r=`headlessui-label-${n}`,passive:o=!1,...a}=e,i=dc(),l=O(t);w((()=>i.register(r)),[r,i.register]);let s={ref:l,...i.props,id:r};return o&&("onClick"in s&&(delete s.htmlFor,delete s.onClick),"onClick"in a&&delete a.onClick),f({ourProps:s,theirProps:a,slot:i.slot||{},defaultTag:"label",name:i.name||"Label"})})),pc=Object.assign(fc,{}),mc=(0,t.createContext)(null);function hc(){let e=(0,t.useContext)(mc);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,hc),e}return e}let gc=h((function(e,t){let n=A(),{id:r=`headlessui-description-${n}`,...o}=e,a=hc(),i=O(t);return w((()=>a.register(r)),[r,a.register]),f({ourProps:{ref:i,...a.props,id:r},theirProps:o,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})})),vc=Object.assign(gc,{});var bc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bc||{});let yc=h((function(e,t){let{features:n=1,...r}=e;return f({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function xc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Ec(n,wc(t,r),o);return n}function wc(e,t){return e?e+"["+t+"]":t}function Ec(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Ec(e,wc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):xc(n,t,e)}function Cc(e,n,r){let[o,a]=(0,t.useState)(r),i=void 0!==e,l=(0,t.useRef)(i),s=(0,t.useRef)(!1),c=(0,t.useRef)(!1);return!i||l.current||s.current?!i&&l.current&&!c.current&&(c.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:o,C((e=>(i||a(e),null==n?void 0:n(e))))]}let Sc=(0,t.createContext)(null);Sc.displayName="GroupContext";let _c=t.Fragment,Oc=h((function(e,n){let r=A(),{id:o=`headlessui-switch-${r}`,checked:a,defaultChecked:i=!1,onChange:l,name:s,value:c,form:u,...d}=e,p=(0,t.useContext)(Sc),m=(0,t.useRef)(null),h=O(m,n,null===p?null:p.setSwitch),[v,b]=Cc(a,l,i),y=C((()=>null==b?void 0:b(!v))),x=C((e=>{if(F(e.currentTarget))return e.preventDefault();e.preventDefault(),y()})),w=C((e=>{e.key===P.Space?(e.preventDefault(),y()):e.key===P.Enter&&function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget)})),E=C((e=>e.preventDefault())),S=(0,t.useMemo)((()=>({checked:v})),[v]),_={id:o,ref:h,role:"switch",type:j(e,m),tabIndex:0,"aria-checked":v,"aria-labelledby":null==p?void 0:p.labelledby,"aria-describedby":null==p?void 0:p.describedby,onClick:x,onKeyUp:w,onKeyPress:E},N=Be();return(0,t.useEffect)((()=>{var e;let t=null==(e=m.current)?void 0:e.closest("form");t&&void 0!==i&&N.addEventListener(t,"reset",(()=>{b(i)}))}),[m,b]),t.createElement(t.Fragment,null,null!=s&&v&&t.createElement(yc,{features:bc.Hidden,...g({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:v,name:s,value:c})}),f({ourProps:_,theirProps:d,slot:S,defaultTag:"button",name:"Switch"}))})),Nc=Object.assign(Oc,{Group:function(e){var n;let[r,o]=(0,t.useState)(null),[a,i]=function(){let[e,n]=(0,t.useState)([]);return[e.length>0?e.join(" "):void 0,(0,t.useMemo)((()=>function(e){let r=C((e=>(n((t=>[...t,e])),()=>n((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),o=(0,t.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props})),[r,e.slot,e.name,e.props]);return t.createElement(uc.Provider,{value:o},e.children)}),[n])]}(),[l,s]=function(){let[e,n]=(0,t.useState)([]);return[e.length>0?e.join(" "):void 0,(0,t.useMemo)((()=>function(e){let r=C((e=>(n((t=>[...t,e])),()=>n((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),o=(0,t.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props})),[r,e.slot,e.name,e.props]);return t.createElement(mc.Provider,{value:o},e.children)}),[n])]}(),c=(0,t.useMemo)((()=>({switch:r,setSwitch:o,labelledby:a,describedby:l})),[r,o,a,l]),u=e;return t.createElement(s,{name:"Switch.Description"},t.createElement(i,{name:"Switch.Label",props:{htmlFor:null==(n=c.switch)?void 0:n.id,onClick(e){r&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},t.createElement(Sc.Provider,{value:c},f({ourProps:{},theirProps:u,defaultTag:_c,name:"Switch.Group"}))))},Label:pc,Description:vc});const kc=e=>"/wp-admin/admin.php?page=login-me-now&path="+e;function Ac(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Pc=function(n){let{colorChange:r,proItem:o}=n;const a=Ae(),[i,l]=(0,t.useState)(!1),s=Le((e=>e.dmTemporaryLogin));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex flex-col justify-between rounded-[8px] border border-[#cacaca] "+(!0===i?"bg-[#0da071b0]":"bg-[#F8FAFC]")},(0,e.createElement)("div",{class:"relative",onMouseEnter:!0===o?()=>{l(!0)}:null,onMouseLeave:!0===o?()=>{l(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${i&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("g",{"clip-path":"url(#clip0_1333_17)"},(0,e.createElement)("path",{d:"M22.5 15C23.5352 15 24.5068 15.1953 25.415 15.5859C26.3232 15.9766 27.1191 16.5088 27.8027 17.1826C28.4863 17.8564 29.0234 18.6523 29.4141 19.5703C29.8047 20.4883 30 21.4648 30 22.5C30 23.5352 29.8047 24.5068 29.4141 25.415C29.0234 26.3232 28.4912 27.1191 27.8174 27.8027C27.1436 28.4863 26.3477 29.0234 25.4297 29.4141C24.5117 29.8047 23.5352 30 22.5 30C21.4648 30 20.4932 29.8047 19.585 29.4141C18.6768 29.0234 17.8809 28.4912 17.1973 27.8174C16.5137 27.1436 15.9766 26.3477 15.5859 25.4297C15.1953 24.5117 15 23.5352 15 22.5C15 21.4648 15.1953 20.4932 15.5859 19.585C15.9766 18.6768 16.5088 17.8809 17.1826 17.1973C17.8564 16.5137 18.6523 15.9766 19.5703 15.5859C20.4883 15.1953 21.4648 15 22.5 15ZM22.5 28.125C23.2715 28.125 23.999 27.9785 24.6826 27.6855C25.3662 27.3926 25.9619 26.9922 26.4697 26.4844C26.9775 25.9766 27.3828 25.3809 27.6855 24.6973C27.9883 24.0137 28.1348 23.2812 28.125 22.5C28.125 21.7285 27.9785 21.001 27.6855 20.3174C27.3926 19.6338 26.9922 19.0381 26.4844 18.5303C25.9766 18.0225 25.376 17.6172 24.6826 17.3145C23.9893 17.0117 23.2617 16.8652 22.5 16.875C21.7188 16.875 20.9912 17.0215 20.3174 17.3145C19.6436 17.6074 19.0479 18.0078 18.5303 18.5156C18.0127 19.0234 17.6074 19.624 17.3145 20.3174C17.0215 21.0107 16.875 21.7383 16.875 22.5C16.875 23.2812 17.0215 24.0088 17.3145 24.6826C17.6074 25.3564 18.0078 25.9521 18.5156 26.4697C19.0234 26.9873 19.6191 27.3926 20.3027 27.6855C20.9863 27.9785 21.7188 28.125 22.5 28.125ZM22.5 22.5H25.3125V24.375H20.625V18.75H22.5V22.5ZM17.1387 14.8242C16.8652 15.0195 16.6064 15.2246 16.3623 15.4395C16.1182 15.6543 15.8838 15.8838 15.6592 16.1279C14.9854 15.7666 14.2773 15.4883 13.5352 15.293C12.793 15.0977 12.0312 15 11.25 15C10.3906 15 9.56055 15.1123 8.75977 15.3369C7.95898 15.5615 7.21191 15.874 6.51855 16.2744C5.8252 16.6748 5.19531 17.1631 4.62891 17.7393C4.0625 18.3154 3.57422 18.9502 3.16406 19.6436C2.75391 20.3369 2.43652 21.084 2.21191 21.8848C1.9873 22.6855 1.875 23.5156 1.875 24.375H0C0 23.2031 0.170898 22.0752 0.512695 20.9912C0.854492 19.9072 1.34766 18.9062 1.99219 17.9883C2.63672 17.0703 3.39844 16.2549 4.27734 15.542C5.15625 14.8291 6.15234 14.2676 7.26562 13.8574C6.16211 13.1348 5.30273 12.2266 4.6875 11.1328C4.07227 10.0391 3.75977 8.82812 3.75 7.5C3.75 6.46484 3.94531 5.49316 4.33594 4.58496C4.72656 3.67676 5.25879 2.88086 5.93262 2.19727C6.60645 1.51367 7.40234 0.976562 8.32031 0.585938C9.23828 0.195313 10.2148 0 11.25 0C12.2852 0 13.2568 0.195313 14.165 0.585938C15.0732 0.976562 15.8691 1.50879 16.5527 2.18262C17.2363 2.85645 17.7734 3.65234 18.1641 4.57031C18.5547 5.48828 18.75 6.46484 18.75 7.5C18.75 8.14453 18.6719 8.77441 18.5156 9.38965C18.3594 10.0049 18.125 10.5859 17.8125 11.1328C17.5 11.6797 17.1289 12.1875 16.6992 12.6562C16.2695 13.125 15.7764 13.5254 15.2197 13.8574C15.9033 14.1309 16.543 14.4531 17.1387 14.8242ZM5.625 7.5C5.625 8.28125 5.77148 9.00879 6.06445 9.68262C6.35742 10.3564 6.75781 10.9521 7.26562 11.4697C7.77344 11.9873 8.36914 12.3926 9.05273 12.6855C9.73633 12.9785 10.4688 13.125 11.25 13.125C12.0215 13.125 12.749 12.9785 13.4326 12.6855C14.1162 12.3926 14.7119 11.9922 15.2197 11.4844C15.7275 10.9766 16.1328 10.3809 16.4355 9.69727C16.7383 9.01367 16.8848 8.28125 16.875 7.5C16.875 6.72852 16.7285 6.00098 16.4355 5.31738C16.1426 4.63379 15.7422 4.03809 15.2344 3.53027C14.7266 3.02246 14.126 2.61719 13.4326 2.31445C12.7393 2.01172 12.0117 1.86523 11.25 1.875C10.4688 1.875 9.74121 2.02148 9.06738 2.31445C8.39355 2.60742 7.79785 3.00781 7.28027 3.51562C6.7627 4.02344 6.35742 4.62402 6.06445 5.31738C5.77148 6.01074 5.625 6.73828 5.625 7.5Z",fill:"#023A2E"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_1333_17"},(0,e.createElement)("rect",{width:"30",height:"30",fill:"white"}))))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5"},"Temporary login",o&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2 py-0.5 text-[8px] rounded-[4px] ml-1.5"},"Pro")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Generate a tokenized link to create a temporary login. By opening the link, anyone can log in without requiring a password."))),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex justify-between items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${i&&"invisible"}`},(0,e.createElement)(he,{to:kc("temporary-login"),className:!0===s?"":"pointer-events-none"},(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071] hover:text-[#0DA071] ${!s&&"invisible"}`},"Settings")),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===s||void 0===s,a({type:"ENABLE_DM_TEMPORARY_LOGIN",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","temporary_login"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{a({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Ac(s?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Ac(s?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Ac(s?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("button",{className:`bg-white px-6 py-3 text-[18px] font-semibold text-[#0DA071] rounded-[8px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!i&&"invisible"}`},"Buy Pro"))},Fc=o(656);function Tc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Lc=function(n){let{colorChange:r,proItem:o}=n;const a=Ae(),[i,l]=(0,t.useState)(!1),s=Le((e=>e.dmSocialLogin));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===i?"bg-[#0da071b0]":"bg-[#F8FAFC]"),onMouseEnter:!0===o?()=>{l(!0)}:null,onMouseLeave:!0===o?()=>{l(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${i&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("path",{d:"M22.4774 23.4059C21.604 22.2495 20.474 21.3117 19.1764 20.6663C17.8788 20.021 16.4491 19.6858 14.9999 19.6871C13.5507 19.6858 12.121 20.021 10.8234 20.6663C9.52583 21.3117 8.39582 22.2495 7.5224 23.4059M22.4774 23.4059C24.1818 21.8899 25.3838 19.8916 25.9264 17.676C26.469 15.4604 26.3252 13.1322 25.5142 11.0002C24.7032 8.86822 23.2633 7.0331 21.3854 5.73825C19.5075 4.4434 17.2803 3.75 14.9993 3.75C12.7182 3.75 10.4911 4.4434 8.61315 5.73825C6.73524 7.0331 5.29531 8.86822 4.48431 11.0002C3.67332 13.1322 3.52958 15.4604 4.07217 17.676C4.61475 19.8916 5.81802 21.8899 7.5224 23.4059M22.4774 23.4059C20.4199 25.2411 17.7569 26.2536 14.9999 26.2496C12.2424 26.2539 9.58019 25.2414 7.5224 23.4059M18.7499 12.1871C18.7499 13.1817 18.3548 14.1355 17.6515 14.8388C16.9483 15.542 15.9945 15.9371 14.9999 15.9371C14.0053 15.9371 13.0515 15.542 12.3482 14.8388C11.645 14.1355 11.2499 13.1817 11.2499 12.1871C11.2499 11.1926 11.645 10.2387 12.3482 9.53548C13.0515 8.83222 14.0053 8.43713 14.9999 8.43713C15.9945 8.43713 16.9483 8.83222 17.6515 9.53548C18.3548 10.2387 18.7499 11.1926 18.7499 12.1871Z",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5"},"Social login",o&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2 py-0.5 text-[8px] rounded-[4px] ml-1.5"},"Pro")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Simplify the login process and make it more convenient for users to login / register with social login options.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex justify-between items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${i&&"invisible"}`},(0,e.createElement)(Fc.rU,{to:kc("social-login")},(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071] ${!s&&"invisible"}`},"Settings")),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===s||void 0===s,a({type:"ENABLE_DM_SOCIAL_LOGIN",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","social_login"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{a({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Tc(s?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Tc(s?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Tc(s?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("button",{className:`bg-white px-6 py-3 text-[18px] font-semibold text-[#0DA071] rounded-[8px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!i&&"invisible"}`},"Buy Pro")))};function Ic(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Mc=function(n){let{colorChange:r,isAvailable:o}=n;const a=!!lmn_admin.pro_available,i=Ae(),[l,s]=(0,t.useState)(!1),c=Le((e=>e.dmExpressLoginWC));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===l?"bg-[#073A2E]":"bg-[#F8FAFC]"),onMouseEnter:1==!a?()=>{s(!0)}:null,onMouseLeave:1==!a?()=>{s(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${l&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25 3.75C26.3807 3.75 27.5 4.86929 27.5 6.25V23.75C27.5 25.1307 26.3807 26.25 25 26.25H5C3.61929 26.25 2.5 25.1307 2.5 23.75V6.25C2.5 4.86929 3.61929 3.75 5 3.75H25ZM22.1519 6.25602C21.6599 6.29245 21.2865 6.54641 21.0322 7.05433C19.9802 9.10399 19.2336 12.4235 18.7924 17.0307C18.1477 15.2894 17.6048 13.2396 17.1805 10.8272C16.9939 9.75694 16.5359 9.24919 15.7893 9.30357C15.2802 9.33983 14.856 9.70256 14.5165 10.3919L10.8008 17.9559C10.19 15.3258 9.61313 12.1151 9.08715 8.32397C8.96845 7.38063 8.47638 6.94539 7.61094 7.01808C7.13582 7.05433 6.77957 7.23561 6.54201 7.58039C6.30446 7.90669 6.20272 8.32397 6.27071 8.79564C7.27164 15.5977 8.20491 20.187 9.07019 22.5633C9.40949 23.4338 9.79965 23.8511 10.2578 23.8148C10.9705 23.7605 11.8188 22.7083 12.8199 20.6585C13.3459 19.4976 14.1603 17.7563 15.2633 15.4346C16.1794 18.8628 17.4351 21.4385 19.013 23.1619C19.4542 23.6517 19.9122 23.8692 20.3534 23.833C20.7437 23.7967 21.0489 23.579 21.2528 23.18C21.4223 22.8352 21.4903 22.4361 21.4562 21.9829C21.3545 20.3322 21.5073 18.0284 21.9313 15.0717C22.3724 12.0245 22.9155 9.82962 23.5773 8.52355C23.7129 8.25146 23.7638 7.97937 23.7469 7.6529C23.7129 7.23561 23.5432 6.89101 23.2209 6.61892C22.8985 6.34683 22.5423 6.21993 22.1519 6.25602Z",fill:"#683FA6"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5 flex justify-center items-center"},"Express login- WC",!a&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2.5 py-1 text-[10px] rounded-[3px] ml-1.5"},"PRO")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Customers can log in to their accounts using the secret link associated with their username, no need to remember the username & password.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex ${!0===o?"justify-between":"justify-center"} items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${l&&"invisible"}`},!0===o?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071] ${!c&&"invisible"}`},"Settings"),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===c||void 0===c,i({type:"ENABLE_DM_EXPRESS_LOGIN_WC",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","dm_express_login_wc"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{i({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Ic(a&&c?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Ic(a&&c?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Ic(a&&c?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))):(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] border ${!0===r?"border-[#0DA071] text-[#0DA071]":"border-[#cacaca]  text-[#023A2E]"} px-6 py-1 text-[14px] rounded-[8px] cursor-auto`},"Coming soon")),!a&&(0,e.createElement)("div",{className:`text-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!l&&"invisible"}`},(0,e.createElement)("a",{href:"https://wptownhall.com/login-me-now/pricing/",target:"_blank"},(0,e.createElement)("button",{className:"bg-white px-3 py-2 text-[16px] font-semibold text-[#073A2E] rounded-[8px]"},"Upgrade to PRO")),(0,e.createElement)("p",{className:"text-white mt-3"},"This module is available in the pro version"))))};function Dc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Rc=function(n){let{colorChange:r,isAvailable:o}=n;const a=!!lmn_admin.pro_available,i=Ae(),[l,s]=(0,t.useState)(!1),c=Le((e=>e.dmExpressLoginEDD));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===l?"bg-[#073A2E]":"bg-[#F8FAFC]"),onMouseEnter:1==!a?()=>{s(!0)}:null,onMouseLeave:1==!a?()=>{s(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${l&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("path",{d:"M15.0006 2.5C18.4518 2.5 21.5773 3.89885 23.8386 6.16091C26.1007 8.42296 27.5 11.5485 27.5 15.0001C27.5 18.4518 26.1012 21.5768 23.8391 23.8393C21.5778 26.1007 18.4522 27.5002 15.0006 27.5002C11.5485 27.5002 8.42296 26.1019 6.16091 23.8393C3.89885 21.5773 2.5 18.4518 2.5 15.0001C2.5 11.5485 3.89885 8.42296 6.16138 6.16091C8.42344 3.89885 11.5485 2.5 15.0006 2.5ZM15.7149 16.9735H14.3784L14.3774 17.9355L14.2347 17.9728C13.9184 18.0662 13.6472 18.1966 13.4207 18.3672C13.1884 18.5427 13.0077 18.7501 12.8829 18.9879C12.7567 19.2273 12.6927 19.4928 12.6901 19.7776C12.6918 20.1121 12.7804 20.4102 12.9553 20.6678C13.1216 20.913 13.3549 21.123 13.6522 21.3C13.8622 21.4251 14.1008 21.5366 14.3677 21.6349L14.644 21.7288C14.895 21.8092 15.0985 21.8926 15.2483 21.9754C15.3809 22.0482 15.4698 22.1219 15.5179 22.1918C15.5624 22.2551 15.5834 22.3248 15.5825 22.4095C15.5825 22.5065 15.5572 22.5824 15.5046 22.6513C15.4501 22.7223 15.3621 22.7831 15.2362 22.8301C15.0981 22.8822 14.9195 22.9101 14.6986 22.912C14.517 22.9107 14.336 22.8948 14.1589 22.8644C13.9816 22.8324 13.817 22.7913 13.6685 22.7414C13.5135 22.6899 13.3836 22.6359 13.2744 22.5778L12.9678 22.4146L12.5286 23.8416L12.7334 23.954C12.8741 24.0313 13.0438 24.0986 13.2478 24.1594C13.4451 24.2187 13.662 24.2659 13.8998 24.3019L14.1353 24.3309L14.3774 24.3485L14.3784 25.2516H15.7149L15.7149 24.2246L15.7862 24.2055C16.1283 24.1025 16.4147 23.9603 16.6455 23.7757C16.8789 23.5919 17.0576 23.373 17.1772 23.1228C17.2949 22.8752 17.3537 22.6126 17.3537 22.3357C17.3537 22.0099 17.2818 21.7176 17.1348 21.4643C16.9882 21.2119 16.7738 20.995 16.4933 20.8119C16.2787 20.6725 16.0233 20.5468 15.7285 20.4353L15.5 20.3543C15.2216 20.2584 14.9994 20.17 14.8317 20.0881C14.6856 20.017 14.5827 19.9424 14.5247 19.8722C14.4818 19.8208 14.4613 19.7601 14.4613 19.6775C14.4613 19.62 14.4783 19.5682 14.5175 19.5136C14.5599 19.4535 14.6324 19.3993 14.7404 19.3538C14.8631 19.3021 15.0284 19.2735 15.2388 19.2725C15.4173 19.2734 15.5854 19.2876 15.7388 19.3142C15.8875 19.3412 16.0202 19.3739 16.1318 19.4108C16.2442 19.4488 16.3368 19.4851 16.4078 19.5186L16.7005 19.6567L17.1579 18.2772L16.9364 18.166C16.7455 18.0701 16.5134 17.9928 16.2366 17.9314L16.0558 17.8968L15.8627 17.8701L15.7149 17.8563L15.7149 16.9735ZM15.0006 4.24642C9.09596 4.24642 4.30308 9.00526 4.24785 14.8963L9.17857 9.9656L10.8321 11.6192L7.22385 15.2275H22.7771L19.1688 11.6192L20.8224 9.9656L25.7533 14.8958C25.6972 9.00478 20.9048 4.24642 15.0006 4.24642ZM15.0001 4.75087C15.8452 4.75087 16.537 5.25461 16.537 5.87023V8.24013H19.5818L15.0001 13.048L10.4184 8.24013H13.4632V5.87023C13.4632 5.25508 14.155 4.75087 15.0001 4.75087Z",fill:"black"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5 flex justify-center items-center"},"Express login- EDD",!a&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2.5 py-1 text-[10px] rounded-[3px] ml-1.5"},"PRO")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Customers can log in to their accounts using the secret link associated with their username, no need to remember the username & password.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex ${!0===o?"justify-between":"justify-center"} items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${l&&"invisible"}`},!0===o?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071]"},"Settings"),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===c||void 0===c,i({type:"ENABLE_DM_EXPRESS_LOGIN_EDD",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","dm_express_login_edd"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{i({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Dc(a&&c?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Dc(a&&c?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Dc(a&&c?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))):(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] cursor-auto border ${!0===r?"border-[#0DA071]  text-[#0DA071]":"border-[#cacaca]  text-[#023A2E]"} px-6 py-1 text-[14px] rounded-[8px]`},"Coming soon")),!a&&(0,e.createElement)("div",{className:`text-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!l&&"invisible"}`},(0,e.createElement)("a",{href:"https://wptownhall.com/login-me-now/pricing/",target:"_blank"},(0,e.createElement)("button",{className:"bg-white px-3 py-2 text-[16px] font-semibold text-[#073A2E] rounded-[8px]"},"Upgrade to PRO")),(0,e.createElement)("p",{className:"text-white mt-3"},"This module is available in the pro version"))))};function jc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var $c=function(n){let{colorChange:r,proItem:o,isAvailable:a}=n;const i=!!lmn_admin.pro_available,l=Ae(),[s,c]=(0,t.useState)(!1),u=Le((e=>e.dmOTPLogin));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===s?"bg-[#073A2E]":"bg-[#F8FAFC]"),onMouseEnter:1==!i?()=>{c(!0)}:null,onMouseLeave:1==!i?()=>{c(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${s&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("path",{d:"M25 7.5H5C3.61929 7.5 2.5 8.61929 2.5 10V20C2.5 21.3807 3.61929 22.5 5 22.5H25C26.3807 22.5 27.5 21.3807 27.5 20V10C27.5 8.61929 26.3807 7.5 25 7.5Z",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M15 15H15.0125M21.25 15H21.2625M8.75 15H8.7625",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5 flex justify-center items-center"},"OTP login",!i&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2.5 py-1 text-[10px] rounded-[3px] ml-1.5"},"PRO")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Simplify users login with OTP authentication. Forget password hassles, a quick OTP sent via email , mobile or WhatsApp grants easy login to account.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex ${!0===a?"justify-between":"justify-center"} items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${s&&"invisible"}`},!0===a?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071]"},"Settings"),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===u||void 0===u,l({type:"ENABLE_DM_OTP_LOGIN",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","dm_otp_login"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{l({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:jc(i&&u?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:jc(i&&u?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:jc(i&&u?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))):(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] cursor-auto border ${!0===r?"border-[#0DA071]  text-[#0DA071]":"border-[#cacaca]  text-[#023A2E]"} px-6 py-1 text-[14px] rounded-[8px]`},"Coming soon")),!i&&(0,e.createElement)("div",{className:`text-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!s&&"invisible"}`},(0,e.createElement)("a",{href:"https://wptownhall.com/login-me-now/pricing/",target:"_blank"},(0,e.createElement)("button",{className:"bg-white px-3 py-2 text-[16px] font-semibold text-[#073A2E] rounded-[8px]"},"Upgrade to PRO")),(0,e.createElement)("p",{className:"text-white mt-3"},"This module is available in the pro version"))))};function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Bc=function(n){let{colorChange:r,proItem:o,isAvailable:a}=n;const i=Ae(),[l,s]=(0,t.useState)(!1),c=Le((e=>e.dmActivityLog));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===l?"bg-[#0da071b0]":"bg-[#F8FAFC]"),onMouseEnter:!0===o?()=>{s(!0)}:null,onMouseLeave:!0===o?()=>{s(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${l&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"26",viewBox:"0 0 30 26",fill:"none"},(0,e.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0H5C5.26522 0 5.51957 0.105357 5.70711 0.292893C5.89464 0.48043 6 0.734784 6 1C6 1.26522 5.89464 1.51957 5.70711 1.70711C5.51957 1.89464 5.26522 2 5 2H1C0.734784 2 0.48043 1.89464 0.292893 1.70711C0.105357 1.51957 0 1.26522 0 1ZM8 1C8 0.734784 8.10536 0.48043 8.29289 0.292893C8.48043 0.105357 8.73478 0 9 0H29C29.2652 0 29.5196 0.105357 29.7071 0.292893C29.8946 0.48043 30 0.734784 30 1C30 1.26522 29.8946 1.51957 29.7071 1.70711C29.5196 1.89464 29.2652 2 29 2H9C8.73478 2 8.48043 1.89464 8.29289 1.70711C8.10536 1.51957 8 1.26522 8 1ZM8 7C8 6.73478 8.10536 6.48043 8.29289 6.29289C8.48043 6.10536 8.73478 6 9 6H23C23.2652 6 23.5196 6.10536 23.7071 6.29289C23.8946 6.48043 24 6.73478 24 7C24 7.26522 23.8946 7.51957 23.7071 7.70711C23.5196 7.89464 23.2652 8 23 8H9C8.73478 8 8.48043 7.89464 8.29289 7.70711C8.10536 7.51957 8 7.26522 8 7ZM0 13C0 12.7348 0.105357 12.4804 0.292893 12.2929C0.48043 12.1054 0.734784 12 1 12H5C5.26522 12 5.51957 12.1054 5.70711 12.2929C5.89464 12.4804 6 12.7348 6 13C6 13.2652 5.89464 13.5196 5.70711 13.7071C5.51957 13.8946 5.26522 14 5 14H1C0.734784 14 0.48043 13.8946 0.292893 13.7071C0.105357 13.5196 0 13.2652 0 13ZM8 13C8 12.7348 8.10536 12.4804 8.29289 12.2929C8.48043 12.1054 8.73478 12 9 12H29C29.2652 12 29.5196 12.1054 29.7071 12.2929C29.8946 12.4804 30 12.7348 30 13C30 13.2652 29.8946 13.5196 29.7071 13.7071C29.5196 13.8946 29.2652 14 29 14H9C8.73478 14 8.48043 13.8946 8.29289 13.7071C8.10536 13.5196 8 13.2652 8 13ZM8 19C8 18.7348 8.10536 18.4804 8.29289 18.2929C8.48043 18.1054 8.73478 18 9 18H23C23.2652 18 23.5196 18.1054 23.7071 18.2929C23.8946 18.4804 24 18.7348 24 19C24 19.2652 23.8946 19.5196 23.7071 19.7071C23.5196 19.8946 23.2652 20 23 20H9C8.73478 20 8.48043 19.8946 8.29289 19.7071C8.10536 19.5196 8 19.2652 8 19ZM0 25C0 24.7348 0.105357 24.4804 0.292893 24.2929C0.48043 24.1054 0.734784 24 1 24H5C5.26522 24 5.51957 24.1054 5.70711 24.2929C5.89464 24.4804 6 24.7348 6 25C6 25.2652 5.89464 25.5196 5.70711 25.7071C5.51957 25.8946 5.26522 26 5 26H1C0.734784 26 0.48043 25.8946 0.292893 25.7071C0.105357 25.5196 0 25.2652 0 25ZM8 25C8 24.7348 8.10536 24.4804 8.29289 24.2929C8.48043 24.1054 8.73478 24 9 24H29C29.2652 24 29.5196 24.1054 29.7071 24.2929C29.8946 24.4804 30 24.7348 30 25C30 25.2652 29.8946 25.5196 29.7071 25.7071C29.5196 25.8946 29.2652 26 29 26H9C8.73478 26 8.48043 25.8946 8.29289 25.7071C8.10536 25.5196 8 25.2652 8 25Z",fill:"#023A2E"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[16px] font-medium text-center mb-5"},(0,e.createElement)("a",{className:"border-b-[#2271b1] pb-1 border-b-[2px] border-dashed",href:"https://wordpress.org/plugins/simple-history/",target:"_blank"},"Simple History")," Integration",o&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2 py-0.5 text-[8px] rounded-[4px] ml-1.5"},"Pro")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Keep an activity log of everything that occurs when a user logs in to the dashboard using the tokenized login link.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 border-t-[#cacaca] rounded-b-[8px] flex ${!0===a?"justify-between":"justify-center"} items-center px-4 border-t-[1px] border-b-[#cacaca] ${l&&"invisible"}`},!0===a?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"bg-[#F8FAFC] border border-[#cacaca] invisible  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071]"},"Settings"),(0,e.createElement)(Is,{placement:"left",title:"1"===lmn_admin.simple_history_status?"":"Please activate Simple History plugin to use this module"},(0,e.createElement)(Nc,{onChange:"1"===lmn_admin.simple_history_status?()=>{let e;e=!1===c||void 0===c,i({type:"ENABLE_DM_ACTIVITY_LOGS",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","activity_logs"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{i({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))}:null,className:Vc("1"===lmn_admin.simple_history_status&&c?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Vc("1"===lmn_admin.simple_history_status&&c?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Vc("1"===lmn_admin.simple_history_status&&c?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")})))):(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] cursor-auto border ${!0===r?"border-[#0DA071]  text-[#0DA071]":"border-[#cacaca]  text-[#023A2E]"} px-6 py-1 text-[14px] rounded-[8px]`},"Coming soon")),(0,e.createElement)("button",{className:`bg-white px-6 py-3 text-[18px] font-semibold text-[#0DA071] rounded-[8px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!l&&"invisible"}`},"Buy Pro")))};function Hc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var zc=function(n){let{colorChange:r,proItem:o}=n;const a=Ae(),[i,l]=(0,t.useState)(!1),s=Le((e=>e.dmBrowserExtension));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===i?"bg-[#0da071b0]":"bg-[#F8FAFC]"),onMouseEnter:!0===o?()=>{l(!0)}:null,onMouseLeave:!0===o?()=>{l(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${i&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none"},(0,e.createElement)("path",{d:"M23.2379 13.4198H21.6172C21.5861 13.4198 21.5563 13.4074 21.5343 13.3855C21.5123 13.3635 21.5 13.3337 21.5 13.3026V8.77682C21.5 8.17293 21.2601 7.59378 20.8331 7.16677C20.4061 6.73975 19.8269 6.49986 19.223 6.49986H14.6973C14.6662 6.49986 14.6364 6.48752 14.6144 6.46554C14.5924 6.44356 14.5801 6.41375 14.5801 6.38267V4.76197C14.5801 3.17174 13.3203 1.84049 11.7301 1.81295C11.3448 1.80618 10.962 1.87621 10.6041 2.01895C10.2462 2.16169 9.92023 2.37428 9.64533 2.64432C9.37044 2.91436 9.15207 3.23645 9.00298 3.59178C8.85389 3.94711 8.77705 4.32858 8.77695 4.71392V6.38267C8.77695 6.41375 8.76461 6.44356 8.74263 6.46554C8.72065 6.48752 8.69085 6.49986 8.65977 6.49986H4.13398C3.51886 6.50172 2.92946 6.7469 2.4945 7.18186C2.05953 7.61682 1.81435 8.20622 1.8125 8.82135V12.9452C1.8125 12.9763 1.82485 13.0061 1.84682 13.028C1.8688 13.05 1.89861 13.0624 1.92969 13.0624H3.50645C5.22734 13.0624 6.65176 14.5553 6.67578 16.2762C6.70039 18.0264 5.29824 19.6249 3.55332 19.6249H1.92969C1.89861 19.6249 1.8688 19.6372 1.84682 19.6592C1.82485 19.6812 1.8125 19.711 1.8125 19.742V23.8659C1.81435 24.481 2.05953 25.0704 2.4945 25.5054C2.92946 25.9403 3.51886 26.1855 4.13398 26.1874H8.25781C8.28889 26.1874 8.3187 26.175 8.34068 26.153C8.36265 26.1311 8.375 26.1013 8.375 26.0702V24.8438C8.375 23.0696 9.8252 21.5421 11.5977 21.5004C13.3613 21.4594 14.9375 22.6905 14.9375 24.4465V26.0702C14.9375 26.1013 14.9498 26.1311 14.9718 26.153C14.9938 26.175 15.0236 26.1874 15.0547 26.1874H19.223C19.8269 26.1874 20.4061 25.9475 20.8331 25.5205C21.2601 25.0934 21.5 24.5143 21.5 23.9104V19.3401C21.5 19.309 21.5123 19.2792 21.5343 19.2572C21.5563 19.2353 21.5861 19.2229 21.6172 19.2229H23.2859C24.9049 19.2229 26.1875 17.8946 26.1875 16.2698C26.1875 14.645 24.8281 13.4198 23.2379 13.4198Z",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5"},"Browser extension",o&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2 py-0.5 text-[8px] rounded-[4px] ml-1.5"},"Pro")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"If frequent logins to the dashboard are necessary throughout the day, the browser extension comes in handy.It just takes 1 click to login to dashboard.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex justify-between items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${i&&"invisible"}`},(0,e.createElement)(Fc.rU,{to:kc("browser-extensions")},(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071] ${!s&&"invisible"}`},"Settings")),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===s||void 0===s,a({type:"ENABLE_DM_BROWSER_EXTENSION",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","browser_extension"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{a({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Hc(s?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Hc(s?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Hc(s?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("button",{className:`bg-white px-6 py-3 text-[18px] font-semibold text-[#0DA071] rounded-[8px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!i&&"invisible"}`},"Buy Pro")))};function Uc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Gc=function(n){let{colorChange:r,proItem:o}=n;const a=Ae(),[i,l]=(0,t.useState)(!1),s=Le((e=>e.enableUserSwitching));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===i?"bg-[#0da071b0]":"bg-[#F8FAFC]"),onMouseEnter:!0===o?()=>{l(!0)}:null,onMouseLeave:!0===o?()=>{l(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center ${i&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"26",viewBox:"0 0 24 26",fill:"none"},(0,e.createElement)("path",{d:"M19.2364 7.81445C19.2364 3.80078 15.9844 0.548828 11.9708 0.548828C7.95709 0.548828 4.70514 3.80078 4.70514 7.81445C4.70514 10.2402 5.89459 12.3906 7.72272 13.709C7.711 13.7148 7.70221 13.7178 7.69635 13.7207C6.38678 14.2744 5.21197 15.0684 4.20123 16.082C3.19049 17.0928 2.39947 18.2705 1.84576 19.583C1.30377 20.8662 1.01373 22.2285 0.984435 23.6289C0.981505 23.7607 1.08697 23.8691 1.21881 23.8691H2.97369C3.09967 23.8691 3.20514 23.7666 3.20807 23.6406C3.26666 21.3789 4.17193 19.2607 5.77447 17.6553C7.42975 15.9941 9.62701 15.0801 11.9708 15.0801C15.9844 15.0801 19.2364 11.8281 19.2364 7.81445ZM11.9708 12.8535C9.18756 12.8535 6.9317 10.5977 6.9317 7.81445C6.9317 5.03125 9.18756 2.77539 11.9708 2.77539C14.754 2.77539 17.0098 5.03125 17.0098 7.81445C17.0098 10.5977 14.754 12.8535 11.9708 12.8535ZM15.0469 19.3281H22.7813C22.9102 19.3281 23.0157 19.2227 23.0157 19.0938V17.4531C23.0157 17.3242 22.9102 17.2188 22.7813 17.2188H17.6104L18.9932 15.458C19.0254 15.417 19.043 15.3643 19.043 15.3145C19.043 15.1855 18.9376 15.0801 18.8087 15.0801H16.6817C16.5381 15.0801 16.4034 15.1475 16.3126 15.2588L14.3057 17.8105C14.1768 17.9746 14.1065 18.1797 14.1065 18.3906C14.1094 18.9092 14.5284 19.3281 15.0469 19.3281ZM22.0782 21.2031H14.3438C14.2149 21.2031 14.1094 21.3086 14.1094 21.4375V23.0781C14.1094 23.207 14.2149 23.3125 14.3438 23.3125H19.5147L18.1319 25.0732C18.0997 25.1143 18.0821 25.167 18.0821 25.2168C18.0821 25.3457 18.1876 25.4512 18.3165 25.4512H20.4434C20.587 25.4512 20.7217 25.3838 20.8126 25.2725L22.8194 22.7207C22.9483 22.5566 23.0186 22.3516 23.0186 22.1406C23.0157 21.6221 22.5967 21.2031 22.0782 21.2031Z",fill:"#023A2E"}))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5"},"User switching",o&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2 py-0.5 text-[8px] rounded-[4px] ml-1.5"},"Pro")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Easily switch between user accounts. Instant & in one-click!")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex justify-between items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${i&&"invisible"}`},(0,e.createElement)("button",{type:"button",className:"bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071] invisible"},"Settings"),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===s||void 0===s,a({type:"UPDATE_ENABLE_USER_SWITCHING",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","user_switching"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{a({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Uc(s?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Uc(s?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Uc(s?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("button",{className:`bg-white px-6 py-3 text-[18px] font-semibold text-[#0DA071] rounded-[8px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!i&&"invisible"}`},"Buy Pro")))};function Wc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Zc=function(n){let{colorChange:r,proItem:o,isAvailable:a}=n;const i=Ae(),[l,s]=(0,t.useState)(!1),c=Le((e=>e.dmConditionalLogin));return(0,e.createElement)("div",{className:"mb-16 mx-4 flex"},(0,e.createElement)("div",{class:"relative rounded-[8px] border border-[#cacaca] flex flex-col justify-between "+(!0===l?"bg-[#0da071b0]":"bg-[#F8FAFC]"),onMouseEnter:!0===o?()=>{s(!0)}:null,onMouseLeave:!0===o?()=>{s(!1)}:null},(0,e.createElement)("div",{className:`px-8 pt-16 pb-10 text-center responsive-box ${l&&"invisible"}`},(0,e.createElement)("div",{className:"bg-[#FFFFFF] border-[1px] border-[#DFDFDF] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("g",{"clip-path":"url(#clip0_1377_12)"},(0,e.createElement)("path",{d:"M10.7143 10.7151C13.3771 10.7151 15.5357 8.5565 15.5357 5.89369C15.5357 3.23089 13.3771 1.07227 10.7143 1.07227C8.05145 1.07227 5.89282 3.23089 5.89282 5.89369C5.89282 8.5565 8.05145 10.7151 10.7143 10.7151Z",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M21.9643 28.9286C25.8106 28.9286 28.9286 25.8106 28.9286 21.9643C28.9286 18.118 25.8106 15 21.9643 15C18.118 15 15 18.118 15 21.9643C15 25.8106 18.118 28.9286 21.9643 28.9286Z",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("path",{d:"M17.0356 26.8931L26.8928 17.036M12.8571 14.1646C11.444 13.8383 9.97556 13.8358 8.56141 14.157C7.14725 14.4782 5.82401 15.115 4.6906 16.0197C3.55719 16.9243 2.64295 18.0735 2.01621 19.3813C1.38948 20.689 1.06647 22.1215 1.07134 23.5717V26.786H9.64277",stroke:"#023A2E","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_1377_12"},(0,e.createElement)("rect",{width:"30",height:"30",fill:"white"}))))),(0,e.createElement)("h1",{className:"text-[#000000] text-[17px] font-medium text-center mb-5"},"Conditional login",o&&(0,e.createElement)("span",{className:"bg-[#0DA071] text-[#ffffff] px-2 py-0.5 text-[8px] rounded-[4px] ml-1.5"},"Pro")),(0,e.createElement)("p",{className:"text-[#6B6D71] text-[14px] text-center leading-[1.9]"},"Provide limited access to the dashboard and admin bar options to specific role based users such as shop manager, editor, etc.")),(0,e.createElement)("div",{className:`bg-[#F0F2F4] py-3 rounded-b-[8px] flex ${!0===a?"justify-between":"justify-center"} items-center px-4 border-t-[1px] border-t-[#cacaca] border-b-[#cacaca] ${l&&"invisible"}`},!0===a?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"bg-[#F8FAFC] border border-[#cacaca]  text-[#6B6D71] px-2 py-1 text-[14px] rounded-[8px] hover:border-[#0DA071]  hover:text-[#0DA071]"},"Settings"),(0,e.createElement)(Nc,{onChange:()=>{let e;e=!1===c||void 0===c,i({type:"ENABLE_DM_CONDITIONAL_LOGIN",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","dm_conditional_login"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{i({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Wc(c?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Wc(c?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Wc(c?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))):(0,e.createElement)("button",{type:"button",className:`bg-[#F8FAFC] cursor-auto border ${!0===r?"border-[#0DA071]  text-[#0DA071]":"border-[#cacaca]  text-[#023A2E]"} px-6 py-1 text-[14px] rounded-[8px]`},"Coming soon")),(0,e.createElement)("button",{className:`bg-white px-6 py-3 text-[18px] font-semibold text-[#0DA071] rounded-[8px] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${!l&&"invisible"}`},"Buy Pro")))},Kc=function(){const t=!!lmn_admin.pro_available;return(0,e.createElement)("main",{className:"py-[2.43rem]"},(0,e.createElement)("div",{className:"max-w-3xl mx-auto px-6 lg:max-w-screen-2xl"},(0,e.createElement)("div",{className:"gap-4 items-start lg:grid-cols-5 lg:gap-0 xl:gap-0 rounded-md bg-white overflow-hidden shadow-sm py-8 px-4"},(0,e.createElement)("div",{className:""},(0,e.createElement)("section",{"aria-labelledby":"section-1-title h-full"},(0,e.createElement)("div",{class:"w-fullpx-4 grid sm:grid-cols-2 large-grid extralarge-grid md:grid-cols-3"},(0,e.createElement)("div",{class:`mx-4 bg-[#023A2E] rounded-[8px] flex ${!0===t?"justify-center":"justify-between"} flex-col mb-16 `},(0,e.createElement)("div",{className:"px-8 pt-16 pb-10 text-center responsive-box"},!0===t?(0,e.createElement)("div",{className:"flex flex-col items-center justify-start"},(0,e.createElement)("svg",{className:"mb-4",width:"64",height:"64",viewBox:"0 0 128 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{filter:"url(#filter0_d_1525_6)"},(0,e.createElement)("path",{opacity:"0.2",d:"M29.4453 77.4454L50.5553 98.5554L25.2403 107.755C24.5424 108.012 23.7856 108.064 23.0593 107.904C22.333 107.744 21.6676 107.38 21.1418 106.854C20.616 106.328 20.2516 105.663 20.0919 104.936C19.9322 104.21 19.9837 103.453 20.2403 102.755L29.4453 77.4454ZM98.8553 75.0854L52.9153 29.1454C52.452 28.6822 51.8794 28.3434 51.2504 28.1602C50.6214 27.977 49.9563 27.9555 49.3168 28.0976C48.6773 28.2396 48.0839 28.5407 47.5916 28.973C47.0993 29.4052 46.7239 29.9546 46.5003 30.5704L39.0503 51.0704L76.9603 88.9804L97.4603 81.5304C98.0795 81.3056 98.6316 80.9274 99.0649 80.4312C99.4982 79.9351 99.7986 79.3371 99.938 78.6932C100.077 78.0494 100.051 77.3807 99.8618 76.7498C99.6724 76.1188 99.3262 75.5462 98.8553 75.0854Z",fill:"#D9F5EC"}),(0,e.createElement)("path",{d:"M55.7454 26.315C54.8059 25.378 53.6456 24.6927 52.3714 24.3224C51.0973 23.9521 49.7504 23.9086 48.455 24.1961C47.1597 24.4836 45.9576 25.0927 44.9597 25.9672C43.9618 26.8418 43.2003 27.9536 42.7454 29.2L16.5004 101.39C16.0692 102.58 15.93 103.857 16.0943 105.112C16.2586 106.368 16.7217 107.565 17.4446 108.605C18.1676 109.644 19.1294 110.495 20.2492 111.086C21.3691 111.677 22.6143 111.99 23.8804 112C24.8126 111.994 25.7365 111.824 26.6104 111.5L98.7954 85.25C100.042 84.7956 101.155 84.0345 102.03 83.0369C102.905 82.0393 103.514 80.8373 103.802 79.5418C104.09 78.2464 104.047 76.8993 103.677 75.6249C103.307 74.3505 102.622 73.1898 101.685 72.25L55.7454 26.315ZM51.5804 93.92L34.0804 76.42L40.6604 58.315L69.6854 87.34L51.5804 93.92ZM24.0804 103.92L31.0804 84.715L43.3054 96.94L24.0804 103.92ZM78.0004 84.32L43.6804 50L50.1804 32.065L95.8954 77.78L78.0004 84.32ZM80.0004 36C80.0755 33.2959 80.7302 30.6393 81.9204 28.21C84.5704 22.915 89.5704 20 96.0004 20C99.3504 20 101.5 18.855 102.825 16.395C103.523 15.0187 103.923 13.5111 104 11.97C104.004 10.9091 104.43 9.8933 105.183 9.14597C105.936 8.39863 106.955 7.98102 108.015 7.985C109.076 7.98898 110.092 8.41422 110.839 9.16718C111.587 9.92014 112.004 10.9391 112 12C112 18.43 107.74 28 96.0004 28C92.6504 28 90.5004 29.145 89.1754 31.605C88.4777 32.9813 88.0774 34.4889 88.0004 36.03C87.9984 36.5553 87.893 37.075 87.6902 37.5596C87.4873 38.0441 87.191 38.484 86.8182 38.854C86.4454 39.2241 86.0033 39.5171 85.5173 39.7163C85.0312 39.9155 84.5107 40.017 83.9854 40.015C83.4601 40.013 82.9403 39.9076 82.4558 39.7048C81.9712 39.5019 81.5314 39.2056 81.1613 38.8328C80.7913 38.46 80.4983 38.0179 80.2991 37.5319C80.0999 37.0458 79.9984 36.5253 80.0004 36ZM68.0004 20V8C68.0004 6.93913 68.4218 5.92172 69.1719 5.17157C69.9221 4.42143 70.9395 4 72.0004 4C73.0612 4 74.0787 4.42143 74.8288 5.17157C75.579 5.92172 76.0004 6.93913 76.0004 8V20C76.0004 21.0609 75.579 22.0783 74.8288 22.8284C74.0787 23.5786 73.0612 24 72.0004 24C70.9395 24 69.9221 23.5786 69.1719 22.8284C68.4218 22.0783 68.0004 21.0609 68.0004 20ZM118.83 61.17C119.202 61.5416 119.496 61.9828 119.697 62.4682C119.898 62.9537 120.001 63.4739 120.001 63.9993C120.001 64.5246 119.897 65.0448 119.696 65.53C119.494 66.0153 119.2 66.4562 118.828 66.8275C118.456 67.1988 118.015 67.4933 117.53 67.6941C117.044 67.8949 116.524 67.9982 115.999 67.998C115.473 67.9977 114.953 67.894 114.468 67.6928C113.983 67.4915 113.542 67.1966 113.17 66.825L105.17 58.825C104.42 58.0744 103.998 57.0565 103.998 55.995C103.998 54.9335 104.42 53.9156 105.17 53.165C105.921 52.4144 106.939 51.9928 108 51.9928C109.062 51.9928 110.08 52.4144 110.83 53.165L118.83 61.17ZM121.265 39.795L109.265 43.795C108.259 44.1305 107.16 44.0524 106.211 43.578C105.262 43.1035 104.541 42.2715 104.205 41.265C103.87 40.2585 103.948 39.16 104.422 38.211C104.897 37.2621 105.729 36.5405 106.735 36.205L118.735 32.205C119.742 31.8695 120.84 31.9476 121.789 32.422C122.738 32.8965 123.46 33.7285 123.795 34.735C124.131 35.7415 124.053 36.84 123.578 37.789C123.104 38.7379 122.272 39.4595 121.265 39.795Z",fill:"#D9F5EC"})),(0,e.createElement)("defs",null,(0,e.createElement)("filter",{id:"filter0_d_1525_6",x:"-4",y:"0",width:"136",height:"136",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},(0,e.createElement)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,e.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,e.createElement)("feOffset",{dy:"4"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"2"}),(0,e.createElement)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,e.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,e.createElement)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1525_6"}),(0,e.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1525_6",result:"shape"})))),(0,e.createElement)("h1",{className:"text-[#1BD8B9] text-[16px] font-medium text-center mb-5"},"All the pro features are unlocked!")):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"bg-[#D9F5EC] inline-block py-2.5 px-3 rounded-[8px] mb-4"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},(0,e.createElement)("path",{d:"M28.5752 8.92802C28.3637 8.74362 28.1022 8.62624 27.8238 8.59077C27.5455 8.5553 27.2629 8.60334 27.0119 8.7288L21.1279 11.6585L16.2154 3.49872C16.0891 3.28934 15.9109 3.11614 15.698 2.99591C15.4851 2.87568 15.2447 2.8125 15.0002 2.8125C14.7557 2.8125 14.5153 2.87568 14.3024 2.99591C14.0895 3.11614 13.9112 3.28934 13.7849 3.49872L8.87244 11.662L2.9908 8.73232C2.74042 8.60797 2.45889 8.56034 2.18154 8.59541C1.90419 8.63049 1.64338 8.74669 1.43183 8.92945C1.22028 9.11221 1.06742 9.35337 0.992434 9.62269C0.917448 9.892 0.923675 10.1775 1.01033 10.4433L5.34627 23.7276C5.38987 23.8611 5.46288 23.9831 5.55992 24.0845C5.65696 24.186 5.77555 24.2643 5.90694 24.3138C6.03832 24.3633 6.17914 24.3827 6.31901 24.3705C6.45887 24.3583 6.59421 24.3148 6.71502 24.2433C6.74432 24.2257 9.7408 22.4995 15.0002 22.4995C20.2596 22.4995 23.256 24.2257 23.283 24.2421C23.4038 24.3143 23.5394 24.3584 23.6796 24.371C23.8198 24.3837 23.9611 24.3646 24.0929 24.3151C24.2248 24.2657 24.3438 24.1872 24.4411 24.0855C24.5385 23.9838 24.6117 23.8615 24.6553 23.7276L28.9912 10.4468C29.0803 10.1809 29.0884 9.89454 29.0143 9.62409C28.9402 9.35364 28.7874 9.11134 28.5752 8.92802ZM23.2033 22.128C21.7971 21.5315 18.9939 20.6245 15.0002 20.6245C11.0064 20.6245 8.2033 21.5315 6.79705 22.128L3.13026 10.8979L8.4119 13.5311C8.73159 13.6888 9.09874 13.721 9.44101 13.6215C9.78328 13.5219 10.0759 13.2978 10.2611 12.9933L15.0002 5.11591L19.7392 12.9909C19.9247 13.295 20.217 13.5187 20.559 13.6182C20.9009 13.7177 21.2677 13.6858 21.5873 13.5288L26.8701 10.8979L23.2033 22.128ZM20.6099 18.378C20.5717 18.5949 20.4583 18.7914 20.2897 18.933C20.121 19.0747 19.9079 19.1524 19.6877 19.1526C19.6327 19.1526 19.5778 19.1479 19.5236 19.1386C16.5291 18.6245 13.4689 18.6245 10.4744 19.1386C10.2295 19.1818 9.97745 19.1259 9.77372 18.9833C9.56999 18.8407 9.43127 18.6229 9.38807 18.378C9.34487 18.1331 9.40073 17.8811 9.54336 17.6773C9.68599 17.4736 9.9037 17.3349 10.1486 17.2917C13.3587 16.7401 16.6393 16.7401 19.8494 17.2917C20.0938 17.3346 20.3113 17.4727 20.4541 17.6757C20.5968 17.8786 20.6533 18.13 20.6111 18.3745L20.6099 18.378Z",fill:"#023A2E"}))),(0,e.createElement)("h1",{className:"text-[#1BD8B9] text-[17px] font-medium text-center mb-5"},"More powerful options"),(0,e.createElement)("div",{className:"flex flex-col flex-wrap content-center"},(0,e.createElement)("div",{className:"inline-box-flex inline-size-auto"},(0,e.createElement)(cc,null),(0,e.createElement)("span",{className:"ml-3 mb-[12px] text-[#D9F5EC] text-[16px] noto-serif responsive-span"},"Advanced social login")),(0,e.createElement)("div",{className:"inline-box-flex inline-size-auto"},(0,e.createElement)(cc,null),(0,e.createElement)("span",{className:"ml-3 mb-[12px] text-[#D9F5EC] text-[16px] noto-serif responsive-span"},"Express login - WC")),(0,e.createElement)("div",{className:"inline-box-flex inline-size-auto"},(0,e.createElement)(cc,null),(0,e.createElement)("span",{className:"ml-3 mb-[12px] text-[#D9F5EC] text-[16px] noto-serif responsive-span"},"Express login - EDD")),(0,e.createElement)("div",{className:"inline-box-flex inline-size-auto"},(0,e.createElement)(cc,null),(0,e.createElement)("span",{className:"ml-3 mb-[12px] text-[#D9F5EC] text-[16px] noto-serif responsive-span"},"24/7 Priority Support"))))),!t&&(0,e.createElement)("div",{className:"bg-black py-3 text-center rounded-b-[8px] border-t-[2px] border-t-[#000000] "},(0,e.createElement)("a",{href:"https://wptownhall.com/login-me-now/pricing/",target:"_blank"},(0,e.createElement)("button",{type:"button",className:"bg-[#EDEDED] px-6 py-[0.4rem] text-[#023A2E] text-[13px] font-semibold rounded-[8px]"},"Upgrade to PRO")))),(0,e.createElement)(Pc,{colorChange:!1,proItem:!1,none:!1}),(0,e.createElement)(zc,{colorChange:!1,proItem:!1,none:!1}),(0,e.createElement)(Lc,{colorChange:!1,proItem:!1,none:!1}),(0,e.createElement)(Mc,{colorChange:!1,proItem:!0,none:!1,isAvailable:!1}),(0,e.createElement)(Rc,{colorChange:!1,proItem:!0,none:!1,isAvailable:!1}),(0,e.createElement)($c,{colorChange:!1,proItem:!0,none:!1,isAvailable:!1}),(0,e.createElement)(Zc,{colorChange:!1,proItem:!1,none:!1,isAvailable:!1}),(0,e.createElement)(Gc,{colorChange:!1,proItem:!1,none:!1}),(0,e.createElement)(Bc,{colorChange:!1,proItem:!1,none:!1,isAvailable:!0})))))))},Xc={"access-links":(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 3V1M9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7M9 3C10.1046 3 11 3.89543 11 5C11 6.10457 10.1046 7 9 7M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11M3 15C1.89543 15 1 14.1046 1 13C1 11.8954 1.89543 11 3 11M3 15V17M3 11V1M9 7V17M15 15C16.1046 15 17 14.1046 17 13C17 11.8954 16.1046 11 15 11M15 15C13.8954 15 13 14.1046 13 13C13 11.8954 13.8954 11 15 11M15 15V17M15 11V1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),"global-settings":(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",fill:"none",width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8.32463 2.31731C8.75103 0.560897 11.249 0.560897 11.6754 2.31731C11.9508 3.45193 13.2507 3.99038 14.2478 3.38285C15.7913 2.44239 17.5576 4.2087 16.6172 5.75218C16.0096 6.74925 16.5481 8.04918 17.6827 8.32463C19.4391 8.75103 19.4391 11.249 17.6827 11.6754C16.5481 11.9508 16.0096 13.2507 16.6172 14.2478C17.5576 15.7913 15.7913 17.5576 14.2478 16.6172C13.2507 16.0096 11.9508 16.5481 11.6754 17.6827C11.249 19.4391 8.75103 19.4391 8.32463 17.6827C8.04918 16.5481 6.74926 16.0096 5.75219 16.6172C4.2087 17.5576 2.44239 15.7913 3.38285 14.2478C3.99038 13.2507 3.45193 11.9508 2.31731 11.6754C0.560897 11.249 0.560897 8.75103 2.31731 8.32463C3.45193 8.04918 3.99037 6.74926 3.38285 5.75218C2.44239 4.2087 4.2087 2.44239 5.75219 3.38285C6.74926 3.99037 8.04918 3.45193 8.32463 2.31731Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M13 10C13 11.6569 11.6569 13 10 13C8.34315 13 7 11.6569 7 10C7 8.34315 8.34315 7 10 7C11.6569 7 13 8.34315 13 10Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),"social-login":(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20px",height:"20px"}," ",(0,e.createElement)("path",{d:"M 18 2 A 3 3 0 0 0 15 5 A 3 3 0 0 0 15.054688 5.5605469 L 7.9394531 9.7109375 A 3 3 0 0 0 6 9 A 3 3 0 0 0 3 12 A 3 3 0 0 0 6 15 A 3 3 0 0 0 7.9355469 14.287109 L 15.054688 18.439453 A 3 3 0 0 0 15 19 A 3 3 0 0 0 18 22 A 3 3 0 0 0 21 19 A 3 3 0 0 0 18 16 A 3 3 0 0 0 16.0625 16.712891 L 8.9453125 12.560547 A 3 3 0 0 0 9 12 A 3 3 0 0 0 8.9453125 11.439453 L 16.060547 7.2890625 A 3 3 0 0 0 18 8 A 3 3 0 0 0 21 5 A 3 3 0 0 0 18 2 z"})),"google-login":(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",height:"25px",width:"25px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 326667 333333","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision","image-rendering":"optimizeQuality","fill-rule":"evenodd","clip-rule":"evenodd"},(0,e.createElement)("path",{d:"M326667 170370c0-13704-1112-23704-3518-34074H166667v61851h91851c-1851 15371-11851 38519-34074 54074l-311 2071 49476 38329 3428 342c31481-29074 49630-71852 49630-122593m0 0z",fill:"#4285f4"}),(0,e.createElement)("path",{d:"M166667 333333c44999 0 82776-14815 110370-40370l-52593-40742c-14074 9815-32963 16667-57777 16667-44074 0-81481-29073-94816-69258l-1954 166-51447 39815-673 1870c27407 54444 83704 91852 148890 91852z",fill:"#34a853"}),(0,e.createElement)("path",{d:"M71851 199630c-3518-10370-5555-21482-5555-32963 0-11482 2036-22593 5370-32963l-93-2209-52091-40455-1704 811C6482 114444 1 139814 1 166666s6482 52221 17777 74814l54074-41851m0 0z",fill:"#fbbc04"}),(0,e.createElement)("path",{d:"M166667 64444c31296 0 52406 13519 64444 24816l47037-45926C249260 16482 211666 1 166667 1 101481 1 45185 37408 17777 91852l53889 41853c13520-40185 50927-69260 95001-69260m0 0z",fill:"#ea4335"})),"twitter-login":(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",height:"25px",width:"25px",fill:"#00acee",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 310 310"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("g",{id:"XMLID_826_"}," ",(0,e.createElement)("path",{id:"XMLID_827_",d:"M302.973,57.388c-4.87,2.16-9.877,3.983-14.993,5.463c6.057-6.85,10.675-14.91,13.494-23.73 c0.632-1.977-0.023-4.141-1.648-5.434c-1.623-1.294-3.878-1.449-5.665-0.39c-10.865,6.444-22.587,11.075-34.878,13.783 c-12.381-12.098-29.197-18.983-46.581-18.983c-36.695,0-66.549,29.853-66.549,66.547c0,2.89,0.183,5.764,0.545,8.598 C101.163,99.244,58.83,76.863,29.76,41.204c-1.036-1.271-2.632-1.956-4.266-1.825c-1.635,0.128-3.104,1.05-3.93,2.467 c-5.896,10.117-9.013,21.688-9.013,33.461c0,16.035,5.725,31.249,15.838,43.137c-3.075-1.065-6.059-2.396-8.907-3.977 c-1.529-0.851-3.395-0.838-4.914,0.033c-1.52,0.871-2.473,2.473-2.513,4.224c-0.007,0.295-0.007,0.59-0.007,0.889 c0,23.935,12.882,45.484,32.577,57.229c-1.692-0.169-3.383-0.414-5.063-0.735c-1.732-0.331-3.513,0.276-4.681,1.597 c-1.17,1.32-1.557,3.16-1.018,4.84c7.29,22.76,26.059,39.501,48.749,44.605c-18.819,11.787-40.34,17.961-62.932,17.961 c-4.714,0-9.455-0.277-14.095-0.826c-2.305-0.274-4.509,1.087-5.294,3.279c-0.785,2.193,0.047,4.638,2.008,5.895 c29.023,18.609,62.582,28.445,97.047,28.445c67.754,0,110.139-31.95,133.764-58.753c29.46-33.421,46.356-77.658,46.356-121.367 c0-1.826-0.028-3.67-0.084-5.508c11.623-8.757,21.63-19.355,29.773-31.536c1.237-1.85,1.103-4.295-0.33-5.998 C307.394,57.037,305.009,56.486,302.973,57.388z"})," ")," ")),license:(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",width:"20",height:"20"},(0,e.createElement)("path",{d:"M6,9C4.3,9,3,7.7,3,6s1.3-3,3-3s3,1.3,3,3S7.7,9,6,9z M6,5C5.4,5,5,5.4,5,6s0.4,1,1,1s1-0.4,1-1S6.6,5,6,5z"}),(0,e.createElement)("path",{d:"M24,24h-6.4L15,21.4V20h-3v-3H9v-3.3C8.4,13.9,7.7,14,7,14c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7c0,0.5,0,1-0.1,1.4 L24,18.6V24z M18.4,22H22v-2.6L11.6,9l0.2-0.6C11.9,8,12,7.5,12,7c0-2.8-2.2-5-5-5S2,4.2,2,7s2.2,5,5,5c0.7,0,1.4-0.1,2.1-0.4 l0.6-0.3l1.3,1.3V15h3v3h3v2.6L18.4,22z"}))};function qc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Yc=()=>{const t=Ae(),n=Le((e=>e.enableGoogleLogin)),r=!1!==n;return(0,e.createElement)("section",{className:"block pb-6 pt-12 justify-between"},(0,e.createElement)("div",{className:"mr-16 w-full flex items-center"},(0,e.createElement)("h3",{className:"p-0 flex-1 justify-right inline-flex text-[24px] leading-6 font-semibold text-slate-800"},(0,be.__)("Google","login-me-now")),(0,e.createElement)(Nc,{checked:r,onChange:()=>{let e;e=!1===n,t({type:"UPDATE_ENABLE_GOOGLE_LOGIN",payload:e});const r=new window.FormData;r.append("action","login_me_now_update_admin_setting"),r.append("security",lmn_admin.update_nonce),r.append("key","google_login"),r.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((()=>{t({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:qc(r?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:qc(r?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:qc(r?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("p",{className:"mt-6 w-9/12 text-[16px] text-slate-500 tablet:w-full leading-[1.7]"},(0,be.__)("Enable google login","login-me-now")))};(0,be.__)("7 Days","login-me-now"),(0,be.__)("30 Days","login-me-now"),(0,be.__)("60 Days","login-me-now"),(0,be.__)("90 Days","login-me-now");var Qc=()=>{const t=!1!==Le((e=>e.enableGoogleLogin));let n=Le((e=>e.enableGoogleClientID));const r=Ae();return(0,e.createElement)("section",{className:(t?"block":"hidden")+" text-[16px] border-b border-solid border-slate-200 pt-6 pb-12 justify-between pr-[10%]"},(0,e.createElement)("div",{className:"mr-16 w-full flex space-y-3"},(0,e.createElement)("span",{class:"text-black-400 w-[30%]"},(0,be.__)("Enter","login-me-now"),(0,e.createElement)("a",{class:"text-[#2271B1] text-[16px]",target:"_blank",href:"https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid"},(0,be.__)(" Google client ID","login-me-now")),(0,be.__)(" here ","login-me-now")),(0,e.createElement)("input",{onChange:e=>{r({type:"UPDATE_GOOGLE_CLIENT_ID",payload:e.target.value});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","google_client_id"),t.append("value",e.target.value),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{r({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:"block h-[50px] !p-3 !border-slate-200 w-[70%] !mt-0",value:n,type:"text",name:"name",placeholder:"ex: ********-**********.apps.googleusercontent.com"})),(0,e.createElement)("span",{class:"text-black-400 w-[30%] text-[16px]"},(0,be.__)("Follow the ","login-me-now"),(0,e.createElement)("a",{class:"text-[#2271B1] underline",target:"_blank",href:"https://youtu.be/qS4dY7syQwA?t=471"},(0,be.__)("tutorial","login-me-now"))))};function Jc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var eu=()=>{const t=Ae(),n=Le((e=>e.enableGoogleNativeLogin)),r=!1!==n,o=!1!==Le((e=>e.enableGoogleLogin));return(0,e.createElement)("section",{className:(o?"block":"hidden")+" border-b border-solid border-slate-200 py-12 justify-between"},(0,e.createElement)("div",{className:"mr-16 w-full flex items-center"},(0,e.createElement)("h3",{className:"p-0 flex-1 justify-right inline-flex text-[20px] leading-6 font-semibold text-slate-800"},(0,be.__)("Show in native login page","login-me-now")),(0,e.createElement)(Nc,{checked:r,onChange:()=>{let e;e=!1===n,t({type:"UPDATE_ENABLE_GOOGLE_NATIVE_LOGIN",payload:e});const r=new window.FormData;r.append("action","login_me_now_update_admin_setting"),r.append("security",lmn_admin.update_nonce),r.append("key","google_native_login"),r.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((()=>{t({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:Jc(r?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Jc(r?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Jc(r?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("p",{className:"mt-6 w-9/12 text-[16px] text-slate-500 tablet:w-full leading-[1.7]"},(0,be.__)("Check, what would it look like! See ","login-me-now"),(0,e.createElement)("a",{class:"text-[#2271B1]",target:"_blank",href:"https://try.loginmenow.com/wp-admin/"},(0,be.__)(" demo","login-me-now"))))},tu=function(t){let{extraClass:n}=t;return(0,e.createElement)("span",{className:`bg-[#0DA071] text-white ml-5 rounded-[4px] text-[14px] py-[4] px-[10px] ${n}`},"Pro")};function nu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var ru=()=>{const t=Ae(),n=Le((e=>e.enableGoogleUpdateExistingUserData)),r=!!lmn_admin.pro_available,o=!(!1===n||!r),a=!1!==Le((e=>e.enableGoogleLogin));return(0,e.createElement)("section",{className:`${a?"block":"hidden"} login-me-now-dep-field-${a} border-b border-solid border-slate-200 py-12 justify-between`},(0,e.createElement)("div",{className:"mr-16 w-full flex items-center "},(0,e.createElement)("h3",{className:"p-0 flex-1 justify-right inline-flex text-[20px] leading-6 font-semibold text-slate-800"},(0,be.__)("Update existing user name","login-me-now"),r?"":(0,e.createElement)(tu,null)),(0,e.createElement)(Is,{title:!1===r?"Upgrade to Pro":""},(0,e.createElement)(Nc,{checked:o,onChange:!0===r&&(()=>{let e;e=!1===n,t({type:"UPDATE_ENABLE_GOOGLE_UPDATE_EXISTING_USER_DATA",payload:e});const r=new window.FormData;r.append("action","login_me_now_update_admin_setting"),r.append("security",lmn_admin.update_nonce),r.append("key","google_update_existing_user_data"),r.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((()=>{t({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))}),className:nu(o?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:nu(o?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:nu(o?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")})))),(0,e.createElement)("p",{className:"mt-6 w-9/12 text-[16px] text-slate-500 tablet:w-full leading-[1.7]"},(0,be.__)("Automatically retrieve the existing user first, last, nick & display name from google account upon login using gmail","login-me-now")))};function ou(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var au=()=>{const t=Ae(),n=(lmn_admin.pro_available,Le((e=>e.enableGoogleCancelOnTapOutside))),r=!1!==n,o=!1!==Le((e=>e.enableGoogleOneTap)),a=!1!==Le((e=>e.enableGoogleLogin));return(0,e.createElement)("section",{className:`${a?"block":"hidden"} border-b border-solid border-slate-200 ${!1===o?"":"py-12"}  justify-between`},(0,e.createElement)("div",{className:(!1===o?"hidden":"")+" "},(0,e.createElement)("div",{className:"mr-16 w-full flex items-center"},(0,e.createElement)("h3",{className:"p-0 flex-1 justify-right inline-flex text-[20px] leading-6 font-semibold text-slate-800"},(0,be.__)("One Tap Prompt Behavior","login-me-now")),(0,e.createElement)(Nc,{checked:r,onChange:()=>{let e;e=!1===n,t({type:"UPDATE_ENABLE_CANCEL_ON_TAP_OUTSIDE",payload:e});const r=new window.FormData;r.append("action","login_me_now_update_admin_setting"),r.append("security",lmn_admin.update_nonce),r.append("key","google_cancel_on_tap_outside"),r.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((()=>{t({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:ou(r?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:ou(r?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:ou(r?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),(0,e.createElement)("p",{className:"mt-6 w-9/12 text-[16px] text-slate-500 tablet:w-full leading-[1.7]"},(0,be.__)("Enable automatic closing on outside clicks","login-me-now"))))};function iu(e,n){let[r,o]=(0,t.useState)(e),a=E(e);return w((()=>o(a.current)),[a,o,...n]),r}var lu=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(lu||{});let su=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var cu=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(cu||{}),uu=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(uu||{}),du=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(du||{}),fu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(fu||{});function pu(e,t=0){var n;return e!==(null==(n=$(e))?void 0:n.body)&&l(t,{0(){return e.matches(su)},1(){let t=e;for(;null!==t;){if(t.matches(su))return!0;t=t.parentElement}return!1}})}var mu=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(mu||{});function hu(e,n,r){let o=E(n);(0,t.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)}),[e,r])}function gu(e,n,r=!0){let o=(0,t.useRef)(!1);function a(t,r){if(!o.current||t.defaultPrevented)return;let a=r(t);if(null===a||!a.getRootNode().contains(a)||!a.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of i){if(null===e)continue;let n=e instanceof HTMLElement?e:e.current;if(null!=n&&n.contains(a)||t.composed&&t.composedPath().includes(n))return}return!pu(a,fu.Loose)&&-1!==a.tabIndex&&t.preventDefault(),n(t,a)}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{o.current=r}))}),[r]);let i=(0,t.useRef)(null);hu("pointerdown",(e=>{var t,n;o.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),hu("mousedown",(e=>{var t,n;o.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),hu("click",(e=>{i.current&&(a(e,(()=>i.current)),i.current=null)}),!0),hu("touchend",(e=>a(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,n,r){let o=E((e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,t.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)}),[e,r])}("blur",0,!0)}function vu(e){return[e.screenX,e.screenY]}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0)),["textarea","input"].join(",");let bu=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function yu(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let i=a?null!=(n=o.innerText)?n:"":r;return bu.test(i)&&(i=i.replace(bu,"")),i}var xu=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xu||{}),wu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(wu||{}),Eu=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Eu||{}),Cu=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Cu||{});function Su(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let _u={1(e){return e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=Su(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),a=o?e.options.indexOf(o):-1;return-1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Su(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Su(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Ou=(0,t.createContext)(null);function Nu(e){let n=(0,t.useContext)(Ou);if(null===n){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Nu),t}return n}Ou.displayName="ListboxActionsContext";let ku=(0,t.createContext)(null);function Au(e){let n=(0,t.useContext)(ku);if(null===n){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Au),t}return n}function Pu(e,t){return l(t.type,_u,e,t)}ku.displayName="ListboxDataContext";let Fu=t.Fragment,Tu=u.RenderStrategy|u.Static,Lu=h((function(e,n){let{value:r,defaultValue:o,form:a,name:i,onChange:s,by:c=((e,t)=>e===t),disabled:u=!1,horizontal:d=!1,multiple:p=!1,...m}=e;const h=d?"horizontal":"vertical";let v=O(n),[b=(p?[]:void 0),y]=Cc(r,s,o),[x,E]=(0,t.useReducer)(Pu,{dataRef:(0,t.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),S=(0,t.useRef)({static:!1,hold:!1}),_=(0,t.useRef)(null),N=(0,t.useRef)(null),k=(0,t.useRef)(null),A=C("string"==typeof c?(e,t)=>{let n=c;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:c),P=(0,t.useCallback)((e=>l(F.mode,{1:()=>b.some((t=>A(t,e))),0:()=>A(b,e)})),[b]),F=(0,t.useMemo)((()=>({...x,value:b,disabled:u,mode:p?1:0,orientation:h,compare:A,isSelected:P,optionsPropsRef:S,labelRef:_,buttonRef:N,optionsRef:k})),[b,u,p,x]);w((()=>{x.dataRef.current=F}),[F]),gu([F.buttonRef,F.optionsRef],((e,t)=>{var n;E({type:1}),pu(t,fu.Loose)||(e.preventDefault(),null==(n=F.buttonRef.current)||n.focus())}),0===F.listboxState);let T=(0,t.useMemo)((()=>({open:0===F.listboxState,disabled:u,value:b})),[F,u,b]),L=C((e=>{let t=F.options.find((t=>t.id===e));t&&H(t.dataRef.current.value)})),M=C((()=>{if(null!==F.activeOptionIndex){let{dataRef:e,id:t}=F.options[F.activeOptionIndex];H(e.current.value),E({type:2,focus:lu.Specific,id:t})}})),R=C((()=>E({type:0}))),j=C((()=>E({type:1}))),$=C(((e,t,n)=>e===lu.Specific?E({type:2,focus:lu.Specific,id:t,trigger:n}):E({type:2,focus:e,trigger:n}))),V=C(((e,t)=>(E({type:5,id:e,dataRef:t}),()=>E({type:6,id:e})))),B=C((e=>(E({type:7,id:e}),()=>E({type:7,id:null})))),H=C((e=>l(F.mode,{0(){return null==y?void 0:y(e)},1(){let t=F.value.slice(),n=t.findIndex((t=>A(t,e)));return-1===n?t.push(e):t.splice(n,1),null==y?void 0:y(t)}}))),z=C((e=>E({type:3,value:e}))),U=C((()=>E({type:4}))),G=(0,t.useMemo)((()=>({onChange:H,registerOption:V,registerLabel:B,goToOption:$,closeListbox:j,openListbox:R,selectActiveOption:M,selectOption:L,search:z,clearSearch:U})),[]),W={ref:v},Z=(0,t.useRef)(null),K=Be();return(0,t.useEffect)((()=>{Z.current&&void 0!==o&&K.addEventListener(Z.current,"reset",(()=>{null==y||y(o)}))}),[Z,y]),t.createElement(Ou.Provider,{value:G},t.createElement(ku.Provider,{value:F},t.createElement(D,{value:l(F.listboxState,{0:I.Open,1:I.Closed})},null!=i&&null!=b&&xc({[i]:b}).map((([e,n],r)=>t.createElement(yc,{features:bc.Hidden,ref:0===r?e=>{var t;Z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...g({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:a,name:e,value:n})}))),f({ourProps:W,theirProps:m,slot:T,defaultTag:Fu,name:"Listbox"}))))})),Iu=h((function(e,n){var r;let o=A(),{id:a=`headlessui-listbox-button-${o}`,...i}=e,l=Au("Listbox.Button"),s=Nu("Listbox.Button"),c=O(l.buttonRef,n),u=Be(),d=C((e=>{switch(e.key){case P.Space:case P.Enter:case P.ArrowDown:e.preventDefault(),s.openListbox(),u.nextFrame((()=>{l.value||s.goToOption(lu.First)}));break;case P.ArrowUp:e.preventDefault(),s.openListbox(),u.nextFrame((()=>{l.value||s.goToOption(lu.Last)}))}})),p=C((e=>{e.key===P.Space&&e.preventDefault()})),m=C((e=>{if(F(e.currentTarget))return e.preventDefault();0===l.listboxState?(s.closeListbox(),u.nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),s.openListbox())})),h=iu((()=>{if(l.labelId)return[l.labelId,a].join(" ")}),[l.labelId,a]),g=(0,t.useMemo)((()=>({open:0===l.listboxState,disabled:l.disabled,value:l.value})),[l]);return f({ourProps:{ref:c,id:a,type:j(e,l.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(r=l.optionsRef.current)?void 0:r.id,"aria-expanded":0===l.listboxState,"aria-labelledby":h,disabled:l.disabled,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:i,slot:g,defaultTag:"button",name:"Listbox.Button"})})),Mu=h((function(e,n){let r=A(),{id:o=`headlessui-listbox-label-${r}`,...a}=e,i=Au("Listbox.Label"),l=Nu("Listbox.Label"),s=O(i.labelRef,n);w((()=>l.registerLabel(o)),[o]);let c=C((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,t.useMemo)((()=>({open:0===i.listboxState,disabled:i.disabled})),[i]);return f({ourProps:{ref:s,id:o,onClick:c},theirProps:a,slot:u,defaultTag:"label",name:"Listbox.Label"})})),Du=h((function(e,n){var r;let o=A(),{id:a=`headlessui-listbox-options-${o}`,...i}=e,s=Au("Listbox.Options"),c=Nu("Listbox.Options"),u=O(s.optionsRef,n),d=Be(),p=Be(),m=M(),h=null!==m?(m&I.Open)===I.Open:0===s.listboxState;(0,t.useEffect)((()=>{var e;let t=s.optionsRef.current;t&&0===s.listboxState&&t!==(null==(e=$(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[s.listboxState,s.optionsRef]);let g=C((e=>{switch(p.dispose(),e.key){case P.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),c.search(e.key);case P.Enter:if(e.preventDefault(),e.stopPropagation(),null!==s.activeOptionIndex){let{dataRef:e}=s.options[s.activeOptionIndex];c.onChange(e.current.value)}0===s.mode&&(c.closeListbox(),je().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case l(s.orientation,{vertical:P.ArrowDown,horizontal:P.ArrowRight}):return e.preventDefault(),e.stopPropagation(),c.goToOption(lu.Next);case l(s.orientation,{vertical:P.ArrowUp,horizontal:P.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),c.goToOption(lu.Previous);case P.Home:case P.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(lu.First);case P.End:case P.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(lu.Last);case P.Escape:return e.preventDefault(),e.stopPropagation(),c.closeListbox(),d.nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case P.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(c.search(e.key),p.setTimeout((()=>c.clearSearch()),350))}})),v=iu((()=>{var e,t,n;return null!=(n=null==(e=s.labelRef.current)?void 0:e.id)?n:null==(t=s.buttonRef.current)?void 0:t.id}),[s.labelRef.current,s.buttonRef.current]),b=(0,t.useMemo)((()=>({open:0===s.listboxState})),[s]);return f({ourProps:{"aria-activedescendant":null===s.activeOptionIndex||null==(r=s.options[s.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===s.mode||void 0,"aria-labelledby":v,"aria-orientation":s.orientation,id:a,onKeyDown:g,role:"listbox",tabIndex:0,ref:u},theirProps:i,slot:b,defaultTag:"ul",features:Tu,visible:h,name:"Listbox.Options"})})),Ru=h((function(e,n){let r=A(),{id:o=`headlessui-listbox-option-${r}`,disabled:a=!1,value:i,...l}=e,s=Au("Listbox.Option"),c=Nu("Listbox.Option"),u=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===o,d=s.isSelected(i),p=(0,t.useRef)(null),m=function(e){let n=(0,t.useRef)(""),r=(0,t.useRef)("");return C((()=>{let t=e.current;if(!t)return"";let o=t.innerText;if(n.current===o)return r.current;let a=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():yu(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return yu(e).trim()}(t).trim().toLowerCase();return n.current=o,r.current=a,a}))}(p),h=E({disabled:a,value:i,domRef:p,get textValue(){return m()}}),g=O(n,p);w((()=>{if(0!==s.listboxState||!u||0===s.activationTrigger)return;let e=je();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,u,s.listboxState,s.activationTrigger,s.activeOptionIndex]),w((()=>c.registerOption(o,h)),[h,o]);let v=C((e=>{if(a)return e.preventDefault();c.onChange(i),0===s.mode&&(c.closeListbox(),je().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),b=C((()=>{if(a)return c.goToOption(lu.Nothing);c.goToOption(lu.Specific,o)})),y=function(){let e=(0,t.useRef)([-1,-1]);return{wasMoved(t){let n=vu(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=vu(t)}}}(),x=C((e=>y.update(e))),S=C((e=>{y.wasMoved(e)&&(a||u||c.goToOption(lu.Specific,o,0))})),_=C((e=>{y.wasMoved(e)&&(a||u&&c.goToOption(lu.Nothing))})),N=(0,t.useMemo)((()=>({active:u,selected:d,disabled:a})),[u,d,a]);return f({ourProps:{id:o,ref:g,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":d,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:x,onMouseEnter:x,onPointerMove:S,onMouseMove:S,onPointerLeave:_,onMouseLeave:_},theirProps:l,slot:N,defaultTag:"li",name:"Listbox.Option"})})),ju=Object.assign(Lu,{Button:Iu,Label:Mu,Options:Du,Option:Ru});var $u=t.forwardRef((function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Vu={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Vu.F1&&t<=Vu.F12)return!1;switch(t){case Vu.ALT:case Vu.CAPS_LOCK:case Vu.CONTEXT_MENU:case Vu.CTRL:case Vu.DOWN:case Vu.END:case Vu.ESC:case Vu.HOME:case Vu.INSERT:case Vu.LEFT:case Vu.MAC_FF_META:case Vu.META:case Vu.NUMLOCK:case Vu.NUM_CENTER:case Vu.PAGE_DOWN:case Vu.PAGE_UP:case Vu.PAUSE:case Vu.PRINT_SCREEN:case Vu.RIGHT:case Vu.SHIFT:case Vu.UP:case Vu.WIN_KEY:case Vu.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Vu.ZERO&&e<=Vu.NINE)return!0;if(e>=Vu.NUM_ZERO&&e<=Vu.NUM_MULTIPLY)return!0;if(e>=Vu.A&&e<=Vu.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Vu.SPACE:case Vu.QUESTION_MARK:case Vu.NUM_PLUS:case Vu.NUM_MINUS:case Vu.NUM_PERIOD:case Vu.NUM_DIVISION:case Vu.SEMICOLON:case Vu.DASH:case Vu.EQUALS:case Vu.COMMA:case Vu.PERIOD:case Vu.SLASH:case Vu.APOSTROPHE:case Vu.SINGLE_QUOTE:case Vu.OPEN_SQUARE_BRACKET:case Vu.BACKSLASH:case Vu.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Bu=Vu,Hu=function(e){var n,r=e.className,o=e.customizeIcon,a=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,s=e.children;return n="function"==typeof o?o(a):o,t.createElement("span",{className:r,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==n?n:t.createElement("span",{className:vt()(r.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},zu=t.createContext(null);function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Gu="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Wu(e,t){return 0===e.indexOf(t)}function Zu(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Ct({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Wu(n,"aria-"))||t.data&&Wu(n,"data-")||t.attr&&Gu.includes(n))&&(r[n]=e[n])})),r}var Ku=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Xu=void 0;function qu(e,n){var r=e.prefixCls,o=e.invalidate,a=e.item,i=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,m=e.display,h=e.order,g=e.component,v=void 0===g?"div":g,b=St(e,Ku),y=l&&!m;function x(e){c(u,e)}t.useEffect((function(){return function(){x(null)}}),[]);var w,E=i&&a!==Xu?i(a):p;o||(w={opacity:y?0:1,height:y?0:Xu,overflowY:y?"hidden":Xu,order:l?h:Xu,pointerEvents:y?"none":Xu,position:y?"absolute":Xu});var C={};y&&(C["aria-hidden"]=!0);var S=t.createElement(v,(0,ie.Z)({className:vt()(!o&&r,d),style:Ct(Ct({},w),f)},C,b,{ref:n}),E);return l&&(S=t.createElement(ar,{onResize:function(e){x(e.offsetWidth)},disabled:s},S)),S}var Yu=t.forwardRef(qu);Yu.displayName="Item";var Qu=Yu;function Ju(e,n){var r=At(t.useState(n),2),o=r[0],a=r[1];return[o,sr((function(t){e((function(){a(t)}))}))]}var ed=r().createContext(null),td=["component"],nd=["className"],rd=["className"],od=function(e,n){var r=t.useContext(ed);if(!r){var o=e.component,a=void 0===o?"div":o,i=St(e,td);return t.createElement(a,(0,ie.Z)({},i,{ref:n}))}var l=r.className,s=St(r,nd),c=e.className,u=St(e,rd);return t.createElement(ed.Provider,{value:null},t.createElement(Qu,(0,ie.Z)({ref:n,className:vt()(l,c)},s,u)))},ad=t.forwardRef(od);ad.displayName="RawItem";var id=ad,ld=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sd="responsive",cd="invalidate";function ud(e){return"+ ".concat(e.length," ...")}function dd(e,n){var r,o=e.prefixCls,i=void 0===o?"rc-overflow":o,l=e.data,s=void 0===l?[]:l,c=e.renderItem,u=e.renderRawItem,d=e.itemKey,f=e.itemWidth,p=void 0===f?10:f,m=e.ssr,h=e.style,g=e.className,v=e.maxCount,b=e.renderRest,y=e.renderRawRest,x=e.suffix,w=e.component,E=void 0===w?"div":w,C=e.itemComponent,S=e.onVisibleChange,_=St(e,ld),O="full"===m,N=(r=t.useRef(null),function(e){r.current||(r.current=[],function(e){if("undefined"==typeof MessageChannel)Yr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,a.unstable_batchedUpdates)((function(){r.current.forEach((function(e){e()})),r.current=null}))}))),r.current.push(e)}),k=At(Ju(N,null),2),A=k[0],P=k[1],F=A||0,T=At(Ju(N,new Map),2),L=T[0],I=T[1],M=At(Ju(N,0),2),D=M[0],R=M[1],j=At(Ju(N,0),2),$=j[0],V=j[1],B=At(Ju(N,0),2),H=B[0],z=B[1],U=At((0,t.useState)(null),2),G=U[0],W=U[1],Z=At((0,t.useState)(null),2),K=Z[0],X=Z[1],q=t.useMemo((function(){return null===K&&O?Number.MAX_SAFE_INTEGER:K||0}),[K,A]),Y=At((0,t.useState)(!1),2),Q=Y[0],J=Y[1],ee="".concat(i,"-item"),te=Math.max(D,$),ne=v===sd,re=s.length&&ne,oe=v===cd,ae=re||"number"==typeof v&&s.length>v,le=(0,t.useMemo)((function(){var e=s;return re?e=null===A&&O?s:s.slice(0,Math.min(s.length,F/p)):"number"==typeof v&&(e=s.slice(0,v)),e}),[s,p,A,v,re]),se=(0,t.useMemo)((function(){return re?s.slice(q+1):s.slice(le.length)}),[s,le,re,q]),ce=(0,t.useCallback)((function(e,t){var n;return"function"==typeof d?d(e):null!==(n=d&&(null==e?void 0:e[d]))&&void 0!==n?n:t}),[d]),ue=(0,t.useCallback)(c||function(e){return e},[c]);function de(e,t,n){(K!==e||void 0!==t&&t!==G)&&(X(e),n||(J(e<s.length-1),null==S||S(e)),void 0!==t&&W(t))}function fe(e,t){I((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function pe(e){return L.get(ce(le[e],e))}Yt((function(){if(F&&"number"==typeof te&&le){var e=H,t=le.length,n=t-1;if(!t)return void de(0,null);for(var r=0;r<t;r+=1){var o=pe(r);if(O&&(o=o||0),void 0===o){de(r-1,void 0,!0);break}if(e+=o,0===n&&e<=F||r===n-1&&e+pe(n)<=F){de(n,null);break}if(e+te>F){de(r-1,e-o-H+$);break}}x&&pe(0)+H>F&&W(null)}}),[F,L,$,H,ce,le]);var me=Q&&!!se.length,he={};null!==G&&re&&(he={position:"absolute",left:G,top:0});var ge,ve={prefixCls:ee,responsive:re,component:C,invalidate:oe},be=u?function(e,n){var r=ce(e,n);return t.createElement(ed.Provider,{key:r,value:Ct(Ct({},ve),{},{order:n,item:e,itemKey:r,registerSize:fe,display:n<=q})},u(e,n))}:function(e,n){var r=ce(e,n);return t.createElement(Qu,(0,ie.Z)({},ve,{order:n,key:r,item:e,renderItem:ue,itemKey:r,registerSize:fe,display:n<=q}))},ye={order:me?q:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){V(t),R($)},display:me};if(y)y&&(ge=t.createElement(ed.Provider,{value:Ct(Ct({},ve),ye)},y(se)));else{var xe=b||ud;ge=t.createElement(Qu,(0,ie.Z)({},ve,ye),"function"==typeof xe?xe(se):xe)}var we=t.createElement(E,(0,ie.Z)({className:vt()(!oe&&i,g),style:h,ref:n},_),le.map(be),ae?ge:null,x&&t.createElement(Qu,(0,ie.Z)({},ve,{responsive:ne,responsiveDisabled:!re,order:q,className:"".concat(ee,"-suffix"),registerSize:function(e,t){z(t)},display:!0,style:he}),x));return ne&&(we=t.createElement(ar,{onResize:function(e,t){P(t.clientWidth)},disabled:!re},we)),we}var fd=t.forwardRef(dd);fd.displayName="Overflow",fd.Item=id,fd.RESPONSIVE=sd,fd.INVALIDATE=cd;var pd=fd,md=function(e,n){var r,o,a=e.prefixCls,i=e.id,l=e.inputElement,s=e.disabled,c=e.tabIndex,u=e.autoFocus,d=e.autoComplete,f=e.editable,p=e.activeDescendantId,m=e.value,h=e.maxLength,g=e.onKeyDown,v=e.onMouseDown,b=e.onChange,y=e.onPaste,x=e.onCompositionStart,w=e.onCompositionEnd,E=e.open,C=e.attrs,S=l||t.createElement("input",null),_=S,O=_.ref,N=_.props,k=N.onKeyDown,A=N.onChange,P=N.onMouseDown,F=N.onCompositionStart,T=N.onCompositionEnd,L=N.style;return S.props,t.cloneElement(S,Ct(Ct(Ct({type:"search"},N),{},{id:i,ref:Bt(n,O),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:vt()("".concat(a,"-selection-search-input"),null===(r=S)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":E||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":E?p:void 0},C),{},{value:f?m:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:Ct(Ct({},L),{},{opacity:f?null:0}),onKeyDown:function(e){g(e),k&&k(e)},onMouseDown:function(e){v(e),P&&P(e)},onChange:function(e){b(e),A&&A(e)},onCompositionStart:function(e){x(e),F&&F(e)},onCompositionEnd:function(e){w(e),T&&T(e)},onPaste:y}))},hd=t.forwardRef(md);hd.displayName="Input";var gd=hd;function vd(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var bd="undefined"!=typeof window&&window.document&&window.document.documentElement;function yd(e){return["string","number"].includes(yt(e))}function xd(e){var t=void 0;return e&&(yd(e.title)?t=e.title.toString():yd(e.label)&&(t=e.label.toString())),t}function wd(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Ed=function(e){e.preventDefault(),e.stopPropagation()},Cd=function(e){var n,r,o=e.id,a=e.prefixCls,i=e.values,l=e.open,s=e.searchValue,c=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,m=e.showSearch,h=e.autoFocus,g=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,E=e.maxTagPlaceholder,C=void 0===E?function(e){return"+ ".concat(e.length," ...")}:E,S=e.tagRender,_=e.onToggleOpen,O=e.onRemove,N=e.onInputChange,k=e.onInputPaste,A=e.onInputKeyDown,P=e.onInputMouseDown,F=e.onInputCompositionStart,T=e.onInputCompositionEnd,L=t.useRef(null),I=At((0,t.useState)(0),2),M=I[0],D=I[1],R=At((0,t.useState)(!1),2),j=R[0],$=R[1],V="".concat(a,"-selection"),B=l||"multiple"===p&&!1===c||"tags"===p?s:"",H="tags"===p||"multiple"===p&&!1===c||m&&(l||j);function z(e,n,r,o,a){return t.createElement("span",{className:vt()("".concat(V,"-item"),wt({},"".concat(V,"-item-disabled"),r)),title:xd(e)},t.createElement("span",{className:"".concat(V,"-item-content")},n),o&&t.createElement(Hu,{className:"".concat(V,"-item-remove"),onMouseDown:Ed,onClick:a,customizeIcon:y},"×"))}n=function(){D(L.current.scrollWidth)},r=[B],bd?t.useLayoutEffect(n,r):t.useEffect(n,r);var U=t.createElement("div",{className:"".concat(V,"-search"),style:{width:M},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},t.createElement(gd,{ref:u,open:l,prefixCls:a,id:o,inputElement:null,disabled:f,autoFocus:h,autoComplete:g,editable:H,activeDescendantId:v,value:B,onKeyDown:A,onMouseDown:P,onChange:N,onPaste:k,onCompositionStart:F,onCompositionEnd:T,tabIndex:b,attrs:Zu(e,!0)}),t.createElement("span",{ref:L,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},B," ")),G=t.createElement(pd,{prefixCls:"".concat(V,"-overflow"),data:i,renderItem:function(e){var n=e.disabled,r=e.label,o=e.value,a=!f&&!n,i=r;if("number"==typeof w&&("string"==typeof r||"number"==typeof r)){var s=String(i);s.length>w&&(i="".concat(s.slice(0,w),"..."))}var c=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof S?function(e,n,r,o,a){return t.createElement("span",{onMouseDown:function(e){Ed(e),_(!l)}},S({label:n,value:e,disabled:r,closable:o,onClose:a}))}(o,i,n,a,c):z(e,i,n,a,c)},renderRest:function(e){var t="function"==typeof C?C(e):C;return z({title:t},t,!1)},suffix:U,itemKey:wd,maxCount:x});return t.createElement(t.Fragment,null,G,!i.length&&!B&&t.createElement("span",{className:"".concat(V,"-placeholder")},d))},Sd=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,a=e.inputRef,i=e.disabled,l=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,E=e.onInputPaste,C=e.onInputCompositionStart,S=e.onInputCompositionEnd,_=e.title,O=At(t.useState(!1),2),N=O[0],k=O[1],A="combobox"===u,P=A||h,F=f[0],T=g||"";A&&v&&!N&&(T=v),t.useEffect((function(){A&&k(!1)}),[A,v]);var L=!("combobox"!==u&&!d&&!h||!T),I=void 0===_?xd(F):_;return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(gd,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:P,activeDescendantId:c,value:T,onKeyDown:y,onMouseDown:x,onChange:function(e){k(!0),w(e)},onPaste:E,onCompositionStart:C,onCompositionEnd:S,tabIndex:m,attrs:Zu(e,!0),maxLength:A?b:void 0})),!A&&F?t.createElement("span",{className:"".concat(r,"-selection-item"),title:I,style:L?{visibility:"hidden"}:void 0},F.label):null,function(){if(F)return null;var e=L?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:e},p)}())},_d=function(e,n){var r=(0,t.useRef)(null),o=(0,t.useRef)(!1),a=e.prefixCls,i=e.open,l=e.mode,s=e.showSearch,c=e.tokenWithEnter,u=e.autoClearSearchValue,d=e.onSearch,f=e.onSearchSubmit,p=e.onToggleOpen,m=e.onInputKeyDown,h=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}}));var g=At(Uu(0),2),v=g[0],b=g[1],y=(0,t.useRef)(null),x=function(e){!1!==d(e,!0,o.current)&&p(!0)},w={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==Bu.UP&&n!==Bu.DOWN||e.preventDefault(),m&&m(e),n!==Bu.ENTER||"tags"!==l||o.current||i||null==f||f(e.target.value),t=n,[Bu.ESC,Bu.SHIFT,Bu.BACKSPACE,Bu.TAB,Bu.WIN_KEY,Bu.ALT,Bu.META,Bu.WIN_KEY_RIGHT,Bu.CTRL,Bu.SEMICOLON,Bu.EQUALS,Bu.CAPS_LOCK,Bu.CONTEXT_MENU,Bu.F1,Bu.F2,Bu.F3,Bu.F4,Bu.F5,Bu.F6,Bu.F7,Bu.F8,Bu.F9,Bu.F10,Bu.F11,Bu.F12].includes(t)||p(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(c&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");y.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&x(e.target.value)}},E="multiple"===l||"tags"===l?t.createElement(Cd,(0,ie.Z)({},e,w)):t.createElement(Sd,(0,ie.Z)({},e,w));return t.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=v();e.target===r.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||s&&t)&&i||(i&&!1!==u&&d("",!0,!1),p())}},E)},Od=t.forwardRef(_d);Od.displayName="Selector";var Nd=Od,kd=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ad=function(e,n){var r=e.prefixCls,o=(e.disabled,e.visible),a=e.children,i=e.popupElement,l=e.animation,s=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,p=e.placement,m=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,E=e.onPopupMouseEnter,C=St(e,kd),S="".concat(r,"-dropdown"),_=i;g&&(_=g(i));var O=t.useMemo((function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(h)}),[m,h]),N=l?"".concat(S,"-").concat(l):s,k="number"==typeof h,A=t.useMemo((function(){return k?null:!1===h?"minWidth":"width"}),[h,k]),P=c;k&&(P=Ct(Ct({},P),{},{width:h}));var F=t.useRef(null);return t.useImperativeHandle(n,(function(){return{getPopupElement:function(){return F.current}}})),t.createElement(Do,(0,ie.Z)({},C,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:S,popupTransitionName:N,popup:t.createElement("div",{ref:F,onMouseEnter:E},_),stretch:A,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:vt()(u,wt({},"".concat(S,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:w}),a)},Pd=t.forwardRef(Ad);Pd.displayName="SelectTrigger";var Fd=Pd;function Td(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Ld(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Id(e){var t=Ct({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Rt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Md=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dd=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Rd(e){return"tags"===e||"multiple"===e}var jd=t.forwardRef((function(e,n){var o,a,i=e.id,l=e.prefixCls,s=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,p=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=void 0===g?"Not Found":g,b=e.onClear,y=e.mode,x=e.disabled,w=e.loading,E=e.getInputElement,C=e.getRawInputElement,S=e.open,_=e.defaultOpen,O=e.onDropdownVisibleChange,N=e.activeValue,k=e.onActiveValueChange,A=e.activeDescendantId,P=e.searchValue,F=e.autoClearSearchValue,T=e.onSearch,L=e.onSearchSplit,I=e.tokenSeparators,M=e.allowClear,D=e.suffixIcon,R=e.clearIcon,j=e.OptionList,$=e.animation,V=e.transitionName,B=e.dropdownStyle,H=e.dropdownClassName,z=e.dropdownMatchSelectWidth,U=e.dropdownRender,G=e.dropdownAlign,W=e.placement,Z=e.builtinPlacements,K=e.getPopupContainer,X=e.showAction,q=void 0===X?[]:X,Y=e.onFocus,Q=e.onBlur,J=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=St(e,Md),re=Rd(y),oe=(void 0!==c?c:re)||"combobox"===y,ae=Ct({},ne);Dd.forEach((function(e){delete ae[e]})),null==f||f.forEach((function(e){delete ae[e]}));var le=At(t.useState(!1),2),se=le[0],ce=le[1];t.useEffect((function(){ce(fr())}),[]);var ue=t.useRef(null),de=t.useRef(null),fe=t.useRef(null),pe=t.useRef(null),me=t.useRef(null),he=t.useRef(!1),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=At(t.useState(!1),2),r=n[0],o=n[1],a=t.useRef(null),i=function(){window.clearTimeout(a.current)};return t.useEffect((function(){return i}),[]),[r,function(t,n){i(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)},i]}(),ve=At(ge,3),be=ve[0],ye=ve[1],xe=ve[2];t.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=pe.current)||void 0===e?void 0:e.focus,blur:null===(t=pe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=me.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=t.useMemo((function(){var e;if("combobox"!==y)return P;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[P,y,p]),Ee="combobox"===y&&"function"==typeof E&&E()||null,Ce="function"==typeof C&&C(),Se=Ht(de,null==Ce||null===(o=Ce.props)||void 0===o?void 0:o.ref),_e=At(t.useState(!1),2),Oe=_e[0],Ne=_e[1];Yt((function(){Ne(!0)}),[]);var ke=At(Go(!1,{defaultValue:_,value:S}),2),Ae=ke[0],Pe=ke[1],Fe=!!Oe&&Ae,Te=!v&&h;(x||Te&&Fe&&"combobox"===y)&&(Fe=!1);var Le=!Te&&Fe,Ie=t.useCallback((function(e){var t=void 0!==e?e:!Fe;x||(Pe(t),Fe!==t&&(null==O||O(t)))}),[x,Fe,Pe,O]),Me=t.useMemo((function(){return(I||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[I]),De=function(e,t,n){var r=!0,o=e;null==k||k(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=Ui(r),a=o[0],i=o.slice(1);if(!a)return[t];var l=t.split(a);return n=n||l.length>1,l.reduce((function(t,n){return[].concat(Wt(t),Wt(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,I);return"combobox"!==y&&a&&(o="",null==L||L(a),Ie(!1),r=!1),T&&we!==o&&T(o,{source:t?"typing":"effect"}),r};t.useEffect((function(){Fe||re||"combobox"===y||De("",!1,!1)}),[Fe]),t.useEffect((function(){Ae&&x&&Pe(!1),x&&!he.current&&ye(!1)}),[x]);var Re=At(Uu(),2),je=Re[0],$e=Re[1],Ve=t.useRef(!1),Be=[];t.useEffect((function(){return function(){Be.forEach((function(e){return clearTimeout(e)})),Be.splice(0,Be.length)}}),[]);var He,ze=At(t.useState({}),2)[1];Ce&&(He=function(e){Ie(e)}),function(e,n,r,o){var a=t.useRef(null);a.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function e(e){var t,n;if(null===(t=a.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),a.current.open&&[ue.current,null===(n=fe.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,Le,Ie,!!Ce);var Ue,Ge=t.useMemo((function(){return Ct(Ct({},e),{},{notFoundContent:v,open:Fe,triggerOpen:Le,id:i,showSearch:oe,multiple:re,toggleOpen:Ie})}),[e,v,Le,Fe,i,oe,re,Ie]),We=!!D||w;We&&(Ue=t.createElement(Hu,{className:vt()("".concat(l,"-arrow"),wt({},"".concat(l,"-arrow-loading"),w)),customizeIcon:D,customizeIconProps:{loading:w,searchValue:we,open:Fe,focused:be,showSearch:oe}}));var Ze,Ke=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=r().useMemo((function(){return"object"===yt(o)?o.clearIcon:a||void 0}),[o,a]);return{allowClear:r().useMemo((function(){return!(i||!o||!n.length&&!l||"combobox"===s&&""===l)}),[o,i,n.length,l,s]),clearIcon:r().createElement(Hu,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(l,(function(){var e;null==b||b(),null===(e=pe.current)||void 0===e||e.focus(),m([],{type:"clear",values:p}),De("",!1,!1)}),p,M,R,x,we,y),Xe=Ke.allowClear,qe=Ke.clearIcon,Ye=t.createElement(j,{ref:me}),Qe=vt()(l,s,(wt(a={},"".concat(l,"-focused"),be),wt(a,"".concat(l,"-multiple"),re),wt(a,"".concat(l,"-single"),!re),wt(a,"".concat(l,"-allow-clear"),M),wt(a,"".concat(l,"-show-arrow"),We),wt(a,"".concat(l,"-disabled"),x),wt(a,"".concat(l,"-loading"),w),wt(a,"".concat(l,"-open"),Fe),wt(a,"".concat(l,"-customize-input"),Ee),wt(a,"".concat(l,"-show-search"),oe),a)),Je=t.createElement(Fd,{ref:fe,disabled:x,prefixCls:l,visible:Le,popupElement:Ye,animation:$,transitionName:V,dropdownStyle:B,dropdownClassName:H,direction:d,dropdownMatchSelectWidth:z,dropdownRender:U,dropdownAlign:G,placement:W,builtinPlacements:Z,getPopupContainer:K,empty:h,getTriggerDOMNode:function(){return de.current},onPopupVisibleChange:He,onPopupMouseEnter:function(){ze({})}},Ce?t.cloneElement(Ce,{ref:Se}):t.createElement(Nd,(0,ie.Z)({},e,{domRef:de,prefixCls:l,inputElement:Ee,ref:pe,id:i,showSearch:oe,autoClearSearchValue:F,mode:y,activeDescendantId:A,tagRender:u,values:p,open:Fe,onToggleOpen:Ie,activeValue:N,searchValue:we,onSearch:De,onSearchSubmit:function(e){e&&e.trim()&&T(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));m(t,{type:"remove",values:[e]})},tokenWithEnter:Me})));return Ze=Ce?Je:t.createElement("div",(0,ie.Z)({className:Qe},ae,{ref:ue,onMouseDown:function(e){var t,n=e.target,r=null===(t=fe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Be.indexOf(o);-1!==t&&Be.splice(t,1),xe(),se||r.contains(document.activeElement)||null===(e=pe.current)||void 0===e||e.focus()}));Be.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];null==te||te.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=je(),r=e.which;if(r===Bu.ENTER&&("combobox"!==y&&e.preventDefault(),Fe||Ie(!0)),$e(!!we),r===Bu.BACKSPACE&&!n&&re&&!we&&p.length){for(var o=Wt(p),a=null,i=o.length-1;i>=0;i-=1){var l=o[i];if(!l.disabled){o.splice(i,1),a=l;break}}a&&m(o,{type:"remove",values:[a]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];Fe&&me.current&&(t=me.current).onKeyDown.apply(t,[e].concat(c)),null==ee||ee.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Fe&&me.current&&(o=me.current).onKeyUp.apply(o,[e].concat(n)),null==J||J.apply(void 0,[e].concat(n))},onFocus:function(){ye(!0),x||(Y&&!Ve.current&&Y.apply(void 0,arguments),q.includes("focus")&&Ie(!0)),Ve.current=!0},onBlur:function(){he.current=!0,ye(!1,(function(){Ve.current=!1,he.current=!1,Ie(!1)})),x||(we&&("tags"===y?T(we,{source:"submit"}):"multiple"===y&&T("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),be&&!Fe&&t.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(p.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(yt(t))?t:n})).join(", "))),Je,Ue,Xe&&qe),t.createElement(zu.Provider,{value:Ge},Ze)})),$d=jd;function Vd(e,t){return vd(e).join("").toUpperCase().includes(t)}var Bd=0,Hd=Pt();var zd=["children","value"],Ud=["children"];function Gd(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return bn(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,c=St(l,Ud);return n||!a?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value;return Ct({key:n,value:void 0!==a?a:n,children:o},St(r,zd))}(e):Ct(Ct({key:"__RC_SELECT_GRP__".concat(null===i?r:i,"__"),label:i},c),{},{options:Gd(s)})})).filter((function(e){return e}))}function Wd(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var Zd=function(){return null};Zd.isSelectOptGroup=!0;var Kd=Zd,Xd=function(){return null};Xd.isSelectOption=!0;var qd=Xd;function Yd(e,t){var n=Ct({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var Qd=t.forwardRef((function(e,n){var r,o=e.height,a=e.offsetY,i=e.offsetX,l=e.children,s=e.prefixCls,c=e.onInnerResize,u=e.innerProps,d=e.rtl,f=e.extra,p={},m={display:"flex",flexDirection:"column"};return void 0!==a&&(p={height:o,position:"relative",overflow:"hidden"},m=Ct(Ct({},m),{},(wt(r={transform:"translateY(".concat(a,"px)")},d?"marginRight":"marginLeft",-i),wt(r,"position","absolute"),wt(r,"left",0),wt(r,"right",0),wt(r,"top",0),r))),t.createElement("div",{style:p},t.createElement(ar,{onResize:function(e){e.offsetHeight&&c&&c()}},t.createElement("div",(0,ie.Z)({style:m,className:vt()(wt({},"".concat(s,"-holder-inner"),s)),ref:n},u),l,f)))}));Qd.displayName="Filler";var Jd=Qd;function ef(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var tf=t.forwardRef((function(e,n){var r,o=e.prefixCls,a=e.rtl,i=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,c=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,m=e.style,h=e.thumbStyle,g=At(t.useState(!1),2),v=g[0],b=g[1],y=At(t.useState(null),2),x=y[0],w=y[1],E=At(t.useState(null),2),C=E[0],S=E[1],_=!a,O=t.useRef(),N=t.useRef(),k=At(t.useState(!1),2),A=k[0],P=k[1],F=t.useRef(),T=function(){clearTimeout(F.current),P(!0),F.current=setTimeout((function(){P(!1)}),3e3)},L=l-p||0,I=p-f||0,M=L>0,D=t.useMemo((function(){return 0===i||0===L?0:i/L*I}),[i,L,I]),R=t.useRef({top:D,dragging:v,pageY:x,startTop:C});R.current={top:D,dragging:v,pageY:x,startTop:C};var j=function(e){b(!0),w(ef(e,d)),S(R.current.top),s(),e.stopPropagation(),e.preventDefault()};t.useEffect((function(){var e=function(e){e.preventDefault()},t=O.current,n=N.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",j),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",j)}}),[]);var $=t.useRef();$.current=L;var V=t.useRef();V.current=I,t.useEffect((function(){if(v){var e,t=function(t){var n=R.current,r=n.dragging,o=n.pageY,a=n.startTop;if(Yr.cancel(e),r){var i=ef(t,d)-o,l=a;!_&&d?l-=i:l+=i;var s=$.current,c=V.current,f=c?l/c:0,p=Math.ceil(f*s);p=Math.max(p,0),p=Math.min(p,s),e=Yr((function(){u(p,d)}))}},n=function(){b(!1),c()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Yr.cancel(e)}}}),[v]),t.useEffect((function(){T()}),[i]),t.useImperativeHandle(n,(function(){return{delayHidden:T}}));var B="".concat(o,"-scrollbar"),H={position:"absolute",visibility:A&&M?null:"hidden"},z={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(H.height=8,H.left=0,H.right=0,H.bottom=0,z.height="100%",z.width=f,_?z.left=D:z.right=D):(H.width=8,H.top=0,H.bottom=0,_?H.right=0:H.left=0,z.width="100%",z.height=f,z.top=D),t.createElement("div",{ref:O,className:vt()(B,(r={},wt(r,"".concat(B,"-horizontal"),d),wt(r,"".concat(B,"-vertical"),!d),wt(r,"".concat(B,"-visible"),A),r)),style:Ct(Ct({},H),m),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:T},t.createElement("div",{ref:N,className:vt()("".concat(B,"-thumb"),wt({},"".concat(B,"-thumb-moving"),v)),style:Ct(Ct({},z),h),onMouseDown:j}))})),nf=tf;function rf(e){var n=e.children,r=e.setRef,o=t.useCallback((function(e){r(e)}),[]);return t.cloneElement(n,{ref:o})}var of=function(){function e(){Wn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Kn(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var af="object"===("undefined"==typeof navigator?"undefined":yt(navigator))&&/Firefox/i.test(navigator.userAgent),lf=function(e,n){var r=(0,t.useRef)(!1),o=(0,t.useRef)(null),a=(0,t.useRef)({top:e,bottom:n});return a.current.top=e,a.current.bottom=n,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};var sf=20;function cf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,sf),t=Math.min(t,e/2),Math.floor(t)}var uf=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],df=[],ff={overflowY:"auto",overflowAnchor:"none"};function pf(e,n){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,l=e.height,s=e.itemHeight,c=e.fullHeight,u=void 0===c||c,d=e.style,f=e.data,p=e.children,m=e.itemKey,h=e.virtual,g=e.direction,v=e.scrollWidth,b=e.component,y=void 0===b?"div":b,x=e.onScroll,w=e.onVirtualScroll,E=e.onVisibleChange,C=e.innerProps,S=e.extraRender,_=e.styles,O=St(e,uf),N=!(!1===h||!l||!s),k=N&&f&&(s*f.length>l||!!v),A="rtl"===g,P=vt()(o,wt({},"".concat(o,"-rtl"),A),i),F=f||df,T=(0,t.useRef)(),L=(0,t.useRef)(),I=At((0,t.useState)(0),2),M=I[0],D=I[1],R=At((0,t.useState)(0),2),j=R[0],$=R[1],V=At((0,t.useState)(!1),2),B=V[0],H=V[1],z=function(){H(!0)},U=function(){H(!1)},G=t.useCallback((function(e){return"function"==typeof m?m(e):null==e?void 0:e[m]}),[m]),W={getKey:G};function Z(e){D((function(t){var n=function(e){var t=e;return Number.isNaN(ve.current)||(t=Math.min(t,ve.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return T.current.scrollTop=n,n}))}var K=(0,t.useRef)({start:0,end:F.length}),X=(0,t.useRef)(),q=At(function(e,n,r){var o=At(t.useState(e),2),a=o[0],i=o[1],l=At(t.useState(null),2),s=l[0],c=l[1];return t.useEffect((function(){var t=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(a||[],e||[],n);void 0!==(null==t?void 0:t.index)&&(null==r||r(t.index),c(e[t.index])),i(e)}),[e]),[s]}(F,G),1)[0];X.current=q;var Y=function(e,n,r){var o=At(t.useState(0),2),a=o[0],i=o[1],l=(0,t.useRef)(new Map),s=(0,t.useRef)(new of),c=(0,t.useRef)();function u(){Yr.cancel(c.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=xn(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():c.current=Yr(t)}return(0,t.useEffect)((function(){return u}),[]),[function(t,n){var r=e(t);l.current.get(r);n?(l.current.set(r,n),d()):l.current.delete(r)},d,s.current,a]}(G),Q=At(Y,4),J=Q[0],ee=Q[1],te=Q[2],ne=Q[3],re=t.useMemo((function(){if(!N)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};var e;if(!k)return{scrollHeight:(null===(e=L.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:F.length-1,offset:void 0};for(var t,n,r,o=0,a=F.length,i=0;i<a;i+=1){var c=F[i],u=G(c),d=te.get(u),f=o+(void 0===d?s:d);f>=M&&void 0===t&&(t=i,n=o),f>M+l&&void 0===r&&(r=i),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(l/s)),void 0===r&&(r=F.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,F.length-1),offset:n}}),[k,N,M,F,ne,l]),oe=re.scrollHeight,ae=re.start,le=re.end,se=re.offset;K.current.start=ae,K.current.end=le;var ce=At(t.useState({width:0,height:l}),2),ue=ce[0],de=ce[1],fe=(0,t.useRef)(),pe=(0,t.useRef)(),me=t.useMemo((function(){return cf(ue.width,v)}),[ue.width,v]),he=t.useMemo((function(){return cf(ue.height,oe)}),[ue.height,oe]),ge=oe-l,ve=(0,t.useRef)(ge);ve.current=ge;var be=M<=0,ye=M>=ge,xe=lf(be,ye),we=function(){return{x:A?-j:j,y:M}},Ee=(0,t.useRef)(we()),Ce=sr((function(){if(w){var e=we();Ee.current.x===e.x&&Ee.current.y===e.y||(w(e),Ee.current=e)}}));function Se(e,t){var n=e;t?((0,a.flushSync)((function(){$(n)})),Ce()):Z(n)}var _e=function(e){var t=e,n=v-ue.width;return t=Math.max(t,0),Math.min(t,n)},Oe=sr((function(e,t){t?((0,a.flushSync)((function(){$((function(t){return _e(t+(A?-e:e))}))})),Ce()):Z((function(t){return t+e}))})),Ne=At(function(e,n,r,o,a){var i=(0,t.useRef)(0),l=(0,t.useRef)(null),s=(0,t.useRef)(null),c=(0,t.useRef)(!1),u=lf(n,r),d=(0,t.useRef)(null),f=(0,t.useRef)(null);return[function(t){if(e){Yr.cancel(f.current),f.current=Yr((function(){d.current=null}),2);var n=t.deltaX,r=t.deltaY,p=t.shiftKey,m=n,h=r;("sx"===d.current||!d.current&&p&&r&&!n)&&(m=r,h=0,d.current="sx");var g=Math.abs(m),v=Math.abs(h);null===d.current&&(d.current=o&&g>v?"x":"y"),"y"===d.current?function(e,t){Yr.cancel(l.current),i.current+=t,s.current=t,u(t)||(af||e.preventDefault(),l.current=Yr((function(){var e=c.current?10:1;a(i.current*e),i.current=0})))}(t,h):function(e,t){a(t,!0),af||e.preventDefault()}(t,m)}},function(t){e&&(c.current=t.detail===s.current)}]}(N,be,ye,!!v,Oe),2),ke=Ne[0],Ae=Ne[1];!function(e,n,r){var o,a=(0,t.useRef)(!1),i=(0,t.useRef)(0),l=(0,t.useRef)(null),s=(0,t.useRef)(null),c=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),n=i.current-t;i.current=t,r(n)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!r(n*=.9333333333333333,!0)||Math.abs(n)<=.1)&&clearInterval(s.current)}),16)}},u=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c),l.current.addEventListener("touchend",u))};o=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",u))},Yt((function(){return e&&n.current.addEventListener("touchstart",d),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(s.current)}}),[e])}(N,T,(function(e,t){return!xe(e,t)&&(ke({preventDefault:function(){},deltaY:e}),!0)})),Yt((function(){function e(e){N&&e.preventDefault()}var t=T.current;return t.addEventListener("wheel",ke),t.addEventListener("DOMMouseScroll",Ae),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",ke),t.removeEventListener("DOMMouseScroll",Ae),t.removeEventListener("MozMousePixelScroll",e)}}),[N]),Yt((function(){v&&$((function(e){return _e(e)}))}),[ue.width,v]);var Pe=function(){var e,t;null===(e=fe.current)||void 0===e||e.delayHidden(),null===(t=pe.current)||void 0===t||t.delayHidden()},Fe=function(e,n,r,o,a,i,l,s){var c=t.useRef(),u=At(t.useState(null),2),d=u[0],f=u[1];return Yt((function(){if(d&&d.times<10){if(!e.current)return void f((function(e){return Ct({},e)}));i();var t=d.targetAlign,s=d.originAlign,c=d.index,u=d.offset,p=e.current.clientHeight,m=!1,h=t,g=null;if(p){for(var v=t||s,b=0,y=0,x=0,w=Math.min(n.length-1,c),E=0;E<=w;E+=1){var C=a(n[E]);y=b;var S=r.get(C);b=x=y+(void 0===S?o:S)}for(var _="top"===v?u:p-u,O=w;O>=0;O-=1){var N=a(n[O]),k=r.get(N);if(void 0===k){m=!0;break}if((_-=k)<=0)break}switch(v){case"top":g=y-u;break;case"bottom":g=x-p+u;break;default:var A=e.current.scrollTop;y<A?h="top":x>A+p&&(h="bottom")}null!==g&&l(g),g!==d.lastTop&&(m=!0)}m&&f((function(e){return Ct(Ct({},e),{},{times:e.times+1,targetAlign:h,lastTop:g})}))}}),[d,e.current]),function(e){if(null!=e){if(Yr.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===yt(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex((function(t){return a(t)===e.key}));var o=e.offset;f({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else s()}}(T,F,te,s,G,(function(){return ee(!0)}),Z,Pe);t.useImperativeHandle(n,(function(){return{getScrollInfo:we,scrollTo:function(e){var t;(t=e)&&"object"===yt(t)&&("left"in t||"top"in t)?(void 0!==e.left&&$(_e(e.left)),Fe(e.top)):Fe(e)}}})),Yt((function(){if(E){var e=F.slice(ae,le+1);E(e,F)}}),[ae,le,F]);var Te=function(e,n,r,o){var a=At(t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),2),i=a[0],l=a[1];return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,s=i.get(t),c=i.get(a);if(void 0===s||void 0===c)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],m=n(p);i.set(m,d);var h=null!==(f=r.get(m))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+h,m===t&&(s=d),m===a&&(c=d),void 0!==s&&void 0!==c)break}return{top:l[s-1]||0,bottom:l[c]}}}(F,G,te,s),Le=null==S?void 0:S({start:ae,end:le,virtual:k,offsetX:j,offsetY:se,rtl:A,getSize:Te}),Ie=function(e,n,r,o,a,i,l){var s=l.getKey;return e.slice(n,r+1).map((function(e,r){var l=i(e,n+r,{style:{width:o}}),c=s(e);return t.createElement(rf,{key:c,setRef:function(t){return a(e,t)}},l)}))}(F,ae,le,v,J,p,W),Me=null;l&&(Me=Ct(wt({},u?"height":"maxHeight",l),ff),N&&(Me.overflowY="hidden",v&&(Me.overflowX="hidden"),B&&(Me.pointerEvents="none")));var De={};return A&&(De.dir="rtl"),t.createElement("div",(0,ie.Z)({style:Ct(Ct({},d),{},{position:"relative"}),className:P},De,O),t.createElement(ar,{onResize:function(e){de({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},t.createElement(y,{className:"".concat(o,"-holder"),style:Me,ref:T,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==M&&Z(t),null==x||x(e),Ce()},onMouseEnter:Pe},t.createElement(Jd,{prefixCls:o,height:oe,offsetX:j,offsetY:se,scrollWidth:v,onInnerResize:ee,ref:L,innerProps:C,rtl:A,extra:Le},Ie))),k&&oe>l&&t.createElement(nf,{ref:fe,prefixCls:o,scrollOffset:M,scrollRange:oe,rtl:A,onScroll:Se,onStartMove:z,onStopMove:U,spinSize:he,containerSize:ue.height,style:null==_?void 0:_.verticalScrollBar,thumbStyle:null==_?void 0:_.verticalScrollBarThumb}),k&&v&&t.createElement(nf,{ref:pe,prefixCls:o,scrollOffset:j,scrollRange:v,rtl:A,onScroll:Se,onStartMove:z,onStopMove:U,spinSize:me,containerSize:ue.width,horizontal:!0,style:null==_?void 0:_.horizontalScrollBar,thumbStyle:null==_?void 0:_.horizontalScrollBarThumb}))}var mf=t.forwardRef(pf);mf.displayName="List";var hf=mf,gf=t.createContext(null),vf=["disabled","title","children","style","className"];function bf(e){return"string"==typeof e||"number"==typeof e}var yf=function(e,n){var r=t.useContext(zu),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=t.useContext(gf),m=p.flattenOptions,h=p.onActiveValue,g=p.defaultActiveFirstOption,v=p.onSelect,b=p.menuItemSelectedIcon,y=p.rawValues,x=p.fieldNames,w=p.virtual,E=p.direction,C=p.listHeight,S=p.listItemHeight,_="".concat(o,"-item"),O=$t((function(){return m}),[i,m],(function(e,t){return t[0]&&e[1]!==t[1]})),N=t.useRef(null),k=function(e){e.preventDefault()},A=function(e){N.current&&N.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=O[o],i=a.group,l=a.data;if(!i&&!l.disabled)return o}return-1},F=At(t.useState((function(){return P(0)})),2),T=F[0],L=F[1],I=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?h(r.value,e,n):h(null,-1,n)};(0,t.useEffect)((function(){I(!1!==g?P(0):-1)}),[O.length,c]);var M=t.useCallback((function(e){return y.has(e)&&"combobox"!==s}),[s,Wt(y).toString(),y.size]);(0,t.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&i&&1===y.size){var e=Array.from(y)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(I(t),A(t))}}));return i&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[i,c]);var D=function(e){void 0!==e&&v(e,{selected:!y.has(e)}),l||u(!1)};if(t.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Bu.N:case Bu.P:case Bu.UP:case Bu.DOWN:var r=0;if(t===Bu.UP?r=-1:t===Bu.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Bu.N?r=1:t===Bu.P&&(r=-1)),0!==r){var o=P(T+r,r);A(o),I(o,!0)}break;case Bu.ENTER:var a=O[T];a&&!a.data.disabled?D(a.value):D(void 0),i&&e.preventDefault();break;case Bu.ESC:u(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===O.length)return t.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(_,"-empty"),onMouseDown:k},d);var R=Object.keys(x).map((function(e){return x[e]})),j=function(e){return e.label};function $(e,t){return{role:e.group?"presentation":"option",id:"".concat(a,"_list_").concat(t)}}var V=function(e){var n=O[e];if(!n)return null;var r=n.data||{},o=r.value,a=n.group,i=Zu(r,!0),l=j(n);return n?t.createElement("div",(0,ie.Z)({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},$(n,e),{"aria-selected":M(o)}),o):null},B={role:"listbox",id:"".concat(a,"_list")};return t.createElement(t.Fragment,null,w&&t.createElement("div",(0,ie.Z)({},B,{style:{height:0,width:0,overflow:"hidden"}}),V(T-1),V(T),V(T+1)),t.createElement(hf,{itemKey:"key",ref:N,data:O,height:C,itemHeight:S,fullHeight:!1,onMouseDown:k,onScroll:f,virtual:w,direction:E,innerProps:w?null:B},(function(e,n){var r,o=e.group,a=e.groupOption,i=e.data,l=e.label,s=e.value,c=i.key;if(o){var u,d=null!==(u=i.title)&&void 0!==u?u:bf(l)?l.toString():void 0;return t.createElement("div",{className:vt()(_,"".concat(_,"-group")),title:d},void 0!==l?l:c)}var f=i.disabled,p=i.title,m=(i.children,i.style),h=i.className,g=Yd(St(i,vf),R),v=M(s),y="".concat(_,"-option"),x=vt()(_,y,h,(wt(r={},"".concat(y,"-grouped"),a),wt(r,"".concat(y,"-active"),T===n&&!f),wt(r,"".concat(y,"-disabled"),f),wt(r,"".concat(y,"-selected"),v),r)),E=j(e),C=!b||"function"==typeof b||v,S="number"==typeof E?E:E||s,O=bf(S)?S.toString():void 0;return void 0!==p&&(O=p),t.createElement("div",(0,ie.Z)({},Zu(g),w?{}:$(e,n),{"aria-selected":v,className:x,title:O,onMouseMove:function(){T===n||f||I(n)},onClick:function(){f||D(s)},style:m}),t.createElement("div",{className:"".concat(y,"-content")},S),t.isValidElement(b)||v,C&&t.createElement(Hu,{className:"".concat(_,"-option-state"),customizeIcon:b,customizeIconProps:{value:s,disabled:f,isSelected:v}},v?"✓":null))})))},xf=t.forwardRef(yf);xf.displayName="OptionList";var wf=xf,Ef=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Cf=["inputValue"],Sf=t.forwardRef((function(e,n){var r=e.id,o=e.mode,a=e.prefixCls,i=void 0===a?"rc-select":a,l=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,m=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,E=e.options,C=e.children,S=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,O=e.virtual,N=e.direction,k=e.listHeight,A=void 0===k?200:k,P=e.listItemHeight,F=void 0===P?20:P,T=e.value,L=e.defaultValue,I=e.labelInValue,M=e.onChange,D=St(e,Ef),R=function(e){var n=At(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_select_".concat((Hd?(e=Bd,Bd+=1):e="TEST_OR_SSR",e)))}),[]),e||r}(r),j=Rd(o),$=!(E||!C),V=t.useMemo((function(){return(void 0!==b||"combobox"!==o)&&b}),[b,o]),B=t.useMemo((function(){return Ld(s,$)}),[JSON.stringify(s),$]),H=At(Go("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),z=H[0],U=H[1],G=function(e,n,r,o,a){return t.useMemo((function(){var t=e;!e&&(t=Gd(n));var i=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[r.options]||n?(i.set(u[r.value],u),s(l,u,r.label),s(l,u,o),s(l,u,a)):e(u[r.options],!0)}}(t),{options:t,valueOptions:i,labelOptions:l}}),[e,n,r,o,a])}(E,C,B,x,w),W=G.valueOptions,Z=G.labelOptions,K=G.options,X=t.useCallback((function(e){return vd(e).map((function(e){var t,n,r,o,a,i;!function(e){return!e||"object"!==yt(e)}(e)?(r=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:r):t=e;var l,s=W.get(t);return s&&(void 0===n&&(n=null==s?void 0:s[w||B.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,a=null==s?void 0:s.title),{label:n,value:t,key:r,disabled:o,title:a}}))}),[B,w,W]),q=At(Go(L,{value:T}),2),Y=q[0],Q=q[1],J=t.useMemo((function(){var e,t=X(Y);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Y,X,o]),ee=function(e,n){var r=t.useRef({values:new Map,options:new Map});return[t.useMemo((function(){var t=r.current,o=t.values,a=t.options,i=e.map((function(e){var t;return void 0===e.label?Ct(Ct({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,s=new Map;return i.forEach((function(e){l.set(e.value,e),s.set(e.value,n.get(e.value)||a.get(e.value))})),r.current.values=l,r.current.options=s,i}),[e,n]),t.useCallback((function(e){return n.get(e)||r.current.options.get(e)}),[n])]}(J,W),te=At(ee,2),ne=te[0],re=te[1],oe=t.useMemo((function(){if(!o&&1===ne.length){var e=ne[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ne.map((function(e){var t;return Ct(Ct({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[o,ne]),ae=t.useMemo((function(){return new Set(ne.map((function(e){return e.value})))}),[ne]);t.useEffect((function(){if("combobox"===o){var e,t=null===(e=ne[0])||void 0===e?void 0:e.value;U(function(e){return null!=e}(t)?String(t):"")}}),[ne]);var le=Wd((function(e,t){var n,r=null!=t?t:e;return wt(n={},B.value,e),wt(n,B.label,r),n})),se=t.useMemo((function(){if("tags"!==o)return K;var e=Wt(K);return Wt(ne).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return W.has(e)})(n)||e.push(le(n,t.label))})),e}),[le,K,W,ne,o]),ce=function(e,n,r,o,a){return t.useMemo((function(){if(!r||!1===o)return e;var t=n.options,i=n.label,l=n.value,s=[],c="function"==typeof o,u=r.toUpperCase(),d=c?o:function(e,n){return a?Vd(n[a],u):n[t]?Vd(n["children"!==i?i:"label"],u):Vd(n[l],u)},f=c?function(e){return Id(e)}:function(e){return e};return e.forEach((function(e){if(e[t])if(d(r,f(e)))s.push(e);else{var n=e[t].filter((function(e){return d(r,f(e))}));n.length&&s.push(Ct(Ct({},e),{},wt({},t,n)))}else d(r,f(e))&&s.push(e)})),s}),[e,o,a,r,n])}(se,B,z,V,x),ue=t.useMemo((function(){return"tags"!==o||!z||ce.some((function(e){return e[x||"value"]===z}))||ce.some((function(e){return e[B.value]===z}))?ce:[le(z)].concat(Wt(ce))}),[le,x,o,ce,z,B]),de=t.useMemo((function(){return y?Wt(ue).sort((function(e,t){return y(e,t)})):ue}),[ue,y]),fe=t.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Ld(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(s in t)){var a=t[l];o.push({key:Td(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:Td(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(de,{fieldNames:B,childrenAsData:$})}),[de,B,$]),pe=function(e){var t=X(e);if(Q(t),M&&(t.length!==ne.length||t.some((function(e,t){var n;return(null===(n=ne[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=I?t:t.map((function(e){return e.value})),r=t.map((function(e){return Id(re(e.value))}));M(j?n:n[0],j?r:r[0])}},me=At(t.useState(null),2),he=me[0],ge=me[1],ve=At(t.useState(0),2),be=ve[0],ye=ve[1],xe=void 0!==S?S:"combobox"!==o,we=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;ye(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&ge(String(e))}),[l,o]),Ee=function(e,t,n){var r=function(){var t,n=re(e);return[I?{label:null==n?void 0:n[B.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Id(n)]};if(t&&m){var o=At(r(),2),a=o[0],i=o[1];m(a,i)}else if(!t&&h&&"clear"!==n){var l=At(r(),2),s=l[0],c=l[1];h(s,c)}},Ce=Wd((function(e,t){var n,r=!j||t.selected;n=r?j?[].concat(Wt(ne),[e]):[e]:ne.filter((function(t){return t.value!==e})),pe(n),Ee(e,r),"combobox"===o?ge(""):Rd&&!p||(U(""),ge(""))})),Se=t.useMemo((function(){var e=!1!==O&&!1!==v;return Ct(Ct({},G),{},{flattenOptions:fe,onActiveValue:we,defaultActiveFirstOption:xe,onSelect:Ce,menuItemSelectedIcon:_,rawValues:ae,fieldNames:B,virtual:e,direction:N,listHeight:A,listItemHeight:F,childrenAsData:$})}),[G,fe,we,xe,Ce,_,ae,B,O,v,A,F,$]);return t.createElement(gf.Provider,{value:Se},t.createElement($d,(0,ie.Z)({},D,{id:R,prefixCls:i,ref:n,omitDomProps:Cf,mode:o,displayValues:oe,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ee(e.value,!1,n)}))},direction:N,searchValue:z,onSearch:function(e,t){if(U(e),ge(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&pe(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Wt(ae),[n])));pe(r),Ee(n,!0),U("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=Z.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Wt(ae),Wt(t))));pe(n),n.forEach((function(e){Ee(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:wf,emptyOptions:!fe.length,activeValue:he,activeDescendantId:"".concat(R,"_list_").concat(be)})))})),_f=Sf;_f.Option=qd,_f.OptGroup=Kd;var Of=_f,Nf=(0,t.createContext)({}),kf=(0,t.createContext)(void 0),Af={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const Pf={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},Af)},Ff="${label} is not a valid ${type}";var Tf={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:Pf,TimePicker:Af,Calendar:Pf,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ff,method:Ff,array:Ff,object:Ff,number:Ff,date:Ff,boolean:Ff,integer:Ff,float:Ff,regexp:Ff,email:Ff,url:Ff,hex:Ff},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let Lf=Object.assign({},Tf.Modal),If=[];const Mf=()=>If.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Tf.Modal);var Df=(0,t.createContext)(void 0),Rf=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;t.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return If.push(t),Lf=Mf(),()=>{If=If.filter((e=>e!==t)),Lf=Mf()}}Lf=Object.assign({},Tf.Modal)}(n&&n.Modal);return e}),[n]);const a=t.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return t.createElement(Df.Provider,{value:a},r)};const jf=`-ant-${Date.now()}-${Math.random()}`;const $f=t.createContext(!1),Vf=e=>{let{children:n,disabled:r}=e;const o=t.useContext($f);return t.createElement($f.Provider,{value:null!=r?r:o},n)};var Bf=$f;function Hf(e){const{children:n}=e,[,r]=es(),{motion:o}=r,a=t.useRef(!1);return a.current=a.current||!1===o,a.current?t.createElement(hr,{motion:o},n):n}var zf=()=>null;const Uf=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let Gf,Wf,Zf;const Kf=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:a,anchor:i,form:l,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:h,legacyLocale:g,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:E,spin:C,calendar:S,carousel:_,cascader:O,collapse:N,typography:k,checkbox:A,descriptions:P,divider:F,drawer:T,skeleton:L,steps:I,image:M,layout:D,list:R,mentions:j,modal:$,progress:V,result:B,slider:H,breadcrumb:z,menu:U,pagination:G,input:W,empty:Z,badge:K,radio:X,rate:q,switch:Y,transfer:Q,avatar:J,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:le,notification:se,tree:ce,colorPicker:ue,datePicker:de,flex:fe,wave:pe,warning:me}=e,he=t.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||v.getPrefixCls("");return t?`${o}-${t}`:o}),[v.getPrefixCls,e.prefixCls]),ge=b||v.iconPrefixCls||oa,ve=r||v.csp;is(ge,ve);const be=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:Wl;return $t((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>{const r=t[n];return!fa(e,r,!0)}))))}(y,v.theme),ye={csp:ve,autoInsertSpaceInButton:o,alert:a,anchor:i,locale:s||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:h,getPrefixCls:he,iconPrefixCls:ge,theme:be,segmented:w,statistic:E,spin:C,calendar:S,carousel:_,cascader:O,collapse:N,typography:k,checkbox:A,descriptions:P,divider:F,drawer:T,skeleton:L,steps:I,image:M,input:W,layout:D,list:R,mentions:j,modal:$,progress:V,result:B,slider:H,breadcrumb:z,menu:U,pagination:G,empty:Z,badge:K,radio:X,rate:q,switch:Y,transfer:Q,avatar:J,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:le,notification:se,tree:ce,colorPicker:ue,datePicker:de,flex:fe,wave:pe,warning:me},xe=Object.assign({},v);Object.keys(ye).forEach((e=>{void 0!==ye[e]&&(xe[e]=ye[e])})),Uf.forEach((t=>{const n=e[t];n&&(xe[t]=n)}));const we=$t((()=>xe),xe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ee=t.useMemo((()=>({prefixCls:ge,csp:ve})),[ge,ve]);let Ce=t.createElement(t.Fragment,null,t.createElement(zf,{dropdownMatchSelectWidth:p}),n);const Se=t.useMemo((()=>{var e,t,n,r;return qi((null===(e=Tf.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=we.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=we.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[we,null==l?void 0:l.validateMessages]);Object.keys(Se).length>0&&(Ce=t.createElement(kf.Provider,{value:Se},Ce)),s&&(Ce=t.createElement(Rf,{locale:s,_ANT_MARK__:"internalMark"},Ce)),(ge||ve)&&(Ce=t.createElement(Nf.Provider,{value:Ee},Ce)),c&&(Ce=t.createElement(sa,{size:c},Ce)),Ce=t.createElement(Hf,null,Ce);const _e=t.useMemo((()=>{const e=be||{},{algorithm:t,token:n,components:r}=e,o=function(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}(e,["algorithm","token","components"]),a=t&&(!Array.isArray(t)||t.length>0)?Sa(t):Gl,i={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Sa(r.algorithm)),delete r.algorithm),i[t]=r}));const l=Object.assign(Object.assign({},$l),n);return Object.assign(Object.assign({},o),{theme:a,token:l,components:i,override:Object.assign({override:l},i)})}),[be]);return y&&(Ce=t.createElement(Zl.Provider,{value:_e},Ce)),we.warning&&(Ce=t.createElement(ra.Provider,{value:we.warning},Ce)),void 0!==x&&(Ce=t.createElement(Vf,{disabled:x},Ce)),t.createElement(aa.Provider,{value:we},Ce)},Xf=e=>{const n=t.useContext(aa),r=t.useContext(Df);return t.createElement(Kf,Object.assign({parentContext:n,legacyLocale:r},e))};Xf.ConfigContext=aa,Xf.SizeContext=ca,Xf.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(Gf=t),void 0!==n&&(Wf=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Vl(e),a=Ll(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Vl(t.primaryColor),a=Ll(e.toRgbString());a.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new Vl(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n  }\n  `.trim()}(e,t);Pt()&&un(n,`${jf}-dynamic-theme`)}(Gf||"ant",r):Zf=r)},Xf.useConfig=function(){return{componentDisabled:(0,t.useContext)(Bf),componentSize:(0,t.useContext)(ca)}},Object.defineProperty(Xf,"SizeContext",{get:()=>ca});var qf=Xf,Yf=()=>{const[,e]=es(),n=new Vl(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return t.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(24 31.67)"},t.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),t.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),t.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),t.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),t.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),t.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),t.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Qf=()=>{const[,e]=es(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=(0,t.useMemo)((()=>({borderColor:new Vl(n).onBackground(a).toHexShortString(),shadowColor:new Vl(r).onBackground(a).toHexShortString(),contentColor:new Vl(o).onBackground(a).toHexShortString()})),[n,r,o,a]);return t.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},t.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),t.createElement("g",{fillRule:"nonzero",stroke:i},t.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),t.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};const Jf=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var ep=ls("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=rs(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[Jf(r)]}));const tp=t.createElement(Yf,null),np=t.createElement(Qf,null),rp=e=>{var{className:n,rootClassName:r,prefixCls:o,image:a=tp,description:i,children:l,imageStyle:s,style:c}=e,u=function(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}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=t.useContext(aa),m=d("empty",o),[h,g]=ep(m),[v]=((e,n)=>{const r=t.useContext(Df);return[t.useMemo((()=>{var t;const o=n||Tf[e],a=null!==(t=null==r?void 0:r[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,n,r]),t.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?Tf.locale:e}),[r])]})("Empty"),b=void 0!==i?i:null==v?void 0:v.description,y="string"==typeof b?b:"empty";let x=null;return x="string"==typeof a?t.createElement("img",{alt:y,src:a}):a,h(t.createElement("div",Object.assign({className:vt()(g,m,null==p?void 0:p.className,{[`${m}-normal`]:a===np,[`${m}-rtl`]:"rtl"===f},n,r),style:Object.assign(Object.assign({},null==p?void 0:p.style),c)},u),t.createElement("div",{className:`${m}-image`,style:s},x),b&&t.createElement("div",{className:`${m}-description`},b),l&&t.createElement("div",{className:`${m}-footer`},l)))};rp.PRESENTED_IMAGE_DEFAULT=tp,rp.PRESENTED_IMAGE_SIMPLE=np;var op=rp,ap=e=>{const{componentName:n}=e,{getPrefixCls:o}=(0,t.useContext)(aa),a=o("empty");switch(n){case"Table":case"List":return r().createElement(op,{image:op.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r().createElement(op,{image:op.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return r().createElement(op,null)}};function ip(){ip=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new P(r||[]);return o(i,"_invoke",{value:O(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",h="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(F([])));E&&E!==n&&r.call(E,i)&&(x=E);var C=y.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==yt(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=f;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=N(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?h:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function N(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function F(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(yt(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(_.prototype),c(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new _(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(C),c(C,s,"Generator"),c(C,i,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function lp(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function sp(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){lp(a,r,o,i,l,"next",e)}function l(e){lp(a,r,o,i,l,"throw",e)}i(void 0)}))}}var cp="RC_FORM_INTERNAL_HOOKS",up=function(){Rt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},dp=t.createContext({getFieldValue:up,getFieldsValue:up,getFieldError:up,getFieldWarning:up,getFieldsError:up,isFieldsTouched:up,isFieldTouched:up,isFieldValidating:up,isFieldsValidating:up,resetFields:up,setFields:up,setFieldValue:up,setFieldsValue:up,validateFields:up,submit:up,getInternalHooks:function(){return up(),{dispatch:up,initEntityValue:up,registerField:up,useSubscribe:up,setInitialValues:up,destroyForm:up,setCallbacks:up,registerWatch:up,getFields:up,setValidateMessages:up,setPreserve:up,getInitialValue:up}}}),fp=t.createContext(null);function pp(e){return null==e?[]:Array.isArray(e)?e:[e]}function mp(){return mp=Object.assign?Object.assign.bind():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},mp.apply(this,arguments)}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hp(e)}function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gp(e,t)}function vp(e,t,n){return vp=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&gp(o,n.prototype),o},vp.apply(null,arguments)}function bp(e){var t="function"==typeof Map?new Map:void 0;return bp=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return vp(e,arguments,hp(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gp(r,e)},bp(e)}var yp=/%[sdj%]/g;function xp(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Ep(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var i=e.replace(yp,(function(e){if("%%"===e)return"%";if(o>=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}));return i}return e}function Cp(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function Sp(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var l=r;r+=1,l<o?t(e[l],a):n([])}}([])}"undefined"!=typeof process&&process.env;var _p=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,gp(t,n),r}(bp(Error));function Op(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Np(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=mp({},e[n],r):e[n]=r}return e}var kp,Ap=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!Cp(t,a||e.type)||r.push(Ep(o.messages.required,e.fullField))},Pp=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Fp=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Tp={integer:function(e){return Tp.number(e)&&parseInt(e,10)===e},float:function(e){return Tp.number(e)&&!Tp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Tp.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Pp)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(kp)return kp;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var c=s.v4().source,u=s.v6().source;return kp=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Fp)}},Lp="enum",Ip=Ap,Mp=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Ep(o.messages.whitespace,e.fullField))},Dp=function(e,t,n,r,o){if(e.required&&void 0===t)Ap(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?Tp[a](t)||r.push(Ep(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Ep(o.messages.types[a],e.fullField,e.type))}},Rp=function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&r.push(Ep(o.messages[c].len,e.fullField,e.len)):i&&!l&&s<e.min?r.push(Ep(o.messages[c].min,e.fullField,e.min)):l&&!i&&s>e.max?r.push(Ep(o.messages[c].max,e.fullField,e.max)):i&&l&&(s<e.min||s>e.max)&&r.push(Ep(o.messages[c].range,e.fullField,e.min,e.max))},jp=function(e,t,n,r,o){e[Lp]=Array.isArray(e[Lp])?e[Lp]:[],-1===e[Lp].indexOf(t)&&r.push(Ep(o.messages[Lp],e.fullField,e[Lp].join(", ")))},$p=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ep(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Ep(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Vp=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t,a)&&!e.required)return n();Ip(e,t,r,i,o,a),Cp(t,a)||Dp(e,t,r,i,o)}n(i)},Bp={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t,"string")&&!e.required)return n();Ip(e,t,r,a,o,"string"),Cp(t,"string")||(Dp(e,t,r,a,o),Rp(e,t,r,a,o),$p(e,t,r,a,o),!0===e.whitespace&&Mp(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&Dp(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&(Dp(e,t,r,a,o),Rp(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&Dp(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),Cp(t)||Dp(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&(Dp(e,t,r,a,o),Rp(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&(Dp(e,t,r,a,o),Rp(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Ip(e,t,r,a,o,"array"),null!=t&&(Dp(e,t,r,a,o),Rp(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&Dp(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o),void 0!==t&&jp(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t,"string")&&!e.required)return n();Ip(e,t,r,a,o),Cp(t,"string")||$p(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t,"date")&&!e.required)return n();var i;Ip(e,t,r,a,o),Cp(t,"date")||(i=t instanceof Date?t:new Date(t),Dp(e,i,r,a,o),i&&Rp(e,i.getTime(),r,a,o))}n(a)},url:Vp,hex:Vp,email:Vp,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;Ip(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Cp(t)&&!e.required)return n();Ip(e,t,r,a,o)}n(a)}};function Hp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var zp=Hp(),Up=function(){function e(e){this.rules=null,this._messages=zp,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=Np(Hp(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var a=t,i=n,l=r;if("function"==typeof i&&(l=i,i={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,a),Promise.resolve(a);if(i.messages){var s=this.messages();s===zp&&(s=Hp()),Np(s,i.messages),i.messages=s}else i.messages=this.messages();var c={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=a[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(a===t&&(a=mp({},a)),r=a[e]=i.transform(r)),(i="function"==typeof i?{validator:i}:mp({},i)).validator=o.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=o.getType(i),c[e]=c[e]||[],c[e].push({rule:i,value:r,source:a,field:e}))}))}));var u={};return function(e,t,n,r,o){if(t.first){var a=new Promise((function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Sp(i,n,(function(e){return r(e),e.length?a(new _p(e,xp(e))):t(o)}))}));return a.catch((function(e){return e})),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise((function(t,a){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?a(new _p(u,xp(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?Sp(r,n,d):function(e,t,n){var r=[],o=0,a=e.length;function i(e){r.push.apply(r,e||[]),++o===a&&n(r)}e.forEach((function(e){t(e,i)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(c,i,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function s(e,t){return mp({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!i.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(Op(o,a));if(i.first&&d.length)return u[o.field]=1,n(d);if(l){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(Op(o,a)):i.error&&(d=[i.error(o,Ep(i.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=mp({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,i);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,i)}catch(e){null==console.error||console.error(e),i.suppressValidatorError||setTimeout((function(){throw e}),0),c(e.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=xp(t),l(t,n)):l(null,a)}(e)}),a)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Bp.hasOwnProperty(e.type))throw new Error(Ep("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Bp.required:Bp[this.getType(e)]||void 0},e}();Up.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Bp[e]=t},Up.warning=function(){},Up.messages=zp,Up.validators=Bp;var Gp="'${name}' is not a valid ${type}",Wp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Gp,method:Gp,array:Gp,object:Gp,number:Gp,date:Gp,boolean:Gp,integer:Gp,float:Gp,regexp:Gp,email:Gp,url:Gp,hex:Gp},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Zp=Up;function Kp(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Xp="CODE_LOGIC_ERROR";function qp(_x,e,t,n,r){return Yp.apply(this,arguments)}function Yp(){return Yp=sp(ip().mark((function e(n,r,o,a,i){var l,s,c,u,d,f,p,m,h;return ip().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=Ct({},o)).ruleIndex,Zp.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Xp)}}),c=null,l&&"array"===l.type&&l.defaultField&&(c=l.defaultField,delete l.defaultField),u=new Zp(wt({},n,[l])),d=qi(Wp,a.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(wt({},n,r),Ct({},a)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,n){var r=e.message,o=r===Xp?d.default:r;return t.isValidElement(o)?t.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!c){e.next=23;break}return e.next=21,Promise.all(r.map((function(e,t){return qp("".concat(n,".").concat(t),e,c,a,i)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Wt(e),Wt(t))}),[]));case 23:return m=Ct(Ct({},o),{},{name:n,enum:(o.enum||[]).join(", ")},i),h=f.map((function(e){return"string"==typeof e?Kp(e,m):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Yp.apply(this,arguments)}function Qp(e,t,n,r,o,a){var i,l=e.join("."),s=n.map((function(e,t){var n=e.validator,r=Ct(Ct({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,a=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Rt(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=a&&"function"==typeof a.then&&"function"==typeof a.catch,Rt(o,"`callback` is deprecated. Please return a promise instead."),o&&a.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,a=t.ruleIndex;return!!n==!!o?r-a:n?1:-1}));if(!0===o)i=new Promise(function(){var e=sp(ip().mark((function e(n,o){var i,c,u;return ip().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<s.length)){e.next=12;break}return c=s[i],e.next=5,qp(l,t,c,r,a);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map((function(e){return qp(l,t,e,r,a).then((function(t){return{errors:t,rule:e}}))}));i=(o?function(e){return em.apply(this,arguments)}(c):function(e){return Jp.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return i.catch((function(e){return e})),i}function Jp(){return(Jp=sp(ip().mark((function e(t){return ip().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Wt(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function em(){return(em=sp(ip().mark((function e(t){var n;return ip().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tm(e){return pp(e)}function nm(e,t){var n={};return t.forEach((function(t){var r=Gi(e,t);n=Zi(n,t,r)})),n}function rm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return om(t,e,n)}))}function om(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function am(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===yt(t.target)&&e in t.target?t.target[e]:t}function im(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Wt(e.slice(0,n)),[o],Wt(e.slice(n,t)),Wt(e.slice(t+1,r))):a<0?[].concat(Wt(e.slice(0,t)),Wt(e.slice(t+1,n+1)),[o],Wt(e.slice(n+1,r))):e}var lm=["name"],sm=[];function cm(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var um=function(e){qn(r,e);var n=Jn(r);function r(e){var o;return Wn(this,r),wt(Qn(o=n.call(this,e)),"state",{resetCount:0}),wt(Qn(o),"cancelRegisterFunc",null),wt(Qn(o),"mounted",!1),wt(Qn(o),"touched",!1),wt(Qn(o),"dirty",!1),wt(Qn(o),"validatePromise",void 0),wt(Qn(o),"prevValidating",void 0),wt(Qn(o),"errors",sm),wt(Qn(o),"warnings",sm),wt(Qn(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,tm(r)),o.cancelRegisterFunc=null})),wt(Qn(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Wt(void 0===n?[]:n),Wt(t)):[]})),wt(Qn(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),wt(Qn(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),wt(Qn(o),"metaCache",null),wt(Qn(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Ct(Ct({},o.getMeta()),{},{destroy:e});fa(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),wt(Qn(o),"onStoreChange",(function(e,t,n){var r=o.props,a=r.shouldUpdate,i=r.dependencies,l=void 0===i?[]:i,s=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&rm(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=sm,o.warnings=sm,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=sm,o.warnings=sm,o.triggerMetaEvent(),null==s||s(),void o.refresh();break;case"remove":if(a)return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||sm),"warnings"in m&&(o.warnings=m.warnings||sm),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&rm(t,u,!0))return void o.reRender();if(a&&!u.length&&cm(a,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(tm).some((function(e){return rm(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||a)&&cm(a,e,c,d,f,n))return void o.reRender()}!0===a&&o.reRender()})),wt(Qn(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},a=r.triggerName,i=r.validateOnly,l=void 0!==i&&i,s=Promise.resolve().then(sp(ip().mark((function r(){var i,l,c,u,d,f,p;return ip().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(i=o.props,l=i.validateFirst,c=void 0!==l&&l,u=i.messageVariables,d=i.validateDebounce,f=o.getRules(),a&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||pp(t).includes(a)}))),!d||!a){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===s){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Qp(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sm;if(o.validatePromise===s){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,a=void 0===o?sm:o;t?r.push.apply(r,Wt(a)):n.push.apply(n,Wt(a))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=s,o.dirty=!0,o.errors=sm,o.warnings=sm,o.triggerMetaEvent(),o.reRender()),s})),wt(Qn(o),"isFieldValidating",(function(){return!!o.validatePromise})),wt(Qn(o),"isFieldTouched",(function(){return o.touched})),wt(Qn(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(cp).getInitialValue)(o.getNamePath())})),wt(Qn(o),"getErrors",(function(){return o.errors})),wt(Qn(o),"getWarnings",(function(){return o.warnings})),wt(Qn(o),"isListField",(function(){return o.props.isListField})),wt(Qn(o),"isList",(function(){return o.props.isList})),wt(Qn(o),"isPreserve",(function(){return o.props.preserve})),wt(Qn(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),wt(Qn(o),"getOnlyChild",(function(e){if("function"==typeof e){var n=o.getMeta();return Ct(Ct({},o.getOnlyChild(e(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=bn(e);return 1===r.length&&t.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),wt(Qn(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Gi(e||t(!0),n)})),wt(Qn(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,a=t.getValueFromEvent,i=t.normalize,l=t.valuePropName,s=t.getValueProps,c=t.fieldContext,u=void 0!==r?r:c.validateTrigger,d=o.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,m=f(cp).dispatch,h=o.getValue(),g=s||function(e){return wt({},l,e)},v=e[n],b=Ct(Ct({},e),g(h));return b[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):am.apply(void 0,[l].concat(n)),i&&(e=i(e,h,p(!0))),m({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},pp(u||[]).forEach((function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&m({type:"validateField",namePath:d,triggerName:e})}})),b})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(cp).initEntityValue)(Qn(o)),o}return Kn(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(cp).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),a=o.child;return o.isFunction?e=a:t.isValidElement(a)?e=t.cloneElement(a,this.getControlled(a.props)):(Rt(!a,"`children` of Field is not validate ReactElement."),e=a),t.createElement(t.Fragment,{key:n},e)}}]),r}(t.Component);wt(um,"contextType",dp),wt(um,"defaultProps",{trigger:"onChange",valuePropName:"value"});var dm=function(e){var n=e.name,r=St(e,lm),o=t.useContext(dp),a=t.useContext(fp),i=void 0!==n?tm(n):void 0,l="keep";return r.isListField||(l="_".concat((i||[]).join("_"))),t.createElement(um,(0,ie.Z)({key:l,name:i,isListField:!!a},r,{fieldContext:o}))},fm="__@field_split__";function pm(e){return e.map((function(e){return"".concat(yt(e),":").concat(e)})).join(fm)}var mm=function(){function e(){Wn(this,e),wt(this,"kvs",new Map)}return Kn(e,[{key:"set",value:function(e,t){this.kvs.set(pm(e),t)}},{key:"get",value:function(e){return this.kvs.get(pm(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(pm(e))}},{key:"map",value:function(e){return Wt(this.kvs.entries()).map((function(t){var n=At(t,2),r=n[0],o=n[1],a=r.split(fm);return e({key:a.map((function(e){var t=At(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),hm=mm,gm=["name"],vm=Kn((function e(t){var n=this;Wn(this,e),wt(this,"formHooked",!1),wt(this,"forceRootUpdate",void 0),wt(this,"subscribable",!0),wt(this,"store",{}),wt(this,"fieldEntities",[]),wt(this,"initialValues",{}),wt(this,"callbacks",{}),wt(this,"validateMessages",null),wt(this,"preserve",null),wt(this,"lastValidatePromise",null),wt(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),wt(this,"getInternalHooks",(function(e){return e===cp?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Rt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),wt(this,"useSubscribe",(function(e){n.subscribable=e})),wt(this,"prevWithoutPreserves",null),wt(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=qi(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Zi(o,n,Gi(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),wt(this,"destroyForm",(function(){var e=new hm;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),wt(this,"getInitialValue",(function(e){var t=Gi(n.initialValues,e);return e.length?qi(t):t})),wt(this,"setCallbacks",(function(e){n.callbacks=e})),wt(this,"setValidateMessages",(function(e){n.validateMessages=e})),wt(this,"setPreserve",(function(e){n.preserve=e})),wt(this,"watchList",[]),wt(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),wt(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),wt(this,"timeoutId",null),wt(this,"warningUnhooked",(function(){})),wt(this,"updateStore",(function(e){n.store=e})),wt(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),wt(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new hm;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),wt(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=tm(e);return t.get(n)||{INVALIDATE_NAME_PATH:tm(e)}}))})),wt(this,"getFieldsValue",(function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===yt(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return i.forEach((function(e){var t,n,i,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!==(i=(s=e).isList)&&void 0!==i&&i.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)})),nm(n.store,l.map(tm))})),wt(this,"getFieldValue",(function(e){n.warningUnhooked();var t=tm(e);return Gi(n.store,t)})),wt(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:tm(e[n]),errors:[],warnings:[]}}))})),wt(this,"getFieldError",(function(e){n.warningUnhooked();var t=tm(e);return n.getFieldsError([t])[0].errors})),wt(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=tm(e);return n.getFieldsError([t])[0].warnings})),wt(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a=t[0],i=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(a)?(o=a.map(tm),l=!1):(o=null,l=a):(o=a.map(tm),l=i);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every(c):s.some(c);var u=new hm;o.forEach((function(e){u.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Wt(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),wt(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),wt(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(tm);return t.some((function(e){var t=e.getNamePath();return rm(r,t)&&e.isFieldValidating()}))})),wt(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),wt(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new hm,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,Wt(Wt(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))Rt(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=r.get(o);if(a&&a.size>1)Rt(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==i||n.updateStore(Zi(n.store,o,Wt(a)[0].value))}}}}))})),wt(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(qi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(tm);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Zi(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),wt(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=St(e,gm),i=tm(o);r.push(i),"value"in a&&n.updateStore(Zi(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),wt(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Ct(Ct({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),wt(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Gi(n.store,r)&&n.updateStore(Zi(n.store,r,t))}})),wt(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),wt(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!om(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Zi(l,t,i,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),wt(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}})),wt(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Ct(Ct({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),wt(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Wt(r))}),r})),wt(this,"updateValue",(function(e,t){var r=tm(e),o=n.store;n.updateStore(Zi(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(nm(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(Wt(a)))})),wt(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=qi(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),wt(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),wt(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new hm;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=tm(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),wt(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new hm;t.forEach((function(e){var t=e.name,n=e.errors;a.set(t,n)})),o.forEach((function(e){e.errors=a.get(e.name)||e.errors}))}var i=o.filter((function(t){var n=t.name;return rm(e,n)}));i.length&&r(i,o)}})),wt(this,"validateFields",(function(e,t){var r,o,a;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,a=t):a=e;var i=!!o,l=i?o.map(tm):[],s=[],c=String(Date.now()),u=new Set,d=null===(r=a)||void 0===r?void 0:r.recursive;n.getFieldEntities(!0).forEach((function(e){if(i||l.push(e.getNamePath()),e.props.rules&&e.props.rules.length){var t=e.getNamePath();if(u.add(t.join(c)),!i||rm(l,t,d)){var r=e.validateRules(Ct({validateMessages:Ct(Ct({},Wp),n.validateMessages)},a));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Wt(n)):r.push.apply(r,Wt(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var f=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=f,f.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var p=f.then((function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(l),errorFields:t,outOfDate:n.lastValidatePromise!==f})}));p.catch((function(e){return e}));var m=l.filter((function(e){return u.has(e.join(c))}));return n.triggerOnFieldsChange(m),p})),wt(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t})),bm=function(e){var n=t.useRef(),r=At(t.useState({}),2)[1];if(!n.current)if(e)n.current=e;else{var o=new vm((function(){r({})}));n.current=o.getForm()}return[n.current]},ym=t.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),xm=ym,wm=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Em=function(e,n){var r=e.name,o=e.initialValues,a=e.fields,i=e.form,l=e.preserve,s=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,m=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=St(e,wm),y=t.useContext(xm),x=At(bm(i),1)[0],w=x.getInternalHooks(cp),E=w.useSubscribe,C=w.setInitialValues,S=w.setCallbacks,_=w.setValidateMessages,O=w.setPreserve,N=w.destroyForm;t.useImperativeHandle(n,(function(){return x})),t.useEffect((function(){return y.registerForm(r,x),function(){y.unregisterForm(r)}}),[y,x,r]),_(Ct(Ct({},y.validateMessages),d)),S({onValuesChange:m,onFieldsChange:function(e){if(y.triggerFormChange(r,e),h){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];h.apply(void 0,[e].concat(n))}},onFinish:function(e){y.triggerFormFinish(r,e),g&&g(e)},onFinishFailed:v}),O(l);var k,A=t.useRef(null);C(o,!A.current),A.current||(A.current=!0),t.useEffect((function(){return N}),[]);var P="function"==typeof s;k=P?s(x.getFieldsValue(!0),x):s,E(!P);var F=t.useRef();t.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==yt(e)||"object"!==yt(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Wt(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(F.current||[],a||[])||x.setFields(a||[]),F.current=a}),[a,x]);var T=t.useMemo((function(){return Ct(Ct({},x),{},{validateTrigger:p})}),[x,p]),L=t.createElement(fp.Provider,{value:null},t.createElement(dp.Provider,{value:T},k));return!1===u?L:t.createElement(u,(0,ie.Z)({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),x.submit()},onReset:function(e){var t;e.preventDefault(),x.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),L)};function Cm(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Sm=t.forwardRef(Em);Sm.FormProvider=function(e){var n=e.validateMessages,r=e.onFormChange,o=e.onFormFinish,a=e.children,i=t.useContext(ym),l=t.useRef({});return t.createElement(ym.Provider,{value:Ct(Ct({},i),{},{validateMessages:Ct(Ct({},i.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=Ct(Ct({},l.current),{},wt({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Ct({},l.current);delete t[e],l.current=t,i.unregisterForm(e)}})},a)},Sm.Field=dm,Sm.List=function(e){var n=e.name,r=e.initialValue,o=e.children,a=e.rules,i=e.validateTrigger,l=e.isListField,s=t.useContext(dp),c=t.useContext(fp),u=t.useRef({keys:[],id:0}).current,d=t.useMemo((function(){var e=tm(s.prefixName)||[];return[].concat(Wt(e),Wt(tm(n)))}),[s.prefixName,n]),f=t.useMemo((function(){return Ct(Ct({},s),{},{prefixName:d})}),[s,d]),p=t.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(Rt(!1,"Form.List only accepts function as children."),null):t.createElement(fp.Provider,{value:p},t.createElement(dp.Provider,{value:f},t.createElement(dm,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:a,validateTrigger:i,initialValue:r,isList:!0,isListField:null!=l?l:!!c},(function(e,t){var n=e.value,r=void 0===n?[]:n,a=e.onChange,i=s.getFieldValue,l=function(){return i(d||[])||[]},c={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Wt(u.keys.slice(0,t)),[u.id],Wt(u.keys.slice(t))),a([].concat(Wt(n.slice(0,t)),[e],Wt(n.slice(t))))):(u.keys=[].concat(Wt(u.keys),[u.id]),a([].concat(Wt(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),a(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=im(u.keys,e,t),a(im(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}})),c,t)}))))},Sm.useForm=bm,Sm.useWatch=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],a=void 0===o?[]:o,i=n[1],l=void 0===i?{}:i,s=function(e){return e&&!!e._init}(l)?{form:l}:l,c=s.form,u=At((0,t.useState)(),2),d=u[0],f=u[1],p=(0,t.useMemo)((function(){return Cm(d)}),[d]),m=(0,t.useRef)(p);m.current=p;var h=(0,t.useContext)(dp),g=c||h,v=g&&g._init,b=tm(a),y=(0,t.useRef)(b);return y.current=b,(0,t.useEffect)((function(){if(v){var e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(cp).registerWatch)((function(e,t){var n=Gi(s.preserve?t:e,y.current),r=Cm(n);m.current!==r&&(m.current=r,f(n))})),n=Gi(s.preserve?e(!0):e(),y.current);return d!==n&&f(n),t}}),[v]),d};const _m=t.createContext({});function Om(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Nm(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Om(e,r,t)),Nm(n,r,t))}}const Am=new Hi("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Pm=new Hi("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fm=new Hi("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Tm=new Hi("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Lm=new Hi("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Im=new Hi("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mm=new Hi("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Dm=new Hi("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Rm={"slide-up":{inKeyframes:Am,outKeyframes:Pm},"slide-down":{inKeyframes:Fm,outKeyframes:Tm},"slide-left":{inKeyframes:Lm,outKeyframes:Im},"slide-right":{inKeyframes:Mm,outKeyframes:Dm}},jm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Rm[t];return[bs(r,o,a,e.motionDurationMid),{[`\n      ${r}-enter,\n      ${r}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},$m=new Hi("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vm=new Hi("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Bm=new Hi("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hm=new Hi("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zm=new Hi("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Um=new Hi("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Gm={"move-up":{inKeyframes:new Hi("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Hi("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:$m,outKeyframes:Vm},"move-left":{inKeyframes:Bm,outKeyframes:Hm},"move-right":{inKeyframes:zm,outKeyframes:Um}},Wm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Gm[t];return[bs(r,o,a,e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Zm=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var Km=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Qi(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n          ${o}${l}bottomLeft,\n          ${a}${l}bottomLeft\n        `]:{animationName:Am},[`\n          ${o}${l}topLeft,\n          ${a}${l}topLeft,\n          ${o}${l}topRight,\n          ${a}${l}topRight\n        `]:{animationName:Fm},[`${i}${l}bottomLeft`]:{animationName:Pm},[`\n          ${i}${l}topLeft,\n          ${i}${l}topRight\n        `]:{animationName:Tm},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Zm(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Yi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},jm(e,"slide-up"),jm(e,"slide-down"),Wm(e,"move-up"),Wm(e,"move-down")]};const Xm=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function qm(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=Xm(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:i-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n        &${n}-show-arrow ${n}-selector,\n        &${n}-allow-clear ${n}-selector\n      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var Ym=e=>{const{componentCls:t}=e,n=rs(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=rs(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=Xm(e);return[qm(e),qm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},qm(r,"lg")]};function Qm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Qi(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n          ${n}-selection-item,\n          ${n}-selection-placeholder\n        `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n        &${n}-show-arrow ${n}-selection-item,\n        &${n}-show-arrow ${n}-selection-placeholder\n      `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function Jm(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Qm(e),Qm(rs(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n            &${t}-show-arrow ${t}-selection-item,\n            &${t}-show-arrow ${t}-selection-placeholder\n          `]:{paddingInlineEnd:1.5*e.fontSize}}}},Qm(rs(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const eh=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},th=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:l,controlOutlineWidth:s}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${s}px ${l}`,outline:0}})}}},nh=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},rh=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Qi(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},eh(e)),nh(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Yi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Yi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},oh=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},rh(e),Jm(e),Ym(e),Km(e),{[`${t}-rtl`]:{direction:"rtl"}},th(t,rs(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),th(`${t}-status-error`,rs(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),th(`${t}-status-warning`,rs(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),km(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var ah=ls("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=rs(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[oh(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:m,colorTextDisabled:h}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent"}}));var ih={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function lh(e){return"object"===yt(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===yt(e.icon)||"function"==typeof e.icon)}function sh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function ch(e,t,n){return n?r().createElement(e.tag,Ct(Ct({key:t},sh(e.attrs)),n),(e.children||[]).map((function(n,r){return ch(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):r().createElement(e.tag,Ct({key:t},sh(e.attrs)),(e.children||[]).map((function(n,r){return ch(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function uh(e){return Ll(e)[0]}function dh(e){return e?Array.isArray(e)?e:[e]:[]}var fh=["icon","className","onClick","style","primaryColor","secondaryColor"],ph={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},mh=function(e){var n,r,o,a,i,l,s,c=e.icon,u=e.className,d=e.onClick,f=e.style,p=e.primaryColor,m=e.secondaryColor,h=St(e,fh),g=t.useRef(),v=ph;if(p&&(v={primaryColor:p,secondaryColor:m||uh(p)}),n=g,r=(0,t.useContext)(Nf),o=r.csp,a=r.prefixCls,i="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",a&&(i=i.replace(/anticon/g,a)),(0,t.useEffect)((function(){var e=lr(n.current);un(i,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),l=lh(c),s="icon should be icon definiton, but got ".concat(c),Rt(l,"[@ant-design/icons] ".concat(s)),!lh(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=Ct(Ct({},b),{},{icon:b.icon(v.primaryColor,v.secondaryColor)})),ch(b.icon,"svg-".concat(b.name),Ct(Ct({className:u,onClick:d,style:f,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};mh.displayName="IconReact",mh.getTwoToneColors=function(){return Ct({},ph)},mh.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ph.primaryColor=t,ph.secondaryColor=n||uh(t),ph.calculated=!!n};var hh=mh;function gh(e){var t=At(dh(e),2),n=t[0],r=t[1];return hh.setTwoToneColors({primaryColor:n,secondaryColor:r})}var vh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];gh(Rl.primary);var bh=t.forwardRef((function(e,n){var r,o=e.className,a=e.icon,i=e.spin,l=e.rotate,s=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=St(e,vh),f=t.useContext(Nf),p=f.prefixCls,m=void 0===p?"anticon":p,h=f.rootClassName,g=vt()(h,m,(wt(r={},"".concat(m,"-").concat(a.name),!!a.name),wt(r,"".concat(m,"-spin"),!!i||"loading"===a.name),r),o),v=s;void 0===v&&c&&(v=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,y=At(dh(u),2),x=y[0],w=y[1];return t.createElement("span",(0,ie.Z)({role:"img","aria-label":a.name},d,{ref:n,tabIndex:v,onClick:c,className:g}),t.createElement(hh,{icon:a,primaryColor:x,secondaryColor:w,style:b}))}));bh.displayName="AntdIcon",bh.getTwoToneColor=function(){var e=hh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bh.setTwoToneColor=gh;var yh=bh,xh=function(e,n){return t.createElement(yh,(0,ie.Z)({},e,{ref:n,icon:ih}))},wh=t.forwardRef(xh),Eh={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Ch=function(e,n){return t.createElement(yh,(0,ie.Z)({},e,{ref:n,icon:Eh}))},Sh=t.forwardRef(Ch),_h={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Oh=function(e,n){return t.createElement(yh,(0,ie.Z)({},e,{ref:n,icon:_h}))},Nh=t.forwardRef(Oh),kh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Ah=function(e,n){return t.createElement(yh,(0,ie.Z)({},e,{ref:n,icon:kh}))},Ph=t.forwardRef(Ah),Fh={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Th=function(e,n){return t.createElement(yh,(0,ie.Z)({},e,{ref:n,icon:Fh}))},Lh=t.forwardRef(Th),Ih={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Mh=function(e,n){return t.createElement(yh,(0,ie.Z)({},e,{ref:n,icon:Ih}))},Dh=t.forwardRef(Mh);const Rh="SECRET_COMBOBOX_MODE_DO_NOT_USE",jh=(e,n)=>{var r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:m,disabled:h,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:E,allowClear:C}=e,S=function(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}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:_,getPrefixCls:O,renderEmpty:N,direction:k,virtual:A,popupMatchSelectWidth:P,popupOverflow:F,select:T}=t.useContext(aa),L=O("select",o),I=O(),M=null!=w?w:k,{compactSize:D,compactItemClassnames:R}=((e,n)=>{const r=t.useContext(ps),o=t.useMemo((()=>{if(!r)return"";const{compactDirection:t,isFirstItem:o,isLastItem:a}=r,i="vertical"===t?"-vertical-":"-";return vt()(`${e}-compact${i}item`,{[`${e}-compact${i}first-item`]:o,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===n})}),[e,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}})(L,M),[j,$]=ah(L),V=t.useMemo((()=>{const{mode:e}=S;if("combobox"!==e)return e===Rh?"combobox":e}),[S.mode]),B="multiple"===V||"tags"===V,H=function(e,t){return void 0!==t?t:null!==e}(S.suffixIcon,S.showArrow),z=null!==(r=null!=x?x:y)&&void 0!==r?r:P,{status:U,hasFeedback:G,isFormItemInput:W,feedbackIcon:Z}=t.useContext(_m),K=((e,t)=>t||e)(U,v);let X;X=void 0!==g?g:"combobox"===V?null:(null==N?void 0:N("Select"))||t.createElement(ap,{componentName:"Select"});const{suffixIcon:q,itemIcon:Y,removeIcon:Q,clearIcon:J}=function(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!=r?r:t.createElement(Sh,null),h=e=>null!==n||s||f?t.createElement(t.Fragment,null,!1!==u&&e,s&&d):null;let g=null;if(void 0!==n)g=h(n);else if(i)g=h(t.createElement(Lh,{spin:!0}));else{const e=`${c}-suffix`;g=n=>{let{open:r,showSearch:o}=n;return h(r&&o?t.createElement(Dh,{className:e}):t.createElement(Ph,{className:e}))}}let v=null;v=void 0!==o?o:l?t.createElement(wh,null):null;let b=null;return b=void 0!==a?a:t.createElement(Nh,null),{clearIcon:m,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},S),{multiple:B,hasFeedback:G,feedbackIcon:Z,showSuffixIcon:H,prefixCls:L,showArrow:S.showArrow,componentName:"Select"})),ee=!0===C?{clearIcon:J}:C,te=Yd(S,["suffixIcon","itemIcon"]),ne=vt()(c||u,{[`${L}-dropdown-${M}`]:"rtl"===M},l,$),re=ua((e=>{var t;return null!==(t=null!=m?m:D)&&void 0!==t?t:e})),oe=t.useContext(Bf),ae=null!=h?h:oe,ie=vt()({[`${L}-lg`]:"large"===re,[`${L}-sm`]:"small"===re,[`${L}-rtl`]:"rtl"===M,[`${L}-borderless`]:!a,[`${L}-in-form-item`]:W},function(e,t,n){return vt()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}(L,K,G),R,null==T?void 0:T.className,i,l,$),le=t.useMemo((()=>void 0!==f?f:"rtl"===M?"bottomRight":"bottomLeft"),[f,M]),se=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(b,F);return j(t.createElement(Of,Object.assign({ref:n,virtual:A,showSearch:null==T?void 0:T.showSearch},te,{style:Object.assign(Object.assign({},null==T?void 0:T.style),E),dropdownMatchSelectWidth:z,builtinPlacements:se,transitionName:Wo(I,"slide-up",S.transitionName),listHeight:d,listItemHeight:p,mode:V,prefixCls:L,placement:le,direction:M,suffixIcon:q,menuItemSelectedIcon:Y,removeIcon:Q,allowClear:ee,notFoundContent:X,className:ie,getPopupContainer:s||_,dropdownClassName:ne,disabled:ae})))},$h=t.forwardRef(jh),Vh=(Bh=$h,function(e){return function(n){return t.createElement(qf,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(e,Object.assign({},n)))}}((function(e){const{prefixCls:n,style:r}=e,o=t.useRef(null),[a,i]=t.useState(0),[l,s]=t.useState(0),[c,u]=Go(!1,{value:e.open}),{getPrefixCls:d}=t.useContext(aa),f=d("select",n);t.useEffect((()=>{if(u(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const r=`.${f}-dropdown`,a=null===(n=o.current)||void 0===n?void 0:n.querySelector(r);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},r),{margin:0}),open:c,visible:c,getPopupContainer:()=>o.current});return t.createElement("div",{ref:o,style:{paddingBottom:a,position:"relative",minWidth:l}},t.createElement(Bh,Object.assign({},p)))})));var Bh;$h.SECRET_COMBOBOX_MODE_DO_NOT_USE=Rh,$h.Option=qd,$h.OptGroup=Kd,$h._InternalPanelDoNotUseOrYouWillBeFired=Vh;var Hh=$h;const{Option:zh}=Hh;var Uh=()=>{const t=!1!==Le((e=>e.enableGoogleLogin)),n=Ae(),r=!!lmn_admin.pro_available,o=Le((e=>e.getUserRoles)),a=Le((e=>e.selectGoogleProDefaultUserRole));let i="Subscriber";return o&&Object.hasOwnProperty.call(o,a)&&(i=o[a]),(0,e.createElement)("section",{className:(t?"block":"hidden")+" block border-b border-solid border-slate-200 py-12 justify-between"},(0,e.createElement)("div",{className:"mr-16 w-full flex flex-col pr-[10%]"},(0,e.createElement)("h3",{className:"p-0 flex-1 justify-right inline-flex text-[20px] leading-6 font-semibold text-slate-800"},(0,be.__)("User role permission level","login-me-now"),lmn_admin.pro_available?"":(0,e.createElement)(tu,null)),(0,e.createElement)("p",{className:"mt-6 mb-6 w-9/12 text-[16px] text-slate-500 tablet:w-full"},(0,be.__)("Select the role that will be assigned to new users who sign up","login-me-now")),(0,e.createElement)(ju,{disabled:!r,onChange:e=>{n({type:"UPDATE_SELECT_GOOGLE_PRO_DEFAULT_USER_ROLE",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","google_pro_default_user_role"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))}},(0,e.createElement)(Is,{title:!1===r?"Upgrade to Pro":"",placement:"rightTop"},(0,e.createElement)(ju.Button,{className:`${!r&&"opacity-40"} block w-full text-left h-[50px] pl-3 pr-0 py-0 mt-3 text-lg border !border-slate-200 rounded-[4px]`},(0,e.createElement)("span",{className:"block truncate text-[16px]"},i),(0,e.createElement)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2"},(0,e.createElement)($u,{className:"h-5 w-5","aria-hidden":"true"}))),(0,e.createElement)(ju.Options,{className:"p-3 absolute mt-1 max-h-60 w-[400px] overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-[16px]"},Object.keys(o).map((t=>(0,e.createElement)(ju.Option,{key:t,value:t,className:"text-lg text-slate-800 relative cursor-pointer py-2 pr-1 mb-1"},o[t]))))))),(0,e.createElement)("p",{className:"mt-6 w-9/12 text-[16px] text-slate-500 tablet:w-full leading-[1.7]"},(0,be.__)("By default user role is set as per","login-me-now"),(0,e.createElement)("span",{className:"text-slate-500 font-medium"},(0,be.__)(" Settings > New User Default Role","login-me-now"))))};o(878);var Gh=()=>{const t=!1!==Le((e=>e.enableGoogleLogin)),n=Ae(),r=Le((e=>e.selectGoogleProSelectedPages)),o=(lmn_admin.pro_available,Le((e=>e.getPages)));let a;a=r&&r.length>0?o.filter((e=>r.includes(e.id))):[];const i=o.map((e=>({label:e.name,value:e.name}))),l=Array.from(i),s=a.map((e=>e.name));return(0,e.createElement)("section",{className:t?"block":"hidden"},(0,e.createElement)("div",{className:"w-full items-center"},(0,e.createElement)(Hh,{className:"antd-selector",mode:"tags",size:"middle",placeholder:"Please select",defaultValue:s,onChange:e=>{const t=o.filter((t=>e.includes(t.name))).map((e=>e.id));n({type:"UPDATE_SELECT_GOOGLE_PRO_SELECTED_PAGES",payload:t});const r=new window.FormData;r.append("action","login_me_now_update_admin_setting"),r.append("security",lmn_admin.update_nonce),r.append("key","google_pro_selected_pages"),r.append("value",t),De()({url:lmn_admin.ajax_url,method:"POST",body:r}).then((()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},style:{width:"100%"},options:l})))},Wh=()=>{const t=!1!==Le((e=>e.enableGoogleLogin)),n=Ae(),r=Le((e=>e.inputGoogleProRedirectUrl)),o=!!lmn_admin.pro_available;return(0,e.createElement)("section",{className:(t?"block":"hidden")+" text-[16px] block border-b border-solid border-slate-200 py-12 justify-between"},(0,e.createElement)("div",{className:"mr-16 w-full flex flex-col space-y-3 pr-[10%]"},(0,e.createElement)("h3",{className:"p-0 mb-5 flex-1 justify-right inline-flex text-[20px] leading-6 font-semibold text-slate-800"},(0,be.__)("Redirect after successful login and registration","login-me-now"),o?"":(0,e.createElement)(tu,null)),(0,e.createElement)(Is,{placement:"rightTop",title:!1===o?"Upgrade to Pro":""},(0,e.createElement)("input",{disabled:!o,onChange:e=>{n({type:"UPDATE_INPUT_GOOGLE_PRO_REDIRECT_URL",payload:e.target.value});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","google_pro_redirect_url"),t.append("value",e.target.value),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:`${!o&&"opacity-40"} block w-full h-[50px] !p-3 !border-slate-200`,value:r,type:"text",name:"name",placeholder:"ex: https://example.com/dashboard/"}))))};function Zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var Kh=()=>{const t=Ae(),n=!!lmn_admin.pro_available,r=Le((e=>e.enableGoogleUpdateExistingUserAvatar)),o=!(!1===r||!n),a=!1!==Le((e=>e.enableGoogleLogin));return(0,e.createElement)("section",{className:`${a?"block":"hidden"} login-me-now-dep-field-${a} border-b border-solid border-slate-200 py-12 justify-between`},(0,e.createElement)("div",{className:"mr-16 w-full flex items-center"},(0,e.createElement)("h3",{className:"p-0 flex-1 justify-right inline-flex text-[20px] leading-6 font-semibold text-slate-800"},(0,be.__)("Add user profile picture","login-me-now"),n?"":(0,e.createElement)(tu,null)),(0,e.createElement)(Is,{title:!1===n?"Upgrade to Pro":""},(0,e.createElement)(Nc,{checked:o,onChange:!0===n&&(()=>{let e;e=!1===r,t({type:"UPDATE_ENABLE_GOOGLE_UPDATE_EXISTING_USER_AVATAR",payload:e});const n=new window.FormData;n.append("action","login_me_now_update_admin_setting"),n.append("security",lmn_admin.update_nonce),n.append("key","google_pro_user_avatar"),n.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:n}).then((()=>{t({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))}),className:Zh(o?"bg-lmn":"bg-slate-200","group relative inline-flex h-[16px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:Zh(o?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:Zh(o?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")})))),(0,e.createElement)("p",{className:"mt-6 w-9/12 text-[16px] text-slate-500 tablet:w-full leading-[1.7]"},(0,be.__)("Automatically retrieve the profile picture as avator from users' google account upon login or register using gmail","login-me-now")))};function Xh(e){return["small","middle","large"].includes(e)}function qh(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Yh=r().createContext({latestIndex:0}),Qh=Yh.Provider;var Jh=e=>{let{className:n,index:r,children:o,split:a,style:i}=e;const{latestIndex:l}=t.useContext(Yh);return null==o?null:t.createElement(t.Fragment,null,t.createElement("div",{className:n,style:i},o),r<l&&a&&t.createElement("span",{className:`${n}-split`},a))};const eg=t.forwardRef(((e,n)=>{var r,o;const{getPrefixCls:a,space:i,direction:l}=t.useContext(aa),{size:s=(null==i?void 0:i.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:m,split:h,style:g,wrap:v=!1,classNames:b,styles:y}=e,x=function(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}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,E]=Array.isArray(s)?s:[s,s],C=Xh(E),S=Xh(w),_=qh(E),O=qh(w),N=bn(f,{keepEmpty:!0}),k=void 0===c&&"horizontal"===p?"center":c,A=a("space",m),[P,F]=ds(A),T=vt()(A,null==i?void 0:i.className,F,`${A}-${p}`,{[`${A}-rtl`]:"rtl"===l,[`${A}-align-${k}`]:k,[`${A}-gap-row-${E}`]:C,[`${A}-gap-col-${w}`]:S},u,d),L=vt()(`${A}-item`,null!==(r=null==b?void 0:b.item)&&void 0!==r?r:null===(o=null==i?void 0:i.classNames)||void 0===o?void 0:o.item);let I=0;const M=N.map(((e,n)=>{var r,o;null!=e&&(I=n);const a=e&&e.key||`${L}-${n}`;return t.createElement(Jh,{className:L,key:a,index:n,split:h,style:null!==(r=null==y?void 0:y.item)&&void 0!==r?r:null===(o=null==i?void 0:i.styles)||void 0===o?void 0:o.item},e)})),D=t.useMemo((()=>({latestIndex:I})),[I]);if(0===N.length)return null;const R={};return v&&(R.flexWrap="wrap"),!S&&O&&(R.columnGap=w),!C&&_&&(R.rowGap=E),P(t.createElement("div",Object.assign({ref:n,className:T,style:Object.assign(Object.assign(Object.assign({},R),null==i?void 0:i.style),g)},x),t.createElement(Qh,{value:D},M)))})),tg=eg;tg.Compact=e=>{const{getPrefixCls:n,direction:r}=t.useContext(aa),{size:o,direction:a,block:i,prefixCls:l,className:s,rootClassName:c,children:u}=e,d=fs(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ua((e=>null!=o?o:e)),p=n("space-compact",l),[m,h]=ds(p),g=vt()(p,h,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===a},s,c),v=t.useContext(ps),b=bn(u),y=t.useMemo((()=>b.map(((e,n)=>{const r=e&&e.key||`${p}-item-${n}`;return t.createElement(hs,{key:r,compactSize:f,compactDirection:a,isFirstItem:0===n&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:n===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}))),[o,b,v]);return 0===b.length?null:m(t.createElement("div",Object.assign({className:g},d),y))};var ng=tg;const rg=["About","Contact"],og=e=>{console.log(`Selected: ${e}`)};var ag=n=>{let{checkbox:r}=n;const[o,a]=(0,t.useState)("middle");return(0,e.createElement)("div",{className:(!0===r?"block":"hidden")+" "},(0,e.createElement)(ng,{direction:"vertical",style:{width:"100%"}},(0,e.createElement)(Hh,{mode:"tags",size:o,placeholder:"Please select",defaultValue:["Home"],onChange:og,style:{width:"100%"},options:rg.map((e=>({label:e,value:e})))})))};function ig(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function lg(){const n=Ae(),[r,o]=(0,t.useState)(),a=!!lmn_admin.pro_available,i=e=>{o("selected_pages"===e),n({type:"UPDATE_SELECT_GOOGLE_PRO_SELECTED_LOCATION",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","google_onetap_display_location"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:"Successfully saved!"})})).catch((e=>{console.error("Error:",e)}))},l=Le((e=>e.selectGoogleSelectedLocation)),s=Le((e=>e.enableGoogleOneTap)),c=!1!==s,u=!1!==Le((e=>e.enableGoogleLogin));return(0,e.createElement)("div",{className:(u?"block":"hidden")+" py-12 "},(0,e.createElement)("div",{className:"flex justify-between items-start"},(0,e.createElement)("p",{className:"mt-0 text-[20px] text-[#000000] tablet:w-full font-medium mb-8"},(0,be.__)("Enable one tap login","login-me-now")),(0,e.createElement)(Nc,{checked:c,onChange:()=>{let e;e=!1===s,n({type:"UPDATE_ENABLE_GOOGLE_ONETAP",payload:e});const t=new window.FormData;t.append("action","login_me_now_update_admin_setting"),t.append("security",lmn_admin.update_nonce),t.append("key","google_onetap"),t.append("value",e),De()({url:lmn_admin.ajax_url,method:"POST",body:t}).then((()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully saved!","login-me-now")})}))},className:ig(c?"bg-lmn":"bg-slate-200","group relative inline-flex h-[8px] w-[32px] flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none focus:ring-2 focus:ring-lmn focus:ring-offset-2")},(0,e.createElement)("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-full w-full rounded-md bg-white"}),(0,e.createElement)("span",{"aria-hidden":"true",className:ig(c?"bg-lmn":"bg-gray-200","pointer-events-none absolute mx-auto h-[16px] w-[32px] rounded-full transition-colors duration-200 ease-in-out")}),(0,e.createElement)("span",{"aria-hidden":"true",className:ig(c?"translate-x-5":"translate-x-0","toggle-bubble pointer-events-none absolute left-0 inline-block h-[16px] w-[16px] transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out")}))),c&&(0,e.createElement)("div",{className:"flex pr-[10%]"},(0,e.createElement)("div",{className:"w-[30%]"},(0,e.createElement)("p",{className:"w-9/12 text-[18px] text-[#000000] tablet:w-full font-medium"},(0,be.__)("Select location ","login-me-now"))),(0,e.createElement)("div",{className:"w-[70%]"},(0,e.createElement)("div",{class:"flex items-center mb-4"},(0,e.createElement)("input",{defaultChecked:"login_screen"===l,id:"login_screen",onChange:()=>i("login_screen"),type:"radio",value:"",name:"options",class:"w-4 h-4 !text-transparent bg-gray-100 !border-[#878787] border-[1px] focus:ring-blue-600 !mt-[2px]"}),(0,e.createElement)("label",{for:"login_screen",class:"ml-2 text-[16px] font-medium text-[#424344] dark:text-[#424344]"},"Only on login screen")),(0,e.createElement)("div",{class:"flex items-center mb-4"},(0,e.createElement)("input",{defaultChecked:"side_wide"===l||"login_screen"!==l&&"side_wide"!==l&&"selected_pages"!==l,id:"site_wide",onChange:()=>i("side_wide"),type:"radio",value:"",name:"options",class:"w-4 h-4 !text-transparent bg-gray-100 !border-[#878787] border-[1px] focus:ring-blue-600  !mt-[2px]"}),(0,e.createElement)("label",{for:"site_wide",class:"ml-2 text-[16px] font-medium text-[#424344] dark:text-[#424344]"},"Site wide")),(0,e.createElement)("div",{class:"flex items-center mb-4 "+(!1===a?"pointer-events-none":"")},(0,e.createElement)("input",{defaultChecked:"selected_pages"===l,id:"selected_pages",onChange:()=>i("selected_pages"),type:"radio",value:"",name:"options",class:"w-4 h-4 !text-transparent bg-gray-100 !border-[#878787] border-[1px] focus:ring-blue-600  !mt-[2px]"}),(0,e.createElement)("label",{for:"selected_pages",class:"ml-2 text-[16px] font-medium text-[#424344] dark:text-[#424344] "+(!1===a?"opacity-40":"")},"Specific page"," "),a?"":(0,e.createElement)(tu,{extraClass:"py-[1px] px-[10px]"})),!0===r||"selected_pages"===l?(0,e.createElement)(Gh,null):"",r&&(0,e.createElement)(ag,null))))}function sg(t){let{state:n}=t;const r=wp.hooks.applyFilters("login_me_now_dashboard.settings_tab_wrappers",{google:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yc,null),(0,e.createElement)(Qc,null),(0,e.createElement)(lg,null),(0,e.createElement)(au,null),(0,e.createElement)(eu,null),(0,e.createElement)(Uh,null),(0,e.createElement)(ru,null),(0,e.createElement)(Kh,null),(0,e.createElement)(Wh,null))});return(0,e.createElement)("div",null,r[n])}var cg=()=>{const t=Le((e=>e.activeSocialLoginNavigationTab));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"lg:col-span-10 border-l px-14"},wp.hooks.applyFilters(`login_me_now_dashboard.settings_screen_before_${t}`,(0,e.createElement)("span",null)),(0,e.createElement)(sg,{state:t}),wp.hooks.applyFilters(`login_me_now_dashboard.settings_screen_after_${t}`,(0,e.createElement)("span",null))))},ug=function(t){const{fontSize:n,width:r,style:o}=t;return(0,e.createElement)("div",{className:"ast-skeleton ast-skeleton--text ast-skeleton--wave",style:{fontSize:n,width:r,...o}})},dg=function(t){const{width:n,height:r,style:o}=t;return(0,e.createElement)("div",{className:"ast-skeleton ast-skeleton--rect ast-skeleton--wave",style:{width:n,height:r,...o}})},fg=()=>(0,e.createElement)("div",{className:"px-6 w-full"},(0,e.createElement)("div",{className:"max-w-3xl mx-auto lg:max-w-[80rem] mt-10 mb-8 font-semibold text-2xl"},(0,e.createElement)(dg,{width:"100px",height:"32px"})),(0,e.createElement)("main",{className:"max-w-[80rem] mx-auto my-[2.43rem] bg-white rounded-md shadow overflow-hidden h-[36rem]"},(0,e.createElement)("div",{className:"lg:grid lg:grid-cols-12 h-full"},(0,e.createElement)("aside",{className:"py-6 sm:px-6 lg:py-6 lg:px-5 lg:col-span-3"},(0,e.createElement)("nav",{className:"space-y-1"},Array(7).fill().map(((t,n)=>(0,e.createElement)("div",{key:`setting${n}`,className:"flex justify-left items-center py-3 space-x-3"},(0,e.createElement)(dg,{key:`icon${n}`,width:"24px",height:"24px"}),(0,e.createElement)(ug,{key:n,width:"120px",fontSize:"16px"})))))),(0,e.createElement)("div",{className:"border-l lg:col-span-9 p-8"},(0,e.createElement)(ug,{fontSize:"35px",width:"225px"}),(0,e.createElement)(ug,{width:"80%"}),(0,e.createElement)("div",{className:"h-8"}),(0,e.createElement)(ug,{fontSize:"35px",width:"300px"}),(0,e.createElement)(ug,{width:"60%"}),(0,e.createElement)("div",{className:"h-8"}),(0,e.createElement)(ug,{fontSize:"35px",width:"210px"}),(0,e.createElement)(ug,{width:"65%"})))));function pg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var mg=()=>{const n=new URLSearchParams((0,re.useLocation)()?.search),r=Ae(),[o,a]=(0,t.useState)(!1),i=Le((e=>e.activeSocialLoginNavigationTab)),l=Le((e=>e.initialStateSetFlag)),s=(lmn_admin.pro_available,wp.hooks.applyFilters("login_me_now_dashboard.settings_navigation",[{name:(0,be.__)("Google","login-me-now"),slug:"google",icon:Xc["google-login"]}]));return(0,t.useEffect)((()=>{const e=n.get("path"),t=n.get("settings");r({type:"UPDATE_SOCIAL_LOGIN_ACTIVE_NAVIGATION_TAB",payload:t&&"social-login"===e?t:"google"})}),[l,i]),l?(0,e.createElement)("div",{className:"px-6 w-full"},(0,e.createElement)("div",{className:"mx-auto mt-10 mb-8 font-semibold text-2xl lg:max-w-[80rem]"},"Social Login"),(0,e.createElement)("main",{className:"mx-auto my-[2.43rem] bg-white rounded-md shadow overflow-hidden min-h-[36rem] lg:max-w-[80rem]"},(0,e.createElement)("div",{className:"lg:grid lg:grid-cols-12 min-h-[36rem] h-full"},(0,e.createElement)("aside",{className:"py-6 sm:px-6 lg:py-6 lg:px-0 lg:col-span-2"},(0,e.createElement)("nav",{className:"space-y-1"},s.map((t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(he,{to:{pathname:"admin.php",search:`?page=${lmn_admin.home_slug}&path=social-login&settings=${t.slug}`},key:t.name,className:pg(i===t.slug?"border-lmn text-lmn focus:text-lmn-hover active:text-lmn hover:text-lmn-hover stroke-lmn fill-lmn focus:stroke-lmn focus:fill-lmn hover:stroke-lmn hover:fill-lmn":"border-white text-slate-800 stroke-slate-800 fill-slate-800 focus:text-slate-900 focus:border-slate-200 focus:stroke-slate-900 focus:fill-slate-900 hover:text-slate-900 hover:border-slate-200 hover:stroke-slate-900 hover:fill-slate-900","border-l-4 group cursor-pointer py-3 pl-5 flex items-center text-base font-medium"),onClick:()=>{r({type:"UPDATE_SOCIAL_LOGIN_ACTIVE_NAVIGATION_TAB",payload:t.slug}),"social-login"===t.slug&&a(!o)}},t.icon,(0,e.createElement)("span",{className:"truncate"},t.name),"Social Login"===t.name?o?(0,e.createElement)("svg",{className:"ml-[10%]",width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"m12 9.414-6.293 6.293a1 1 0 1 1 -1.414 -1.414l6.646-6.647a1.5 1.5 0 0 1 2.122 0L19.707 14.293a1 1 0 0 1 -1.414 1.414L12 9.414z",fill:"#000000"})):(0,e.createElement)("svg",{className:"ml-[10%]",width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"m12 14.586 6.293-6.293a1 1 0 1 1 1.414 1.414l-6.646 6.647a1.5 1.5 0 0 1-2.122 0L4.293 9.707a1 1 0 0 1 1.414-1.414L12 14.586z",fill:"#000000"})):"")))),(0,e.createElement)("div",{className:"flex pl-[18px] py-3 cursor-pointer border-l-4 border-l-transparent hover:border-l-[#E2E8F0]"},(0,e.createElement)(Is,{title:"Upcoming",placement:"right"},(0,e.createElement)("span",{className:"flex"},(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",height:"25px",width:"25px",fill:"#1877F2",viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg",stroke:"#1877F2"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("path",{d:"M1168.737 487.897c44.672-41.401 113.824-36.889 118.9-36.663l289.354-.113 6.317-417.504L1539.65 22.9C1511.675 16.02 1426.053 0 1237.324 0 901.268 0 675.425 235.206 675.425 585.137v93.97H337v451.234h338.425V1920h451.234v-789.66h356.7l62.045-451.233H1126.66v-69.152c0-54.937 14.214-96.112 42.078-122.058","fill-rule":"evenodd"})," ")),(0,e.createElement)("span",{className:"text-[16px] text-[#1e293b] font-medium"},"Facebook")))),(0,e.createElement)("div",{className:"flex pl-[18px] py-3 cursor-pointer border-l-4 border-l-transparent hover:border-l-[#E2E8F0]"},(0,e.createElement)(Is,{title:"Upcoming",placement:"right"},(0,e.createElement)("span",{className:"flex"},(0,e.createElement)("svg",{className:"flex-shrink-0 mr-4 stroke-inherit",height:"25px",width:"25px",fill:"#00acee",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 310 310"},(0,e.createElement)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,e.createElement)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,e.createElement)("g",{id:"SVGRepo_iconCarrier"}," ",(0,e.createElement)("g",{id:"XMLID_826_"}," ",(0,e.createElement)("path",{id:"XMLID_827_",d:"M302.973,57.388c-4.87,2.16-9.877,3.983-14.993,5.463c6.057-6.85,10.675-14.91,13.494-23.73 c0.632-1.977-0.023-4.141-1.648-5.434c-1.623-1.294-3.878-1.449-5.665-0.39c-10.865,6.444-22.587,11.075-34.878,13.783 c-12.381-12.098-29.197-18.983-46.581-18.983c-36.695,0-66.549,29.853-66.549,66.547c0,2.89,0.183,5.764,0.545,8.598 C101.163,99.244,58.83,76.863,29.76,41.204c-1.036-1.271-2.632-1.956-4.266-1.825c-1.635,0.128-3.104,1.05-3.93,2.467 c-5.896,10.117-9.013,21.688-9.013,33.461c0,16.035,5.725,31.249,15.838,43.137c-3.075-1.065-6.059-2.396-8.907-3.977 c-1.529-0.851-3.395-0.838-4.914,0.033c-1.52,0.871-2.473,2.473-2.513,4.224c-0.007,0.295-0.007,0.59-0.007,0.889 c0,23.935,12.882,45.484,32.577,57.229c-1.692-0.169-3.383-0.414-5.063-0.735c-1.732-0.331-3.513,0.276-4.681,1.597 c-1.17,1.32-1.557,3.16-1.018,4.84c7.29,22.76,26.059,39.501,48.749,44.605c-18.819,11.787-40.34,17.961-62.932,17.961 c-4.714,0-9.455-0.277-14.095-0.826c-2.305-0.274-4.509,1.087-5.294,3.279c-0.785,2.193,0.047,4.638,2.008,5.895 c29.023,18.609,62.582,28.445,97.047,28.445c67.754,0,110.139-31.95,133.764-58.753c29.46-33.421,46.356-77.658,46.356-121.367 c0-1.826-0.028-3.67-0.084-5.508c11.623-8.757,21.63-19.355,29.773-31.536c1.237-1.85,1.103-4.295-0.33-5.998 C307.394,57.037,305.009,56.486,302.973,57.388z"})," ")," ")),(0,e.createElement)("span",{className:"text-[16px] text-[#1e293b] font-medium"},"Twitter"))))),(0,e.createElement)("nav",{className:"space-y-1 mt-1"},o&&s.find((e=>"social-login"===e.slug)).subItems.map((t=>(0,e.createElement)(he,{to:{pathname:"admin.php",search:`?page=${lmn_admin.home_slug}&path=social-login&settings=${t.slug}`},key:t.name,className:pg(i===t.slug?"border-lmn text-lmn focus:text-lmn-hover active:text-lmn hover:text-lmn-hover stroke-lmn fill-lmn focus:stroke-lmn focus:fill-lmn hover:stroke-lmn hover:fill-lmn":"border-white text-slate-800 stroke-slate-800 fill-slate-800 focus:text-slate-900 focus:border-slate-200 focus:stroke-slate-900 focus:fill-slate-900 hover:text-slate-900 hover:border-slate-200 hover:stroke-slate-900 hover:fill-slate-900","border-l-4 group cursor-pointer py-3 pl-9 flex items-center text-base font-medium"),onClick:()=>{r({type:"UPDATE_SOCIAL_LOGIN_ACTIVE_NAVIGATION_TAB",payload:t.slug})}},t.icon,(0,e.createElement)("span",{className:"truncate"},t.name)))))),(0,e.createElement)(cg,null)))):(0,e.createElement)(fg,null)},hg=function(){const t=new URLSearchParams((0,re.useLocation)().search),n=t.get("page"),r=t.get("path"),o=t.get("event"),a=Le((e=>e)),i=a.dmTemporaryLogin,l=a.dmBrowserExtension,s=a.dmSocialLogin;let c=(0,e.createElement)("p",null," Login Me Now Dashboard Is Loading... ");if(lmn_admin.home_slug===n){if("getting-started"===o)c=(0,e.createElement)(Bs,null);else switch(r){case"browser-extensions":l&&(c=(0,e.createElement)(sc,null));break;case"temporary-login":i&&(c=(0,e.createElement)(Bs,null));break;case"advanced-sharing":case"social-login":s&&(c=(0,e.createElement)(mg,null));break;case"advanced-sharing":c=(0,e.createElement)(Zs,null,(0,e.createElement)(Ys,null));break;default:c=(0,e.createElement)(Kc,null)}astWpMenuClassChange(r)}return(0,e.createElement)(e.Fragment,null,c)};function gg(){const n=Ae(),r=Le((e=>e.settingsSavedNotification)),o=new URLSearchParams((0,re.useLocation)()?.search),a=o.get("status")?o.get("status"):"";return""!==a&&"imported"===a&&(n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,be.__)("Successfully imported!","login-me-now")}),setTimeout((()=>{window.location=lmn_admin.login_me_now_base_url}),1e3)),(0,t.useEffect)((()=>{""!==r&&setTimeout((()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:""})}),2e3)}),[r]),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{"aria-live":"assertive",className:"fixed inset-10 z-10 flex px-4 py-6 pointer-events-none sm:p-6 sm:items-start lg:mt-[60px] md:mt-[90px]"},(0,e.createElement)("div",{className:"w-full flex flex-col items-center space-y-4 sm:items-end"},(0,e.createElement)(rt,{show:""!==r,as:t.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},(0,e.createElement)("div",{className:"p-4"},(0,e.createElement)("div",{className:"flex items-start"},(0,e.createElement)("div",{className:"flex-shrink-0"},(0,e.createElement)(ot,{className:"h-6 w-6 text-green-400","aria-hidden":"true"})),(0,e.createElement)("div",{className:"ml-3 w-0 flex-1 pt-0.5"},(0,e.createElement)("p",{className:"text-[16px] font-medium text-gray-900"},r)),(0,e.createElement)("div",{className:"ml-4 flex-shrink-0 flex"},(0,e.createElement)("button",{className:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:()=>{n({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:""})}},(0,e.createElement)("span",{className:"sr-only"}," ",(0,be.__)("Close ","login-me-now")," "),(0,e.createElement)(lt,{className:"h-5 w-5","aria-hidden":"true"}))))))))))}var vg=t.forwardRef((function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}));function bg(){const n=Ae(),r=Le((e=>e.settingsNotSavedNotification)),o=new URLSearchParams((0,re.useLocation)()?.search),a=o.get("status")?o.get("status"):"";return""!==a&&"imported"===a&&(n({type:"UPDATE_SETTINGS_NOT_SAVED_NOTIFICATION",payload:(0,be.__)("Setting not saved","login-me-now")}),setTimeout((()=>{window.location=lmn_admin.login_me_now_base_url}),1e3)),(0,t.useEffect)((()=>{""!==r&&setTimeout((()=>{n({type:"UPDATE_SETTINGS_NOT_SAVED_NOTIFICATION",payload:""})}),2e3)}),[r]),(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{"aria-live":"assertive",className:"fixed inset-10 z-10 flex px-4 py-6 pointer-events-none sm:p-6 sm:items-start"},(0,e.createElement)("div",{className:"w-full flex flex-col items-center space-y-4 sm:items-end"},(0,e.createElement)(rt,{show:""!==r,as:t.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},(0,e.createElement)("div",{className:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},(0,e.createElement)("div",{className:"p-4"},(0,e.createElement)("div",{className:"flex items-start"},(0,e.createElement)("div",{className:"flex-shrink-0"},(0,e.createElement)(vg,{className:"h-6 w-6 text-red-400","aria-hidden":"true"})),(0,e.createElement)("div",{className:"ml-3 w-0 flex-1 pt-0.5"},(0,e.createElement)("p",{className:"text-[16px] font-medium text-gray-900"},r)),(0,e.createElement)("div",{className:"ml-4 flex-shrink-0 flex"},(0,e.createElement)("button",{className:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:()=>{n({type:"UPDATE_SETTINGS_NOT_SAVED_NOTIFICATION",payload:""})}},(0,e.createElement)("span",{className:"sr-only"}," ",(0,be.__)("Close ","login-me-now")," "),(0,e.createElement)(lt,{className:"h-5 w-5","aria-hidden":"true"}))))))))))}function yg(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var xg="function"==typeof Symbol&&Symbol.observable||"@@observable",wg=function(){return Math.random().toString(36).substring(7).split("").join(".")},Eg={INIT:"@@redux/INIT"+wg(),REPLACE:"@@redux/REPLACE"+wg(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wg()}};var Cg,Sg=function e(t,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(yg(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error(yg(1));return r(e)(t,n)}if("function"!=typeof t)throw new Error(yg(2));var a=t,i=n,l=[],s=l,c=!1;function u(){s===l&&(s=l.slice())}function d(){if(c)throw new Error(yg(3));return i}function f(e){if("function"!=typeof e)throw new Error(yg(4));if(c)throw new Error(yg(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(yg(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),l=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(yg(7));if(void 0===e.type)throw new Error(yg(8));if(c)throw new Error(yg(9));try{c=!0,i=a(i,e)}finally{c=!1}for(var t=l=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:Eg.INIT}),(o={dispatch:p,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(yg(10));a=e,p({type:Eg.REPLACE})}})[xg]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(yg(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}})[xg]=function(){return this},e},o}((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(wp.hooks.applyFilters("login_me_now_dashboard/data_reducer_action",t.type)){case"UPDATE_INITIAL_STATE":return{...t.payload};case"UPDATE_BLOCK_STATUSES":return{...e,blocksStatuses:t.payload};case"UPDATE_INITIAL_STATE_FLAG":return{...e,initialStateSetFlag:t.payload};case"UPDATE_SETTINGS_ACTIVE_NAVIGATION_TAB":return{...e,activeSettingsNavigationTab:t.payload};case"UPDATE_SOCIAL_LOGIN_ACTIVE_NAVIGATION_TAB":return{...e,activeSocialLoginNavigationTab:t.payload};case"UPDATE_ENABLE_LOAD_FONTS_LOCALLY":return{...e,enableLoadFontsLocally:t.payload};case"UPDATE_ENABLE_LOGS":return{...e,enableLogs:t.payload};case"UPDATE_LOGS_EXPIRATION":return{...e,logsExpiration:t.payload};case"UPDATE_ENABLE_USER_SWITCHING":return{...e,enableUserSwitching:t.payload};case"UPDATE_ENABLE_GOOGLE_LOGIN":return{...e,enableGoogleLogin:t.payload};case"UPDATE_GOOGLE_CLIENT_ID":return{...e,enableGoogleClientID:t.payload};case"UPDATE_ENABLE_GOOGLE_NATIVE_LOGIN":return{...e,enableGoogleNativeLogin:t.payload};case"UPDATE_ENABLE_GOOGLE_UPDATE_EXISTING_USER_DATA":return{...e,enableGoogleUpdateExistingUserData:t.payload};case"UPDATE_ENABLE_GOOGLE_UPDATE_EXISTING_USER_AVATAR":return{...e,enableGoogleUpdateExistingUserAvatar:t.payload};case"UPDATE_ENABLE_CANCEL_ON_TAP_OUTSIDE":return{...e,enableGoogleCancelOnTapOutside:t.payload};case"UPDATE_ENABLE_LOGIN_SELECT_LOCATION":return{...e,enableGoogleLoginSelectLocation:t.payload};case"UPDATE_SELECT_GOOGLE_PRO_DEFAULT_USER_ROLE":return{...e,selectGoogleProDefaultUserRole:t.payload};case"UPDATE_ENABLE_GOOGLE_ONETAP":return{...e,enableGoogleOneTap:t.payload};case"UPDATE_SELECT_GOOGLE_PRO_SELECTED_PAGES":return{...e,selectGoogleProSelectedPages:t.payload};case"UPDATE_SELECT_GOOGLE_PRO_SELECTED_LOCATION":return{...e,selectGoogleSelectedLocation:t.payload};case"UPDATE_INPUT_GOOGLE_PRO_REDIRECT_URL":return{...e,inputGoogleProRedirectUrl:t.payload};case"UPDATE_SETTINGS_SAVED_NOTIFICATION":return{...e,settingsSavedNotification:t.payload};case"UPDATE_SETTINGS_NOT_SAVED_NOTIFICATION":return{...e,settingsNotSavedNotification:t.payload};case"GENERATE_MAGIC_LINK_POPUP":return{...e,magicLinkPopup:t.payload};case"UPDATE_LMN_PRO_LIC":return{...e,lmnProLic:t.payload};case"ENABLE_DM_TEMPORARY_LOGIN":return{...e,dmTemporaryLogin:t.payload};case"ENABLE_DM_ADVANCE_SHARE":return{...e,dmAdvanceShare:t.payload};case"ENABLE_DM_SOCIAL_LOGIN":return{...e,dmSocialLogin:t.payload};case"ENABLE_DM_EXPRESS_LOGIN_WC":return{...e,dmExpressLoginWC:t.payload};case"ENABLE_DM_EXPRESS_LOGIN_EDD":return{...e,dmExpressLoginEDD:t.payload};case"ENABLE_DM_EXPRESS_LOGIN_EMAIL":return{...e,dmExpressLoginEmail:t.payload};case"ENABLE_DM_OTP_LOGIN":return{...e,dmOTPLogin:t.payload};case"ENABLE_DM_BROWSER_EXTENSION":return{...e,dmBrowserExtension:t.payload};case"ENABLE_DM_USER_SWITCHING":return{...e,dmUserSwitching:t.payload};case"ENABLE_DM_ACTIVITY_LOGS":return{...e,dmActivityLog:t.payload};case"ENABLE_DM_CONDITIONAL_LOGIN":return{...e,dmConditionalLogin:t.payload};default:return e}}),wp.hooks.applyFilters("login_me_now_dashboard/datastore",{initialStateSetFlag:!1,enableLoadFontsLocally:!1,lmnProLic:"",enableLogs:!0,logsExpiration:7,enableUserSwitching:!1,enableGoogleLogin:!1,enableGoogleClientID:"",enableGoogleNativeLogin:!0,enableGoogleAutoSignIn:!1,enableGoogleUpdateExistingUserData:!0,enableGoogleUpdateExistingUserAvatar:!0,enableGoogleCancelOnTapOutside:!0,enableGoogleLoginSelectLocation:!0,selectGoogleProSelectedPages:[],enableGoogleOneTap:!1,selectGoogleSelectedLocation:"siteWide",selectGoogleProDefaultUserRole:"subscriber",inputGoogleProRedirectUrl:"",getUserRoles:"subscriber",get_pages:"",enableWhiteLabel:!1,enableBeta:"disable",settingsSavedNotification:"",settingsNotSavedNotification:"",magicLinkPopup:"",blocksStatuses:[],enableFileGeneration:"disable",activeSettingsNavigationTab:"",dmTemporaryLogin:!1,dmAdvanceShare:!1,dmSocialLogin:!1,dmExpressLoginWC:!1,dmExpressLoginEDD:!1,dmExpressLoginEmail:!1,dmOTPLogin:!1,dmBrowserExtension:!1,dmUserSwitching:!1,dmActivityLog:!1,dmConditionalLogin:!1,activeSocialLoginNavigationTab:""}),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__());Sg.getState().initialStateSetFlag||(Cg=Sg,De()({path:"/login-me-now/admin/settings/"}).then((e=>{const t={settingsSavedNotification:"",settingsNotSavedNotification:"",magicLinkPopup:"",initialStateSetFlag:!0,activeSettingsNavigationTab:"global-settings",activeSocialLoginNavigationTab:"google",lmnProLic:e.lmn_pro_lic,enableLogs:e.logs,logsExpiration:e.logs_expiration,enableUserSwitching:e.user_switching,enableGoogleLogin:e.google_login,enableGoogleClientID:e.google_client_id,enableGoogleNativeLogin:e.google_native_login,enableGoogleUpdateExistingUserData:e.google_update_existing_user_data,enableGoogleUpdateExistingUserAvatar:e.google_pro_user_avatar,enableGoogleCancelOnTapOutside:e.google_cancel_on_tap_outside,selectGoogleSelectedLocation:e.google_onetap_display_location,selectGoogleProSelectedPages:e.google_pro_selected_pages,enableGoogleOneTap:e.google_onetap,enableGoogleLoginSelectLocation:e.google_login_select_location||!0,selectGoogleProDefaultUserRole:e.google_pro_default_user_role,inputGoogleProRedirectUrl:e.google_pro_redirect_url,getUserRoles:e.get_user_roles,getPages:e.get_pages,blocksStatuses:e.pro_addons,dmTemporaryLogin:e.temporary_login,dmAdvanceShare:e.dm_advance_share,dmSocialLogin:e.social_login,dmExpressLoginWC:e.dm_express_login_wc,dmExpressLoginEDD:e.dm_express_login_edd,dmExpressLoginEmail:e.dm_express_login_email,dmOTPLogin:e.dm_otp_login,dmBrowserExtension:e.browser_extension,dmUserSwitching:e.user_switching,dmActivityLog:e.activity_logs,dmConditionalLogin:e.dm_conditional_login};Cg.dispatch({type:"UPDATE_INITIAL_STATE",payload:t})}))),i().render((0,e.createElement)((function(e){var n=e.store,o=e.context,a=e.children,i=(0,t.useMemo)((function(){var e=Ce(n);return{store:n,subscription:e}}),[n]),l=(0,t.useMemo)((function(){return n.getState()}),[n]);Se((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,l]);var s=o||ye;return r().createElement(s.Provider,{value:i},a)}),{store:Sg},(0,e.createElement)((()=>(0,e.createElement)(ce,null,(0,e.createElement)(Ie,null),(0,e.createElement)(gg,null),(0,e.createElement)(bg,null),(0,e.createElement)(re.Switch,null,(0,e.createElement)(re.Route,{path:"/"},(0,e.createElement)(hg,null))))),null)),document.getElementById("login-me-now-dashboard-app"))}()}();
     1(()=>{var e,t,n={660:()=>{window.astWpMenuClassChange=function(e){const t=lmn_admin.home_slug;let n="admin.php?page="+t;"custom-layouts"===e&&(n="admin.php?page="+t+"&path=custom-layouts");const r=`.wp-submenu-wrap li > a[href$="${n}"]`,o=document.querySelectorAll(r);Array.from(document.getElementsByClassName("current")).forEach((function(e){e.parentElement.classList.contains("wp-submenu")&&e.classList.remove("current")})),Array.from(o).forEach((function(e){e.parentElement.classList.add("current")}))}},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},640:(e,t,n)=>{"use strict";var r=n(742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},71:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createBrowserHistory:()=>S,createHashHistory:()=>A,createLocation:()=>g,createMemoryHistory:()=>P,createPath:()=>h,locationsAreEqual:()=>v,parsePath:()=>m});var r=n(462);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],l=e&&o(e),s=t&&o(t),c=l||s;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?a(i,p):".."===f?(a(i,p),d++):d&&(a(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const s=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(e,t,n,o){var a;"string"==typeof e?(a=m(e)).state=t:(void 0===(a=(0,r.Z)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function b(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(e,t){t(window.confirm(e))}var w="popstate",E="hashchange";function C(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,l=i.forceRefresh,s=void 0!==l&&l,d=i.getUserConfirmation,m=void 0===d?x:d,v=i.keyLength,S=void 0===v?6:v,_=e.basename?f(u(e.basename)):"";function N(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return _&&(a=p(a,_)),g(a,r,n)}function O(){return Math.random().toString(36).substr(2,S)}var k=b();function F(e){(0,r.Z)(B,e),B.length=n.length,k.notifyListeners(B.location,B.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||L(N(e.state))}function T(){L(N(C()))}var P=!1;function L(e){P?(P=!1,F()):k.confirmTransitionTo(e,"POP",m,(function(t){t?F({action:"POP",location:e}):function(e){var t=B.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(P=!0,R(o))}(e)}))}var I=N(C()),M=[I.key];function D(e){return _+h(e)}function R(e){n.go(e)}var j=0;function $(e){1===(j+=e)&&1===e?(window.addEventListener(w,A),a&&window.addEventListener(E,T)):0===j&&(window.removeEventListener(w,A),a&&window.removeEventListener(E,T))}var V=!1,B={length:n.length,action:"POP",location:I,createHref:D,push:function(e,t){var r="PUSH",a=g(e,t,O(),B.location);k.confirmTransitionTo(a,r,m,(function(e){if(e){var t=D(a),i=a.key,l=a.state;if(o)if(n.pushState({key:i,state:l},null,t),s)window.location.href=t;else{var c=M.indexOf(B.location.key),u=M.slice(0,c+1);u.push(a.key),M=u,F({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=g(e,t,O(),B.location);k.confirmTransitionTo(a,r,m,(function(e){if(e){var t=D(a),i=a.key,l=a.state;if(o)if(n.replaceState({key:i,state:l},null,t),s)window.location.replace(t);else{var c=M.indexOf(B.location.key);-1!==c&&(M[c]=a.key),F({action:r,location:a})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return V||($(1),V=!0),function(){return V&&(V=!1,$(-1)),t()}},listen:function(e){var t=k.appendListener(e);return $(1),function(){$(-1),t()}}};return B}var _="hashchange",N={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function O(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function F(e){window.location.replace(O(window.location.href)+"#"+e)}function A(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?x:o,i=n.hashType,l=void 0===i?"slash":i,s=e.basename?f(u(e.basename)):"",d=N[l],m=d.encodePath,v=d.decodePath;function w(){var e=v(k());return s&&(e=p(e,s)),g(e)}var E=b();function C(e){(0,r.Z)(V,e),V.length=t.length,E.notifyListeners(V.location,V.action)}var S=!1,A=null;function T(){var e,t,n=k(),r=m(n);if(n!==r)F(r);else{var o=w(),i=V.location;if(!S&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(o))return;A=null,function(e){if(S)S=!1,C();else{E.confirmTransitionTo(e,"POP",a,(function(t){t?C({action:"POP",location:e}):function(e){var t=V.location,n=M.lastIndexOf(h(t));-1===n&&(n=0);var r=M.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(S=!0,D(o))}(e)}))}}(o)}}var P=k(),L=m(P);P!==L&&F(L);var I=w(),M=[h(I)];function D(e){t.go(e)}var R=0;function j(e){1===(R+=e)&&1===e?window.addEventListener(_,T):0===R&&window.removeEventListener(_,T)}var $=!1,V={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=O(window.location.href)),n+"#"+m(s+h(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,V.location);E.confirmTransitionTo(r,n,a,(function(e){if(e){var t=h(r),o=m(s+t);if(k()!==o){A=t,function(e){window.location.hash=e}(o);var a=M.lastIndexOf(h(V.location)),i=M.slice(0,a+1);i.push(t),M=i,C({action:n,location:r})}else C()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,V.location);E.confirmTransitionTo(r,n,a,(function(e){if(e){var t=h(r),o=m(s+t);k()!==o&&(A=t,F(o));var a=M.indexOf(h(V.location));-1!==a&&(M[a]=t),C({action:n,location:r})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return $||(j(1),$=!0),function(){return $&&($=!1,j(-1)),t()}},listen:function(e){var t=E.appendListener(e);return j(1),function(){j(-1),t()}}};return V}function T(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,l=void 0===i?0:i,s=t.keyLength,c=void 0===s?6:s,u=b();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=T(l,0,a.length-1),m=a.map((function(e){return g(e,void 0,"string"==typeof e?p():e.key||p())})),v=h;function y(e){var t=T(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:m.length,action:"POP",location:m[f],index:f,entries:m,createHref:v,push:function(e,t){var r="PUSH",o=g(e,t,p(),x.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=g(e,t,p(),x.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(x.entries[x.index]=o,d({action:r,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},679:(e,t,n)=>{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),h=s(n),g=0;g<i.length;++g){var v=i[g];if(!(a[v]||r&&r[v]||h&&h[v]||l&&l[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case s:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},296:(e,t,n)=>{"use strict";e.exports=n(103)},826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},878:(e,t,n)=>{"use strict";n(128)},128:(e,t,n)=>{"use strict";var r,o=n(196),a=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.multiSelectContainer,.multiSelectContainer *,.multiSelectContainer :after,.multiSelectContainer :before{box-sizing:border-box}.multiSelectContainer{position:relative;text-align:left;width:100%}.disable_ms{opacity:.5;pointer-events:none}.display-none{display:none}.searchWrapper{border:1px solid #ccc;border-radius:4px;min-height:22px;padding:5px;position:relative}.multiSelectContainer input{background:transparent;border:none;margin-top:3px}.multiSelectContainer input:focus{outline:none}.chip{align-items:center;background:#0096fb;border-radius:11px;color:#fff;display:inline-flex;font-size:13px;line-height:19px;margin-bottom:5px;margin-right:5px;padding:4px 10px}.chip,.singleChip{white-space:nowrap}.singleChip{background:none;border-radius:none;color:inherit}.singleChip i{display:none}.closeIcon{cursor:pointer;float:right;height:13px;margin-left:5px;width:13px}.optionListContainer{background:#fff;border-radius:4px;margin-top:1px;position:absolute;width:100%;z-index:2}.multiSelectContainer ul{border:1px solid #ccc;border-radius:4px;display:block;margin:0;max-height:250px;overflow-y:auto;padding:0}.multiSelectContainer li{padding:10px}.multiSelectContainer li:hover{background:#0096fb;color:#fff;cursor:pointer}.checkbox{margin-right:10px}.disableSelection{opacity:.5;pointer-events:none}.highlightOption{background:#0096fb;color:#fff}.displayBlock{display:block}.displayNone{display:none}.notFound{display:block;padding:10px}.singleSelect{padding-right:20px}li.groupHeading{color:#908e8e;padding:5px 15px;pointer-events:none}li.groupChildEle{padding-left:30px}.icon_down_dir{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:14px}.icon_down_dir:before{content:"\\e803"}.custom-close{display:flex}');var s={circle:"data:image/svg+xml,%3Csvg%20height%3D%22512px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512px%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M256%2C33C132.3%2C33%2C32%2C133.3%2C32%2C257c0%2C123.7%2C100.3%2C224%2C224%2C224c123.7%2C0%2C224-100.3%2C224-224C480%2C133.3%2C379.7%2C33%2C256%2C33z%20%20%20%20M364.3%2C332.5c1.5%2C1.5%2C2.3%2C3.5%2C2.3%2C5.6c0%2C2.1-0.8%2C4.2-2.3%2C5.6l-21.6%2C21.7c-1.6%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3L256%2C289.8%20%20%20l-75.4%2C75.7c-1.5%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3l-21.6-21.7c-1.5-1.5-2.3-3.5-2.3-5.6c0-2.1%2C0.8-4.2%2C2.3-5.6l75.7-76%20%20%20l-75.9-75c-3.1-3.1-3.1-8.2%2C0-11.3l21.6-21.7c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l75.7%2C74.7l75.7-74.7%20%20%20c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l21.6%2C21.7c3.1%2C3.1%2C3.1%2C8.2%2C0%2C11.3l-75.9%2C75L364.3%2C332.5z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",circle2:"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2096%2096%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M48%2C0A48%2C48%2C0%2C1%2C0%2C96%2C48%2C48.0512%2C48.0512%2C0%2C0%2C0%2C48%2C0Zm0%2C84A36%2C36%2C0%2C1%2C1%2C84%2C48%2C36.0393%2C36.0393%2C0%2C0%2C1%2C48%2C84Z%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M64.2422%2C31.7578a5.9979%2C5.9979%2C0%2C0%2C0-8.4844%2C0L48%2C39.5156l-7.7578-7.7578a5.9994%2C5.9994%2C0%2C0%2C0-8.4844%2C8.4844L39.5156%2C48l-7.7578%2C7.7578a5.9994%2C5.9994%2C0%2C1%2C0%2C8.4844%2C8.4844L48%2C56.4844l7.7578%2C7.7578a5.9994%2C5.9994%2C0%2C0%2C0%2C8.4844-8.4844L56.4844%2C48l7.7578-7.7578A5.9979%2C5.9979%2C0%2C0%2C0%2C64.2422%2C31.7578Z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",close:"data:image/svg+xml,%3Csvg%20height%3D%22135.467mm%22%20style%3D%22shape-rendering%3AgeometricPrecision%3B%20text-rendering%3AgeometricPrecision%3B%20image-rendering%3AoptimizeQuality%3B%20fill-rule%3Aevenodd%3B%20clip-rule%3Aevenodd%22%20viewBox%3D%220%200%2013547%2013547%22%20width%3D%22135.467mm%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20%20%20%20%20.fil0%20%7Bfill%3Anone%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil1%20%7Bfill%3A%23fff%7D%20%20%20%20%20%20%20%20%3C%2Fstyle%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22Ebene_x0020_1%22%3E%20%20%20%20%20%20%20%20%3Cpolygon%20class%3D%22fil0%22%20points%3D%220%2C0%2013547%2C0%2013547%2C13547%200%2C13547%20%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil1%22%20d%3D%22M714%2012832l12118%200%200%20-12117%20-12118%200%200%2012117zm4188%20-2990l1871%20-1871%201871%201871%201197%20-1197%20-1871%20-1871%201871%20-1871%20-1197%20-1197%20-1871%201871%20-1871%20-1871%20-1197%201197%201871%201871%20-1871%201871%201197%201197z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",cancel:"data:image/svg+xml,%3Csvg%20height%3D%22512px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512px%22%20xml%3Aspace%3D%22preserve%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20.st0%7B%20%20%20%20%20%20%20%20%20%20%20%20fill%3A%23fff%3B%20%20%20%20%20%20%20%20%7D%20%3C%2Fstyle%3E%20%20%20%20%3Cpath%20class%3D%22st0%22%20d%3D%22M443.6%2C387.1L312.4%2C255.4l131.5-130c5.4-5.4%2C5.4-14.2%2C0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7%2C0-7.2%2C1.5-9.8%2C4%20%20L256%2C197.8L124.9%2C68.3c-2.6-2.6-6.1-4-9.8-4c-3.7%2C0-7.2%2C1.5-9.8%2C4L68%2C105.9c-5.4%2C5.4-5.4%2C14.2%2C0%2C19.6l131.5%2C130L68.4%2C387.1%20%20c-2.6%2C2.6-4.1%2C6.1-4.1%2C9.8c0%2C3.7%2C1.4%2C7.2%2C4.1%2C9.8l37.4%2C37.6c2.7%2C2.7%2C6.2%2C4.1%2C9.8%2C4.1c3.5%2C0%2C7.1-1.3%2C9.8-4.1L256%2C313.1l130.7%2C131.1%20%20c2.7%2C2.7%2C6.2%2C4.1%2C9.8%2C4.1c3.5%2C0%2C7.1-1.3%2C9.8-4.1l37.4-37.6c2.6-2.6%2C4.1-6.1%2C4.1-9.8C447.7%2C393.2%2C446.2%2C389.7%2C443.6%2C387.1z%22%2F%3E%3C%2Fsvg%3E"};function c(e){var t,n,r=o.useRef(null);return n=e.outsideClick,o.useEffect((function(){function e(e){t.current&&!t.current.contains(e.target)&&n()}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t=r]),a.createElement("div",{ref:r},e.children)}var u=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={inputValue:"",options:t.options,filteredOptions:t.options,unfilteredOptions:t.options,selectedValues:Object.assign([],t.selectedValues),preSelectedValues:Object.assign([],t.selectedValues),toggleOptionsList:!1,highlightOption:t.avoidHighlightFirstOption?-1:0,showCheckbox:t.showCheckbox,keepSearchTerm:t.keepSearchTerm,groupedObject:[],closeIconType:s[t.closeIcon]||s.circle},n.optionTimeout=null,n.searchWrapper=a.createRef(),n.searchBox=a.createRef(),n.onChange=n.onChange.bind(l(n)),n.onKeyPress=n.onKeyPress.bind(l(n)),n.onFocus=n.onFocus.bind(l(n)),n.onBlur=n.onBlur.bind(l(n)),n.renderMultiselectContainer=n.renderMultiselectContainer.bind(l(n)),n.renderSelectedList=n.renderSelectedList.bind(l(n)),n.onRemoveSelectedItem=n.onRemoveSelectedItem.bind(l(n)),n.toggelOptionList=n.toggelOptionList.bind(l(n)),n.onArrowKeyNavigation=n.onArrowKeyNavigation.bind(l(n)),n.onSelectItem=n.onSelectItem.bind(l(n)),n.filterOptionsByInput=n.filterOptionsByInput.bind(l(n)),n.removeSelectedValuesFromOptions=n.removeSelectedValuesFromOptions.bind(l(n)),n.isSelectedValue=n.isSelectedValue.bind(l(n)),n.fadeOutSelection=n.fadeOutSelection.bind(l(n)),n.isDisablePreSelectedValues=n.isDisablePreSelectedValues.bind(l(n)),n.renderGroupByOptions=n.renderGroupByOptions.bind(l(n)),n.renderNormalOption=n.renderNormalOption.bind(l(n)),n.listenerCallback=n.listenerCallback.bind(l(n)),n.resetSelectedValues=n.resetSelectedValues.bind(l(n)),n.getSelectedItems=n.getSelectedItems.bind(l(n)),n.getSelectedItemsCount=n.getSelectedItemsCount.bind(l(n)),n.hideOnClickOutside=n.hideOnClickOutside.bind(l(n)),n.onCloseOptionList=n.onCloseOptionList.bind(l(n)),n.isVisible=n.isVisible.bind(l(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n);var o=r.prototype;return o.initialSetValue=function(){var e=this.props,t=e.groupBy,n=this.state.options;e.showCheckbox||e.singleSelect||this.removeSelectedValuesFromOptions(!1),t&&this.groupByOptions(n)},o.resetSelectedValues=function(){var e=this,t=this.state.unfilteredOptions;return new Promise((function(n){e.setState({selectedValues:[],preSelectedValues:[],options:t,filteredOptions:t},(function(){n(),e.initialSetValue()}))}))},o.getSelectedItems=function(){return this.state.selectedValues},o.getSelectedItemsCount=function(){return this.state.selectedValues.length},o.componentDidMount=function(){this.initialSetValue(),this.searchWrapper.current.addEventListener("click",this.listenerCallback)},o.componentDidUpdate=function(e){var t=this.props,n=t.options,r=t.selectedValues,o=e.selectedValues;JSON.stringify(e.options)!==JSON.stringify(n)&&this.setState({options:n,filteredOptions:n,unfilteredOptions:n},this.initialSetValue),JSON.stringify(o)!==JSON.stringify(r)&&this.setState({selectedValues:Object.assign([],r),preSelectedValues:Object.assign([],r)},this.initialSetValue)},o.listenerCallback=function(){this.searchBox.current.focus()},o.componentWillUnmount=function(){this.optionTimeout&&clearTimeout(this.optionTimeout),this.searchWrapper.current.removeEventListener("click",this.listenerCallback)},o.removeSelectedValuesFromOptions=function(e){var t=this.props,n=t.isObject,r=t.displayValue,o=t.groupBy,a=this.state,i=a.selectedValues,l=void 0===i?[]:i,s=a.unfilteredOptions;if(!e&&o&&this.groupByOptions(a.options),l.length||e){if(n){var c=s.filter((function(e){return-1===l.findIndex((function(t){return t[r]===e[r]}))}));return o&&this.groupByOptions(c),void this.setState({options:c,filteredOptions:c},this.filterOptionsByInput)}var u=s.filter((function(e){return-1===l.indexOf(e)}));this.setState({options:u,filteredOptions:u},this.filterOptionsByInput)}},o.groupByOptions=function(e){var t=this.props.groupBy,n=e.reduce((function(e,n){var r=n[t]||"Others";return e[r]=e[r]||[],e[r].push(n),e}),Object.create({}));this.setState({groupedObject:n})},o.onChange=function(e){var t=this.props.onSearch;this.setState({inputValue:e.target.value},this.filterOptionsByInput),t&&t(e.target.value)},o.onKeyPress=function(e){var t=this.props.onKeyPressFn;t&&t(e,e.target.value)},o.filterOptionsByInput=function(){var e,t=this,n=this.state,r=n.inputValue,o=this.props,a=o.displayValue;e=n.filteredOptions.filter(o.isObject?function(e){return t.matchValues(e[a],r)}:function(e){return t.matchValues(e,r)}),this.groupByOptions(e),this.setState({options:e})},o.matchValues=function(e,t){return this.props.caseSensitiveSearch?e.indexOf(t)>-1:e.toLowerCase?e.toLowerCase().indexOf(t.toLowerCase())>-1:e.toString().indexOf(t)>-1},o.onArrowKeyNavigation=function(e){var t=this.state,n=t.options,r=t.highlightOption,o=t.toggleOptionsList,a=t.selectedValues;if(8!==e.keyCode||t.inputValue||this.props.disablePreSelectedValues||!a.length||this.onRemoveSelectedItem(a.length-1),n.length)if(38===e.keyCode)this.setState(r>0?function(e){return{highlightOption:e.highlightOption-1}}:{highlightOption:n.length-1});else if(40===e.keyCode)this.setState(r<n.length-1?function(e){return{highlightOption:e.highlightOption+1}}:{highlightOption:0});else if("Enter"===e.key&&n.length&&o){if(-1===r)return;this.onSelectItem(n[r])}},o.onRemoveSelectedItem=function(e){var t,n=this,r=this.state.selectedValues,o=this.props,a=o.onRemove,i=o.showCheckbox,l=o.displayValue;t=o.isObject?r.findIndex((function(t){return t[l]===e[l]})):r.indexOf(e),r.splice(t,1),a(r,e),this.setState({selectedValues:r},(function(){i||n.removeSelectedValuesFromOptions(!0)})),this.props.closeOnSelect||this.searchBox.current.focus()},o.onSelectItem=function(e){var t=this,n=this.state.selectedValues,r=this.props,o=r.selectionLimit,a=r.onSelect,i=r.singleSelect,l=r.showCheckbox;if(this.state.keepSearchTerm||this.setState({inputValue:""}),i)return this.onSingleSelect(e),void a([e],e);this.isSelectedValue(e)?this.onRemoveSelectedItem(e):o!=n.length&&(n.push(e),a(n,e),this.setState({selectedValues:n},(function(){l?t.filterOptionsByInput():t.removeSelectedValuesFromOptions(!0)})),this.props.closeOnSelect||this.searchBox.current.focus())},o.onSingleSelect=function(e){this.setState({selectedValues:[e],toggleOptionsList:!1})},o.isSelectedValue=function(e){var t=this.props,n=t.displayValue,r=this.state.selectedValues;return t.isObject?r.filter((function(t){return t[n]===e[n]})).length>0:r.filter((function(t){return t===e})).length>0},o.renderOptionList=function(){var e=this.props,t=e.groupBy,n=e.style,r=e.emptyRecordMsg,o=e.loadingMessage,i=void 0===o?"loading...":o,l=this.state.options;return e.loading?a.createElement("ul",{className:"optionContainer",style:n.optionContainer},"string"==typeof i&&a.createElement("span",{style:n.loadingMessage,className:"notFound"},i),"string"!=typeof i&&i):a.createElement("ul",{className:"optionContainer",style:n.optionContainer},0===l.length&&a.createElement("span",{style:n.notFound,className:"notFound"},r),t?this.renderGroupByOptions():this.renderNormalOption())},o.renderGroupByOptions=function(){var e=this,t=this.props,n=t.isObject,r=void 0!==n&&n,o=t.displayValue,i=t.showCheckbox,l=t.style,s=t.singleSelect,c=this.state.groupedObject;return Object.keys(c).map((function(t){return a.createElement(a.Fragment,{key:t},a.createElement("li",{className:"groupHeading",style:l.groupHeading},t),c[t].map((function(t,n){var c=e.isSelectedValue(t);return a.createElement("li",{key:"option"+n,style:l.option,className:"groupChildEle option "+(c?"selected":"")+" "+(e.fadeOutSelection(t)?"disableSelection":"")+" "+(e.isDisablePreSelectedValues(t)?"disableSelection":""),onClick:function(){return e.onSelectItem(t)}},i&&!s&&a.createElement("input",{type:"checkbox",className:"checkbox",readOnly:!0,checked:c}),e.props.optionValueDecorator(r?t[o]:(t||"").toString(),t))})))}))},o.renderNormalOption=function(){var e=this,t=this.props,n=t.isObject,r=void 0!==n&&n,o=t.displayValue,i=t.showCheckbox,l=t.style,s=t.singleSelect,c=this.state.highlightOption;return this.state.options.map((function(t,n){var u=e.isSelectedValue(t);return a.createElement("li",{key:"option"+n,style:l.option,className:"option "+(u?"selected":"")+" "+(c===n?"highlightOption highlight":"")+" "+(e.fadeOutSelection(t)?"disableSelection":"")+" "+(e.isDisablePreSelectedValues(t)?"disableSelection":""),onClick:function(){return e.onSelectItem(t)}},i&&!s&&a.createElement("input",{type:"checkbox",readOnly:!0,className:"checkbox",checked:u}),e.props.optionValueDecorator(r?t[o]:(t||"").toString(),t))}))},o.renderSelectedList=function(){var e=this,t=this.props,n=t.isObject,r=void 0!==n&&n,o=t.displayValue,i=t.style,l=t.singleSelect,s=t.customCloseIcon,c=this.state,u=c.closeIconType;return c.selectedValues.map((function(t,n){return a.createElement("span",{className:"chip  "+(l&&"singleChip")+" "+(e.isDisablePreSelectedValues(t)&&"disableSelection"),key:n,style:i.chips},e.props.selectedValueDecorator(r?t[o]:(t||"").toString(),t),!e.isDisablePreSelectedValues(t)&&(s?a.createElement("i",{className:"custom-close",onClick:function(){return e.onRemoveSelectedItem(t)}},s):a.createElement("img",{className:"icon_cancel closeIcon",src:u,onClick:function(){return e.onRemoveSelectedItem(t)}})))}))},o.isDisablePreSelectedValues=function(e){var t=this.props,n=t.displayValue,r=this.state.preSelectedValues;return!(!t.disablePreSelectedValues||!r.length)&&(t.isObject?r.filter((function(t){return t[n]===e[n]})).length>0:r.filter((function(t){return t===e})).length>0)},o.fadeOutSelection=function(e){var t=this.props,n=t.selectionLimit;if(!t.singleSelect){var r=this.state.selectedValues;return-1!=n&&n==r.length&&(n==r.length?!t.showCheckbox||!this.isSelectedValue(e):void 0)}},o.toggelOptionList=function(){this.setState({toggleOptionsList:!this.state.toggleOptionsList,highlightOption:this.props.avoidHighlightFirstOption?-1:0})},o.onCloseOptionList=function(){this.setState({toggleOptionsList:!1,highlightOption:this.props.avoidHighlightFirstOption?-1:0,inputValue:""})},o.onFocus=function(){this.state.toggleOptionsList?clearTimeout(this.optionTimeout):this.toggelOptionList()},o.onBlur=function(){this.setState({inputValue:""},this.filterOptionsByInput),this.optionTimeout=setTimeout(this.onCloseOptionList,250)},o.isVisible=function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},o.hideOnClickOutside=function(){var e=this,t=document.getElementsByClassName("multiselect-container")[0];document.addEventListener("click",(function(n){t&&!t.contains(n.target)&&e.isVisible(t)&&e.toggelOptionList()}))},o.renderMultiselectContainer=function(){var e=this.state,t=e.inputValue,n=e.toggleOptionsList,r=e.selectedValues,o=this.props,i=o.placeholder,l=o.style,s=o.singleSelect,c=o.id,u=o.name,d=o.hidePlaceholder,p=o.disable,f=o.showArrow,m=o.customArrow;return a.createElement("div",{className:"multiselect-container multiSelectContainer "+(p?"disable_ms":"")+" "+(o.className||""),id:c||"multiselectContainerReact",style:l.multiselectContainer},a.createElement("div",{className:"search-wrapper searchWrapper "+(s?"singleSelect":""),ref:this.searchWrapper,style:l.searchBox,onClick:s?this.toggelOptionList:function(){}},!o.hideSelectedList&&this.renderSelectedList(),a.createElement("input",{type:"text",ref:this.searchBox,className:"searchBox "+(s&&r.length?"display-none":""),id:(c||"search")+"_input",name:(u||"search_name")+"_input",onChange:this.onChange,onKeyPress:this.onKeyPress,value:t,onFocus:this.onFocus,onBlur:this.onBlur,placeholder:s&&r.length||d&&r.length?"":i,onKeyDown:this.onArrowKeyNavigation,style:l.inputField,autoComplete:"off",disabled:s||p}),(s||f)&&a.createElement(a.Fragment,null,m?a.createElement("span",{className:"icon_down_dir"},m):a.createElement("img",{src:"data:image/svg+xml,%3Csvg%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20width%3D%2232%22%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cg%20id%3D%22background%22%3E%20%20%20%20%20%20%20%20%3Crect%20fill%3D%22none%22%20height%3D%2232%22%20width%3D%2232%22%2F%3E%20%20%20%20%3C%2Fg%3E%20%20%20%20%3Cg%20id%3D%22arrow_x5F_down%22%3E%20%20%20%20%20%20%20%20%3Cpolygon%20points%3D%222.002%2C10%2016.001%2C24%2030.002%2C10%20%20%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",className:"icon_cancel icon_down_dir"}))),a.createElement("div",{className:"optionListContainer "+(n?"displayBlock":"displayNone"),onMouseDown:function(e){e.preventDefault()}},this.renderOptionList()))},o.render=function(){return a.createElement(c,{outsideClick:this.onCloseOptionList},this.renderMultiselectContainer())},r}(a.Component);u.defaultProps={options:[],disablePreSelectedValues:!1,selectedValues:[],isObject:!0,displayValue:"model",showCheckbox:!1,selectionLimit:-1,placeholder:"Select",groupBy:"",style:{},emptyRecordMsg:"No Options Available",onSelect:function(){},onRemove:function(){},onKeyPressFn:function(){},closeIcon:"circle2",singleSelect:!1,caseSensitiveSearch:!1,id:"",name:"",closeOnSelect:!0,avoidHighlightFirstOption:!1,hidePlaceholder:!1,showArrow:!1,keepSearchTerm:!1,customCloseIcon:"",className:"",customArrow:void 0,selectedValueDecorator:function(e){return e},optionValueDecorator:function(e){return e}}},779:(e,t,n)=>{var r=n(826);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],a=0;a<t.length;a++)o.push(e(t[a],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",d(r)),n)}(t,n,o):function(e,t,n){return p(a(e,n),t,n)}(t,n,o)},e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,l="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(l+=e.slice(i,f),i=f+d.length,p)l+=p[1];else{var m=e[i],h=n[2],g=n[3],v=n[4],b=n[5],y=n[6],x=n[7];l&&(r.push(l),l="");var w=null!=h&&null!=m&&m!==h,E="+"===y||"*"===y,C="?"===y||"*"===y,S=n[2]||u,_=v||b;r.push({name:g||a++,prefix:h||"",delimiter:S,optional:C,repeat:E,partial:w,asterisk:!!x,pattern:_?c(_):x?".*":"[^"+s(S)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var a="",l=t||{},s=(o||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=l[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=s(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,i="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)i+=s(c);else{var p=s(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=s(n.delimiter||"/"),h=i.slice(-m.length)===m;return o||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":o&&h?"":"(?="+m+"|$)",u(new RegExp("^"+i,d(n)),t)}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}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:a,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"},300:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=l(n(196)),a=l(n(640)),i=["text","onCopy","options","children"];function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(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)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(g,e);var t,n,l,s,h=(l=g,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(l);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=h.call.apply(h,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,l=n.children,s=n.options,c=o.default.Children.only(l),u=(0,a.default)(r,s);i&&i(r,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=g,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.default.PureComponent);t.CopyToClipboard=h,m(h,"defaultProps",{onCopy:void 0,options:void 0})},855:(e,t,n)=>{"use strict";var r=n(300).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},921:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case f:case l:return e;default:return t}}case r:return t}}}Symbol.for("react.module.reference"),t.isFragment=function(e){return h(e)===o},t.isMemo=function(e){return h(e)===f}},864:(e,t,n)=>{"use strict";e.exports=n(921)},359:(e,t)=>{"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode